On 12/5/2014 8:11 PM, Pablo Rodriguez wrote:
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.
i'll fix it
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.)
Hm, that was the idea of the example i sent earlier.
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)
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------