>
>
> Hi Jean-François,
many thanks for your support sharing this information. I never imagined
having to dive so deep into this; all I wanted was a Greek translation ;-)
Goo news: So, I have almost nailed it!
*About Windows vs Linux*
When indeed I tried the same small project (with *pdflatex *engine,
language=el, and #'fontenc': r'\usepackage[LGR,X2,T1]{fontenc}' on a fresh
Ubuntu, it works. Just had to do some trial-and-error with installing
different texlive packages, then it works. Lesson learned: Don't use
Windows / MikTex...
*About pdflatex with greek*
I then then got quite a bit further, only remaining problem was that
pdflatex erorred on the copyright © and trademark ™ characters. Deleting
those built the document, and indeed, as you mentioned, every roman
character was converted to Greek alphabet. That was already fine for me, I
just needed some Greek translation :-)
*A venture into xelatex*
Indeed it works out of the box (at least on Linux) when
latex_engine=xelatex. So I will switch to building everything (all
languages) with xelatex (please warn me if that's a bad idea). I have some
Chinese, Korean and Japanse translations on the longer term roadmap, so
xelatex hopefully deals with that as well.
Note: Actually I tried xelatex before, but got stuck on an error:
Package polyglossia Error: The current roman font does not contain the Greek
(polyglossia) Please define \greekfont with \newfontfamily. \sphinxmaketitle
Another half a day later I now see that this was caused by a line that I
added to sphinxmanual.cls (named sphinxmanual_customqaweb.cls). I add an
extra image on the title page, with this line:
{\sphinxincludegraphics{celabel_1639.png}\par}
... which cases the polyglossia problem on xelatex , not on pdflatex.
I still don't understand why this breaks things ; it's almost identical as
the \sphinxlogo method
\begin{flushright}%
\sphinxlogo
\py@HeaderFamily
{\Huge \@title \par}
{\itshape\LARGE \py@release\releaseinfo \par}
\vfill
{\LARGE
\begin{tabular}[t]{c}
\@author
\end{tabular}\kern-\tabcolsep
\par}
{\sphinxincludegraphics{celabel_1639.png}\par} %THIS LINE CAUSES
POLYGLOSSIA ERROR (but not when placed just below \sphinxlogo...)
\vfill\vfill
{\large
%\@date \par
\vfill
\py@authoraddress \par
}%
\end{flushright}%\par
Anyway, I worked around this problem using the latex_logo feature, which
can also put an image on the title page,I see now, as I discovered by
seeing the \sphinxlogo line.
Out of curiosity I would like to understand why the \sphinxincludegraphics
causes the problem - guess I'm too latex newbie for that. But that's just
nice to have.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sphinx-users/6d512680-3250-473f-b2ad-110dc1ec5b05%40googlegroups.com.