mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Enhance support for Xindy
This adds the proper language module and codepage for languages supported by Xindy
This commit is contained in:
parent
7ddec2affc
commit
aa141bc293
@ -1238,7 +1238,7 @@ def checkOtherEntries():
|
|||||||
rc_entry = [ r'\jbibtex_command "automatic"' ],
|
rc_entry = [ r'\jbibtex_command "automatic"' ],
|
||||||
alt_rc_entry = [ r'\jbibtex_alternatives "%%"' ])
|
alt_rc_entry = [ r'\jbibtex_alternatives "%%"' ])
|
||||||
checkProgAlternatives('available index processors',
|
checkProgAlternatives('available index processors',
|
||||||
['texindy', 'makeindex -c -q', 'xindy'],
|
['texindy $$x', 'makeindex -c -q', 'xindy $$x'],
|
||||||
rc_entry = [ r'\index_command "%%"' ],
|
rc_entry = [ r'\index_command "%%"' ],
|
||||||
alt_rc_entry = [ r'\index_alternatives "%%"' ])
|
alt_rc_entry = [ r'\index_alternatives "%%"' ])
|
||||||
checkProg('an index processor appropriate to Japanese',
|
checkProg('an index processor appropriate to Japanese',
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
# BabelName <babelname>
|
# BabelName <babelname>
|
||||||
# PolyglossiaName <polyglossianame>
|
# PolyglossiaName <polyglossianame>
|
||||||
# PolyglossiaOpts "<language-specific options>"
|
# PolyglossiaOpts "<language-specific options>"
|
||||||
|
# XindyName <xindyname>
|
||||||
# ActiveChars <activated characters>
|
# ActiveChars <activated characters>
|
||||||
# QuoteStyle <british|danish|english|french|frenchin|
|
# QuoteStyle <british|danish|english|french|frenchin|
|
||||||
# german|polish|russian|swedish|swedishg|swiss|plain>
|
# german|polish|russian|swedish|swedishg|swiss|plain>
|
||||||
@ -123,6 +124,8 @@
|
|||||||
# * ActiveChars provides a string of the characters that are made active
|
# * ActiveChars provides a string of the characters that are made active
|
||||||
# by the language. We record particularly those characters that have to
|
# by the language. We record particularly those characters that have to
|
||||||
# be de-activated in some contexts (such as - or =).
|
# be de-activated in some contexts (such as - or =).
|
||||||
|
# * XindyName holds the value to the (te)xindy -L option. We only give it
|
||||||
|
# if a corresponding language module exists.
|
||||||
#
|
#
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
@ -172,6 +175,7 @@ Language albanian
|
|||||||
\@ifl@aded{def}{t1enc}{\DeclareTextSymbol{\th}{T1}{254}}{}
|
\@ifl@aded{def}{t1enc}{\DeclareTextSymbol{\th}{T1}{254}}{}
|
||||||
EndPostBabelPreamble
|
EndPostBabelPreamble
|
||||||
PolyglossiaName albanian
|
PolyglossiaName albanian
|
||||||
|
XindyName albanian
|
||||||
QuoteStyle swiss
|
QuoteStyle swiss
|
||||||
Encoding iso8859-2
|
Encoding iso8859-2
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -184,6 +188,7 @@ Language american
|
|||||||
BabelName american
|
BabelName american
|
||||||
PolyglossiaName english
|
PolyglossiaName english
|
||||||
PolyglossiaOpts "variant=american"
|
PolyglossiaOpts "variant=american"
|
||||||
|
XindyName english
|
||||||
QuoteStyle english
|
QuoteStyle english
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding ASCII
|
FontEncoding ASCII
|
||||||
@ -210,6 +215,7 @@ Language ancientgreek
|
|||||||
EndPostBabelPreamble
|
EndPostBabelPreamble
|
||||||
PolyglossiaName greek
|
PolyglossiaName greek
|
||||||
PolyglossiaOpts "variant=ancient"
|
PolyglossiaOpts "variant=ancient"
|
||||||
|
XindyName greek
|
||||||
QuoteStyle french
|
QuoteStyle french
|
||||||
Encoding iso8859-7
|
Encoding iso8859-7
|
||||||
InternalEncoding true
|
InternalEncoding true
|
||||||
@ -291,6 +297,7 @@ Language australian
|
|||||||
BabelName australian
|
BabelName australian
|
||||||
PolyglossiaName english
|
PolyglossiaName english
|
||||||
PolyglossiaOpts "variant=australian"
|
PolyglossiaOpts "variant=australian"
|
||||||
|
XindyName english
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding ASCII
|
FontEncoding ASCII
|
||||||
DateFormats "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
|
DateFormats "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
|
||||||
@ -305,6 +312,7 @@ Language austrian
|
|||||||
BabelName austrian
|
BabelName austrian
|
||||||
PolyglossiaName german
|
PolyglossiaName german
|
||||||
PolyglossiaOpts "variant=austrian,spelling=old,babelshorthands=true"
|
PolyglossiaOpts "variant=austrian,spelling=old,babelshorthands=true"
|
||||||
|
XindyName german-duden
|
||||||
QuoteStyle german
|
QuoteStyle german
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -319,6 +327,7 @@ Language naustrian
|
|||||||
BabelName naustrian
|
BabelName naustrian
|
||||||
PolyglossiaName german
|
PolyglossiaName german
|
||||||
PolyglossiaOpts "variant=austrian,spelling=new,babelshorthands=true"
|
PolyglossiaOpts "variant=austrian,spelling=new,babelshorthands=true"
|
||||||
|
XindyName german-duden
|
||||||
QuoteStyle german
|
QuoteStyle german
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -385,6 +394,7 @@ Language belarusian
|
|||||||
GuiName "Belarusian"
|
GuiName "Belarusian"
|
||||||
BabelName belarusian
|
BabelName belarusian
|
||||||
PolyglossiaName belarusian
|
PolyglossiaName belarusian
|
||||||
|
XindyName belarusian
|
||||||
QuoteStyle french
|
QuoteStyle french
|
||||||
Encoding cp1251
|
Encoding cp1251
|
||||||
FontEncoding T2A
|
FontEncoding T2A
|
||||||
@ -419,6 +429,7 @@ Language brazilian
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName brazil
|
BabelName brazil
|
||||||
PolyglossiaName brazil
|
PolyglossiaName brazil
|
||||||
|
XindyName portuguese
|
||||||
QuoteStyle english
|
QuoteStyle english
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -443,6 +454,7 @@ Language british
|
|||||||
BabelName british
|
BabelName british
|
||||||
PolyglossiaName english
|
PolyglossiaName english
|
||||||
PolyglossiaOpts "variant=british"
|
PolyglossiaOpts "variant=british"
|
||||||
|
XindyName english
|
||||||
QuoteStyle british
|
QuoteStyle british
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding ASCII
|
FontEncoding ASCII
|
||||||
@ -455,6 +467,7 @@ Language bulgarian
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName bulgarian
|
BabelName bulgarian
|
||||||
PolyglossiaName bulgarian
|
PolyglossiaName bulgarian
|
||||||
|
XindyName bulgarian
|
||||||
QuoteStyle german
|
QuoteStyle german
|
||||||
Encoding cp1251
|
Encoding cp1251
|
||||||
FontEncoding T2A
|
FontEncoding T2A
|
||||||
@ -463,14 +476,12 @@ Language bulgarian
|
|||||||
Provides textcyrillic
|
Provides textcyrillic
|
||||||
End
|
End
|
||||||
|
|
||||||
# Unless polyglossia supports variant=canadian,
|
|
||||||
# we can use american, as canadian \eq. american also in babel
|
|
||||||
Language canadian
|
Language canadian
|
||||||
GuiName "English (Canada)"
|
GuiName "English (Canada)"
|
||||||
BabelName canadian
|
BabelName canadian
|
||||||
PolyglossiaName english
|
PolyglossiaName english
|
||||||
PolyglossiaOpts "variant=american"
|
PolyglossiaOpts "variant=canadian"
|
||||||
# PolyglossiaOpts "variant=canadian"
|
XindyName english
|
||||||
QuoteStyle english
|
QuoteStyle english
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding ASCII
|
FontEncoding ASCII
|
||||||
@ -478,13 +489,12 @@ Language canadian
|
|||||||
LangCode en_CA
|
LangCode en_CA
|
||||||
End
|
End
|
||||||
|
|
||||||
# Unless polyglossia supports variant=canadian,
|
|
||||||
# we can use french, as canadien \eq. french also in babel
|
|
||||||
Language canadien
|
Language canadien
|
||||||
GuiName "French (Canada)"
|
GuiName "French (Canada)"
|
||||||
BabelName acadian
|
BabelName acadian
|
||||||
PolyglossiaName french
|
PolyglossiaName french
|
||||||
# PolyglossiaOpts "variant=canadian"
|
PolyglossiaOpts "variant=canadian"
|
||||||
|
XindyName french
|
||||||
QuoteStyle french
|
QuoteStyle french
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -554,6 +564,7 @@ Language croatian
|
|||||||
GuiName "Croatian"
|
GuiName "Croatian"
|
||||||
BabelName croatian
|
BabelName croatian
|
||||||
PolyglossiaName croatian
|
PolyglossiaName croatian
|
||||||
|
XindyName croatian
|
||||||
QuoteStyle polish
|
QuoteStyle polish
|
||||||
Encoding iso8859-2
|
Encoding iso8859-2
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -566,6 +577,7 @@ Language czech
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName czech
|
BabelName czech
|
||||||
PolyglossiaName czech
|
PolyglossiaName czech
|
||||||
|
XindyName czech
|
||||||
QuoteStyle german
|
QuoteStyle german
|
||||||
ActiveChars -
|
ActiveChars -
|
||||||
Encoding iso8859-2
|
Encoding iso8859-2
|
||||||
@ -579,6 +591,7 @@ Language danish
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName danish
|
BabelName danish
|
||||||
PolyglossiaName danish
|
PolyglossiaName danish
|
||||||
|
XindyName danish
|
||||||
QuoteStyle danish
|
QuoteStyle danish
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -601,6 +614,7 @@ Language dutch
|
|||||||
BabelName dutch
|
BabelName dutch
|
||||||
PolyglossiaName dutch
|
PolyglossiaName dutch
|
||||||
PolyglossiaOpts "babelshorthands=true"
|
PolyglossiaOpts "babelshorthands=true"
|
||||||
|
XindyName dutch
|
||||||
QuoteStyle polish
|
QuoteStyle polish
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -614,6 +628,7 @@ Language english
|
|||||||
BabelName english
|
BabelName english
|
||||||
PolyglossiaName english
|
PolyglossiaName english
|
||||||
PolyglossiaOpts "variant=american"
|
PolyglossiaOpts "variant=american"
|
||||||
|
XindyName english
|
||||||
QuoteStyle english
|
QuoteStyle english
|
||||||
DateFormats "MMMM dd, yyyy|MMM dd, yyyy|M/d/yyyy"
|
DateFormats "MMMM dd, yyyy|MMM dd, yyyy|M/d/yyyy"
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
@ -627,6 +642,7 @@ Language esperanto
|
|||||||
GuiName "Esperanto"
|
GuiName "Esperanto"
|
||||||
BabelName esperanto
|
BabelName esperanto
|
||||||
PolyglossiaName esperanto
|
PolyglossiaName esperanto
|
||||||
|
XindyName esperanto
|
||||||
QuoteStyle english
|
QuoteStyle english
|
||||||
Encoding iso8859-3
|
Encoding iso8859-3
|
||||||
FontEncoding IL3|T1|OT1
|
FontEncoding IL3|T1|OT1
|
||||||
@ -638,6 +654,7 @@ Language estonian
|
|||||||
GuiName "Estonian"
|
GuiName "Estonian"
|
||||||
BabelName estonian
|
BabelName estonian
|
||||||
PolyglossiaName estonian
|
PolyglossiaName estonian
|
||||||
|
XindyName estonian
|
||||||
QuoteStyle german
|
QuoteStyle german
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -654,6 +671,7 @@ Language farsi
|
|||||||
GuiName "Farsi"
|
GuiName "Farsi"
|
||||||
BabelName farsi
|
BabelName farsi
|
||||||
PolyglossiaName farsi
|
PolyglossiaName farsi
|
||||||
|
XindyName persian
|
||||||
Encoding utf8
|
Encoding utf8
|
||||||
FontEncoding LAE,LFE
|
FontEncoding LAE,LFE
|
||||||
DateFormats "d MMMM yyyy|d MMM yyyy|yyyy/M/d"
|
DateFormats "d MMMM yyyy|d MMM yyyy|yyyy/M/d"
|
||||||
@ -671,6 +689,7 @@ Language finnish
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName finnish
|
BabelName finnish
|
||||||
PolyglossiaName finnish
|
PolyglossiaName finnish
|
||||||
|
XindyName finnish
|
||||||
QuoteStyle swedish
|
QuoteStyle swedish
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -683,6 +702,7 @@ Language french
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName french
|
BabelName french
|
||||||
PolyglossiaName french
|
PolyglossiaName french
|
||||||
|
XindyName french
|
||||||
QuoteStyle french
|
QuoteStyle french
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -722,6 +742,7 @@ Language georgian
|
|||||||
GuiName "Georgian"
|
GuiName "Georgian"
|
||||||
BabelName georgian
|
BabelName georgian
|
||||||
PolyglossiaName georgian
|
PolyglossiaName georgian
|
||||||
|
XindyName georgian
|
||||||
QuoteStyle german
|
QuoteStyle german
|
||||||
Encoding utf8
|
Encoding utf8
|
||||||
FontEncoding T8M
|
FontEncoding T8M
|
||||||
@ -734,6 +755,7 @@ Language german
|
|||||||
BabelName german
|
BabelName german
|
||||||
PolyglossiaName german
|
PolyglossiaName german
|
||||||
PolyglossiaOpts "variant=german,spelling=old,babelshorthands=true"
|
PolyglossiaOpts "variant=german,spelling=old,babelshorthands=true"
|
||||||
|
XindyName german-duden
|
||||||
QuoteStyle german
|
QuoteStyle german
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -748,6 +770,7 @@ Language ngerman
|
|||||||
BabelName ngerman
|
BabelName ngerman
|
||||||
PolyglossiaName german
|
PolyglossiaName german
|
||||||
PolyglossiaOpts "variant=german,spelling=new,babelshorthands=true"
|
PolyglossiaOpts "variant=german,spelling=new,babelshorthands=true"
|
||||||
|
XindyName german-duden
|
||||||
QuoteStyle german
|
QuoteStyle german
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -764,6 +787,7 @@ Language german-ch
|
|||||||
BabelName nswissgerman
|
BabelName nswissgerman
|
||||||
PolyglossiaName german
|
PolyglossiaName german
|
||||||
PolyglossiaOpts "variant=swiss,spelling=new,babelshorthands=true"
|
PolyglossiaOpts "variant=swiss,spelling=new,babelshorthands=true"
|
||||||
|
XindyName german-duden
|
||||||
QuoteStyle swiss
|
QuoteStyle swiss
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -779,6 +803,7 @@ Language german-ch-old
|
|||||||
BabelName swissgerman
|
BabelName swissgerman
|
||||||
PolyglossiaName german
|
PolyglossiaName german
|
||||||
PolyglossiaOpts "variant=swiss,spelling=old,babelshorthands=true"
|
PolyglossiaOpts "variant=swiss,spelling=old,babelshorthands=true"
|
||||||
|
XindyName german-duden
|
||||||
QuoteStyle swiss
|
QuoteStyle swiss
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -792,6 +817,7 @@ Language greek
|
|||||||
BabelName greek
|
BabelName greek
|
||||||
PolyglossiaName greek
|
PolyglossiaName greek
|
||||||
PolyglossiaOpts "variant=monotonic"
|
PolyglossiaOpts "variant=monotonic"
|
||||||
|
XindyName greek
|
||||||
QuoteStyle french
|
QuoteStyle french
|
||||||
Encoding iso8859-7
|
Encoding iso8859-7
|
||||||
InternalEncoding true
|
InternalEncoding true
|
||||||
@ -806,6 +832,7 @@ Language polutonikogreek
|
|||||||
BabelName polutonikogreek
|
BabelName polutonikogreek
|
||||||
PolyglossiaName greek
|
PolyglossiaName greek
|
||||||
PolyglossiaOpts "variant=polytonic"
|
PolyglossiaOpts "variant=polytonic"
|
||||||
|
XindyName greek
|
||||||
QuoteStyle french
|
QuoteStyle french
|
||||||
Encoding iso8859-7
|
Encoding iso8859-7
|
||||||
InternalEncoding true
|
InternalEncoding true
|
||||||
@ -820,6 +847,7 @@ Language hebrew
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName hebrew
|
BabelName hebrew
|
||||||
PolyglossiaName hebrew
|
PolyglossiaName hebrew
|
||||||
|
XindyName hebrew
|
||||||
Encoding cp1255
|
Encoding cp1255
|
||||||
QuoteStyle english
|
QuoteStyle english
|
||||||
InternalEncoding true
|
InternalEncoding true
|
||||||
@ -865,6 +893,7 @@ Language icelandic
|
|||||||
GuiName "Icelandic"
|
GuiName "Icelandic"
|
||||||
BabelName icelandic
|
BabelName icelandic
|
||||||
PolyglossiaName icelandic
|
PolyglossiaName icelandic
|
||||||
|
XindyName icelandic
|
||||||
QuoteStyle german
|
QuoteStyle german
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1
|
FontEncoding T1
|
||||||
@ -902,6 +931,7 @@ Language italian
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName italian
|
BabelName italian
|
||||||
PolyglossiaName italian
|
PolyglossiaName italian
|
||||||
|
XindyName italian
|
||||||
QuoteStyle french
|
QuoteStyle french
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding ASCII
|
FontEncoding ASCII
|
||||||
@ -966,6 +996,7 @@ End
|
|||||||
Language korean
|
Language korean
|
||||||
GuiName "Korean"
|
GuiName "Korean"
|
||||||
PolyglossiaName korean
|
PolyglossiaName korean
|
||||||
|
XindyName korean
|
||||||
Encoding euc-kr
|
Encoding euc-kr
|
||||||
QuoteStyle cjkangle
|
QuoteStyle cjkangle
|
||||||
DateFormats "yyyy년 M월 d일|yyyy. M. d.|yy. M. d."
|
DateFormats "yyyy년 M월 d일|yyyy. M. d.|yy. M. d."
|
||||||
@ -987,6 +1018,7 @@ Language kurmanji
|
|||||||
GuiName "Kurdish (Kurmanji)"
|
GuiName "Kurdish (Kurmanji)"
|
||||||
BabelName kurmanji
|
BabelName kurmanji
|
||||||
PolyglossiaName kurdish
|
PolyglossiaName kurdish
|
||||||
|
XindyName kurdish-bedirxan
|
||||||
PolyglossiaOpts "variant=kurmanji"
|
PolyglossiaOpts "variant=kurmanji"
|
||||||
Encoding utf8
|
Encoding utf8
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -1010,6 +1042,7 @@ Language latin
|
|||||||
GuiName "Latin"
|
GuiName "Latin"
|
||||||
BabelName latin
|
BabelName latin
|
||||||
PolyglossiaName latin
|
PolyglossiaName latin
|
||||||
|
XindyName latin
|
||||||
ActiveChars ^=
|
ActiveChars ^=
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -1023,6 +1056,7 @@ Language latvian
|
|||||||
GuiName "Latvian"
|
GuiName "Latvian"
|
||||||
BabelName latvian
|
BabelName latvian
|
||||||
PolyglossiaName latvian
|
PolyglossiaName latvian
|
||||||
|
XindyName latvian
|
||||||
QuoteStyle german
|
QuoteStyle german
|
||||||
Encoding iso8859-4
|
Encoding iso8859-4
|
||||||
FontEncoding L7x|T1|OT1
|
FontEncoding L7x|T1|OT1
|
||||||
@ -1037,6 +1071,7 @@ Language lithuanian
|
|||||||
GuiName "Lithuanian"
|
GuiName "Lithuanian"
|
||||||
BabelName lithuanian
|
BabelName lithuanian
|
||||||
PolyglossiaName lithuanian
|
PolyglossiaName lithuanian
|
||||||
|
XindyName lithunian
|
||||||
QuoteStyle german
|
QuoteStyle german
|
||||||
Encoding iso8859-13
|
Encoding iso8859-13
|
||||||
FontEncoding L7x
|
FontEncoding L7x
|
||||||
@ -1056,6 +1091,7 @@ Language lowersorbian
|
|||||||
GuiName "Lower Sorbian"
|
GuiName "Lower Sorbian"
|
||||||
BabelName lowersorbian
|
BabelName lowersorbian
|
||||||
PolyglossiaName lsorbian
|
PolyglossiaName lsorbian
|
||||||
|
XindyName lower-sorbian
|
||||||
QuoteStyle german
|
QuoteStyle german
|
||||||
Encoding iso8859-2
|
Encoding iso8859-2
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -1068,6 +1104,7 @@ Language magyar
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName magyar
|
BabelName magyar
|
||||||
PolyglossiaName magyar
|
PolyglossiaName magyar
|
||||||
|
XindyName hungarian
|
||||||
QuoteStyle polish
|
QuoteStyle polish
|
||||||
Encoding iso8859-2
|
Encoding iso8859-2
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -1079,6 +1116,7 @@ Language macedonian
|
|||||||
GuiName "Macedonian"
|
GuiName "Macedonian"
|
||||||
BabelName macedonian
|
BabelName macedonian
|
||||||
PolyglossiaName macedonian
|
PolyglossiaName macedonian
|
||||||
|
XindyName macedonian
|
||||||
QuoteStyle german
|
QuoteStyle german
|
||||||
Encoding cp1251
|
Encoding cp1251
|
||||||
FontEncoding T2A
|
FontEncoding T2A
|
||||||
@ -1112,6 +1150,7 @@ Language mongolian
|
|||||||
GuiName "Mongolian"
|
GuiName "Mongolian"
|
||||||
BabelName mongolian
|
BabelName mongolian
|
||||||
PolyglossiaName mongolian
|
PolyglossiaName mongolian
|
||||||
|
XindyName mongolian
|
||||||
Encoding utf8
|
Encoding utf8
|
||||||
FontEncoding T2A
|
FontEncoding T2A
|
||||||
DateFormats "yyyy оны M сарын d|d-M-yyyy|dd-MM-yyyy"
|
DateFormats "yyyy оны M сарын d|d-M-yyyy|dd-MM-yyyy"
|
||||||
@ -1124,6 +1163,7 @@ Language newzealand
|
|||||||
BabelName newzealand
|
BabelName newzealand
|
||||||
PolyglossiaName english
|
PolyglossiaName english
|
||||||
PolyglossiaOpts "variant=newzealand"
|
PolyglossiaOpts "variant=newzealand"
|
||||||
|
XindyName english
|
||||||
QuoteStyle english
|
QuoteStyle english
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding ASCII
|
FontEncoding ASCII
|
||||||
@ -1136,6 +1176,7 @@ Language norsk
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName norsk
|
BabelName norsk
|
||||||
PolyglossiaName norsk
|
PolyglossiaName norsk
|
||||||
|
XindyName norwegian
|
||||||
QuoteStyle swiss
|
QuoteStyle swiss
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -1164,6 +1205,7 @@ Language nynorsk
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName nynorsk
|
BabelName nynorsk
|
||||||
PolyglossiaName nynorsk
|
PolyglossiaName nynorsk
|
||||||
|
XindyName norwegian
|
||||||
QuoteStyle swiss
|
QuoteStyle swiss
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -1188,6 +1230,7 @@ Language oldrussian
|
|||||||
GuiName "Russian (Petrine orthography)"
|
GuiName "Russian (Petrine orthography)"
|
||||||
PolyglossiaName russian
|
PolyglossiaName russian
|
||||||
PolyglossiaOpts "spelling=old"
|
PolyglossiaOpts "spelling=old"
|
||||||
|
XindyName russian
|
||||||
QuoteStyle russian
|
QuoteStyle russian
|
||||||
LangCode ru_petr1708
|
LangCode ru_petr1708
|
||||||
End
|
End
|
||||||
@ -1210,6 +1253,7 @@ Language polish
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName polish
|
BabelName polish
|
||||||
PolyglossiaName polish
|
PolyglossiaName polish
|
||||||
|
XindyName polish
|
||||||
QuoteStyle polish
|
QuoteStyle polish
|
||||||
Encoding iso8859-2
|
Encoding iso8859-2
|
||||||
FontEncoding QX|T1|OT1
|
FontEncoding QX|T1|OT1
|
||||||
@ -1222,6 +1266,7 @@ Language portuguese
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName portuges
|
BabelName portuges
|
||||||
PolyglossiaName portuges
|
PolyglossiaName portuges
|
||||||
|
XindyName portuguese
|
||||||
QuoteStyle french
|
QuoteStyle french
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -1234,6 +1279,7 @@ Language romanian
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName romanian
|
BabelName romanian
|
||||||
PolyglossiaName romanian
|
PolyglossiaName romanian
|
||||||
|
XindyName romanian
|
||||||
QuoteStyle polish
|
QuoteStyle polish
|
||||||
Encoding iso8859-16
|
Encoding iso8859-16
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -1259,6 +1305,7 @@ Language russian
|
|||||||
BabelName russian
|
BabelName russian
|
||||||
PolyglossiaName russian
|
PolyglossiaName russian
|
||||||
PolyglossiaOpts "spelling=modern"
|
PolyglossiaOpts "spelling=modern"
|
||||||
|
XindyName russian
|
||||||
QuoteStyle russian
|
QuoteStyle russian
|
||||||
Encoding koi8-r
|
Encoding koi8-r
|
||||||
FontEncoding T2A
|
FontEncoding T2A
|
||||||
@ -1311,6 +1358,7 @@ Language serbian
|
|||||||
BabelName serbianc
|
BabelName serbianc
|
||||||
PolyglossiaName serbian
|
PolyglossiaName serbian
|
||||||
PolyglossiaOpts "script=Cyrillic"
|
PolyglossiaOpts "script=Cyrillic"
|
||||||
|
XindyName serbian
|
||||||
# Note: script option is uppercase, even if the polyglossia
|
# Note: script option is uppercase, even if the polyglossia
|
||||||
# manual states otherwise.
|
# manual states otherwise.
|
||||||
QuoteStyle polish
|
QuoteStyle polish
|
||||||
@ -1320,13 +1368,13 @@ Language serbian
|
|||||||
LangCode sr_RS
|
LangCode sr_RS
|
||||||
End
|
End
|
||||||
|
|
||||||
# Note: script option is uppercase, even if the polyglossia
|
# We use croatian for Latin Serbian index ordering
|
||||||
# manual states otherwise.
|
|
||||||
Language serbian-latin
|
Language serbian-latin
|
||||||
GuiName "Serbian (Latin)"
|
GuiName "Serbian (Latin)"
|
||||||
BabelName serbian
|
BabelName serbian
|
||||||
PolyglossiaName serbian
|
PolyglossiaName serbian
|
||||||
PolyglossiaOpts "script=Latin"
|
PolyglossiaOpts "script=Latin"
|
||||||
|
XindyName croatian
|
||||||
QuoteStyle polish
|
QuoteStyle polish
|
||||||
Encoding iso8859-2
|
Encoding iso8859-2
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -1339,6 +1387,7 @@ Language slovak
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName slovak
|
BabelName slovak
|
||||||
PolyglossiaName slovak
|
PolyglossiaName slovak
|
||||||
|
XindyName slovak-large
|
||||||
QuoteStyle german
|
QuoteStyle german
|
||||||
ActiveChars -^
|
ActiveChars -^
|
||||||
Encoding iso8859-2
|
Encoding iso8859-2
|
||||||
@ -1351,6 +1400,7 @@ Language slovene
|
|||||||
GuiName "Slovene"
|
GuiName "Slovene"
|
||||||
BabelName slovene
|
BabelName slovene
|
||||||
PolyglossiaName slovenian
|
PolyglossiaName slovenian
|
||||||
|
XindyName slovenian
|
||||||
QuoteStyle german
|
QuoteStyle german
|
||||||
Encoding iso8859-2
|
Encoding iso8859-2
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -1363,6 +1413,7 @@ Language spanish
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName spanish
|
BabelName spanish
|
||||||
PolyglossiaName spanish
|
PolyglossiaName spanish
|
||||||
|
XindyName spanish-modern
|
||||||
QuoteStyle french
|
QuoteStyle french
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -1378,6 +1429,7 @@ Language spanish-mexico
|
|||||||
GuiName "Spanish (Mexico)"
|
GuiName "Spanish (Mexico)"
|
||||||
BabelName spanish
|
BabelName spanish
|
||||||
PolyglossiaName spanish
|
PolyglossiaName spanish
|
||||||
|
XindyName spanish-modern
|
||||||
QuoteStyle french
|
QuoteStyle french
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -1393,6 +1445,7 @@ Language swedish
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName swedish
|
BabelName swedish
|
||||||
PolyglossiaName swedish
|
PolyglossiaName swedish
|
||||||
|
XindyName swedish
|
||||||
QuoteStyle swedish
|
QuoteStyle swedish
|
||||||
Encoding iso8859-15
|
Encoding iso8859-15
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -1474,6 +1527,7 @@ Language turkish
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName turkish
|
BabelName turkish
|
||||||
PolyglossiaName turkish
|
PolyglossiaName turkish
|
||||||
|
XindyName turkish
|
||||||
QuoteStyle english
|
QuoteStyle english
|
||||||
ActiveChars =
|
ActiveChars =
|
||||||
Encoding iso8859-9
|
Encoding iso8859-9
|
||||||
@ -1500,6 +1554,7 @@ Language ukrainian
|
|||||||
HasGuiSupport true
|
HasGuiSupport true
|
||||||
BabelName ukrainian
|
BabelName ukrainian
|
||||||
PolyglossiaName ukrainian
|
PolyglossiaName ukrainian
|
||||||
|
XindyName ukrainian
|
||||||
QuoteStyle russian
|
QuoteStyle russian
|
||||||
Encoding koi8-u
|
Encoding koi8-u
|
||||||
FontEncoding T2A
|
FontEncoding T2A
|
||||||
@ -1512,6 +1567,7 @@ Language uppersorbian
|
|||||||
GuiName "Upper Sorbian"
|
GuiName "Upper Sorbian"
|
||||||
BabelName uppersorbian
|
BabelName uppersorbian
|
||||||
PolyglossiaName usorbian
|
PolyglossiaName usorbian
|
||||||
|
XindyName upper-sorbian
|
||||||
QuoteStyle german
|
QuoteStyle german
|
||||||
Encoding iso8859-2
|
Encoding iso8859-2
|
||||||
FontEncoding T1|OT1
|
FontEncoding T1|OT1
|
||||||
@ -1533,6 +1589,7 @@ Language vietnamese
|
|||||||
GuiName "Vietnamese"
|
GuiName "Vietnamese"
|
||||||
BabelName vietnamese
|
BabelName vietnamese
|
||||||
PolyglossiaName vietnamese
|
PolyglossiaName vietnamese
|
||||||
|
XindyName vietnamese
|
||||||
QuoteStyle english
|
QuoteStyle english
|
||||||
Encoding utf8
|
Encoding utf8
|
||||||
DateFormats "dd 'tháng' MMMM yyyy|dd-MM-yyyy|dd/MM/yyyy"
|
DateFormats "dd 'tháng' MMMM yyyy|dd-MM-yyyy|dd/MM/yyyy"
|
||||||
|
@ -486,6 +486,7 @@ Converters::RetVal Converters::convert(Buffer const * buffer,
|
|||||||
runparams.index_command = (bp.index_command == "default") ?
|
runparams.index_command = (bp.index_command == "default") ?
|
||||||
string() : bp.index_command;
|
string() : bp.index_command;
|
||||||
runparams.document_language = bp.language->babel();
|
runparams.document_language = bp.language->babel();
|
||||||
|
runparams.xindy_language = bp.language->xindy();
|
||||||
// Some macros rely on font encoding
|
// Some macros rely on font encoding
|
||||||
runparams.main_fontenc = bp.main_font_encoding();
|
runparams.main_fontenc = bp.main_font_encoding();
|
||||||
runparams.only_childbibs = !bp.useBiblatex()
|
runparams.only_childbibs = !bp.useBiblatex()
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include "LyXRC.h"
|
#include "LyXRC.h"
|
||||||
#include "LyX.h"
|
#include "LyX.h"
|
||||||
#include "DepTable.h"
|
#include "DepTable.h"
|
||||||
|
#include "Encoding.h"
|
||||||
|
|
||||||
#include "support/debug.h"
|
#include "support/debug.h"
|
||||||
#include "support/convert.h"
|
#include "support/convert.h"
|
||||||
@ -500,6 +501,21 @@ int LaTeX::runMakeIndex(string const & f, OutputParams const & rp,
|
|||||||
if (!rp.index_command.empty())
|
if (!rp.index_command.empty())
|
||||||
tmp = rp.index_command;
|
tmp = rp.index_command;
|
||||||
|
|
||||||
|
if (contains(tmp, "$$x")) {
|
||||||
|
// This adds appropriate [te]xindy options
|
||||||
|
// such as language and codepage (for the
|
||||||
|
// main document language/encoding)
|
||||||
|
string xdyopts = rp.xindy_language;
|
||||||
|
if (!xdyopts.empty())
|
||||||
|
xdyopts = "-L " + xdyopts;
|
||||||
|
if (rp.encoding->iconvName() == "UTF-8") {
|
||||||
|
if (!xdyopts.empty())
|
||||||
|
xdyopts += " ";
|
||||||
|
xdyopts += "-C utf8";
|
||||||
|
}
|
||||||
|
tmp = subst(tmp, "$$x", xdyopts);
|
||||||
|
}
|
||||||
|
|
||||||
LYXERR(Debug::LATEX,
|
LYXERR(Debug::LATEX,
|
||||||
"idx file has been made, running index processor ("
|
"idx file has been made, running index processor ("
|
||||||
<< tmp << ") on file " << f);
|
<< tmp << ") on file " << f);
|
||||||
|
@ -140,6 +140,7 @@ bool Language::readLanguage(Lexer & lex)
|
|||||||
LA_LANG_VARIETY,
|
LA_LANG_VARIETY,
|
||||||
LA_POLYGLOSSIANAME,
|
LA_POLYGLOSSIANAME,
|
||||||
LA_POLYGLOSSIAOPTS,
|
LA_POLYGLOSSIAOPTS,
|
||||||
|
LA_XINDYNAME,
|
||||||
LA_POSTBABELPREAMBLE,
|
LA_POSTBABELPREAMBLE,
|
||||||
LA_PREBABELPREAMBLE,
|
LA_PREBABELPREAMBLE,
|
||||||
LA_PROVIDES,
|
LA_PROVIDES,
|
||||||
@ -171,7 +172,8 @@ bool Language::readLanguage(Lexer & lex)
|
|||||||
{ "quotestyle", LA_QUOTESTYLE },
|
{ "quotestyle", LA_QUOTESTYLE },
|
||||||
{ "requires", LA_REQUIRES },
|
{ "requires", LA_REQUIRES },
|
||||||
{ "rtl", LA_RTL },
|
{ "rtl", LA_RTL },
|
||||||
{"wordwrap", LA_WORDWRAP }
|
{ "wordwrap", LA_WORDWRAP },
|
||||||
|
{ "xindyname", LA_XINDYNAME }
|
||||||
};
|
};
|
||||||
|
|
||||||
bool error = false;
|
bool error = false;
|
||||||
@ -206,6 +208,9 @@ bool Language::readLanguage(Lexer & lex)
|
|||||||
case LA_POLYGLOSSIAOPTS:
|
case LA_POLYGLOSSIAOPTS:
|
||||||
lex >> polyglossia_opts_;
|
lex >> polyglossia_opts_;
|
||||||
break;
|
break;
|
||||||
|
case LA_XINDYNAME:
|
||||||
|
lex >> xindy_;
|
||||||
|
break;
|
||||||
case LA_QUOTESTYLE:
|
case LA_QUOTESTYLE:
|
||||||
lex >> quote_style_;
|
lex >> quote_style_;
|
||||||
break;
|
break;
|
||||||
|
@ -46,6 +46,8 @@ public:
|
|||||||
std::string const polyglossia() const { return polyglossia_name_; }
|
std::string const polyglossia() const { return polyglossia_name_; }
|
||||||
/// polyglossia language options
|
/// polyglossia language options
|
||||||
std::string const polyglossiaOpts() const { return polyglossia_opts_; }
|
std::string const polyglossiaOpts() const { return polyglossia_opts_; }
|
||||||
|
/// polyglossia language options
|
||||||
|
std::string const xindy() const { return xindy_; }
|
||||||
/// Is this language only supported by polyglossia?
|
/// Is this language only supported by polyglossia?
|
||||||
bool isPolyglossiaExclusive() const;
|
bool isPolyglossiaExclusive() const;
|
||||||
/// Is this language only supported by babel?
|
/// Is this language only supported by babel?
|
||||||
@ -117,6 +119,8 @@ private:
|
|||||||
///
|
///
|
||||||
trivstring polyglossia_opts_;
|
trivstring polyglossia_opts_;
|
||||||
///
|
///
|
||||||
|
trivstring xindy_;
|
||||||
|
///
|
||||||
trivstring quote_style_;
|
trivstring quote_style_;
|
||||||
///
|
///
|
||||||
trivstring active_chars_;
|
trivstring active_chars_;
|
||||||
|
@ -188,6 +188,9 @@ public:
|
|||||||
*/
|
*/
|
||||||
std::string index_command;
|
std::string index_command;
|
||||||
|
|
||||||
|
/// The Xindy language module
|
||||||
|
std::string xindy_language;
|
||||||
|
|
||||||
/** Hyperref driver
|
/** Hyperref driver
|
||||||
*/
|
*/
|
||||||
std::string hyperref_driver;
|
std::string hyperref_driver;
|
||||||
|
Loading…
Reference in New Issue
Block a user