# consider following document
$ cat x.txt
Альфа бета гамма
# it translates to .tex and .pdf nicely and resulting pdf looks good with cyrillic in pdf content and pdfinfo
$ rst2xetex x.txt && xelatex x.tex
# but if I do
$ rst2xetex --language=ru x.txt && xelatex x.tex
there are several xelatex warnings:
** WARNING ** Failed to convert input string to UTF16...
and also pdfcontents and pdfinfo display random glyphs.
The problem is that in --language=ru case, rst2xelatex adds 'russian' to document options,
and this seems to be clashing somehow with xetex.
Suggested patch, unfortunately without tests, attached.
Log in to post a comment.