Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(languages): Add full Esperanto language support #1444

Merged
merged 9 commits into from
Jun 24, 2022
16 changes: 14 additions & 2 deletions documentation/c08-language.sil
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ selection:
SILE inserts word break opportunities after Ethiopic word spaces and full
stops. Amharic can be typeset in two styles: with space surrounding
punctuation or space after punctuation. You can set the setting
\autodoc:setting[check=false]{languages.am.justification} to either \code{left} or \code{centered}
to control which style is used. The default is \code{left}
\autodoc:setting[check=false]{languages.am.justification} to either \code{left}
or \code{centered} to control which style is used. The default is \code{left}

\begin{verbatim}
\line
Expand All @@ -188,6 +188,18 @@ to control which style is used. The default is \code{left}
\set[parameter=languages.am.justification,value=centered]
\font[family=Noto Sans Ethiopic,language=am]{ሰላም፡ልዑል}

\subsection{Esperanto}

\define[command=eo]{\font[language=eo]{\process}}

Esperanto typesetting is quite straight forward, however one feature of the language is unique:
the requirement that \em{all} adjectives, including numerals, have the suffix “\eo{ª}”.
This includes numbers standing on their own.
For example, “the 15th of March” is, in Esperanto, “\eo{la 15ª de marto}”.
As there is lack of agreement\footnote{Wikipedia prefers “\eo{15-a}” while most professional books and posters prefer “\eo{15ª}”, while some authors even write “\eo{15a}” as the underlying word is “\eo{dekkvina}”.} on how to typeset this, you have options:
\autodoc:setting[check=false]{languages.eo.ordinal.raisedsuffix} when made true will use \eo{ª} (as in “\eo{apitro 1ª}”) while
\autodoc:setting[check=false]{languages.eo.ordinal.hyphenbefore} will prepend a hyphen (as in “\eo{apitro 15-a}”).

\subsection{French}

In French typesetting, there is normally a non-breakable space between text
Expand Down
15 changes: 15 additions & 0 deletions i18n/eo.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
hello = Saluton { $name }!

toc-not-generated = Reruli na SILE por trakti la enhavan tabelon!

toc-title = Enhavoj

book-chapter-title-pre = Ĉapitro{" "}

bibliography-and = kaj

bibliography-edited-by = Redaktita por { $name }

bibliography-et-al = kaj aliaj

bibliography-translated-by = Tradukita por { $name }
Loading