summaryrefslogtreecommitdiff
path: root/fonts/tolkienfonts/tolkieninst/effectPunctspace.mtx
blob: 8ff05d5e5e10cc59687f0df7cfba2c9ab226a413 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
\relax

Part of the tolkienfonts package
Copyright 2010 Ariel Barton

This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
of this license or (at your option) any later version.
The latest version of this license is in
http://www.latex-project.org/lppl.txt
and version 1.3 or later is part of all distributions of LaTeX
version 2005/12/01 or later.

This work has the LPPL maintenance status `maintained'.

The Current Maintainer of this work is Ariel Barton.

This work consists of all the files listed in Appendix F of the file
`tolkienfontsdoc.pdf'.

Date: 2010/08/29

Version: 2


\metrics

%\comment{Adding some extra space to the punctuation}

\setint{punctspace}{\scale{\int{interword}}{600}}

\setint{fontdimen(7)}{\add{-\int{interword}}{\int{punctspace}}} % Extra space for non-french spacing (default 111)

\ifisglyph{onedot}\then        \resetglyph{onedot}       \movert{\int{punctspace}}\glyph{onedot}{1000}\endresetglyph\fi
\ifisglyph{twodots}\then       \resetglyph{twodots}      \movert{\int{punctspace}}\glyph{twodots}{1000}\endresetglyph\fi
\ifisglyph{threedots}\then     \resetglyph{threedots}    \movert{\int{punctspace}}\glyph{threedots}{1000}\endresetglyph\fi
\ifisglyph{tallthreedots}\then \resetglyph{tallthreedots}\movert{\int{punctspace}}\glyph{tallthreedots}{1000}\endresetglyph\fi
\ifisglyph{fourdots}\then      \resetglyph{fourdots}     \movert{\int{punctspace}}\glyph{fourdots}{1000}\endresetglyph\fi
\ifisglyph{tildevertical}\then \resetglyph{tildevertical}\movert{\int{punctspace}}\glyph{tildevertical}{1000}\endresetglyph\fi
\ifisglyph{tengquestion}\then  \resetglyph{tengquestion} \movert{\int{punctspace}}\glyph{tengquestion}{1000}\endresetglyph\fi
\ifisglyph{tengparen}\then     
    \setglyph{tengparenleft} \glyph{tengparen}{1000}\movert{\int{punctspace}}\endsetglyph   
    \resetglyph{tengparen} \movert{\int{punctspace}}\glyph{tengparen}{1000}\endresetglyph   
\fi

\ifisglyph{onedot}\then\ifisglyph{onedot}\then       \resetkern{onedot}       {onedot}{\add{-\int{punctspace}}{\kerning{onedot}{onedot}}}\fi\fi
\ifisglyph{onedot}\then\ifisglyph{twodots}\then      \resetkern{onedot}      {twodots}{\add{-\int{punctspace}}{\kerning{onedot}{twodots}}}\fi\fi
\ifisglyph{onedot}\then\ifisglyph{threedots}\then    \resetkern{onedot}    {threedots}{\add{-\int{punctspace}}{\kerning{onedot}{threedots}}}\fi\fi
\ifisglyph{onedot}\then\ifisglyph{tallthreedots}\then\resetkern{onedot}{tallthreedots}{\add{-\int{punctspace}}{\kerning{onedot}{tallthreedots}}}\fi\fi
\ifisglyph{onedot}\then\ifisglyph{fourdots}\then     \resetkern{onedot}     {fourdots}{\add{-\int{punctspace}}{\kerning{onedot}{fourdots}}}\fi\fi

\ifisglyph{twodots}\then\ifisglyph{onedot}\then       \resetkern{twodots}       {onedot}{\add{-\int{punctspace}}{\kerning{twodots}{onedot}}}\fi\fi
\ifisglyph{twodots}\then\ifisglyph{twodots}\then      \resetkern{twodots}      {twodots}{\add{-\int{punctspace}}{\kerning{twodots}{twodots}}}\fi\fi
\ifisglyph{twodots}\then\ifisglyph{threedots}\then    \resetkern{twodots}    {threedots}{\add{-\int{punctspace}}{\kerning{twodots}{threedots}}}\fi\fi
\ifisglyph{twodots}\then\ifisglyph{tallthreedots}\then\resetkern{twodots}{tallthreedots}{\add{-\int{punctspace}}{\kerning{twodots}{tallthreedots}}}\fi\fi
\ifisglyph{twodots}\then\ifisglyph{fourdots}\then     \resetkern{twodots}     {fourdots}{\add{-\int{punctspace}}{\kerning{twodots}{fourdots}}}\fi\fi

\ifisglyph{threedots}\then\ifisglyph{onedot}\then       \resetkern{threedots}       {onedot}{\add{-\int{punctspace}}{\kerning{threedots}{onedot}}}\fi\fi
\ifisglyph{threedots}\then\ifisglyph{twodots}\then      \resetkern{threedots}      {twodots}{\add{-\int{punctspace}}{\kerning{threedots}{twodots}}}\fi\fi
\ifisglyph{threedots}\then\ifisglyph{threedots}\then    \resetkern{threedots}    {threedots}{\add{-\int{punctspace}}{\kerning{threedots}{threedots}}}\fi\fi
\ifisglyph{threedots}\then\ifisglyph{tallthreedots}\then\resetkern{threedots}{tallthreedots}{\add{-\int{punctspace}}{\kerning{threedots}{tallthreedots}}}\fi\fi
\ifisglyph{threedots}\then\ifisglyph{fourdots}\then     \resetkern{threedots}     {fourdots}{\add{-\int{punctspace}}{\kerning{threedots}{fourdots}}}\fi\fi

\ifisglyph{tallthreedots}\then\ifisglyph{onedot}\then       \resetkern{tallthreedots}       {onedot}{\add{-\int{punctspace}}{\kerning{tallthreedots}{onedot}}}\fi\fi
\ifisglyph{tallthreedots}\then\ifisglyph{twodots}\then      \resetkern{tallthreedots}      {twodots}{\add{-\int{punctspace}}{\kerning{tallthreedots}{twodots}}}\fi\fi
\ifisglyph{tallthreedots}\then\ifisglyph{threedots}\then    \resetkern{tallthreedots}    {threedots}{\add{-\int{punctspace}}{\kerning{tallthreedots}{threedots}}}\fi\fi
\ifisglyph{tallthreedots}\then\ifisglyph{tallthreedots}\then\resetkern{tallthreedots}{tallthreedots}{\add{-\int{punctspace}}{\kerning{tallthreedots}{tallthreedots}}}\fi\fi
\ifisglyph{tallthreedots}\then\ifisglyph{fourdots}\then     \resetkern{tallthreedots}     {fourdots}{\add{-\int{punctspace}}{\kerning{tallthreedots}{fourdots}}}\fi\fi

\ifisglyph{fourdots}\then\ifisglyph{onedot}\then       \resetkern{fourdots}       {onedot}{\add{-\int{punctspace}}{\kerning{fourdots}{onedot}}}\fi\fi
\ifisglyph{fourdots}\then\ifisglyph{twodots}\then      \resetkern{fourdots}      {twodots}{\add{-\int{punctspace}}{\kerning{fourdots}{twodots}}}\fi\fi
\ifisglyph{fourdots}\then\ifisglyph{threedots}\then    \resetkern{fourdots}    {threedots}{\add{-\int{punctspace}}{\kerning{fourdots}{threedots}}}\fi\fi
\ifisglyph{fourdots}\then\ifisglyph{tallthreedots}\then\resetkern{fourdots}{tallthreedots}{\add{-\int{punctspace}}{\kerning{fourdots}{tallthreedots}}}\fi\fi
\ifisglyph{fourdots}\then\ifisglyph{fourdots}\then     \resetkern{fourdots}     {fourdots}{\add{-\int{punctspace}}{\kerning{fourdots}{fourdots}}}\fi\fi

\endmetrics