diff options
author | Mojca Miklavec <mojca.miklavec@gmail.com> | 2012-05-14 17:38:55 +0000 |
---|---|---|
committer | Mojca Miklavec <mojca.miklavec@gmail.com> | 2012-05-14 17:38:55 +0000 |
commit | 15995e10bfc68edf79970c4ea4fbb6678566c46e (patch) | |
tree | 2de7ca2a83f2d37ef043ad7429a5cb945bb79ddb /Master/texmf-dist/tex/context/base/typo-itc.mkvi | |
parent | c9a39f716f1e5ec820ed3aab2c9aef25c5a9d730 (diff) |
ConTeXt 2012.05.14 16:00
git-svn-id: svn://tug.org/texlive/trunk@26371 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/typo-itc.mkvi')
-rw-r--r-- | Master/texmf-dist/tex/context/base/typo-itc.mkvi | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/context/base/typo-itc.mkvi b/Master/texmf-dist/tex/context/base/typo-itc.mkvi new file mode 100644 index 00000000000..809c7a25245 --- /dev/null +++ b/Master/texmf-dist/tex/context/base/typo-itc.mkvi @@ -0,0 +1,62 @@ +%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,notextitalics=yes] +%D \setupitaliccorrection[global,always] +%D \stoptyping + +\registerctxluafile{typo-itc}{1.001} + +\definesystemattribute[italics][public] + +% \let\/=/ +% \let\emphasiscorrection\donothing + +\ifdefined \normalitaliccorrection \else + \let\normalitaliccorrection\italiccorrection +\fi + +\unexpanded\def\italiccorrection + {\ifnum\attribute\italicsattribute<\plusone\normalitaliccorrection\fi} + +\let\/\italiccorrection + +% 1 = end of word +% 2 = end of word and end of a list + +\unexpanded\def\setitaliccorrection[#code]% rather low level (might go away) + {\ctxlua{typesetters.italics.set(\number#code)}} + +\unexpanded\def\resetitaliccorrection% rather low level (might go away) + {\ctxlua{typesetters.italics.reset()}} + +% global : no attributes, just always (faster and less memory) +% text : only text +% always : text and boxes +% none : - + +\unexpanded\def\setupitaliccorrection[#settings]% + {\ctxcommand{setupitaliccorrection("#settings")}} + +\appendtoks + \attribute\italicsattribute\attributeunsetvalue +\to \everymathematics + +\protect \endinput |