]> git.lyx.org Git - lyx.git/blob - lib/languages
a0a4955e87dc8af85e946ccfd1173f7bddf5b6ea
[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 Language austrian
171         GuiName          "German (Austria, old spelling)"
172         BabelName        austrian
173         PolyglossiaName  german
174         PolyglossiaOpts  "variant=austrian,spelling=old,babelshorthands=true"
175         QuoteStyle       german
176         Encoding         iso8859-15
177         LangCode         de_AT
178 End
179
180 Language naustrian
181         GuiName          "German (Austria)"
182         BabelName        naustrian
183         PolyglossiaName  german
184         PolyglossiaOpts  "variant=austrian,babelshorthands=true"
185         QuoteStyle       german
186         Encoding         iso8859-15
187         LangCode         de_AT
188 End
189
190 Language bahasa
191         GuiName          "Indonesian"
192         BabelName        bahasa
193         PolyglossiaName  bahasai
194         QuoteStyle       english
195         Encoding         iso8859-15
196         LangCode         id_ID
197 End
198
199 Language bahasam
200         GuiName          "Malay"
201         BabelName        bahasam
202         PolyglossiaName  bahasam
203         QuoteStyle       english
204         Encoding         iso8859-15
205         LangCode         ms_MY
206 End
207
208 Language basque
209         GuiName          "Basque"
210         BabelName        basque
211         PolyglossiaName  basque
212         QuoteStyle       french
213         Encoding         iso8859-15
214         LangCode         eu_ES
215         PostBabelPreamble
216         \addto\extrasbasque{\bbl@deactivate{~}}
217         EndPostBabelPreamble
218 End
219
220 # not yet supported by polyglossia
221 Language belarusian
222         GuiName          "Belarusian"
223         BabelName        belarusian
224         QuoteStyle       french
225         Encoding         cp1251
226         LangCode         be_BY
227         AsBabelOptions   true
228 End
229
230 Language brazilian
231         GuiName          "Portuguese (Brazil)"
232         BabelName        brazil
233         PolyglossiaName  brazil
234         QuoteStyle       english
235         Encoding         iso8859-15
236         LangCode         pt_BR
237 End
238
239 Language breton
240         GuiName          "Breton"
241         BabelName        breton
242         PolyglossiaName  breton
243         QuoteStyle       french
244         Encoding         iso8859-15
245         LangCode         br_FR
246 End
247
248 Language british
249         GuiName          "English (UK)"
250         BabelName        british
251         PolyglossiaName  english
252         PolyglossiaOpts  "variant=british"
253         QuoteStyle       english
254         Encoding         iso8859-15
255         LangCode         en_GB
256 End
257
258 Language bulgarian
259         GuiName          "Bulgarian"
260         BabelName        bulgarian
261         PolyglossiaName  bulgarian
262         QuoteStyle       german
263         Encoding         cp1251
264         LangCode         bg_BG
265 End
266
267 # not yet supported by polyglossia
268 Language canadian
269         GuiName          "English (Canada)"
270         BabelName        canadian
271 #       PolyglossiaName  english
272 #       PolyglossiaOpts  "variant=canadian"
273         QuoteStyle       english
274         Encoding         iso8859-15
275         LangCode         en_CA
276 End
277
278 # not yet supported by polyglossia
279 Language canadien
280         GuiName          "French (Canada)"
281         BabelName        canadien
282 #       PolyglossiaName  french
283 #       PolyglossiaOpts  "variant=canadien"
284         QuoteStyle       french
285         Encoding         iso8859-15
286         LangCode         fr_CA
287 End
288
289 Language catalan
290         GuiName          "Catalan"
291         BabelName        catalan
292         PolyglossiaName  catalan
293         PolyglossiaOpts  "babelshorthands=true"
294         QuoteStyle       french
295         Encoding         iso8859-15
296         LangCode         ca_ES
297 End
298
299 # uses CJK package
300 Language chinese-simplified
301         GuiName          "Chinese (simplified)"
302         Encoding         euc-cn
303         QuoteStyle       english
304         LangCode         zh_CN
305         Requires         CJK
306 End
307
308 # uses CJK package
309 Language chinese-traditional
310         GuiName         "Chinese (traditional)"
311         QuoteStyle       english
312         Encoding        utf8-cjk
313         LangCode        zh_TW
314         Requires         CJK
315 End
316
317 # not supported by babel
318 Language coptic
319         GuiName          "Coptic"
320         PolyglossiaName  coptic
321         Encoding         utf8
322         LangCode         cop_EG
323 End
324
325 Language croatian
326         GuiName          "Croatian"
327         BabelName        croatian
328         PolyglossiaName  croatian
329         QuoteStyle       polish
330         Encoding         iso8859-2
331         LangCode         hr_HR
332 End
333
334 Language czech
335         GuiName          "Czech"
336         BabelName        czech
337         PolyglossiaName  czech
338         QuoteStyle       german
339         Encoding         iso8859-2
340         LangCode         cs_CZ
341 End
342
343 Language danish
344         GuiName          "Danish"
345         BabelName        danish
346         PolyglossiaName  danish
347         QuoteStyle       danish
348         Encoding         iso8859-15
349         LangCode         da_DK
350 End
351
352 # not supported by babel
353 Language divehi
354         GuiName          "Divehi (Maldivian)"
355         PolyglossiaName  divehi
356         Encoding         utf8
357         LangCode         dv_MV
358 End
359
360 Language dutch
361         GuiName          "Dutch"
362         BabelName        dutch
363         PolyglossiaName  dutch
364         PolyglossiaOpts  "babelshorthands=true"
365         QuoteStyle       polish
366         Encoding         iso8859-15
367         LangCode         nl_NL
368 End
369
370 Language english
371         GuiName          "English"
372         BabelName        english
373         PolyglossiaName  english
374         QuoteStyle       english
375         Encoding         iso8859-15
376         LangCode         en_US
377 End
378
379 # Esperanto has no country code because it is an auxiliary language.
380 # We therefore the name of its hunspell dictionary.
381 Language esperanto
382         GuiName          "Esperanto"
383         BabelName        esperanto
384         PolyglossiaName  esperanto
385         QuoteStyle       english
386         Encoding         iso8859-3
387         LangCode         eo_EO
388 End
389
390 Language estonian
391         GuiName          "Estonian"
392         BabelName        estonian
393         PolyglossiaName  estonian
394         QuoteStyle       polish
395         Encoding         iso8859-15
396         LangCode         et_EE
397         PostBabelPreamble
398         \addto\extrasestonian{\bbl@deactivate{~}}
399         EndPostBabelPreamble
400 End
401
402 # the preamble definitions are only used due to bugs in the
403 # arabi-package -- remove them if they become unnecessary!
404 Language farsi
405         GuiName          "Farsi"
406         BabelName        farsi
407         PolyglossiaName  farsi
408         Encoding         utf8
409         RTL              true
410         LangCode         fa_IR
411         PostBabelPreamble
412         \DeclareTextSymbol{\guillemotright}{LFE}{62}
413         \DeclareTextSymbol{\guillemotleft}{LFE}{60}
414         EndPostBabelPreamble
415 End
416
417 Language finnish
418         GuiName          "Finnish"
419         BabelName        finnish
420         PolyglossiaName  finnish
421         QuoteStyle       swedish
422         Encoding         iso8859-15
423         LangCode         fi_FI
424 End
425
426 # We redefine \og and \fg (guillemets) for older french language definitions
427 Language french
428         GuiName          "French"
429         BabelName        french
430         PolyglossiaName  french
431         QuoteStyle       french
432         Encoding         iso8859-15
433         LangCode         fr_FR
434         PostBabelPreamble
435         \addto\extrasfrench{%
436            \providecommand{\og}{\leavevmode\flqq~}%
437            \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}%
438         }
439         EndPostBabelPreamble
440 End
441
442 Language galician
443         GuiName          "Galician"
444         BabelName        galician
445         PolyglossiaName  galician
446         QuoteStyle       french
447         Encoding         iso8859-15
448         LangCode         gl_ES
449         PostBabelPreamble
450         \addto\shorthandsgalician{\galiciandeactivate{~}}
451         EndPostBabelPreamble
452 End
453
454 # german does not use a country code (due to the variety)
455 Language german
456         GuiName          "German (old spelling)"
457         BabelName        german
458         PolyglossiaName  german
459         PolyglossiaOpts  "spelling=old,babelshorthands=true"
460         QuoteStyle       german
461         Encoding         iso8859-15
462         LangCode         de
463         LangVariety      alt
464 End
465
466 Language ngerman
467         GuiName          "German"
468         BabelName        ngerman
469         PolyglossiaName  german
470         PolyglossiaOpts  "babelshorthands=true"
471         QuoteStyle       german
472         Encoding         iso8859-15
473         LangCode         de_DE
474 End
475
476 # Swiss German is not supported by babel and polyglossia yet
477 # We use ngerman for now (spellchecking is supported though!)
478 Language german-ch
479         GuiName          "German (Switzerland)"
480         BabelName        ngerman
481         PolyglossiaName  german
482         PolyglossiaOpts  "babelshorthands=true"
483         QuoteStyle       danish
484         Encoding         iso8859-15
485         LangCode         de_CH
486 End
487
488 Language greek
489         GuiName           "Greek"
490         BabelName         greek
491         PolyglossiaName   greek
492         QuoteStyle        french
493         Encoding          iso8859-7
494         InternalEncoding  true
495         LangCode          el_GR
496 End
497
498 Language polutonikogreek
499         GuiName           "Greek (polytonic)"
500         BabelName         polutonikogreek
501         PolyglossiaName   greek
502         PolyglossiaOpts   "variant=polytonic"
503         QuoteStyle        french
504         Encoding          iso8859-7
505         InternalEncoding  true
506         LangCode          el_GR
507 End
508
509 Language hebrew
510         GuiName           "Hebrew"
511         BabelName         hebrew
512         PolyglossiaName   hebrew
513         Encoding          cp1255
514         QuoteStyle        english
515         InternalEncoding  true
516         RTL               true
517         LangCode          he_IL
518 End
519
520 # not supported by babel
521 Language hindi
522         GuiName          "Hindi"
523         PolyglossiaName  hindi
524         Encoding         utf8
525         LangCode         hi_IN
526 End
527
528 # Currently not supported (file format change!)
529 # "hungarian" is a synonym for the "magyar" babel language option
530 # "hungarian" might be used for special purposes,
531 # see http://www.math.bme.hu/latex/magyar_pre_tug2004.pdf
532 #Language hungarian
533 #       GuiName         "Hungarian"
534 #       BabelName       hungarian
535 #       Encoding        iso8859-2
536 #       LangCode        hu_HU
537 #End
538
539 Language icelandic
540         GuiName          "Icelandic"
541         BabelName        icelandic
542         PolyglossiaName  icelandic
543         QuoteStyle       german
544         Encoding         iso8859-15
545         LangCode         is_IS
546 End
547
548 # Interlingua has no official country code because it is an auxiliary
549 # language. We therefore the name of its hunspell dictionary.
550 Language interlingua
551         GuiName          "Interlingua"
552         BabelName        interlingua
553         PolyglossiaName  interlingua
554         Encoding         iso8859-15
555         LangCode         ia_IA
556 End
557
558 Language irish
559         GuiName          "Irish"
560         BabelName        irish
561         PolyglossiaName  irish
562         QuoteStyle       english
563         Encoding         iso8859-15
564         LangCode         ga_IE
565 End
566
567 Language italian
568         GuiName          "Italian"
569         BabelName        italian
570         PolyglossiaName  italian
571         QuoteStyle       french
572         Encoding         iso8859-15
573         LangCode         it_IT
574 End
575
576 # japanese must be loaded locally with babel options,
577 # not globally via class options
578 # http://www.lyx.org/trac/ticket/4597#c4
579 # Since japanese does not load fontenc, we set
580 # InternalEncoding to true.
581 Language japanese
582         GuiName          "Japanese"
583         BabelName        japanese
584         Encoding         jis-platex
585         LangCode         ja_JP
586         AsBabelOptions   true
587         Requires         japanese
588         InternalEncoding true
589 End
590
591 # uses CJK package
592 Language japanese-cjk
593         GuiName         "Japanese (CJK)"
594         Encoding        euc-jp
595         LangCode        ja_JP
596         Requires        CJK
597 End
598
599 # not yet supported by polyglossia
600 # not supported by babel
601 Language kazakh
602         GuiName         "Kazakh"
603         Encoding        ascii
604         LangCode        kk_KZ
605         PostBabelPreamble
606         \input{t2aenc.def}
607         \AtBeginDocument{\fontencoding{T2A}\selectfont}
608         EndPostBabelPreamble
609 End
610
611 Language korean
612         GuiName         "Korean"
613         Encoding        euc-kr
614         QuoteStyle      english
615         LangCode        ko_KR
616         Requires        CJK
617 End
618
619 # not yet supported by polyglossia
620 Language kurmanji
621         GuiName          "Kurmanji"
622         BabelName        kurmanji
623         Encoding         utf8
624         LangCode         kmr
625         AsBabelOptions   true
626 End
627
628 # not supported by babel
629 Language lao
630         GuiName          "Lao"
631         PolyglossiaName  lao
632         Encoding         utf8
633         LangCode         lo_LA
634 End
635
636 # There is no country code for Latin because it is a dead language.
637 # We therefore the name of its hunspell dictionary.
638 Language latin
639         GuiName          "Latin"
640         BabelName        latin
641         PolyglossiaName  latin
642         Encoding         iso8859-15
643         LangCode         la_LA
644 End
645
646 # latvian must be loaded locally with babel options,
647 # not globally via class options
648 Language latvian
649         GuiName          "Latvian"
650         BabelName        latvian
651         PolyglossiaName  latvian
652         QuoteStyle       danish
653         Encoding         iso8859-4
654         LangCode         lv_LV
655         AsBabelOptions   true
656 End
657
658 # lithuanian must be loaded locally with babel options,
659 # not globally via class options
660 Language lithuanian
661         GuiName          "Lithuanian"
662         BabelName        lithuanian
663         PolyglossiaName  lithuanian
664         QuoteStyle       german
665         Encoding         iso8859-13
666         LangCode         lt_LT
667         AsBabelOptions   true
668 End
669
670 Language lowersorbian
671         GuiName          "Lower Sorbian"
672         BabelName        lowersorbian
673         PolyglossiaName  lsorbian
674         QuoteStyle       german
675         Encoding         iso8859-2
676         LangCode         dsb_DE
677 End
678
679 Language magyar
680         GuiName          "Hungarian"
681         BabelName        magyar
682         PolyglossiaName  magyar
683         QuoteStyle       polish
684         Encoding         iso8859-2
685         LangCode         hu_HU
686 End
687
688 # not supported by babel
689 Language marathi
690         GuiName          "Marathi"
691         PolyglossiaName  marathi
692         Encoding         utf8
693         LangCode         mr_IN
694 End
695
696 # mongolian must be loaded locally with babel options,
697 # not globally via class options
698 # not yet supported by polyglossia
699 Language mongolian
700         GuiName          "Mongolian"
701         BabelName        mongolian
702         Encoding         utf8
703         LangCode         mn_MN
704         AsBabelOptions   true
705 End
706
707 Language newzealand
708         GuiName          "English (New Zealand)"
709         BabelName        newzealand
710         PolyglossiaName  english
711         PolyglossiaOpts  "variant=newzealand"
712         QuoteStyle       english
713         Encoding         iso8859-15
714         LangCode         en_NZ
715 End
716
717 Language norsk
718         GuiName          "Norwegian (Bokmaal)"
719         BabelName        norsk
720         PolyglossiaName  norsk
721         QuoteStyle       french
722         Encoding         iso8859-15
723         LangCode         nb_NO
724 End
725
726 Language nynorsk
727         GuiName          "Norwegian (Nynorsk)"
728         BabelName        nynorsk
729         PolyglossiaName  nynorsk
730         QuoteStyle       french
731         Encoding         iso8859-15
732         LangCode         nn_NO
733 End
734
735 # not supported by babel
736 Language occitan
737         GuiName          "Occitan"
738         PolyglossiaName  occitan
739         QuoteStyle       french
740         Encoding         utf8
741         LangCode         oc_FR
742 End
743
744 # Currently not supported (file format change!)
745 # Russian orthography from the Petrine orthographic reforms of
746 # 1708 to the 1917 orthographic reform
747 # Language oldrussian
748 #       GuiName          "Russian (Petrine orthography)"
749 #       PolyglossiaName  russian
750 #       PolyglossiaOpts  spelling=old
751 #       LangCode         ru_petr1708
752 # End
753
754 Language polish
755         GuiName          "Polish"
756         BabelName        polish
757         PolyglossiaName  polish
758         QuoteStyle       polish
759         Encoding         iso8859-2
760         LangCode         pl_PL
761 End
762
763 Language portuguese
764         GuiName          "Portuguese"
765         BabelName        portuges
766         PolyglossiaName  portuges
767         QuoteStyle       english
768         Encoding         iso8859-15
769         LangCode         pt_PT
770 End
771
772 Language romanian
773         GuiName          "Romanian"
774         BabelName        romanian
775         PolyglossiaName  romanian
776         QuoteStyle       polish
777         Encoding         iso8859-2
778         LangCode         ro_RO
779 End
780
781 Language russian
782         GuiName          "Russian"
783         BabelName        russian
784         PolyglossiaName  russian
785         QuoteStyle       french
786         Encoding         koi8-r
787         LangCode         ru_RU
788 End
789
790 Language samin
791         GuiName          "North Sami"
792         BabelName        samin
793         PolyglossiaName  samin
794         Encoding         iso8859-15
795         LangCode         se_NO
796 End
797
798 # not supported by babel
799 Language sanskrit
800         GuiName          "Sanskrit"
801         PolyglossiaName  sanskrit
802         Encoding         utf8
803         LangCode         sa_IN
804 End
805
806 Language scottish
807         GuiName          "Scottish"
808         BabelName        scottish
809         PolyglossiaName  scottish
810         QuoteStyle       english
811         Encoding         iso8859-15
812         LangCode         gd_GB
813 End
814
815 Language serbian
816         GuiName          "Serbian"
817         BabelName        serbianc
818         PolyglossiaName  serbian
819         QuoteStyle       german
820         Encoding         iso8859-5
821         LangCode         sr_RS
822         AsBabelOptions   true
823 End
824
825 Language serbian-latin
826         GuiName          "Serbian (Latin)"
827         BabelName        serbian
828         PolyglossiaName  serbian
829         PolyglossiaOpts  "script=latin"
830         QuoteStyle       german
831         Encoding         iso8859-2
832         LangCode         sr_RS-Latin
833 End
834
835 Language slovak
836         GuiName          "Slovak"
837         BabelName        slovak
838         PolyglossiaName  slovak
839         QuoteStyle       german
840         Encoding         iso8859-2
841         LangCode         sk_SK
842 End
843
844 Language slovene
845         GuiName          "Slovene"
846         BabelName        slovene
847         PolyglossiaName  slovenian
848         QuoteStyle       german
849         Encoding         iso8859-2
850         LangCode         sl_SI
851 End
852
853 Language spanish
854         GuiName          "Spanish"
855         BabelName        spanish
856         PolyglossiaName  spanish
857         QuoteStyle       french
858         Encoding         iso8859-15
859         LangCode         es_ES
860         PostBabelPreamble
861         \addto\shorthandsspanish{\spanishdeactivate{~<>}}
862         EndPostBabelPreamble
863 End
864
865 # there are no spanish shorthands in polyglossia
866 Language spanish-mexico
867         GuiName          "Spanish (Mexico)"
868         BabelName        spanish
869         PolyglossiaName  spanish
870         QuoteStyle       french
871         Encoding         iso8859-15
872         LangCode         es_MX
873         PostBabelPreamble
874         \addto\shorthandsspanish{\spanishdeactivate{~<>.}}
875         EndPostBabelPreamble
876 End
877
878 Language swedish
879         GuiName          "Swedish"
880         BabelName        swedish
881         PolyglossiaName  swedish
882         QuoteStyle       swedish
883         Encoding         iso8859-15
884         LangCode         sv_SE
885 End
886
887 # not supported by babel
888 #Language syriac
889 #       GuiName          "Syriac"
890 #       PolyglossiaName  syriac
891 #       Encoding         utf8
892 #       RTL              true
893 #       LangCode         syr_SY
894 #End
895
896 # not supported by babel
897 Language tamil
898         GuiName          "Tamil"
899         PolyglossiaName  tamil
900         Encoding         utf8
901         LangCode         ta_IN
902 End
903
904 # not supported by babel
905 Language telugu
906         GuiName          "Telugu"
907         PolyglossiaName  telugu
908         Encoding         utf8
909         LangCode         te_IN
910 End
911
912 Language thai
913         GuiName          "Thai"
914         BabelName        thai
915         PolyglossiaName  thai
916         QuoteStyle       english
917         Encoding         tis620-0
918         LangCode         th_TH
919         PostBabelPreamble
920         \usepackage{thswitch}
921         EndPostBabelPreamble
922 End
923
924 # not supported by babel
925 Language tibetan
926         GuiName          "Tibetan"
927         PolyglossiaName  tibetan
928         Encoding         utf8
929         LangCode         bo_CN
930 End
931
932 Language turkish
933         GuiName          "Turkish"
934         BabelName        turkish
935         PolyglossiaName  turkish
936         QuoteStyle       french
937         Encoding         iso8859-9
938         LangCode         tr_TR
939         PostBabelPreamble
940         \usepackage{xkeyval}
941         EndPostBabelPreamble
942 End
943
944 # turkmen must be loaded locally with babel options,
945 # not globally via class options
946 Language turkmen
947         GuiName          "Turkmen"
948         BabelName        turkmen
949         PolyglossiaName  turkmen
950         QuoteStyle       french
951         Encoding         utf8
952         LangCode         tk_TM
953         AsBabelOptions   true
954 End
955
956 Language ukrainian
957         GuiName          "Ukrainian"
958         BabelName        ukrainian
959         PolyglossiaName  ukrainian
960         QuoteStyle       french
961         Encoding         koi8-u
962         LangCode         uk_UA
963 End
964
965 Language uppersorbian
966         GuiName          "Upper Sorbian"
967         BabelName        uppersorbian
968         PolyglossiaName  usorbian
969         QuoteStyle       german
970         Encoding         iso8859-2
971         LangCode         hsb_DE
972 End
973
974 # not supported by babel
975 #Language urdu
976 #       GuiName          "Urdu"
977 #       PolyglossiaName  urdu
978 #       Encoding         utf8
979 #       RTL              true
980 #       LangCode         ur_PK
981 #End
982
983 # vietnam must be loaded locally with babel options,
984 # not globally via class options, see
985 # http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg129417.html
986 Language vietnamese
987         GuiName          "Vietnamese"
988         BabelName        vietnam
989         PolyglossiaName  vietnamese
990         QuoteStyle       french
991         Encoding         utf8
992         LangCode         vi_VN
993         AsBabelOptions   true
994         Requires         vietnamese
995 End
996
997 Language welsh
998         GuiName          "Welsh"
999         BabelName        welsh
1000         PolyglossiaName  welsh
1001         QuoteStyle       english
1002         Encoding         iso8859-15
1003         LangCode         cy_GB
1004 End