On 19/03/2025 10:33, Ian Fantom wrote:
> I'm just coming back to internationalisation, with a test document in
> Esperanto. The issues are (using TexStudio and XeLaTex):
Bearing in mind I have never used Esperanto, but there does seem to be
some support at
https://ctan.org/topic/esperanto
> 1. babel: Do I have to install something first, because I can't get it
> to run.
babel is a standard part of all TeX systems, so it's all right there
apart from some very specialist language packages (of which
https://ctan.org/pkg/babel-esperanto may be one!).
When you say "can't get it to run" what is the exact error message you
get that tells you this?
> 2. polyglossia: works perfectly, but is limited.
I suspect it just hasn't been developed as much as other languages.
> For Esperanto there are no line breaks.
I'm not clear what this means. Do you mean it does not hyphenate? Or
does not justify? Or it tries to create paragraphs as single
limitless-length lines with no breaks at all?
This is something that would need to be taken up with the developers, or
asked on
tex.stackexchange.com or comp.text.tex
> Any ideas on how to set up the language database required?
For polyglossia generally? (that should be there) or for esperanto
specifically? (the polyglossia documentation should describe this).
> I haven't found the files yet that define the language
> characteristics.
Mine are in /usr/share/texlive/texmf-dist/tex/latex/polyglossia/ eg
gloss-esperanto.ldf
> Also, I'm wondering how sorting will work. I notice that in Ubuntu
> command line the 'sort' command will sort in the correct order, ie:
> c,ĉ,g,ĝ,h,ĥ,j,ĵ,u,ŭ. Would the same be necessarily true for LaTeX
> sorting as for instance in an index?
Sorting for indexes and glossaries for LaTeX is provided by makeindex.
If Ubuntu is using Unicode defaults, then I would hope that makeindex
would do the same. If not, there is another sorter called xindy but I
have not used it. Different languages do have different requirements,
and maybe no-one has yet written those for Esperanto.
> 3. Am I best using XeLaTex, or should I switch to LuaLaTeX or some
> other engine?
Until last week my answer would have been XeLaTeX but after the fairly
intensive discussions on the tex-live mailing list, I am now convinced
to switch to LuaLaTeX.
The main reason is that XeLaTeX is not longer being developed.
Both handle TTF/OTF fonts, both handle Unicode multibyte characters.
My concerns were that
(a) LuaLaTeX uses its own font-finder (luaotfload) whereas XeLaTeX uses
the standard (Unix) fontconfig; and
(b) LuaLaTeX is slower than XeLaTeX.
But luaotfload seems to work fine, and the speed difference should not
be noticeable on most users' typically small files like white-papers,
articles or essays; although it will be noticeable on big documents like
theses, books, whole journals, etc.
LuaLaTeX of course has the Lua scripting language built in, but this is
a minority attraction, although important for those who need it. It also
creates a PDF direct instead of using an intermediate format.
Overall I think it's a price worth paying, so I have switched without
pain, and I'm now converting _Formatting Information_ to reference
LuaLaTeX instead of XeLaTeX, which means a LOT of testing, so it won't
happen until the summer.
FWIW pdflatex is no longer a candidate: it can't handle TTF/OTF fonts
nor Unicode multibyte characters, so if you're using it, switch now. Its
remaining feature is that it DOES cater for PDF accessibility
requirements, but so does LuaLaTeX (XeLaTeX does not, as far as I
understand the discussion).
> Once I'm on the right track I'll probably be able to sort out many of
> the details myself.
Good luck!
Peter