|
|
Choosing A Webhost: |
Re: What character is the "-" in DataPerfect?: msg#00121db.dataperfect.general
Hi Victor, This is one of those times that it might not be as simple as it seems. According to the WordPerfect 5.1 Developer Toolkit, the codes for the Hyphen/Hard Hypen & Soft Hyphen are different depending on their context. If you are working in WorkPerfect 5.1, you can enter three types of Hyphens... a normal Hyphen Character, Hard Hyphen Home,- and the less frequently used Soft Hyphen CTRL - The ambuguity occurs because hyphens are used as word separators and also as line continuation. If you check the WP5.1 help for Hyphen you will see the examples, eg father-in-law with normal hyphens, in the middle of a line is printed as father-in-law but this hyphen also permits it to be broken at the end of a line as in father-in- law The hard hyphen Home,Hyphen always displays the hyphen character but permits the word group from being broken at the end of the line, and will take the "father-in-law" down to a new line or new page. The soft hyphen CTRL - doesn't display in the middle of a line, but allows the word to be broken at the end of a line so if you used it in the above example you might see this fatherin- law ie no hyphen displayed between the "father" and "in". WordPerfect has fine control on hyphenation, by allowing you to turn end of line hyphenation on or off (except Soft-Hyphens which always hyphenate when at the end of a line), and also allows you to specify the percentage of the line where automatic line hyphenation takes effect, ie the degree of hyphenation that will occur in a document. WordPerfect dynamically changes the single byte code depending on where a hyphen is, so a Hard-Hyphen-In-a-Line is 0xA9 a Hard-Hyphen-at-the-end-of-a-line is 0xAA, and at the end of a page 0xAB. A SoftHyphenInALine is 0xAC, at the end of the line is 0xAD at the end of a page is 0xAE. Fortunately WordPerfect is pretty good at finxing those things up, so if you a Text file containing the 0xA9 character it will work out if it needs to change it to one of the other codes. The Hard Space and normal Space are not as complex... the code for the Hard Space is 0xA0... which is the same byte character as HTML's non-breaking space The way reveal codes works and similarity of codes such as Soft-Hyphen ­ 0xAD, Hard Space one might be forgiven for thinking that Tim Berners-Lee and others had WordPerfect in mind when defining HTML. Or perhaps he didn;t otherwise with a hyphenated name he would have thought more about the hard hyphen issue. Brian ----- Original Message ----- From: "Tim Rude" <timrude-PkbjNfxxIARBDgjK7y7TUQ@xxxxxxxxxxxxxxxx> To: "DataPerfect Users Discussion Group" <dataperf-Ii8YPGKeNuMyuW1uK6fEew@xxxxxxxxxxxxxxxx> Sent: Thursday, August 24, 2006 12:09 AM Subject: Re: [Dataperf] What character is the "-" in DataPerfect? Try pressing Home and then - in WP. As you'll see in Reveal Codes, this
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: What character is the "-" in DataPerfect?, Tim Rude |
|---|---|
| Next by Date: | Command line Z=, LN |
| Previous by Thread: | Re: What character is the "-" in DataPerfect?, Tim Rude |
| Next by Thread: | Re: What character is the "-" in DataPerfect?, Victor Warner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home
| advertise | OSDir is
an inevitable website.
|