colltbl ( I M )
s u b s t i t u t e
s u b s t i t u t e
s u b s t i t u t e
Eine einfachere Verwendung der Anweisung
erwähnte Ersetzung eines Zeichens durch zwei Zeichen, z.B. bei ß und
Deutschen.
Die Anweisung
müssen in der Spezifikationsdatei erscheinen.
c o d e s e t
Alle mit einem # in der ersten Spalte markierten Zeilen in der Spezifikationsdatei
werden als Kommentare behandelt und nicht interpretiert. Leerzeilen werden eben
falls ignoriert.
BEISPIEL
Das folgende Beispiel zeigt die Sortierspezifikation, die z.B. für eine Sortierfolge für
ein Telefonbuch benötigt wird.
Die Sortierfolge ist durch die folgenden Regeln definiert:
a.
Groß-
Großbuchstaben haben aber Priorität vor Kleinbuchstaben.
b.
Alle Sonderzeichen und Interpunktionszeichen sollen ignoriert werden.
c.
Ziffern sind wie ihre alphabetischen Entsprechungen zu sortieren (z.B. 0 als
null, 1
d.
Die Kombinationen
e.
und
V
Die Spezifikationsdatei für
04/92
"Jan"
w i t h
"Feb" w i t h
"Dez" w i t h
ist optional.
s u b s t i t u t e
und
Kleinbuchstaben
als
eins).
Ch, ch, C H
und
sind zusammen einzuordnen.
W, v
w
c o l l t b l
c o d e s e t
t e l e p h o n e
o r d e r
is
A; a ; B ; b ;C ; c ;C H ; C h
G ; g ; H ; h : I ; i ; J ; j ; K
Q ; q ;R;r; S ; s ; T ; t ; U
"0" w i t h
s u b s t i t u t e
s u b s t i t u t e
w i t h
T
s u b s t i t u t e
"2" w i t h
s u b s t i t u t e
" 3" w i t h
, , 4 " w i t h
s u b s t i t u t e
s u b s t i t u t e
5
w i t h
s u b s t i t u t e
"6" w i t h
s u b s t i t u t e
"7 " w i t h
s u b s t i t u t e
"8" w i t h
"9" w i t h
s u b s t i t u t e
"01"
"02"
"12"
s u b s t i t u t e
Die Anweisungen
müssen
zusammen
sind zwischen
und
C
sieht so aus:
"null"
"eins"
"z w e i "
"drei"
"vier"
"fünf"
"s e c h s "
" s i e b e n "
"acht"
"n e u n "
c o lltb l(IM )
ist die bereits
ss
o r d e r
is
sortiert
werden,
einzuordnen.
D
; e ; F ; f ; \
1-111
im
und