home *** CD-ROM | disk | FTP | other *** search
- ;
- ; The Opus System Manager
- ;
- ; Copyright (C) 1990-1992 by Tom Kashuba and Ulf Nilsson
- ;
- ; OMANCITY.FIX - C)ity field preening rules for the User Manager
- ;
- ;--------------------------------------------------------------------------
- ;
- ;
- {SUB} "!#$%^&*()_+`={}|[]\:;'<>?,./" "@" ; Replace garbage characters
- {SUB} '"@' "" ;
-
- {TRIM} ; Trimming all lead/trailing spaces and any convert
- ; any embedded embedded multiple spaces to single ones.
-
- {0} "Montreal, Que"
-
- "Pq" "Que"
- "Qc" "Que"
- "Quebec" "Que"
- "Mtl" "Montreal"
- "P.Q." "Que"
- "P.Q" "Que"
- "PQ." "Que"
-
- "Saint " "St-"
- "Saint-" "St-"
- "Saint_" "St-"
-
- "Sainte " "Ste-"
- "Sainte-" "Ste-"
- "Sainte_" "Ste-"
-
- "Vls" "Lasalle"
- "Vsl" "St-Laurent"
- "Pat" "Pt-Trembles"
- "Rdp" "Riv-Prairie"
- "DDO" "Dollard"
- "NDG" "Montreal"
- "|Quebec " "Quebec City"
-
- "." " " ; No periods, replace with space
- " " ", " ; Always Add comma
- "," ", " ; Add space after any comma
- " ," "," ; Fix spaced out commas
- ",," "," ; Remove any multiple commas resulting from above
-
- {TRIM} ; Catch-All trim up
- {1} ", Que" ; Do this near end in case fix ups created two words
- {TRIM} ; Catch-All trim up
- ",|" "" ; Remove any trailing commas
-
-