Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Peter Norton Programmer's Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

  Word-processing programs have special needs for formatting text files. The
  files that these programs create are rarely simple and typically have many
  exotic additions to the simplest ASCII format. Generally, each word
  processor has unique formatting rules; luckily, there are some common
  features.

  Many of the special format codes used by word processors are created by
  using an extended ASCII code that is 128 higher than a normal ASCII code.
  This is equivalent to setting the high-order bit of an otherwise ordinary
  byte. For example, a "soft" carriage return, ASCII 8DH (decimal 141), is
  coded by adding 128 to an ordinary carriage return, ASCII 0DH (decimal
  13). Soft carriage returns indicate a tentative end of line, which can be
  changed when a paragraph is reformatted. On the other hand, an ordinary
  carriage return, can mark the end of a paragraph that isn't changed by
  reformatting. This kind of coding in word-processing text can cause some
  programs to treat an entire paragraph as one single line.

  "Soft" hyphens (ASCII ADH, decimal 173), whose ASCII value is 128 greater
  than ordinary hyphens (ASCII 2DH, decimal 45), are sometimes used to
  indicate where a word may be split into syllables at the end of a line.

  Ordinary "hard" hyphens are treated as regular characters and cannot be
  used or removed by the word-processing program in the same way that soft
  hyphens can.

  Even ordinary alphabetic text can have 128 added to its character code.
  Some programs do this to mark the last letter in a word. For example, a
  lowercase a is ASCII 61H (decimal 97); but when it appears at the end of a
  word, as in America, it may be stored as ASCII E1H (decimal 225), because
  225 is the sum of 97 + 128.

  Programs intended to work with a variety of text and word-processing data
  should be prepared, as much as possible, to cope with the variety of text
  formats that these examples suggest.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson