October 1, 1979 USING FRESS
"T" Version
When a file is displayed, capital letters are represented using
the same percent sign procedures as above.
Numbers and punctuation (except exclamation points -- "!") may
be considered upper-case characters when preceded by two or more
upper-case letters (see the third example below).
EXAMPLES ________
%THE QUICK BROWN FOX ____________________
The quick brown fox
%THIS TEXT EDITOR IS %%FRESS.%% _______________________________
This text editor is FRESS.
%P.%T. %BARNUM ______________
P.T. Barnum (the periods in this string are not considered
upper-case characters) Pattern Matching ________________________
Care must be taken when pattern scanning on an upper-case
terminal using LOCATE or when specifying any context string.
Unlike in the normal (upper/lower case) mode, the pattern
must specified either as a context string or LOCATE pattern ____
exactly match when displayed _____________ the way the text appears ______________, including
all the percent signs indicating upper-case. This is because ___
pattern scanning is done in the Display Window __________________________________________________ (which is the
not text displayed on the terminal), ___ in the file itself. All
characters in the Display Window appear in upper-case, even
though some of the characters are actually lower case in the
The scan for pattern matching in LOCATE commands in the forward
direction starts at the second character of the Display Window.
Thus, on an upper/lower case terminal, consecutive LOCATEs of
the same pattern will always find different instances of the
pattern. On an upper-case terminal, consecutive LOCATEs of a
pattern beginning with a capital letter, but not specified as
such, will find the same instance each time, since the word
matching the pattern also starts at the second character of the
Display Window. Therefore, leading percent or double percent
signs should be included in the pattern to ensure the LOCATEs
will find separate instances.
EXAMPLES ________
The string "%SENATOR %MC%GOVERN" would not be found if the user
specified "L/MCGOVERN" because of the percent sign appearing in
would the Display Buffer. It _____ be found by specifying "L/MC%G".
14 -- Section 2.2nual Release 9.1
October 1, 1979 USING FRESS
"T" Version
Consider the string "%THIS TEXT EDITOR IS %%FRESS.%%". Because
the period at the end is considered part of the multi-cap
string, the last word could not be found by typing "L/%%FRESS%%"
would since it does not appear that way in the display. It _____ be
found by typing "L/%%FRESS.%%" or by "L/%%FRESS". In fact, it
would even be found by typing "L/FRESS". Literal Text ____________________
When specifying <text> parameters in commands such as INSERT,
SUBSTITUTE, IBEFORE, and USUBSTITUTE, percent and double percent
signs must be used to indicate upper-case characters exactly as
they are used in Input Mode. Thus to correct a typographical
error which caused the string "%%FRXSS%%" to be inserted in the
file, the user might type
the Actually, the second pair of percent signs is redundant, since ___
multi-cap string is automatically ended _______________________________________ by the carriage return. Correcting Character Case Errors ________________________________________
Often a section of text is entered in the wrong case, either by
neglecting to use the proper version of FRESS or by forgetting
the percent signs to indicate upper-case. In these instances,
CAPITALIZE and UNCAPITALIZE may be used to correct the error.
UNCAPITALIZE can be used to convert an entire file which was
accidentally inputted in upper-case. If the entire file is
specified as <scope>, all characters will flip to lower case
except those appearing after "sentence-ending" punctuation -
periods and (literal) exclamation points. Summary of Rules ________________________
inside 1) When pattern matching, all percent signs included ______ the
desired string to indicate capitalization must be specified in
the pattern. If percent signs are leading or trailing, they
may be omitted.
2) If consecutive LOCATEs for the same pattern are to be done,
the leading percent or double percent signs should be included
in the pattern to ensure the LOCATEs will find separate
FRESS Resource Manualnual Release 9.1 Section 2.2 -- 15
Previous Page Next Page