No. 294

A Search and Replace Utility for Special Characters in Lyrics

IWBNI there were a utility that would automatically replace the following character strings in lyrics:
 
 
Input Description of Input Output Description of Output
% Percent sign (37) NBSP Nonbreaking space (160)
# Hash mark (35) ­ Nonbreaking hyphen (173)
'syllable Apostrophe (39) followed by a syllable syllable Left single quote (145) followed by the syllable
`syllable Gravè accent (96) followed by a syllable syllable Left single quote (145) followed by the syllable
syllable' A syllable followed by an apostrophe (39) syllable The syllable followed by a right single quote (146)
"syllable Quotation mark (34) followed by a syllable syllable Left double quote (147) followed by the syllable
syllable" A syllable followed by a quotation mark (34) syllable The syllable followed by a right double quote (148)
?syllable A question mark (63) followed by a syllable ¿syllableNBSP Inverted question mark (191) followed by the syllable followed by a nonbreaking space (160) [appended for alignment purposes]
syllable? A syllable followed by a question mark NBSPsyllable? Nonbreaking space (160) [inserted for alignment purposes] followed by the syllable followed by a question mark
!syllable An exclamation point (33) followed by a syllable ¡syllable Inverted exclamation point (161) followed by the syllable

Note: The numbers in this table are character numbers that indicate the numeric position of a character in the ISO Latin-1 character set (ISO 8859-1). The string NBSP represents a single nonbreaking space character (160).

The characters used to specify a nonbreaking space and nonbreaking hyphen (e.g. % and #) could be user-definable. Also, a checkbox option could be used to control whether or not a nonbreaking space is added in the question-mark cases.



Created: February 1, 2000 (based on a submission from Barbara Touburg and comments by Jari Williamsson)
Last Updated: February 15, 2000 (added inverted exclamation point)
Version: Finale 2000b