Convert Geez (Ethiopic) scripts into PDFLaTeX commands for the ethiop package.
This module translates Geez characters to their Ethiopian Latin transcription (for use with the ethiop package) and to IPA transcription (for use with the TIPA package) in LaTeX.
pip install git+https://github.com/tachi-hi/geez2ethiop.gitFor development:
git clone https://github.com/tachi-hi/geez2ethiop.git
cd geez2ethiop
pip install -e ".[dev]"$ echo አዲስ አበባ | geez2ethiop --latex
\geeztext{'adise 'ababA}
\textipa{'\"adis\textschwa{} '\"ab\"aba}Without --latex:
$ echo አዲስ አበባ | geez2ethiop
አዲስ አበባ
'adise 'ababA
'\"adis\textschwa{} '\"ab\"abafrom geez2ethiop import geez2ethiop, ethiop2ipa
geez = "አዲስ አበባ"
ethiop = geez2ethiop(geez) # "'adise 'ababA"
ipa = ethiop2ipa(ethiop) # "'\"adis\\textschwa{} '\"ab\"aba"See the demo notebook for more examples (view on nbviewer, open in Colab).
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tipa}
\usepackage[ethiop,main=english]{babel}
\newcommand{\geeztext}[1]{{\selectlanguage{ethiop}\mbox{#1}}}
\begin{document}
\geeztext{'adise 'ababA}
\textipa{'\"adis\textschwa{} '\"ab\"aba}
\end{document}See latex-example/example.tex for a complete example.
Compiled output:
If you are interested in using XeLaTeX or LuaLaTeX, you can write Ethiopic text directly using the fontspec package with appropriate Ethiopic fonts.