diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-11-23 19:48:34 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-11-23 19:48:34 +0100 |
commit | 18499e46a49b8ccf4346686d1cf626ada33935b8 (patch) | |
tree | bd0ae7b601b323e20954c10c07598637d9403e00 /tex/context/base/mkxl/typo-itc.mklx | |
parent | 4b089e589d39346a66a27d04f9857fe16e4b7b41 (diff) | |
download | context-18499e46a49b8ccf4346686d1cf626ada33935b8.tar.gz |
2020-11-23 18:39:00
Diffstat (limited to 'tex/context/base/mkxl/typo-itc.mklx')
-rw-r--r-- | tex/context/base/mkxl/typo-itc.mklx | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/tex/context/base/mkxl/typo-itc.mklx b/tex/context/base/mkxl/typo-itc.mklx new file mode 100644 index 000000000..f979261c8 --- /dev/null +++ b/tex/context/base/mkxl/typo-itc.mklx @@ -0,0 +1,60 @@ +%D \module +%D [ file=typo-itc, +%D version=2011.10.08, +%D title=\CONTEXT\ Typesetting Macros, +%D subtitle=Italic Correction, +%D author=Hans Hagen, +%D date=\currentdate, +%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] +%C +%C This module is part of the \CONTEXT\ macro||package and is +%C therefore copyrighted by \PRAGMA. See mreadme.pdf for +%C details. + +\writestatus{loading}{ConTeXt Typesetting Macros / Italics Corrections} + +\unprotect + +%D The brave might try: +%D +%D \starttyping +%D \definefontfeature[default][default][itlc=yes,textitalics=yes] +%D \setupitaliccorrection[global,always] +%D \stoptyping + +\registerctxluafile{typo-itc}{} + +\definesystemattribute[italics] [public] +\definesystemattribute[mathitalics][public] + +% \let\/=/ +% \let\emphasiscorrection\donothing + +\ifdefined \normalitaliccorrection \else + \aliased\let\normalitaliccorrection\italiccorrection +\fi + +\permanent\protected\def\italiccorrection + {\ifnum\c_attr_italics<\plusone\normalitaliccorrection\fi} + +\pushoverloadmode + \aliased\let\/\italiccorrection +\popoverloadmode + +% 1 = end of word +% 2 = end of word and end of a list + +\permanent\protected\def\setitaliccorrection [#code]{\clf_setitaliccorrection#code\relax} % todo: public implementor +\permanent\protected\def\resetitaliccorrection {\clf_resetitaliccorrection} % todo: public implementor +\permanent\protected\def\setupitaliccorrection[#settings]{\clf_setupitaliccorrection{#settings}} % todo: public implementor + +% global : no attributes, just always (faster and less memory) +% text : only text +% always : text and boxes +% none : - + +\appendtoks + \c_attr_italics\attributeunsetvalue +\to \everymathematics + +\protect \endinput |