Debian Codegraph @

texmf-dist/doc/latex/glossaries/samples/samplexdy-mc207.xdy

raw
1 ;; xindy style file for samplexdy.tex that has Mc letter group
2
3 (define-letter-group "A" :prefixes ("€"))
4 (define-letter-group "B" :after "A" :prefixes ("„"))
5 (define-letter-group "C" :after "B" :prefixes ("†"))
6 (define-letter-group "D" :after "C" :prefixes (""))
7 (define-letter-group "E" :after "D" :prefixes ("—"))
8 (define-letter-group "F" :after "E" :prefixes ("œ"))
9 (define-letter-group "G" :after "F" :prefixes (""))
10 (define-letter-group "H" :after "G" :prefixes ("¤"))
11 (define-letter-group "I" :after "H" :prefixes ("¨"))
12 (define-letter-group "J" :after "I" :prefixes ("¬"))
13 (define-letter-group "K" :after "J" :prefixes ("®"))
14 (define-letter-group "L" :after "K" :prefixes ("´"))
15 (define-letter-group "Mc" :after "L" :prefixes ("Ƞ"))
16 (define-letter-group "M" :after "Mc" :prefixes ("»"))
17 (define-letter-group "N" :after "M" :prefixes ("¼"))
18 (define-letter-group "O" :after "N" :prefixes ("Ã"))
19 (define-letter-group "P" :after "O" :prefixes ("È"))
20 (define-letter-group "Q" :after "P" :prefixes ("Ê"))
21 (define-letter-group "R" :after "Q" :prefixes ("Ë"))
22 (define-letter-group "S" :after "R" :prefixes ("Ð"))
23 (define-letter-group "T" :after "S" :prefixes ("Ú"))
24 (define-letter-group "U" :after "T" :prefixes ("à"))
25 (define-letter-group "V" :after "U" :prefixes ("å"))
26 (define-letter-group "W" :after "V" :prefixes ("æ"))
27 (define-letter-group "X" :after "W" :prefixes ("ë"))
28 (define-letter-group "Y" :after "X" :prefixes ("í"))
29 (define-letter-group "Ȝ" :after "Y" :prefixes ("ï"))
30 (define-letter-group "Z" :after "Ȝ" :prefixes ("ð"))
31 (define-letter-group "Þ" :after "Z" :prefixes ("ö"))
32 (define-letter-group "Æ¿" :after "Þ" :prefixes ("÷"))
33
34 (define-rule-set "en-alphabetize"
35
36 :rules (("à" "€" :string)
37 ("À" "€" :string)
38 ("Æ" "€—" :string)
39 ("æ" "€—" :string)
40 ("Ç" "†" :string)
41 ("ç" "†" :string)
42 ("ð" "" :string)
43 ("Ð" "" :string)
44 ("É" "—" :string)
45 ("Ê" "—" :string)
46 ("È" "—" :string)
47 ("Ë" "—" :string)
48 ("è" "—" :string)
49 ("ë" "—" :string)
50 ("ê" "—" :string)
51 ("é" "—" :string)
52 ("Ï" "¨" :string)
53 ("ï" "¨" :string)
54 ("Ñ" "¼" :string)
55 ("ñ" "¼" :string)
56 ("Ö" "Ã" :string)
57 ("Ô" "Ã" :string)
58 ("ô" "Ã" :string)
59 ("ö" "Ã" :string)
60 ("œ" "×" :string)
61 ("Œ" "×" :string)
62 ("ȝ" "ï" :string)
63 ("Ȝ" "ï" :string)
64 ("þ" "ö" :string)
65 ("Þ" "ö" :string)
66 ("Ç·" "÷" :string)
67 ("Æ¿" "÷" :string)
68 ("a" "€" :string)
69 ("A" "€" :string)
70 ("b" "„" :string)
71 ("B" "„" :string)
72 ("C" "†" :string)
73 ("c" "†" :string)
74 ("d" "" :string)
75 ("D" "" :string)
76 ("E" "—" :string)
77 ("e" "—" :string)
78 ("F" "œ" :string)
79 ("f" "œ" :string)
80 ("g" "" :string)
81 ("G" "" :string)
82 ("H" "¤" :string)
83 ("h" "¤" :string)
84 ("I" "¨" :string)
85 ("i" "¨" :string)
86 ("J" "¬" :string)
87 ("j" "¬" :string)
88 ("K" "®" :string)
89 ("k" "®" :string)
90 ("L" "´" :string)
91 ("l" "´" :string)
92 ("Mc" "Ƞ" :string)
93 ("Mac" "Ƞ" :string)
94 ("M" "»" :string)
95 ("m" "»" :string)
96 ("N" "¼" :string)
97 ("n" "¼" :string)
98 ("O" "Ã" :string)
99 ("o" "Ã" :string)
100 ("P" "È" :string)
101 ("p" "È" :string)
102 ("q" "Ê" :string)
103 ("Q" "Ê" :string)
104 ("r" "Ë" :string)
105 ("R" "Ë" :string)
106 ("S" "Ð" :string)
107 ("s" "Ð" :string)
108 ("T" "Ú" :string)
109 ("t" "Ú" :string)
110 ("u" "à" :string)
111 ("U" "à" :string)
112 ("v" "å" :string)
113 ("V" "å" :string)
114 ("w" "æ" :string)
115 ("W" "æ" :string)
116 ("X" "ë" :string)
117 ("x" "ë" :string)
118 ("Y" "í" :string)
119 ("y" "í" :string)
120 ("z" "ð" :string)
121 ("Z" "ð" :string)
122 ))
123
124 (define-rule-set "en-resolve-diacritics"
125
126 :rules (("ȝ" "¢" :string)
127 ("þ" "¢" :string)
128 ("Ç·" "¢" :string)
129 ("Þ" "¢" :string)
130 ("Ȝ" "¢" :string)
131 ("Æ¿" "¢" :string)
132 ("Ö" "£" :string)
133 ("Ñ" "£" :string)
134 ("ð" "£" :string)
135 ("Ç" "£" :string)
136 ("É" "£" :string)
137 ("Ï" "£" :string)
138 ("ï" "£" :string)
139 ("ö" "£" :string)
140 ("ñ" "£" :string)
141 ("ç" "£" :string)
142 ("à" "£" :string)
143 ("À" "£" :string)
144 ("é" "£" :string)
145 ("Ð" "£" :string)
146 ("Ô" "¤" :string)
147 ("ô" "¤" :string)
148 ("È" "¤" :string)
149 ("è" "¤" :string)
150 ("Ë" "¥" :string)
151 ("ë" "¥" :string)
152 ("Ê" "¦" :string)
153 ("ê" "¦" :string)
154 ("œ" "ÿ" :string)
155 ("Æ" "ÿ" :string)
156 ("Œ" "ÿ" :string)
157 ("æ" "ÿ" :string)
158 ("S" "¢" :string)
159 ("K" "¢" :string)
160 ("d" "¢" :string)
161 ("Y" "¢" :string)
162 ("E" "¢" :string)
163 ("y" "¢" :string)
164 ("g" "¢" :string)
165 ("e" "¢" :string)
166 ("J" "¢" :string)
167 ("q" "¢" :string)
168 ("D" "¢" :string)
169 ("b" "¢" :string)
170 ("z" "¢" :string)
171 ("w" "¢" :string)
172 ("Q" "¢" :string)
173 ("M" "¢" :string)
174 ("C" "¢" :string)
175 ("L" "¢" :string)
176 ("X" "¢" :string)
177 ("P" "¢" :string)
178 ("T" "¢" :string)
179 ("a" "¢" :string)
180 ("N" "¢" :string)
181 ("j" "¢" :string)
182 ("Z" "¢" :string)
183 ("u" "¢" :string)
184 ("k" "¢" :string)
185 ("t" "¢" :string)
186 ("W" "¢" :string)
187 ("v" "¢" :string)
188 ("s" "¢" :string)
189 ("B" "¢" :string)
190 ("H" "¢" :string)
191 ("c" "¢" :string)
192 ("I" "¢" :string)
193 ("G" "¢" :string)
194 ("U" "¢" :string)
195 ("F" "¢" :string)
196 ("r" "¢" :string)
197 ("x" "¢" :string)
198 ("V" "¢" :string)
199 ("h" "¢" :string)
200 ("f" "¢" :string)
201 ("i" "¢" :string)
202 ("A" "¢" :string)
203 ("O" "¢" :string)
204 ("n" "¢" :string)
205 ("m" "¢" :string)
206 ("l" "¢" :string)
207 ("p" "¢" :string)
208 ("R" "¢" :string)
209 ("o" "¢" :string)
210 ))
211
212 (define-rule-set "en-resolve-case"
213
214 :rules (("Ö" "8" :string)
215 ("Ñ" "8" :string)
216 ("Ô" "8" :string)
217 ("Ç" "8" :string)
218 ("É" "8" :string)
219 ("Ï" "8" :string)
220 ("Ê" "8" :string)
221 ("È" "8" :string)
222 ("Ë" "8" :string)
223 ("Ç·" "8" :string)
224 ("À" "8" :string)
225 ("Þ" "8" :string)
226 ("Ȝ" "8" :string)
227 ("Ð" "8" :string)
228 ("Æ" "89" :string)
229 ("Œ" "89" :string)
230 ("ð" "9" :string)
231 ("ô" "9" :string)
232 ("ȝ" "9" :string)
233 ("ï" "9" :string)
234 ("ö" "9" :string)
235 ("ñ" "9" :string)
236 ("ç" "9" :string)
237 ("à" "9" :string)
238 ("þ" "9" :string)
239 ("è" "9" :string)
240 ("ë" "9" :string)
241 ("ê" "9" :string)
242 ("é" "9" :string)
243 ("Æ¿" "9" :string)
244 ("œ" "99" :string)
245 ("æ" "99" :string)
246 ("S" "8" :string)
247 ("K" "8" :string)
248 ("Y" "8" :string)
249 ("E" "8" :string)
250 ("J" "8" :string)
251 ("D" "8" :string)
252 ("Q" "8" :string)
253 ("M" "8" :string)
254 ("C" "8" :string)
255 ("L" "8" :string)
256 ("X" "8" :string)
257 ("P" "8" :string)
258 ("T" "8" :string)
259 ("N" "8" :string)
260 ("Z" "8" :string)
261 ("W" "8" :string)
262 ("B" "8" :string)
263 ("H" "8" :string)
264 ("I" "8" :string)
265 ("G" "8" :string)
266 ("U" "8" :string)
267 ("F" "8" :string)
268 ("V" "8" :string)
269 ("A" "8" :string)
270 ("O" "8" :string)
271 ("R" "8" :string)
272 ("d" "9" :string)
273 ("y" "9" :string)
274 ("g" "9" :string)
275 ("e" "9" :string)
276 ("q" "9" :string)
277 ("b" "9" :string)
278 ("z" "9" :string)
279 ("w" "9" :string)
280 ("a" "9" :string)
281 ("j" "9" :string)
282 ("u" "9" :string)
283 ("k" "9" :string)
284 ("t" "9" :string)
285 ("v" "9" :string)
286 ("s" "9" :string)
287 ("c" "9" :string)
288 ("r" "9" :string)
289 ("x" "9" :string)
290 ("h" "9" :string)
291 ("f" "9" :string)
292 ("i" "9" :string)
293 ("n" "9" :string)
294 ("m" "9" :string)
295 ("l" "9" :string)
296 ("p" "9" :string)
297 ("o" "9" :string)
298 ))
299
300 (define-rule-set "en-ignore-special"
301
302 :rules (("-" "" :string)
303 ("!" "" :string)
304 ("{" "" :string)
305 ("'" "" :string)
306 ("}" "" :string)
307 ("?" "" :string)
308 ("." "" :string)
309 ))
310
311 (define-rule-set "en-resolve-special"
312
313 :rules (("Ö" "¤" :string)
314 ("Ñ" "¤" :string)
315 ("ð" "¤" :string)
316 ("Ô" "¤" :string)
317 ("Ç" "¤" :string)
318 ("É" "¤" :string)
319 ("ô" "¤" :string)
320 ("Ï" "¤" :string)
321 ("ȝ" "¤" :string)
322 ("ï" "¤" :string)
323 ("Ê" "¤" :string)
324 ("ö" "¤" :string)
325 ("ñ" "¤" :string)
326 ("È" "¤" :string)
327 ("ç" "¤" :string)
328 ("Ë" "¤" :string)
329 ("à" "¤" :string)
330 ("þ" "¤" :string)
331 ("Ç·" "¤" :string)
332 ("è" "¤" :string)
333 ("À" "¤" :string)
334 ("ë" "¤" :string)
335 ("Þ" "¤" :string)
336 ("ê" "¤" :string)
337 ("é" "¤" :string)
338 ("Ȝ" "¤" :string)
339 ("Æ¿" "¤" :string)
340 ("Ð" "¤" :string)
341 ("œ" "¤¤" :string)
342 ("Æ" "¤¤" :string)
343 ("Œ" "¤¤" :string)
344 ("æ" "¤¤" :string)
345 ("?" "¡" :string)
346 ("!" "¢" :string)
347 ("." "£" :string)
348 ("S" "¤" :string)
349 ("K" "¤" :string)
350 ("d" "¤" :string)
351 ("Y" "¤" :string)
352 ("E" "¤" :string)
353 ("y" "¤" :string)
354 ("g" "¤" :string)
355 ("e" "¤" :string)
356 ("J" "¤" :string)
357 ("q" "¤" :string)
358 ("D" "¤" :string)
359 ("b" "¤" :string)
360 ("z" "¤" :string)
361 ("w" "¤" :string)
362 ("Q" "¤" :string)
363 ("M" "¤" :string)
364 ("C" "¤" :string)
365 ("L" "¤" :string)
366 ("X" "¤" :string)
367 ("P" "¤" :string)
368 ("T" "¤" :string)
369 ("a" "¤" :string)
370 ("N" "¤" :string)
371 ("j" "¤" :string)
372 ("Z" "¤" :string)
373 ("u" "¤" :string)
374 ("k" "¤" :string)
375 ("t" "¤" :string)
376 ("W" "¤" :string)
377 ("v" "¤" :string)
378 ("s" "¤" :string)
379 ("B" "¤" :string)
380 ("H" "¤" :string)
381 ("c" "¤" :string)
382 ("I" "¤" :string)
383 ("G" "¤" :string)
384 ("U" "¤" :string)
385 ("F" "¤" :string)
386 ("r" "¤" :string)
387 ("x" "¤" :string)
388 ("V" "¤" :string)
389 ("h" "¤" :string)
390 ("f" "¤" :string)
391 ("i" "¤" :string)
392 ("A" "¤" :string)
393 ("O" "¤" :string)
394 ("n" "¤" :string)
395 ("m" "¤" :string)
396 ("l" "¤" :string)
397 ("p" "¤" :string)
398 ("R" "¤" :string)
399 ("o" "¤" :string)
400 ("-" "¥" :string)
401 ("'" "¦" :string)
402 ("{" "§" :string)
403 ("}" "¨" :string)
404 ))
405
406 ; The following section is customised for samplexdy.tex
407 ; (copied from samplexdy.xdy automatically generated by
408 ; samplexdy.tex)
409
410 ; required styles
411
412 (require "tex.xdy")
413
414 ; list of allowed attributes (number formats)
415
416 (define-attributes (("default"
417 "glsnumberformat"
418 "textrm"
419 "textsf"
420 "texttt"
421 "textbf"
422 "textmd"
423 "textit"
424 "textup"
425 "textsl"
426 "textsc"
427 "emph"
428 "glshypernumber"
429 "hyperrm"
430 "hypersf"
431 "hypertt"
432 "hyperbf"
433 "hypermd"
434 "hyperit"
435 "hyperup"
436 "hypersl"
437 "hypersc"
438 "hyperemph"
439 "hyperbfit")))
440
441 ; user defined alphabets
442
443
444
445 ; location class definitions
446
447 (define-location-class "roman-page-numbers"
448 ("roman-numbers-lowercase"))
449 (define-location-class "Roman-page-numbers"
450 ("roman-numbers-uppercase"))
451 (define-location-class "arabic-page-numbers"
452 ("arabic-numbers"))
453 (define-location-class "alpha-page-numbers"
454 ("alpha"))
455 (define-location-class "Alpha-page-numbers"
456 ("ALPHA"))
457 (define-location-class "Appendix-page-numbers"
458 ("ALPHA" :sep "." "arabic-numbers"))
459 (define-location-class "arabic-section-numbers"
460 ("arabic-numbers" :sep "." "arabic-numbers"))
461
462 ; user defined location classes
463
464 (define-location-class "Numberstring"
465 (:sep "\protect \Numberstringnum {" "arabic-numbers" :sep "}"))
466
467 ; define cross-reference class
468
469 (define-crossref-class "see" :unverified )
470 (markup-crossref-list :class "see"
471 :open "\glsseeformat" :close "{}")
472
473 ; define the order of the location classes
474 (define-location-class-order (
475 "roman-page-numbers"
476 "arabic-page-numbers"
477 "arabic-section-numbers"
478 "alpha-page-numbers"
479 "Roman-page-numbers"
480 "Alpha-page-numbers"
481 "Appendix-page-numbers"
482 "see" ))
483
484 ; define the glossary markup
485
486 (markup-index
487 :open "\glossarysection[\glossarytoctitle]{\glossarytitle}\glossarypreamble~n\begin{theglossary}\glossaryheader~n"
488 :close "~n\end{theglossary}~n\glossarypostamble~n"
489 :tree)
490 (markup-letter-group-list :sep "\glsgroupskip~n")
491 (markup-indexentry :open "~n" :depth 0)
492 (markup-locclass-list :open "{\glossaryentrynumbers{\relax "
493 :sep ", " :close "}}")
494 (markup-locref-list :sep "\delimN ")
495 (markup-range :sep "\delimR ")
496
497 ; define format to use for locations
498
499
500 (markup-locref :open "~n\setentrycounter{page}\glsnumberformat{"
501 :close "}"
502 :attr "glsnumberformat")
503 (markup-locref :open "~n\setentrycounter{page}\textrm{"
504 :close "}"
505 :attr "textrm")
506 (markup-locref :open "~n\setentrycounter{page}\textsf{"
507 :close "}"
508 :attr "textsf")
509 (markup-locref :open "~n\setentrycounter{page}\texttt{"
510 :close "}"
511 :attr "texttt")
512 (markup-locref :open "~n\setentrycounter{page}\textbf{"
513 :close "}"
514 :attr "textbf")
515 (markup-locref :open "~n\setentrycounter{page}\textmd{"
516 :close "}"
517 :attr "textmd")
518 (markup-locref :open "~n\setentrycounter{page}\textit{"
519 :close "}"
520 :attr "textit")
521 (markup-locref :open "~n\setentrycounter{page}\textup{"
522 :close "}"
523 :attr "textup")
524 (markup-locref :open "~n\setentrycounter{page}\textsl{"
525 :close "}"
526 :attr "textsl")
527 (markup-locref :open "~n\setentrycounter{page}\textsc{"
528 :close "}"
529 :attr "textsc")
530 (markup-locref :open "~n\setentrycounter{page}\emph{"
531 :close "}"
532 :attr "emph")
533 (markup-locref :open "~n\setentrycounter{page}\glshypernumber{"
534 :close "}"
535 :attr "glshypernumber")
536 (markup-locref :open "~n\setentrycounter{page}\hyperrm{"
537 :close "}"
538 :attr "hyperrm")
539 (markup-locref :open "~n\setentrycounter{page}\hypersf{"
540 :close "}"
541 :attr "hypersf")
542 (markup-locref :open "~n\setentrycounter{page}\hypertt{"
543 :close "}"
544 :attr "hypertt")
545 (markup-locref :open "~n\setentrycounter{page}\hyperbf{"
546 :close "}"
547 :attr "hyperbf")
548 (markup-locref :open "~n\setentrycounter{page}\hypermd{"
549 :close "}"
550 :attr "hypermd")
551 (markup-locref :open "~n\setentrycounter{page}\hyperit{"
552 :close "}"
553 :attr "hyperit")
554 (markup-locref :open "~n\setentrycounter{page}\hyperup{"
555 :close "}"
556 :attr "hyperup")
557 (markup-locref :open "~n\setentrycounter{page}\hypersl{"
558 :close "}"
559 :attr "hypersl")
560 (markup-locref :open "~n\setentrycounter{page}\hypersc{"
561 :close "}"
562 :attr "hypersc")
563 (markup-locref :open "~n\setentrycounter{page}\hyperemph{"
564 :close "}"
565 :attr "hyperemph")
566 (markup-locref :open "~n\setentrycounter{page}\hyperbfit{"
567 :close "}"
568 :attr "hyperbfit")
569
570 ; define letter group list format
571
572 (markup-letter-group-list :sep "\glsgroupskip~n")
573
574 ; letter group headings
575
576 (markup-letter-group :open-head "\glsgroupheading{"
577 :close-head "}")
578
579 (define-letter-group "glsnumbers"
580 :prefixes ("0" "1" "2" "3" "4" "5" "6" "7" "8" "9")
581 :before "A")
582
583 ; The following is copied from xindy/lang/english/utf8-lang.xdy
584
585 (define-sort-rule-orientations (forward backward forward forward))
586 (use-rule-set :run 0
587 :rule-set ("en-alphabetize" "en-ignore-special"))
588 (use-rule-set :run 1
589 :rule-set ("en-resolve-diacritics" "en-ignore-special"))
590 (use-rule-set :run 2
591 :rule-set ("en-resolve-case" "en-ignore-special"))
592 (use-rule-set :run 3
593 :rule-set ("en-resolve-special"))
594