summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/lang-ini.mkxl
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2020-08-14 09:36:25 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2020-08-14 09:36:25 +0200
commite4473c5bfc835fe69b7e85c1deef4aacce63a291 (patch)
tree7f905bb8bcc45ae6a69e2486dd6273754139964b /tex/context/base/mkiv/lang-ini.mkxl
parent4f97d7d7cd942dfe76cd4bb54fc3f5b890654235 (diff)
downloadcontext-e4473c5bfc835fe69b7e85c1deef4aacce63a291.tar.gz
2020-08-13 19:45:00
Diffstat (limited to 'tex/context/base/mkiv/lang-ini.mkxl')
-rw-r--r--tex/context/base/mkiv/lang-ini.mkxl31
1 files changed, 21 insertions, 10 deletions
diff --git a/tex/context/base/mkiv/lang-ini.mkxl b/tex/context/base/mkiv/lang-ini.mkxl
index 3afbf5680..87b3f3064 100644
--- a/tex/context/base/mkiv/lang-ini.mkxl
+++ b/tex/context/base/mkiv/lang-ini.mkxl
@@ -418,11 +418,17 @@
% \uchyph\plusone :
\chardef \completehyphenationmodecode \numexpr
- \normalhyphenationmodecode % \discretionary
- + \automatichyphenationmodecode % -
- + \explicithyphenationmodecode % \-
- + \syllablehyphenationmodecode % pattern driven
- + \uppercasehyphenationmodecode % uchyph
+ \normalhyphenationmodecode % \discretionary
+ + \automatichyphenationmodecode % -
+ + \explicithyphenationmodecode % \-
+ + \syllablehyphenationmodecode % pattern driven
+ + \uppercasehyphenationmodecode % replaces \uchyph
+ + \compoundhyphenationmodecode % replaces \compoundhyphenmode
+ % \strictstarthyphenationmodecode % replaces \hyphenationbounds (strict = original tex)
+ % \strictendhyphenationmodecode % replaces \hyphenationbounds (strict = original tex)
+ + \automaticpenaltyhyphenationmodecode % replaces \hyphenpenaltymode (otherwise use \exhyphenpenalty)
+ + \explicitpenaltyhyphenationmodecode % replaces \hyphenpenaltymode (otherwise use \exhyphenpenalty)
+ + \permitgluehyphenationmodecode % turn glue into kern in \discretionary
\relax
\unexpanded\def\dohyphens{\hyphenationmode\completehyphenationmodecode}
@@ -728,9 +734,16 @@
%D New:
-\unexpanded\def\traceddiscretionary#1#2#3%
- {\dontleavehmode
- \discretionary{\darkred#1}{\darkgreen#2}{\darkblue#3}}
+\unexpanded\def\traceddiscretionary#1#%
+ {\dontleavehmode\lang_basics_traced_discretionary{#1}}
+
+\unexpanded\def\lang_basics_traced_discretionary#1#2#3#4%
+ {\normaldiscretionary#1{\darkred#2}{\darkgreen#3}{\darkblue#4}}
+
+\installtextracker
+ {discretionaries}
+ {\let\discretionary\traceddiscretionary}
+ {\let\discretionary\normaldiscretionary}
\unexpanded\def\samplediscretionary
{\traceddiscretionary
@@ -738,6 +751,4 @@
{\clf_currentposthyphenchar post}%
{replace}}
-% todo: make this configurable
-
\protect \endinput