Hi,

there has been two issues raised recently

(1) classes
(2) length

we don't want to complicate the machinery any more than it is already is but i realized that these can be achieved rather simple by messing with the (new) hjcodes, so i played with that a bit last night.

\hsize 1mm

\hjcode`x=`o

foobar % foo-bar

fxxbar % fxx-bar

\lefthyphenmin3

œdipus % œdipus

\hjcode`œ=1    % < 32 then it's the length and code is char code

œdipus % œdi-pus

so, luatex 0.96 will use the hjcode mapped character in the hyphenation process (that was still the lc code but that can be considered an oversight, so in fact we already had kind of classes) and when a value < 32 is set, it is seen as the length to be taken when comparin gto the min/max values (so no characters < 32 in patterns which is no big deal)

these extensions have no penalty on performance or complexity in the code

Hans


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------

Reply via email to