]> git.lyx.org Git - lyx.git/blob - lib/languages
Include lyx2lyx test in tarball
[lyx.git] / lib / languages
1 ##########################################################################
2 #
3 # Languages supported by LyX.
4 #
5 # Syntax:
6 #
7 # Language <lyxname>
8 #       GuiName            "<Gui Name>"
9 #       BabelName          <babelname>
10 #       PolyglossiaName    <polyglossianame>
11 #       PolyglossiaOpts    "<language-specific options>"
12 #       Encoding           <encoding>
13 #       QuoteStyle         <danish|english|french|german|polish|swedish>
14 #       InternalEncoding   <true|false>
15 #       RTL                <true|false>
16 #       AsBabelOptions     <true|false>
17 #       LangCode           <language_code>
18 #       LangVariety        <language_variety>
19 #       PreBabelPreamble
20 #         <extra latex code inserted before babel>
21 #       EndPreBabelPreamble
22 #       PostBabelPreamble
23 #         <extra latex code inserted after babel>
24 #       EndPostBabelPreamble
25 #       Requires           <requirement>
26 # End
27 #
28 #
29 # NOTES:
30 #
31 # * Omitted elements will be treated as empty (if string) or "false"
32 #   (if boolean).
33 # * The QuoteStyle arguments correspond to the following styles:
34 #   - danish:  >>text<<  >text<   (inward guillemets)
35 #   - english: ``text''  `text'   (66_99)
36 #   - french:  <<text>>  <text>   (outward guillemets)
37 #   - german:  ,,text``  ,text`   (99/66)
38 #   - polish:  ,,text''  ,text'   (99/99)
39 #   - swedish: ''text''  'text'   (99_99)
40 #   Note that the option names have been selected (rather arbitrarily)
41 #   because the respective styles are common in the respective countries.
42 #   Of course this does not imply any fixed relation to those countries.
43 # * Encoding is not relevant for XeTeX (which is utf8 always), and if
44 #   Document > Settings > Language > Encoding is not set to "Language
45 #   Default"
46 # * InternalEncoding is used to tell LyX that babel internally sets a font
47 #   encoding (such as hebrew to LHE). See bug #5091.
48 # * AsBabelOptions advices LyX to pass the languages locally to babel, not
49 #   globally to the class. Some languages (basically those not directly
50 #   supported by babel) need this.
51 #   FIXME: in this case, we might still need to pass the other languages
52 #          globally, for the use of other packages (such as varioref).
53 # * LangCode is also used for spellchecking and thesaurus, where the
54 #   dictionaries are named accordingly. Thus, check this when intoducing/
55 #   changing language codes (especially aspell, thesaurus).
56 #   TODO: maybe use Best Current Practice (BCP 47) codes for LangCode
57 #         http://www.rfc-editor.org/rfc/bcp/bcp47.txt
58 #         http://www.w3.org/International/articles/language-tags/
59 #         http://www.iana.org/assignments/language-subtag-registry
60 # * LangVariety is used by the aspell spellchecker to differentiate
61 #   dictionaries for different varieties of a given language (e.g. German
62 #   pre-1998 and post-1998 spelling). The aspell dictionaries are named
63 #   language[_REGION][-variety].multi, e.g. de-alt.multi for "German (old
64 #   spelling)" (see http://aspell.net/man-html/Dictionary-Naming.html)
65 #
66 ##########################################################################
67
68 #
69 # LyX-internal languages
70 #
71
72 Language ignore
73         GuiName          "Ignore"
74         BabelName        ignore
75         PolyglossiaName  ignore
76         Encoding         iso8859-1
77         LangCode         ignore
78 End
79
80 Language latex
81         GuiName          "LaTeX"
82         Encoding         iso8859-1
83         LangCode         latex
84 End
85
86 #
87 # Real languages
88 #
89
90 # not yet supported by polyglossia
91 Language afrikaans
92         GuiName          "Afrikaans"
93         BabelName        afrikaans
94         QuoteStyle       polish
95         Encoding         iso8859-15
96         LangCode         af_ZA
97 End
98
99 Language albanian
100         GuiName          "Albanian"
101         BabelName        albanian
102         PolyglossiaName  albanian
103         QuoteStyle       french
104         Encoding         iso8859-2
105         LangCode         sq_AL
106 End
107
108 Language american
109         GuiName          "English (USA)"
110         BabelName        american
111         PolyglossiaName  english
112         PolyglossiaOpts  "variant=american"
113         QuoteStyle       english
114         Encoding         iso8859-15
115         LangCode         en_US
116 End
117
118 # not supported by babel
119 Language ancientgreek
120         GuiName          "Greek (ancient)"
121         PolyglossiaName  greek
122         PolyglossiaOpts  variant=ancient
123         QuoteStyle       french
124         Encoding         iso8859-7
125         LangCode         grc_GR
126 End
127
128 # FIXME: dummy babel language for arabic_arabtex to be able
129 # to switch the language the way of the ArabTeX-package
130 Language arabic_arabtex
131         GuiName          "Arabic (ArabTeX)"
132         BabelName        arabtex
133         QuoteStyle       french
134         Encoding         cp1256
135         RTL              true
136         LangCode         ar_SA
137 End
138
139 # polyglossia uses "Arabic" for the lang environment
140 Language arabic_arabi
141         GuiName          "Arabic (Arabi)"
142         BabelName        arabic
143         PolyglossiaName  arabic
144         QuoteStyle       french
145         Encoding         cp1256
146         RTL              true
147         AsBabelOptions   true
148         LangCode         ar_SA
149 End
150
151 # not supported by babel
152 Language armenian
153         GuiName          "Armenian"
154         PolyglossiaName  armenian
155         QuoteStyle       french
156         Encoding         utf8
157         LangCode         hy_AM
158 End
159
160 Language australian
161         GuiName          "English (Australia)"
162         BabelName        australian
163         PolyglossiaName  english
164         PolyglossiaOpts  "variant=australian"
165         Encoding         iso8859-15
166         QuoteStyle       english
167         LangCode         en_AU
168 End
169
170 # not yet supported by polyglossia
171 Language austrian
172         GuiName          "German (Austria, old spelling)"
173         BabelName        austrian
174         QuoteStyle       german
175         Encoding         iso8859-15
176         LangCode         de_AT
177 End
178
179 # not yet supported by polyglossia
180 Language naustrian
181         GuiName          "German (Austria)"
182         BabelName        naustrian
183         QuoteStyle       german
184         Encoding         iso8859-15
185         LangCode         de_AT
186 End
187
188 Language bahasa
189         GuiName          "Indonesian"
190         BabelName        bahasa
191         PolyglossiaName  bahasai
192         QuoteStyle       english
193         Encoding         iso8859-15
194         LangCode         id_ID
195 End
196
197 Language bahasam
198         GuiName          "Malay"
199         BabelName        bahasam
200         PolyglossiaName  bahasam
201         QuoteStyle       english
202         Encoding         iso8859-15
203         LangCode         ms_MY
204 End
205
206 Language basque
207         GuiName          "Basque"
208         BabelName        basque
209         PolyglossiaName  basque
210         QuoteStyle       french
211         Encoding         iso8859-15
212         LangCode         eu_ES
213         PostBabelPreamble
214         \addto\extrasbasque{\bbl@deactivate{~}}
215         EndPostBabelPreamble
216 End
217
218 # not yet supported by polyglossia
219 Language belarusian
220         GuiName          "Belarusian"
221         BabelName        belarusian
222         QuoteStyle       french
223         Encoding         cp1251
224         LangCode         be_BY
225         AsBabelOptions   true
226 End
227
228 Language brazilian
229         GuiName          "Portuguese (Brazil)"
230         BabelName        brazil
231         PolyglossiaName  brazil
232         QuoteStyle       english
233         Encoding         iso8859-15
234         LangCode         pt_BR
235 End
236
237 Language breton
238         GuiName          "Breton"
239         BabelName        breton
240         PolyglossiaName  breton
241         QuoteStyle       french
242         Encoding         iso8859-15
243         LangCode         br_FR
244 End
245
246 Language british
247         GuiName          "English (UK)"
248         BabelName        british
249         PolyglossiaName  english
250         PolyglossiaOpts  "variant=british"
251         QuoteStyle       english
252         Encoding         iso8859-15
253         LangCode         en_GB
254 End
255
256 Language bulgarian
257         GuiName          "Bulgarian"
258         BabelName        bulgarian
259         PolyglossiaName  bulgarian
260         QuoteStyle       german
261         Encoding         cp1251
262         LangCode         bg_BG
263 End
264
265 # not yet supported by polyglossia
266 Language canadian
267         GuiName          "English (Canada)"
268         BabelName        canadian
269 #       PolyglossiaName  english
270 #       PolyglossiaOpts  "variant=canadian"
271         QuoteStyle       english
272         Encoding         iso8859-15
273         LangCode         en_CA
274 End
275
276 # not yet supported by polyglossia
277 Language canadien
278         GuiName          "French (Canada)"
279         BabelName        canadien
280 #       PolyglossiaName  french
281 #       PolyglossiaOpts  "variant=canadien"
282         QuoteStyle       french
283         Encoding         iso8859-15
284         LangCode         fr_CA
285 End
286
287 Language catalan
288         GuiName          "Catalan"
289         BabelName        catalan
290         PolyglossiaName  catalan
291         PolyglossiaOpts  "babelshorthands=true"
292         QuoteStyle       french
293         Encoding         iso8859-15
294         LangCode         ca_ES
295 End
296
297 # uses CJK package
298 Language chinese-simplified
299         GuiName          "Chinese (simplified)"
300         Encoding         euc-cn
301         QuoteStyle       english
302         LangCode         zh_CN
303         Requires         CJK
304 End
305
306 # uses CJK package
307 Language chinese-traditional
308         GuiName         "Chinese (traditional)"
309         QuoteStyle       english
310         Encoding        utf8-cjk
311         LangCode        zh_TW
312         Requires         CJK
313 End
314
315 # not supported by babel
316 Language coptic
317         GuiName          "Coptic"
318         PolyglossiaName  coptic
319         Encoding         utf8
320         LangCode         cop_EG
321 End
322
323 Language croatian
324         GuiName          "Croatian"
325         BabelName        croatian
326         PolyglossiaName  croatian
327         QuoteStyle       polish
328         Encoding         iso8859-2
329         LangCode         hr_HR
330 End
331
332 Language czech
333         GuiName          "Czech"
334         BabelName        czech
335         PolyglossiaName  czech
336         QuoteStyle       german
337         Encoding         iso8859-2
338         LangCode         cs_CZ
339 End
340
341 Language danish
342         GuiName          "Danish"
343         BabelName        danish
344         PolyglossiaName  danish
345         QuoteStyle       danish
346         Encoding         iso8859-15
347         LangCode         da_DK
348 End
349
350 # not supported by babel
351 Language divehi
352         GuiName          "Divehi (Maldivian)"
353         PolyglossiaName  divehi
354         Encoding         utf8
355         LangCode         dv_MV
356 End
357
358 Language dutch
359         GuiName          "Dutch"
360         BabelName        dutch
361         PolyglossiaName  dutch
362         PolyglossiaOpts  "babelshorthands=true"
363         QuoteStyle       polish
364         Encoding         iso8859-15
365         LangCode         nl_NL
366 End
367
368 Language english
369         GuiName          "English"
370         BabelName        english
371         PolyglossiaName  english
372         QuoteStyle       english
373         Encoding         iso8859-15
374         LangCode         en_US
375 End
376
377 # Esperanto has no country code because it is an auxiliary language.
378 # We therefore the name of its hunspell dictionary.
379 Language esperanto
380         GuiName          "Esperanto"
381         BabelName        esperanto
382         PolyglossiaName  esperanto
383         QuoteStyle       english
384         Encoding         iso8859-3
385         LangCode         eo_EO
386 End
387
388 Language estonian
389         GuiName          "Estonian"
390         BabelName        estonian
391         PolyglossiaName  estonian
392         QuoteStyle       polish
393         Encoding         iso8859-15
394         LangCode         et_EE
395         PostBabelPreamble
396         \addto\extrasestonian{\bbl@deactivate{~}}
397         EndPostBabelPreamble
398 End
399
400 # the preamble definitions are only used due to bugs in the
401 # arabi-package -- remove them if they become unnecessary!
402 Language farsi
403         GuiName          "Farsi"
404         BabelName        farsi
405         PolyglossiaName  farsi
406         Encoding         utf8
407         RTL              true
408         LangCode         fa_IR
409         PostBabelPreamble
410         \DeclareTextSymbol{\guillemotright}{LFE}{62}
411         \DeclareTextSymbol{\guillemotleft}{LFE}{60}
412         EndPostBabelPreamble
413 End
414
415 Language finnish
416         GuiName          "Finnish"
417         BabelName        finnish
418         PolyglossiaName  finnish
419         QuoteStyle       swedish
420         Encoding         iso8859-15
421         LangCode         fi_FI
422 End
423
424 # We redefine \og and \fg (guillemets) for older french language definitions
425 Language french
426         GuiName          "French"
427         BabelName        french
428         PolyglossiaName  french
429         QuoteStyle       french
430         Encoding         iso8859-15
431         LangCode         fr_FR
432         PostBabelPreamble
433         \addto\extrasfrench{%
434            \providecommand{\og}{\leavevmode\flqq~}%
435            \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
436         }
437         EndPostBabelPreamble
438 End
439
440 Language galician
441         GuiName          "Galician"
442         BabelName        galician
443         PolyglossiaName  galician
444         QuoteStyle       french
445         Encoding         iso8859-15
446         LangCode         gl_ES
447         PostBabelPreamble
448         \addto\shorthandsgalician{\galiciandeactivate{~}}
449         EndPostBabelPreamble
450 End
451
452 # german does not use a country code (due to the variety)
453 Language german
454         GuiName          "German (old spelling)"
455         BabelName        german
456         PolyglossiaName  german
457         PolyglossiaOpts  "spelling=old,babelshorthands=true"
458         QuoteStyle       german
459         Encoding         iso8859-15
460         LangCode         de
461         LangVariety      alt
462 End
463
464 Language ngerman
465         GuiName          "German"
466         BabelName        ngerman
467         PolyglossiaName  german
468         PolyglossiaOpts  "babelshorthands=true"
469         QuoteStyle       german
470         Encoding         iso8859-15
471         LangCode         de_DE
472 End
473
474 # Swiss German is not supported by babel and polyglossia yet
475 # We use ngerman for now (spellchecking is supported though!)
476 Language german-ch
477         GuiName          "German (Switzerland)"
478         BabelName        ngerman
479         PolyglossiaName  german
480         PolyglossiaOpts  "babelshorthands=true"
481         QuoteStyle       danish
482         Encoding         iso8859-15
483         LangCode         de_CH
484 End
485
486 Language greek
487         GuiName           "Greek"
488         BabelName         greek
489         PolyglossiaName   greek
490         QuoteStyle        french
491         Encoding          iso8859-7
492         InternalEncoding  true
493         LangCode          el_GR
494 End
495
496 Language polutonikogreek
497         GuiName           "Greek (polytonic)"
498         BabelName         polutonikogreek
499         PolyglossiaName   greek
500         PolyglossiaOpts   "variant=polytonic"
501         QuoteStyle        french
502         Encoding          iso8859-7
503         InternalEncoding  true
504         LangCode          el_GR
505 End
506
507 Language hebrew
508         GuiName           "Hebrew"
509         BabelName         hebrew
510         PolyglossiaName   hebrew
511         Encoding          cp1255
512         QuoteStyle        english
513         InternalEncoding  true
514         RTL               true
515         LangCode          he_IL
516 End
517
518 # not supported by babel
519 Language hindi
520         GuiName          "Hindi"
521         PolyglossiaName  hindi
522         Encoding         utf8
523         LangCode         hi_IN
524 End
525
526 # Currently not supported (file format change!)
527 # "hungarian" is a synonym for the "magyar" babel language option
528 # "hungarian" might be used for special purposes,
529 # see http://www.math.bme.hu/latex/magyar_pre_tug2004.pdf
530 #Language hungarian
531 #       GuiName         "Hungarian"
532 #       BabelName       hungarian
533 #       Encoding        iso8859-2
534 #       LangCode        hu_HU
535 #End
536
537 Language icelandic
538         GuiName          "Icelandic"
539         BabelName        icelandic
540         PolyglossiaName  icelandic
541         QuoteStyle       german
542         Encoding         iso8859-15
543         LangCode         is_IS
544 End
545
546 # Interlingua has no official country code because it is an auxiliary
547 # language. We therefore the name of its hunspell dictionary.
548 Language interlingua
549         GuiName          "Interlingua"
550         BabelName        interlingua
551         PolyglossiaName  interlingua
552         Encoding         iso8859-15
553         LangCode         ia_IA
554 End
555
556 Language irish
557         GuiName          "Irish"
558         BabelName        irish
559         PolyglossiaName  irish
560         QuoteStyle       english
561         Encoding         iso8859-15
562         LangCode         ga_IE
563 End
564
565 Language italian
566         GuiName          "Italian"
567         BabelName        italian
568         PolyglossiaName  italian
569         QuoteStyle       french
570         Encoding         iso8859-15
571         LangCode         it_IT
572 End
573
574 # japanese must be loaded locally with babel options,
575 # not globally via class options
576 # http://www.lyx.org/trac/ticket/4597#c4
577 # Since japanese does not load fontenc, we set
578 # InternalEncoding to true.
579 Language japanese
580         GuiName          "Japanese"
581         BabelName        japanese
582         Encoding         jis-platex
583         LangCode         ja_JP
584         AsBabelOptions   true
585         Requires         japanese
586         InternalEncoding true
587 End
588
589 # uses CJK package
590 Language japanese-cjk
591         GuiName         "Japanese (CJK)"
592         Encoding        euc-jp
593         LangCode        ja_JP
594         Requires        CJK
595 End
596
597 # not yet supported by polyglossia
598 # not supported by babel
599 Language kazakh
600         GuiName         "Kazakh"
601         Encoding        ascii
602         LangCode        kk_KZ
603         PostBabelPreamble
604         \input{t2aenc.def}
605         \AtBeginDocument{\fontencoding{T2A}\selectfont}
606         EndPostBabelPreamble
607 End
608
609 Language korean
610         GuiName         "Korean"
611         Encoding        euc-kr
612         QuoteStyle      english
613         LangCode        ko_KR
614         Requires        CJK
615 End
616
617 # not yet supported by polyglossia
618 Language kurmanji
619         GuiName          "Kurmanji"
620         BabelName        kurmanji
621         Encoding         utf8
622         LangCode         kmr
623         AsBabelOptions   true
624 End
625
626 # not supported by babel
627 Language lao
628         GuiName          "Lao"
629         PolyglossiaName  lao
630         Encoding         utf8
631         LangCode         lo_LA
632 End
633
634 # There is no country code for Latin because it is a dead language.
635 # We therefore the name of its hunspell dictionary.
636 Language latin
637         GuiName          "Latin"
638         BabelName        latin
639         PolyglossiaName  latin
640         Encoding         iso8859-15
641         LangCode         la_LA
642 End
643
644 # latvian must be loaded locally with babel options,
645 # not globally via class options
646 Language latvian
647         GuiName          "Latvian"
648         BabelName        latvian
649         PolyglossiaName  latvian
650         QuoteStyle       danish
651         Encoding         iso8859-4
652         LangCode         lv_LV
653         AsBabelOptions   true
654 End
655
656 # lithuanian must be loaded locally with babel options,
657 # not globally via class options
658 Language lithuanian
659         GuiName          "Lithuanian"
660         BabelName        lithuanian
661         PolyglossiaName  lithuanian
662         QuoteStyle       german
663         Encoding         iso8859-13
664         LangCode         lt_LT
665         AsBabelOptions   true
666 End
667
668 Language lowersorbian
669         GuiName          "Lower Sorbian"
670         BabelName        lowersorbian
671         PolyglossiaName  lsorbian
672         QuoteStyle       german
673         Encoding         iso8859-2
674         LangCode         dsb_DE
675 End
676
677 Language magyar
678         GuiName          "Hungarian"
679         BabelName        magyar
680         PolyglossiaName  magyar
681         QuoteStyle       polish
682         Encoding         iso8859-2
683         LangCode         hu_HU
684 End
685
686 # not supported by babel
687 Language marathi
688         GuiName          "Marathi"
689         PolyglossiaName  marathi
690         Encoding         utf8
691         LangCode         mr_IN
692 End
693
694 # mongolian must be loaded locally with babel options,
695 # not globally via class options
696 # not yet supported by polyglossia
697 Language mongolian
698         GuiName          "Mongolian"
699         BabelName        mongolian
700         Encoding         utf8
701         LangCode         mn_MN
702         AsBabelOptions   true
703 End
704
705 Language newzealand
706         GuiName          "English (New Zealand)"
707         BabelName        newzealand
708         PolyglossiaName  english
709         PolyglossiaOpts  "variant=newzealand"
710         QuoteStyle       english
711         Encoding         iso8859-15
712         LangCode         en_NZ
713 End
714
715 Language norsk
716         GuiName          "Norwegian (Bokmaal)"
717         BabelName        norsk
718         PolyglossiaName  norsk
719         QuoteStyle       french
720         Encoding         iso8859-15
721         LangCode         nb_NO
722 End
723
724 Language nynorsk
725         GuiName          "Norwegian (Nynorsk)"
726         BabelName        nynorsk
727         PolyglossiaName  nynorsk
728         QuoteStyle       french
729         Encoding         iso8859-15
730         LangCode         nn_NO
731 End
732
733 # not supported by babel
734 Language occitan
735         GuiName          "Occitan"
736         PolyglossiaName  occitan
737         QuoteStyle       french
738         Encoding         utf8
739         LangCode         oc_FR
740 End
741
742 # Currently not supported (file format change!)
743 # Russian orthography from the Petrine orthographic reforms of
744 # 1708 to the 1917 orthographic reform
745 # Language oldrussian
746 #       GuiName          "Russian (Petrine orthography)"
747 #       PolyglossiaName  russian
748 #       PolyglossiaOpts  spelling=old
749 #       LangCode         ru_petr1708
750 # End
751
752 Language polish
753         GuiName          "Polish"
754         BabelName        polish
755         PolyglossiaName  polish
756         QuoteStyle       polish
757         Encoding         iso8859-2
758         LangCode         pl_PL
759 End
760
761 Language portuguese
762         GuiName          "Portuguese"
763         BabelName        portuges
764         PolyglossiaName  portuges
765         QuoteStyle       english
766         Encoding         iso8859-15
767         LangCode         pt_PT
768 End
769
770 Language romanian
771         GuiName          "Romanian"
772         BabelName        romanian
773         PolyglossiaName  romanian
774         QuoteStyle       polish
775         Encoding         iso8859-2
776         LangCode         ro_RO
777 End
778
779 Language russian
780         GuiName          "Russian"
781         BabelName        russian
782         PolyglossiaName  russian
783         QuoteStyle       french
784         Encoding         koi8-r
785         LangCode         ru_RU
786 End
787
788 Language samin
789         GuiName          "North Sami"
790         BabelName        samin
791         PolyglossiaName  samin
792         Encoding         iso8859-15
793         LangCode         se_NO
794 End
795
796 # not supported by babel
797 Language sanskrit
798         GuiName          "Sanskrit"
799         PolyglossiaName  sanskrit
800         Encoding         utf8
801         LangCode         sa_IN
802 End
803
804 Language scottish
805         GuiName          "Scottish"
806         BabelName        scottish
807         PolyglossiaName  scottish
808         QuoteStyle       english
809         Encoding         iso8859-15
810         LangCode         gd_GB
811 End
812
813 Language serbian
814         GuiName          "Serbian"
815         BabelName        serbianc
816         PolyglossiaName  serbian
817         QuoteStyle       german
818         Encoding         iso8859-5
819         LangCode         sr_RS
820         AsBabelOptions   true
821 End
822
823 Language serbian-latin
824         GuiName          "Serbian (Latin)"
825         BabelName        serbian
826         PolyglossiaName  serbian
827         PolyglossiaOpts  "script=latin"
828         QuoteStyle       german
829         Encoding         iso8859-2
830         LangCode         sr_RS-Latin
831 End
832
833 Language slovak
834         GuiName          "Slovak"
835         BabelName        slovak
836         PolyglossiaName  slovak
837         QuoteStyle       german
838         Encoding         iso8859-2
839         LangCode         sk_SK
840 End
841
842 Language slovene
843         GuiName          "Slovene"
844         BabelName        slovene
845         PolyglossiaName  slovenian
846         QuoteStyle       german
847         Encoding         iso8859-2
848         LangCode         sl_SI
849 End
850
851 Language spanish
852         GuiName          "Spanish"
853         BabelName        spanish
854         PolyglossiaName  spanish
855         QuoteStyle       french
856         Encoding         iso8859-15
857         LangCode         es_ES
858         PostBabelPreamble
859         \addto\shorthandsspanish{\spanishdeactivate{~<>}}
860         EndPostBabelPreamble
861 End
862
863 # there are no spanish shorthands in polyglossia
864 Language spanish-mexico
865         GuiName          "Spanish (Mexico)"
866         BabelName        spanish
867         PolyglossiaName  spanish
868         QuoteStyle       french
869         Encoding         iso8859-15
870         LangCode         es_MX
871         PostBabelPreamble
872         \addto\shorthandsspanish{\spanishdeactivate{~<>.}}
873         EndPostBabelPreamble
874 End
875
876 Language swedish
877         GuiName          "Swedish"
878         BabelName        swedish
879         PolyglossiaName  swedish
880         QuoteStyle       swedish
881         Encoding         iso8859-15
882         LangCode         sv_SE
883 End
884
885 # not supported by babel
886 #Language syriac
887 #       GuiName          "Syriac"
888 #       PolyglossiaName  syriac
889 #       Encoding         utf8
890 #       RTL              true
891 #       LangCode         syr_SY
892 #End
893
894 # not supported by babel
895 Language tamil
896         GuiName          "Tamil"
897         PolyglossiaName  tamil
898         Encoding         utf8
899         LangCode         ta_IN
900 End
901
902 # not supported by babel
903 Language telugu
904         GuiName          "Telugu"
905         PolyglossiaName  telugu
906         Encoding         utf8
907         LangCode         te_IN
908 End
909
910 Language thai
911         GuiName          "Thai"
912         BabelName        thai
913         PolyglossiaName  thai
914         QuoteStyle       english
915         Encoding         tis620-0
916         LangCode         th_TH
917         PostBabelPreamble
918         \usepackage{thswitch}
919         EndPostBabelPreamble
920 End
921
922 # not supported by babel
923 Language tibetan
924         GuiName          "Tibetan"
925         PolyglossiaName  tibetan
926         Encoding         utf8
927         LangCode         bo_CN
928 End
929
930 Language turkish
931         GuiName          "Turkish"
932         BabelName        turkish
933         PolyglossiaName  turkish
934         QuoteStyle       french
935         Encoding         iso8859-9
936         LangCode         tr_TR
937         PostBabelPreamble
938         \usepackage{xkeyval}
939         EndPostBabelPreamble
940 End
941
942 # turkmen must be loaded locally with babel options,
943 # not globally via class options
944 Language turkmen
945         GuiName          "Turkmen"
946         BabelName        turkmen
947         PolyglossiaName  turkmen
948         QuoteStyle       french
949         Encoding         utf8
950         LangCode         tk_TM
951         AsBabelOptions   true
952 End
953
954 Language ukrainian
955         GuiName          "Ukrainian"
956         BabelName        ukrainian
957         PolyglossiaName  ukrainian
958         QuoteStyle       french
959         Encoding         koi8-u
960         LangCode         uk_UA
961 End
962
963 Language uppersorbian
964         GuiName          "Upper Sorbian"
965         BabelName        uppersorbian
966         PolyglossiaName  usorbian
967         QuoteStyle       german
968         Encoding         iso8859-2
969         LangCode         hsb_DE
970 End
971
972 # not supported by babel
973 #Language urdu
974 #       GuiName          "Urdu"
975 #       PolyglossiaName  urdu
976 #       Encoding         utf8
977 #       RTL              true
978 #       LangCode         ur_PK
979 #End
980
981 # vietnam must be loaded locally with babel options,
982 # not globally via class options, see
983 # http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg129417.html
984 Language vietnamese
985         GuiName          "Vietnamese"
986         BabelName        vietnam
987         PolyglossiaName  vietnamese
988         QuoteStyle       french
989         Encoding         utf8
990         LangCode         vi_VN
991         AsBabelOptions   true
992         Requires         vietnamese
993 End
994
995 Language welsh
996         GuiName          "Welsh"
997         BabelName        welsh
998         PolyglossiaName  welsh
999         QuoteStyle       english
1000         Encoding         iso8859-15
1001         LangCode         cy_GB
1002 End