Am 03.03.2010 um 14:04 schrieb Thomas A. Schmitz:
On Mar 3, 2010, at 1:49 PM, Steffen Wolfrum wrote:
For hyphenation!
Just try yourself: with "-" instead of "|-|" there is no hyphenation for test-text:
\startluacode fonts.protrusions.vectors['stpure'] = { [0x002D] = { 0, 0.50 }, -- hyphen } fonts.protrusions.classes['stwpure'] = { vector = 'stpure', factor = 1 } \stopluacode
\definefontfeature[default][default] [mode=node,protrusion=stwpure,script=latn]% extend=2,slant=.2, \usetypescript[postscript] \definetypeface[postscript][rm][serif][times][default] \setupbodyfont[postscript,18pt] \setupalign[line,block,hanging]
\setbreakpoints[compound]
\showframe
\starttext
\dorecurse{13}{test } test|-|text test
\dorecurse{13}{test } test-text test
\dorecurse{13}{test } test- text test
\stoptext
And see http://archive.contextgarden.net/message/20071214.090643.99a01996.en.html
Wow ... 2007.12.14 :o) Thank you Thomas! Steffen