1\font\fontA="[lmroman10-regular.otf]" 2\font\fontB="[lmroman10-regular.otf]:mapping=tex-text" 3 4\newdimen\savehsize \savehsize\hsize 5\parskip=2ex 6 7\def\test#1#2{{\tt#1}\endgraf\hsize=3pt\noindent #2\endgraf\hsize=\savehsize} 8 9\def\testA#1{\test{#1}{a l'adnam}} 10 11\long\def\testpage{ 12 13\fontA 14 15\noindent With proper lccode, result should be {\tt l'-an}, with wrong lccode, no hyphenation\par\strut 16 17\testA{Without lccode} 18 19\bgroup 20\lccode"27="27 21\testA{With lccode 27->27; OK} 22\egroup 23 24\bgroup 25\lccode"27="27 26\lccode"006E="0027 27\testA{With lccode 27->27, n->27} 28\egroup 29 30\vskip2\baselineskip 31 32\fontB 33 34\testA{Without lccode (with tex-text)} 35 36\bgroup 37\lccode"2019="0027 38\testA{With lccode 2019->27 (with tex-text); OK} 39\egroup 40 41\bgroup 42\lccode"2019="2019 43\testA{With lccode 2019->2019 (with tex-text)} 44\egroup 45} 46 47\uselanguage{apostropheS} 48{\bf With savinghyphcodes} 49\testpage 50 51\eject 52 53\uselanguage{apostrophe} 54{\bf Without savinghyphcodes} 55\testpage 56 57\bye 58