home *** CD-ROM | disk | FTP | other *** search
- General
- -------
-
- - Initialisation: set string to "\0"
- - Loop checks for end of line (s. below)
- - Read character
- - Add character to string
- - If character is a sentence symbol like ";" or "," (symbol quantity)
- * Check if
- (Precondition: AG-command is no "fake" (starts not with \@) )
- + string is AG-command (@{), if yes
- # parse it and shift read pointer corresponding
- # Check string for match like below and print it, if it is not empty
- # print command
- else
- (Precondition: Check if string has minimal size (min))
- + string corresponds with one oth the link labels:
- # if yes print it as below at string
- # if no start a lookp over all characters of the string
- (Check if Break Symbol is reached, if yes)
- :Make a copy of the string
- :Delete first word from the string if not the only one
- :Check if string is one of the link labels
- :if yes create part string and join it with the created link label
- :else continue
- # if the end of the loop is reachedm no match has been found -> no print
- - Increase read pointer by 1
- - Check if End of line has been reached, if yes:
- * check if string corresponds with one of the link labels (as above), if yes
- * print string
- * set readpointer to zero
- * read new line
- - else start from the beginning
-
- This is only the main part, I've skipped the special parts like checking for
- the @node command and empty line (and the printing of them).
- Moreover I've skipped temporary taking of break symbols in the main part to
- keep the overview over the function.
-
- Word Wrapping
- -------------
-
- - Check if WRAP-Mous has been aktivated (global variable)
- - Check for Wrap Symbol and check if the following sign is a \n
- - If yes, set global variable (!) wrap to TRUE, keep track of the wrapped word
- - In the next line: Check if wrap is TRUE, if yes
- * join wrap word and actual word together and check for match
- * if match succesfull, set wrap variable on FALSE
- - wrap variable is also false if a new word had a match.
-
- Draw backs: * speed even slower
- * 3 new global variables
- * additional verifying on word wrapping
-