summaryrefslogtreecommitdiff
path: root/fonts/tolkienfonts/tolkieninst/effectUnderdots.mtx
blob: 22cfb76881efdd4a8026b864da5b2d271176bf3e (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
\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

\ifisglyph{tinco}\then 
  % Tengwar fonts are different, since they come with
  % several different underdots
  
  \fontspecificglyphs 
  % This defines barundernarrow and (glyph)+silme---not glyph+silmen.
  % In Tengwar Annatar, it also adjusts the heights of various glyphs.
  
  \setglyph{Asilmen}\glyph{silme}{1000}\endsetglyph\setleftrightkerning{Asilmen}{silme}{1000}
  \setglyph{Aessen} \glyph{esse}{1000}\endsetglyph \setleftrightkerning{Aessen}{esse}{1000}
  \setglyph{Ayanta} \glyph{yanta}{1000}\endsetglyph\setleftrightkerning{Ayanta}{yanta}{1000}
  \setglyph{Aure}   \glyph{ure}{1000}\endsetglyph  \setleftrightkerning{Aure}{ure}{1000}
  
  
  \setcommand\addunderdots#1#2{%    Adding a dot for no A
    \ifisglyph{#1}\then
        \setglyph{#1nodot}\glyph{#1}{1000}\endsetglyph
        \setleftrightkerning{#1nodot}{#1}{1000}
        \resetglyph{#1}
            \glyph{#1}{1000}\push\glyph{Itehta#2}{1000}\pop
        \endresetglyph
    \fi
  }
  
  \ifisglyph{alda}\then
    \setglyph{aldanodot}\glyph{alda}{1000}\endsetglyph
    \resetglyph{alda}
        \glyph{alda}{1000}\push\moveup{150}\glyph{ItehtaL}{1000}\pop
    \endresetglyph
  \fi
  
  \ifisglyph{altesse}\then
    \setglyph{essenodot}\glyph{esse}{1000}\endsetglyph
    \resetglyph{esse}
        \glyph{altesse}{1000}\push\glyph{Itehta\essesubtehta}{1000}\pop
    \endresetglyph
  \else
    \setglyph{essenodot}\glyph{esse}{1000}\endsetglyph
    \resetglyph{esse}
        \glyph{esse}{1000}\push\glyph{Itehta\essesubtehta}{1000}\pop
    \endresetglyph
  \fi
  
  \addunderdots{tinco}{\tincosubtehta}
  \addunderdots{parma}{\tincosubtehta}
  \addunderdots{Tinco}{\tincosubtehta}
  \addunderdots{Parma}{\tincosubtehta}
  \addunderdots{calma}{\calmasubtehta}
  \addunderdots{quesse}{\calmasubtehta}
  \addunderdots{Calma}{\calmasubtehta}
  \addunderdots{Quesse}{\calmasubtehta}
  
  \addunderdots{ando}{V}
  \addunderdots{umbar}{V}
  \addunderdots{anga}{V}
  \addunderdots{ungwe}{V}
  \addunderdots{anto}{V}
  \addunderdots{ampa}{V}
  \addunderdots{anca}{V}
  \addunderdots{unque}{V}
  \addunderdots{numen}{V}
  \addunderdots{malta}{V}
  \addunderdots{noldo}{V}
  \addunderdots{nwalme}{V}
  \addunderdots{Ando}{V}
  \addunderdots{Umbar}{V}
  \addunderdots{Anga}{V}
  \addunderdots{Ungwe}{V}
  
  \addunderdots{thule}{VI}
  \addunderdots{formen}{VI}
  \addunderdots{aha}{VI}
  \addunderdots{hwesta}{VI}
  \addunderdots{ore}{VI}
  \addunderdots{vala}{VI}
  %\addunderdots{anna}{VI}
  \addunderdots{wilya}{VI}
  
  \addunderdots{romen}{\romensubtehta}
  \addunderdots{arda}{\romensubtehta}
  \addunderdots{lambe}{L}
  \addunderdots{silme}{\silmesubtehta}
  %\addunderdots{silmen}{\silmensubtehta}
  %\addunderdots{esse}{\essesubtehta}
  %\addunderdots{essen}{\essensubtehta}
  \addunderdots{hyarmen}{VI}
  \addunderdots{hwestas}{VI}
  %\addunderdots{yanta}{VI}
  %\addunderdots{ure}{\uresubtehta}
  \addunderdots{altromen}{VII}
  \addunderdots{osse}{\ossesubtehta}
  \addunderdots{halla}{VIII}
  
  %\addunderdots{altsilme}{VI}
  %\addunderdots{altsilmen}{VI}
  %\addunderdots{altesse}{\essesubtehta}
  %\addunderdots{altessen}{VI}
  %\addunderdots{altosse}{VI}
  %\addunderdots{althwtengwa}{VI}
  %\addunderdots{mhellyn}{VI}
  %\addunderdots{altmhellyn}{VI}
  %\addunderdots{wtengwa}{VI}
  %\addunderdots{wtengwatall}{VI}
  
  
  
\Else
  
  \setcommand\addunderdots#1#2#3{%  Adding a dot for no A
    \ifisglyph{#1}\then
        \setglyph{#1nodot}\glyph{#1}{1000}\endsetglyph
        \setleftrightkerning{#1nodot}{#1}{1000}
        \resetglyph{#1}
            \glyph{#1}{1000}\push\movert{#2}\moveup{#3}\glyph{novoweltehta}{1000}\pop
        \endresetglyph
    \fi
  }
  
  \makeunderdots
  % "Make underdots" is defined inside the font-specific files
  
\Fi

\endmetrics