Fix an error in PR #5134 regarding handling of Cyrillic

This commit is contained in:
jfbu 2018-07-16 14:01:10 +02:00
parent ab88175c8c
commit 9b31ee8d5e
2 changed files with 98 additions and 99 deletions

View File

@ -4,8 +4,6 @@
;; description: style file for xindy which maps back LaTeX Internal ;; description: style file for xindy which maps back LaTeX Internal
;; Character Representation of Cyrillic to utf-8 ;; Character Representation of Cyrillic to utf-8
;; usage: for use with pdflatex produced .idx files. ;; usage: for use with pdflatex produced .idx files.
;; This module must be loaded after the rule for suppressing space
;; characters has been executed, hence after module sphinx.xdy.
;; Contributed by the Sphinx team, July 2018. ;; Contributed by the Sphinx team, July 2018.
(merge-rule "\IeC {\'\CYRG }" "Ѓ" :string) (merge-rule "\IeC {\'\CYRG }" "Ѓ" :string)
(merge-rule "\IeC {\'\CYRK }" "Ќ" :string) (merge-rule "\IeC {\'\CYRK }" "Ќ" :string)

View File

@ -86,9 +86,10 @@
;; Sphinx additions, cf sphinx.util.texescape for rationale ;; Sphinx additions, cf sphinx.util.texescape for rationale
;; ;;
;; blanks are already ignored from above merge-rules, so no space ;; The LaTeX \index command turns \ into normal character so the TeX macros
;; character after TeX control words, despite the fact that they will ;; written to .idx files are not followed by a blank. This is different
;; be present in .idx file. ;; from non-ascii letters which end up (with pdflatex) as \IeC macros in .idx
;; file, with a blank.
(merge-rule "\\sphinxleftcurlybrace\{\}" "{") (merge-rule "\\sphinxleftcurlybrace\{\}" "{")
(merge-rule "\\sphinxrightcurlybrace\{\}" "}") (merge-rule "\\sphinxrightcurlybrace\{\}" "}")