LaTeX: for Cyrillic and with xindy, get Latin letter groups too

Refs: #5134
This commit is contained in:
jfbu 2018-07-17 23:54:53 +02:00
parent d96574d72d
commit c2a396c776
2 changed files with 45 additions and 0 deletions

View File

@ -27,6 +27,9 @@ export XINDYOPTS = {{ xindy_lang_option }} -M sphinx.xdy
{% if latex_engine == 'pdflatex' and xindy_cyrillic -%}
XINDYOPTS += -M cyrLICRutf8.xdy
{% endif -%}
{% if xindy_cyrillic -%}
XINDYOPTS += -M sphinx-basiclatin.xdy
{% endif -%}
{% if latex_engine == 'xelatex' or latex_engine == 'lualatex' -%}
XINDYOPTS += -I xelatex
{% endif -%}

View File

@ -0,0 +1,42 @@
;; xindy style file to provide indexing of (ascii) Latin names
;; in an otherwise non-Latin (i.e. Cyrillic) context.
;; TODO: should we support also iso-latin-1 ?
;; Contributed by the Sphinx team, July 2018.
(define-letter-groups
("A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M"
"N" "O" "P" "Q" "R" "S" "T" "U" "V" "W" "X" "Y" "Z"))
(define-rule-set "latin-toupper"
:rules (("a" "A" :string :again)
("b" "B" :string :again)
("c" "C" :string :again)
("d" "D" :string :again)
("e" "E" :string :again)
("f" "F" :string :again)
("g" "G" :string :again)
("h" "H" :string :again)
("i" "I" :string :again)
("j" "J" :string :again)
("k" "K" :string :again)
("l" "L" :string :again)
("m" "M" :string :again)
("n" "N" :string :again)
("o" "O" :string :again)
("p" "P" :string :again)
("q" "Q" :string :again)
("r" "R" :string :again)
("s" "S" :string :again)
("t" "T" :string :again)
("u" "U" :string :again)
("v" "V" :string :again)
("w" "W" :string :again)
("x" "X" :string :again)
("y" "Y" :string :again)
("z" "Z" :string :again)
))
(use-rule-set
:run 0
:rule-set ("latin-toupper"))