On 12/04/2014 10:00 PM, Hans Hagen wrote:
On 12/4/2014 8:21 PM, Pablo Rodriguez wrote:
[...] The text from Knuth needs to have the standard hyphenation character, although the other two commands need to have underscore hyphenation.
Which is the best way to do it?
it's no big deal to extend the mechanism to support this ...
Many thanks for your help, Hans. I’m afraid that I get a zero in the next line after the underscore. And I get two zeros (one at the end and one at the begining) with strict hyphenation: \setuphyphenation[method=traditional] \sethyphenationfeatures[strict] \starttext \input knuth \stoptext BTW, in your sample below, how can I get the underscore under the previous character? (Otherwise, the underscore has no use.) Many thanks for your help again, Pablo
\definetype [TeXcode] [option=TEX, compact=absolute, lines=hyphenated]
\definehyphenationfeatures [whatever] [righthyphenchar=_]
\setuphyphenation [method=traditional]
\unexpanded\def\TexC#1% {\dontleavehmode\begingroup \sethyphenationfeatures[whatever]% \normalexpanded{\TeXcode{\letterbackslash#1}}% \endgroup}
\starttext \input tufte \dorecurse{100}{\TexC{definebodyfont} } \input tufte \stoptext
i'll upload a beta (making one now)