summaryrefslogtreecommitdiff
path: root/macros/optex/base/lang-data.opm
blob: 6e11f8bd9a8c4183b221312bf9b701481060643b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
%% This is part of the OpTeX project, see http://petr.olsak.net/optex

\_codedecl \_langdata {Language dependent data <2022-06-28>} % only en, cs preloaded in format

\_langdata en {English} % -----------------------------------------------
\_langw en  Chapter      Table       Figure       Subject
\_langb en  {, and }  { et al.} { ed.} {cit.~} {Vol.~} {No.~} {pp.~} {~p.} {,~ed.} {,~eds.}
            {Available from } {Available also from }
            {Bachelor's Thesis} {Master's Thesis} {Ph.D. Thesis}
\_monthw en January February March April May June
            July August September October November December
\_sdef{_mt:today:en}{\_mtext{m\_the\_month} \_the\_day, \_the\_year}
\_quotationmarks en {“”‘’}

%\_let \_sortingdataen =  \_sortingdatalatin % set already, see section 2.33, makeindex.opm
%\_let \_ignoredcharsen = \_ignoredcharsgeneric
%\_def \_compoundcharsen {}

\_langdata cs {Czech}   % ------------------------------------------------
%           Chapter      Table       Figure       Subject
\_langw cs  Kapitola     Tabulka     Obrázek      Věc
%           {, and }  { et al.} { ed.} {cit.~} {Vol.~} {No.~} {pp.~} {~p.} {,~ed.} {,~eds.}
%           {Available from } {Available also from }
%           {Bachelor's Thesis} {Master's Thesis} {Ph.D. Thesis}
\_langb cs  { a } { a~kol.} { vyd.} {vid.~} {ročník~} {č.~} {s.~} {~s.} {,~editor} {,~editoři}
            {Dostupné na } {Dostupné též na }
            {Bakalářská práce} {Diplomová práce} {Disertační práce}
%           January February March April May June
%           July August September October November December
\_monthw cs ledna února března dubna května června
            července srpna září října listopadu prosince
\_sdef{_mt:today:cs}{\_the\_day.~\_mtext{m\_the\_month} \_the\_year} % date format
\_quotationmarks cs {„“‚‘}

\_let \_sortingdatacs  = \_sortingdatalatin
\_let \_ignoredcharscs = \_ignoredcharsgeneric
\_def \_compoundcharscs {ch:^^T Ch:^^U CH:^^V} % see \_compoundchars in section 2.33


\_langdata de {German}  % ------------------------------------------------
\_langw de  Kapitel      Tabelle     Abbildung    Betreff
\_quotationmarks de {„“‚‘}
%todo
\_let \_sortingdatade  = \_sortingdatalatin
\_let \_ignoredcharsde = \_ignoredcharsgeneric
\_def \_compoundcharsde {ß:ss}
\_def \_xcompoundcharsde {} % ß is interpreted in second pass of sorting
%\_def \_compoundcharsde {ß:ss Ä:AE Ö:OE Ü:UE ä:ae ö:oe ü:ue} % alternative sorting

\_langdata it {Italian} % ------------------------------------------------
\_langw it  Capitolo     Tabella     Fig.         Oggetto
\_monthw it gennaio febbraio marzo aprile maggio giugno
            luglio agosto settembre ottobre novembre dicembre
\_quotationmarks it {“”«»}
% todo

\_langdata es {Spanish} % ------------------------------------------------
\_langw es  Capítulo     Tabla       Figura       Sujeto
\_quotationmarks es {“”«»}
% todo
\_let \_sortingdataes  = \_sortingdatalatin
\_let \_ignoredcharses = \_ignoredcharsgeneric
\_def \_compoundcharses {}  % since 1994


\_langdata fr {French}  % ------------------------------------------------
\_langw fr  Chapitre     Tableau     Figure       Matière
\_quotationmarks fr {“”«»}
% todo
\_let \_sortingdatafr  = \_sortingdatalatin
\_let \_ignoredcharsfr = \_ignoredcharsgeneric
\_def \_compoundcharsfr {}
\_let \_secondpassfr   = \_reversewords % accents in second pass are read from the end


\_langdata pl {Polish}  % ------------------------------------------------
\_langw pl  Rozdział     Tabela      Ilustracja   Temat
\_quotationmarks pl {“”«»}
% todo
\_let \_sortingdatapl  = \_sortingdatalatin
\_let \_ignoredcharspl = \_ignoredcharsgeneric
\_def \_compoundcharspl {}


\_langdata sv {Swedish} % ------------------------------------------------
\_langw sv  Kapitel      Tabell      Figur        Föremål
\_quotationmarks sv {””’’}
% todo
\_def \_sortingdatasv {% it is not a subset of \_sortingdatalatin, there is different order
  /,{ },-,&,@,%
  aA,bB,cC,dD,eE,fF,gG,hH,iI,jJ,kK,lL,mM,nN,oO,%
  pP,qQ,rR,sS,tT,uU,vVwW,xX,yY,zZ,%
  åÅ,äÄ,öÖ,%
  0,1,2,3,4,5,6,7,8,9,'%
}
\_let \_ignoredcharssv = \_ignoredcharsgeneric
\_def \_compoundcharssv {}


\_langdata hu {Hungarian}
\_langw hu  Fejezet      Táblázat    Ábra        Téma
\_quotationmarks hu {„”»«}
%todo
\_let \_sortingdatahu  = \_sortingdatalatin
\_let \_ignoredcharshu = \_ignoredcharsgeneric
\_def \_compoundcharshu {cs:c^^Z Cs:C^^Z CS:C^^Z
   dzz:d^^Z^^Z Dzz:D^^Z^^Z DZZ:D^^Z^^Z dz:d^^Z Dz:D^^Z DZ:D^^Z
   gy:g^^Z Gy:G^^Z GY:G^^Z ly:l^^Z Ly:L^^Z LY:L^^Z ny:n^^Z Ny:N^^Z NY:N^^Z
   sz:s^^Z Sz:S^^Z SZ:S^^Z ty:t^^Z Ty:T^^Z TY:Y^^Z
   zs:z^^Z Zs:Z^^Z ZS:Z^^Z}


\_langdata el {Greek}   % ------------------------------------------------
\_langw el  Κεφάλαιο     Πίνακας     Σχήμα        θέμα
\_quotationmarks el {“”«»}
% todo

\_langdata ru {Russian} % ------------------------------------------------
\_langw ru  Глава        Таблица     Рисунок      Предмет
\_quotationmarks ru {“”«»}
% todo

\_langdata uk {Ukrainian} % -----------------------------------------------
\_langw uk  Глави        Таблиця     Малюнок      Тема
\_quotationmarks uk {“”«»}
% todo


\_langdata sk {Slovak}  % ------------------------------------------------
\_langw sk  Kapitola     Tabuľka     Obrázok      Vec
\_langb sk  { a } { a~kol.} { vyd.} {vid.~} {ročník~} {č.~} {s.~} {~s.} {,~editor} {,~editori}
            {Dostupné na } {Dostupné tiež na }
            {Bakalárska práca} {Diplomová práca} {Dizertačná práca}
\_monthw sk januára februára marca apríla mája júna
            júla augusta septembra októbra novembra decembra
\_sdef{_mt:today:sk}{\_the\_day.~\_mtext{m\_the\_month} \_the\_year} % date format
\_quotationmarks sk {„“‚‘}

\_let \_sortingdatask = \_sortingdatalatin
\_let \_ignoredcharssk = \_ignoredcharsgeneric
\_let \_compoundcharssk = \_compoundcharscs  % Dz Dž are sorted OK without new setting


\_langdata pt {Portuguese} % ------------------------------------------------
\_langw pt  Capítulo     Tabela      Figura       Assunto
\_monthw pt janeiro fevereiro março abril maio junho julho agosto
            setembro outubro novembro dezembro 
\_sdef{_mt:today:pt}{\_the\_day~de \_mtext{m\_the\_month}~ de \_the\_year}
% todo

\_endcode

2022-06-28: Spanish, Polish, French, Swedish, Hungarian sorting rules added
2022-06-28: German sorting rules added
2022-02-19: concept finalized, but data still far of completness
2022-02-04: released