Debian Codegraph @

texmf-dist/tex/fontinst/latinmtx/ltpunct.mtx

raw
1 %%% ====================================================================
2 %%% @TeX-font-metrics-file{
3 %%% author = "Alan Jeffrey and Ulrik Vieth and
4 %%% Lars Hellstr{\"o}m",
5 %%% version = "1.923",
6 %%% date = "2003-03-29",
7 %%% time = "16:25:58 +01:00",
8 %%% filename = "ltpunct.mtx",
9 %%% email = "[email protected]",
10 %%% URL = "http://www.tug.org/applications/fontinst/",
11 %%% checksum = "",
12 %%% codetable = "ISO/ASCII",
13 %%% keywords = "metrics, TeX, PostScript",
14 %%% supported = "yes",
15 %%% abstract = "This is a font metrics file, for use with
16 %%% the fontinst utility. It deals with the
17 %%% punctuation characters needed for the most
18 %%% common latin font encodings.",
19 %%% package = "fontinst",
20 %%% dependencies = "fontinst.sty, fontdoc.sty",
21 %%% }
22 %%% ====================================================================
23
24 \relax
25
26 \documentclass[twocolumn]{article}
27
28 \usepackage{fontdoc}[2002/03/01]
29 \showbranches
30
31 \title{Latin punctuation}
32 \author{Alan Jeffrey\and Ulrik Vieth\and Lars Hellstr\"om}
33 \date{7 January 2003\\Version 1.923}
34
35 \begin{document}
36 \maketitle
37
38
39 \metrics
40
41 \needsfontinstversion{1.902}
42 \usemtxpackage{ltcmds}
43 \ProvidesMtxPackage{ltpunct}
44
45 \begincomment
46 \section{Punctuation}
47
48 \subsection{Unfakable characters}
49 \endcomment
50
51 \unfakable{ampersand}
52 \unfakable{asciicircum}
53 \unfakable{asciitilde}
54 \unfakable{asterisk}
55 \unfakable{at}
56 \unfakable{backslash}
57 \unfakable{bar}
58 \unfakable{braceleft}
59 \unfakable{braceright}
60 \unfakable{bracketleft}
61 \unfakable{bracketright}
62 \unfakable{colon}
63 \unfakable{comma}
64 \unfakable{dollar}
65 \unfakable{emdash}
66 \unfakable{endash}
67 \unfakable{equal}
68 \unfakable{exclamdown}
69 \unfakable{exclam}
70 \unfakable{greater}
71 \unfakable{guillemotleft}
72 \unfakable{guillemotright}
73 \unfakable{guilsinglleft}
74 \unfakable{guilsinglright}
75 \unfakable{hyphen}
76 \unfakable{less}
77 \unfakable{numbersign}
78 \unfakable{parenleft}
79 \unfakable{parenright}
80 \unfakable{percent}
81 \unfakable{period}
82 \unfakable{perthousandzero}
83 \unfakable{plus}
84 \unfakable{questiondown}
85 \unfakable{question}
86 \unfakable{quotedblbase}
87 \unfakable{quotedblleft}
88 \unfakable{quotedblright}
89 \unfakable{quotedbl}
90 \unfakable{quoteleft}
91 \unfakable{quoteright}
92 \unfakable{section}
93 \unfakable{semicolon}
94 \unfakable{slash}
95 \unfakable{sterling}
96 \unfakable{underscore}
97
98 \begincomment
99 \subsection{Fakable characters}
100 \endcomment
101
102 \setglyph{space}
103 \ifisglyph{space-not}\then
104 \movert{\width{space-not}}
105 \Else\ifisglyph{i}\then
106 \movert{\width{i}}
107 \Else
108 \movert{333}
109 \Fi\Fi
110 \endsetglyph
111
112 \setglyph{compwordmark}
113 \glyphrule{0}{\int{xheight}}
114 \endsetglyph
115 \setint{compwordmark-spacing}{0}
116
117 \setglyph{quotesinglbase}
118 \glyph{comma}{1000}
119 \endsetglyph
120
121
122 \setglyph{visiblespace}
123 \moveup{\neg{\int{visiblespacedepth}}}
124 \movert{\int{visiblespacesurround}}
125 \glyphrule
126 {\int{underlinethickness}}
127 {\int{visiblespacedepth}}
128 \glyphrule
129 {\int{visiblespacewidth}}
130 {\int{underlinethickness}}
131 \glyphrule
132 {\int{underlinethickness}}
133 {\int{visiblespacedepth}}
134 \movert{\int{visiblespacesurround}}
135 \moveup{\int{visiblespacedepth}}
136 \endsetglyph
137 \setleftrightkerning{visiblespace}{space}{1000}
138 \comment{The matter of whether a \texttt{visiblespace} should kern
139 like a \texttt{space} has never been satisfactory resolved.}
140
141
142
143 \begincomment
144 \subsection{Some special dashes}
145
146 \texttt{rangedash} and \texttt{punctdash} are mostly two traditional
147 aliases for \texttt{endash} and \texttt{emdash}. The problem with the
148 latter two ``original'' glyphs is that they in monowidth fonts
149 usually are much shorter than one would expect, whereas the hyphen
150 combinations look quite good.
151 \endcomment
152
153 \setglyph{rangedash}
154 \ifisint{monowidth}\then
155 \glyph{hyphen}{1000}
156 \Else
157 \glyph{endash}{1000}
158 \Fi
159 \endsetglyph
160
161 \setglyph{punctdash}
162 \ifisint{monowidth}\then
163 \glyph{hyphen}{1000}
164 \glyph{hyphen}{1000}
165 \Else
166 \glyph{emdash}{1000}
167 \Fi
168 \endsetglyph
169
170 \setglyph{hyphenchar}
171 \glyph{hyphen}{1000}
172 \resetwidth{\half{\width{hyphen}}}
173 \comment{Unlike the normal \texttt{hyphen}, this glyph is only
174 meant to be used at the right end of a line of text. This means
175 it can be a ``hanging hyphen'' which significantly extends
176 outside the character box.}
177 \setleftkerning{hyphenchar}{hyphen}{1000}
178 \comment{\TeX\ does consider kerning (and ligatures) between a
179 hyphenchar and what preceeds it on the line, but there is
180 nothing after the hyphenchar.}
181 \endsetglyph
182
183
184 \begincomment
185 \subsection{More monowidth specialities}
186 \endcomment
187
188 % only with monospaced fonts. (WaS)
189 \ifisint{monowidth}\then
190 \resetglyph{asterisk}
191 \moveup{\sub{\int{vaxis}}{\half{\sub{\height{asterisk}}{\depth{asterisk}}}}}
192 \glyph{asterisk}{1000}
193 \resetdepth{0}
194 \endresetglyph
195 \Fi
196
197
198
199 \begincomment
200 \section{Digits}
201
202 The traditional coding here has been that all digits are considered to
203 be unfakable. An obvious alternative is however to fake
204 \texttt{zerooldstyle} with \texttt{zero}, \texttt{oneoldstyle} with
205 \texttt{one}, etc., or vice versa.
206 \endcomment
207
208
209 \unfakable{zero}
210 \unfakable{one}
211 \unfakable{two}
212 \unfakable{three}
213 \unfakable{four}
214 \unfakable{five}
215 \unfakable{six}
216 \unfakable{seven}
217 \unfakable{eight}
218 \unfakable{nine}
219
220 \unfakable{zerooldstyle}
221 \unfakable{oneoldstyle}
222 \unfakable{twooldstyle}
223 \unfakable{threeoldstyle}
224 \unfakable{fouroldstyle}
225 \unfakable{fiveoldstyle}
226 \unfakable{sixoldstyle}
227 \unfakable{sevenoldstyle}
228 \unfakable{eightoldstyle}
229 \unfakable{nineoldstyle}
230
231
232
233 \endmetrics
234
235
236 \section{Changes}
237
238 The original version of this file was created in February 2003,
239 although it is based on code from the traditional \texttt{latin.mtx}.
240 The changes that have been made after that are as follows.
241
242 2003/03/15: The asterisk in monowidth fonts is vertically centered,
243 to make it more useful for computer listings. Suggested by Walter
244 Schmidt.
245
246 \end{document}
247