This is the solutions. Put it into your conf.py file.

The problem is that you need a font that supports special characters.

    pdf_stylesheets = ['sphinx','kerning','a4']



On Tuesday, January 7, 2020 at 11:50:16 AM UTC+1, Beat Gurtner wrote:
>
> Hi,
>
> I use sphinxy-build (Sphinx v1.6.3) on a Mac (Mojave 10.14.1) to generate 
> a PDF in different languages.
>
> All languages work, but polish gives me broken characters (see attachment).
>
> They original text is stored as *.rst file (in German) and then I 
> translate them into *.po files.
>
> One example word which does not work is:
> Treść
>
> This is the according PO-File:
>
> # SOME DESCRIPTIVE TITLE.
> # Copyright (C) Beat Gurtner
> # This file is distributed under the same license as the Dokumentation des
> # Sakkadentrainers package.
> # FIRST AUTHOR <EMAIL@ADDRESS>, 2019.
> #
> msgid ""
> msgstr ""
> "Project-Id-Version: Dokumentation des Sakkadentrainers\n"
> "Report-Msgid-Bugs-To: \n"
> "POT-Creation-Date: 2018-07-26 14:43+0200\n"
> "PO-Revision-Date: 2019-12-29 17:38+0000\n"
> "MIME-Version: 1.0\n"
> "Content-Type: text/plain; charset=utf-8\n"
> "X-Poedit-SourceCharset: UTF-8\n"
> "Content-Transfer-Encoding: 8bit\n"
> "Generated-By: Babel 2.4.0\n"
> "Last-Translator: \n"
> "Language-Team: \n"
> "Language: pl\n"
> "X-Generator: Poedit 2.2.4\n"
>
> #: ../../index.rst:7
> msgid "Willkommen zur Dokumentation des Sakkadentrainers"
> msgstr "Witamy w dokumentacji Sakkadycznytrener"
>
> #: ../../index.rst:9
> msgid "`Zurück zum Training <https://www.sakkadentrainer.ch>`_"
> msgstr "`Powrót do treningu <https://www.sakkadentrainer.ch>`_"
>
> #: ../../index.rst:11
> msgid "Inhalt:"
> msgstr "Treść:"
>
>
>
>
>
> The command to generate the PDF is:
>
> sphinx-build -t pl -D language=pl -b pdf 
> /Applications/MAMP/htdocs/sakkadentrainer/doc/ 
> /Applications/MAMP/htdocs/sakkadentrainer_medical_doc/pdf/pl/
>
>
>
>
> Any help is appreciated
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/7fdbc585-f88b-45cf-96ce-b21185b6fc35%40googlegroups.com.

Reply via email to