# How to convert all hyphenation patterns from Unicode to T1 in lualatex?

by pts   Last Updated January 11, 2019 11:23 AM

I'm trying to use lualatex with old, 8-bit, non-Unicode fonts:

\documentclass[a4paper]{article}
\usepackage[utf8]{luainputenc}
\usepackage{t1enc}
\usepackage{lmodern}
\def\myhelvetica{\fontfamily{phv}\selectfont}
\begin{document}
\makeatletter\language=\[email protected]
\showhyphens{árvíztűrő türkörfúrógép}
\hrule
{\Huge Helló, Wörld, árvíztűrő}
\hrule
{\Huge Helló, Wörld, árvízt\H{u}r\H{o}}
\hrule
{\myhelvetica\Huge Helló, Wörld, árvíztűrő}
\hrule
\end{document}


Everything works except that \showhyphens shows incorrect hyphenation:

• ár-víz-tű-rő would be correct, \showhyphens shows something else. I want \showhypens to show ár-víz-tű-rő here.
• tü-kör-fú-ró-gép is hyphenated correctly.

I suspect that the problem is caused by the letters ő and ű, which are at different positions in Unicode and T1 encodings. (All other letters, inclúding ó and é are at the same position.)

Is there a way to convert all hyphenation patterns from Unicode to T1 encoding, something I can add between \documentclass and \begin{document}? I won't be using fontspec or any Unicode font in this compilation.

Tags :

## Related Questions

Updated November 13, 2016 08:09 AM

Updated January 10, 2019 16:23 PM

Updated May 31, 2017 09:23 AM

Updated August 08, 2017 07:23 AM

Updated May 13, 2015 22:10 PM