diff options
author | Karl Berry <karl@freefriends.org> | 2017-04-19 23:04:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-04-19 23:04:15 +0000 |
commit | f74161ca4e7eb3c5af9afcbe92522ae3b58987c1 (patch) | |
tree | 3c30a13df5ac7968195c85070a2b074578e669d2 /Master/texmf-dist/tex/context/base/mkiv/lang-hyp.mkiv | |
parent | 1d5a55ac8f5506a7ae9cfca52f4b588182e199d4 (diff) |
context beta/cont-tmf.zip (Apr 16 12:55)
git-svn-id: svn://tug.org/texlive/trunk@43931 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/lang-hyp.mkiv')
-rw-r--r-- | Master/texmf-dist/tex/context/base/mkiv/lang-hyp.mkiv | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/lang-hyp.mkiv b/Master/texmf-dist/tex/context/base/mkiv/lang-hyp.mkiv index ca911338623..c111bc31af0 100644 --- a/Master/texmf-dist/tex/context/base/mkiv/lang-hyp.mkiv +++ b/Master/texmf-dist/tex/context/base/mkiv/lang-hyp.mkiv @@ -37,6 +37,22 @@ \definesystemattribute[hyphenation][public] +%D After a decade of playing with these things in \LUATEX|/|\MKIV\ it's time to +%D finish the way we deal with discretionaries. Apart from the fact that they play a +%D role in hyphenation they also need to be dealt with in fonts. Flattening, cleanup +%D and such are now more or less default in \CONTEXT\ so we can simplify some of the +%D code. We also use the new penalty mechanism. + +\newcount\compoundhyphenpenalty + +\automatichyphenmode \plusone +\hyphenpenaltymode \plusfour + +\hyphenpenalty 50 % hyphenator +\automatichyphenpenalty 50 % - +\explicithyphenpenalty 50 % \- +\compoundhyphenpenalty 50 + %D This command can change! At some point we will keep the setting with the %D paragraph and then the \type {\par} can go. @@ -51,7 +67,6 @@ % \enabledirectives[hyphenators.method]% % \endgroup} - % \exhyphenchar \hyphenasciicode % \preexhyphenchar \lessthanasciicode % \postexhyphenchar\morethanasciicode @@ -123,7 +138,9 @@ leftchar \numexpr\dummyparameter\s!lefthyphenchar\relax rightchar \numexpr\dummyparameter\s!righthyphenchar\relax alternative {\dummyparameter\c!alternative}% - rightedge {\dummyparameter\c!rightedge}% +rightedge {\dummyparameter\c!rightedge}% +% autohyphen {\dummyparameter\c!autohyphen} +% hyphenonly {\dummyparameter\c!hyphenonly} }% \relax \endgroup} |