home *** CD-ROM | disk | FTP | other *** search
/ Aminet 10 / aminetcdnumber101996.iso / Aminet / text / hyper / GuideTool1_0.lha / GuideTool / english / XREF-concepts < prev   
Encoding:
Text File  |  1995-10-20  |  2.1 KB  |  54 lines

  1. General
  2. -------
  3.  
  4. - Initialisation: set string to "\0"
  5. - Loop checks for end of line (s. below)
  6. - Read character
  7. - Add character to string
  8. - If character is a sentence symbol like ";" or "," (symbol quantity)
  9.   * Check if
  10.     (Precondition: AG-command is no "fake" (starts not with \@) )
  11.     + string is AG-command (@{), if yes
  12.       # parse it and shift read pointer corresponding
  13.       # Check string for match like below and print it, if it is not empty
  14.       # print command
  15.      else
  16.     (Precondition: Check if string has minimal size (min))
  17.     + string corresponds with one oth the link labels:
  18.       # if yes print it as below at string
  19.       # if no start a lookp over all characters of the string
  20.         (Check if Break Symbol is reached, if yes)
  21.         :Make a copy of the string
  22.         :Delete first word from the string if not the only one
  23.         :Check if string is one of the link labels
  24.         :if yes create part string and join it with the created link label
  25.         :else continue
  26.       # if the end of the loop is reachedm no match has been found -> no print
  27. - Increase read pointer by 1
  28. - Check if End of line has been reached, if yes:
  29.   * check if string corresponds with one of the link labels (as above), if yes
  30.   * print string
  31.   * set readpointer to zero
  32.   * read new line
  33. - else start from the beginning
  34.  
  35. This is only the main part, I've skipped the special parts like checking for
  36. the @node command and empty line (and the printing of them).
  37. Moreover I've skipped temporary taking of break symbols in the main part to
  38. keep the overview over the function.
  39.  
  40. Word Wrapping
  41. -------------
  42.  
  43. - Check if WRAP-Mous has been aktivated (global variable)
  44. - Check for Wrap Symbol and check if the following sign is a \n
  45. - If yes, set global variable (!) wrap to TRUE, keep track of the wrapped word
  46. - In the next line: Check if wrap is TRUE, if yes
  47.   * join wrap word and actual word together and check for match
  48.   * if match succesfull, set wrap variable on FALSE
  49. - wrap variable is also false if a new word had a match.
  50.  
  51. Draw backs: * speed even slower
  52.             * 3 new global variables
  53.             * additional verifying on word wrapping
  54.