I'm trying to get all hyphenations that the LaTeX-algorithm gives out. So I'm trying this:
echo "\\\documentclass{standalone}
\\\hyphenation{Py-ra-mi-de}
\\\showhyphens{Pyramide}" | xelatex
This does not give me any errors, so that the output contains
\TU/lmr/m/n/10 Py-ra-mide
which I can parse for. But the hyphenation that it gives me is not Py-ra-mi-de, but Py-ra-mide. What do I do wrong here?
echo "\documentclass{standalone} \begin{document} \hyphenation{Py-ra-mi-de} \righthyphenmin2 \showhyphens{Pyramide} \end{document}" | XeLaTeX
and get a result of .pdf