summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/fontinst/latinmtx/ltpunct.mtx
blob: 223b2005f48d844546112f7de7f3eebbb0f5e60b (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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
%%% ====================================================================
%%%  @TeX-font-metrics-file{
%%%     author          = "Alan Jeffrey and Ulrik Vieth and
%%%                        Lars Hellstr{\"o}m",
%%%     version         = "1.923",
%%%     date            = "2003-03-29",
%%%     time            = "16:25:58 +01:00",
%%%     filename        = "ltpunct.mtx",
%%%     email           = "fontinst@tug.org",
%%%     URL             = "http://www.tug.org/applications/fontinst/",
%%%     checksum        = "",
%%%     codetable       = "ISO/ASCII",
%%%     keywords        = "metrics, TeX, PostScript",
%%%     supported       = "yes",
%%%     abstract        = "This is a font metrics file, for use with
%%%                        the fontinst utility. It deals with the
%%%                        punctuation characters needed for the most
%%%                        common latin font encodings.",
%%%     package         = "fontinst",
%%%     dependencies    = "fontinst.sty, fontdoc.sty",
%%%  }
%%% ====================================================================

\relax

\documentclass[twocolumn]{article}

\usepackage{fontdoc}[2002/03/01]
\showbranches

\title{Latin punctuation}
\author{Alan Jeffrey\and Ulrik Vieth\and Lars Hellstr\"om}
\date{7 January 2003\\Version 1.923}

\begin{document}
\maketitle


\metrics

\needsfontinstversion{1.902}
\usemtxpackage{ltcmds}
\ProvidesMtxPackage{ltpunct}

\begincomment
\section{Punctuation}

\subsection{Unfakable characters}
\endcomment

\unfakable{ampersand}
\unfakable{asciicircum}
\unfakable{asciitilde}
\unfakable{asterisk}
\unfakable{at}
\unfakable{backslash}
\unfakable{bar}
\unfakable{braceleft}
\unfakable{braceright}
\unfakable{bracketleft}
\unfakable{bracketright}
\unfakable{colon}
\unfakable{comma}
\unfakable{dollar}
\unfakable{emdash}
\unfakable{endash}
\unfakable{equal}
\unfakable{exclamdown}
\unfakable{exclam}
\unfakable{greater}
\unfakable{guillemotleft}
\unfakable{guillemotright}
\unfakable{guilsinglleft}
\unfakable{guilsinglright}
\unfakable{hyphen}
\unfakable{less}
\unfakable{numbersign}
\unfakable{parenleft}
\unfakable{parenright}
\unfakable{percent}
\unfakable{period}
\unfakable{perthousandzero}
\unfakable{plus}
\unfakable{questiondown}
\unfakable{question}
\unfakable{quotedblbase}
\unfakable{quotedblleft}
\unfakable{quotedblright}
\unfakable{quotedbl}
\unfakable{quoteleft}
\unfakable{quoteright}
\unfakable{section}
\unfakable{semicolon}
\unfakable{slash}
\unfakable{sterling}
\unfakable{underscore}

\begincomment
\subsection{Fakable characters}
\endcomment

\setglyph{space}
   \ifisglyph{space-not}\then
      \movert{\width{space-not}}
   \Else\ifisglyph{i}\then
      \movert{\width{i}}
   \Else
      \movert{333}
   \Fi\Fi
\endsetglyph

\setglyph{compwordmark}
   \glyphrule{0}{\int{xheight}}
\endsetglyph
\setint{compwordmark-spacing}{0}

\setglyph{quotesinglbase}
   \glyph{comma}{1000}
\endsetglyph


\setglyph{visiblespace}
   \moveup{\neg{\int{visiblespacedepth}}}
   \movert{\int{visiblespacesurround}}
   \glyphrule
      {\int{underlinethickness}}
      {\int{visiblespacedepth}}
   \glyphrule
      {\int{visiblespacewidth}}
      {\int{underlinethickness}}
   \glyphrule
      {\int{underlinethickness}}
      {\int{visiblespacedepth}}
   \movert{\int{visiblespacesurround}}
   \moveup{\int{visiblespacedepth}}
\endsetglyph
\setleftrightkerning{visiblespace}{space}{1000}
\comment{The matter of whether a \texttt{visiblespace} should kern 
  like a \texttt{space} has never been satisfactory resolved.}



\begincomment
\subsection{Some special dashes}

\texttt{rangedash} and \texttt{punctdash} are mostly two traditional 
aliases for \texttt{endash} and \texttt{emdash}. The problem with the 
latter two ``original'' glyphs is that they in monowidth fonts 
usually are much shorter than one would expect, whereas the hyphen 
combinations look quite good.
\endcomment

\setglyph{rangedash}
   \ifisint{monowidth}\then
      \glyph{hyphen}{1000}
   \Else
      \glyph{endash}{1000}
   \Fi
\endsetglyph

\setglyph{punctdash}
   \ifisint{monowidth}\then
      \glyph{hyphen}{1000}
      \glyph{hyphen}{1000}
   \Else
      \glyph{emdash}{1000}
   \Fi
\endsetglyph

\setglyph{hyphenchar}
   \glyph{hyphen}{1000}
   \resetwidth{\half{\width{hyphen}}}
   \comment{Unlike the normal \texttt{hyphen}, this glyph is only 
     meant to be used at the right end of a line of text. This means 
     it can be a ``hanging hyphen'' which significantly extends 
     outside the character box.}
   \setleftkerning{hyphenchar}{hyphen}{1000}
   \comment{\TeX\ does consider kerning (and ligatures) between a 
     hyphenchar and what preceeds it on the line, but there is 
     nothing after the hyphenchar.}
\endsetglyph


\begincomment
\subsection{More monowidth specialities}
\endcomment

% only with monospaced fonts. (WaS)
\ifisint{monowidth}\then
   \resetglyph{asterisk}
      \moveup{\sub{\int{vaxis}}{\half{\sub{\height{asterisk}}{\depth{asterisk}}}}}
      \glyph{asterisk}{1000}
      \resetdepth{0}
   \endresetglyph
\Fi



\begincomment
\section{Digits}

The traditional coding here has been that all digits are considered to 
be unfakable. An obvious alternative is however to fake 
\texttt{zerooldstyle} with \texttt{zero}, \texttt{oneoldstyle} with 
\texttt{one}, etc., or vice versa.
\endcomment


\unfakable{zero}
\unfakable{one}
\unfakable{two}
\unfakable{three}
\unfakable{four}
\unfakable{five}
\unfakable{six}
\unfakable{seven}
\unfakable{eight}
\unfakable{nine}

\unfakable{zerooldstyle}
\unfakable{oneoldstyle}
\unfakable{twooldstyle}
\unfakable{threeoldstyle}
\unfakable{fouroldstyle}
\unfakable{fiveoldstyle}
\unfakable{sixoldstyle}
\unfakable{sevenoldstyle}
\unfakable{eightoldstyle}
\unfakable{nineoldstyle}



\endmetrics


\section{Changes}

The original version of this file was created in February 2003, 
although it is based on code from the traditional \texttt{latin.mtx}. 
The changes that have been made after that are as follows.

2003/03/15: The asterisk in monowidth fonts is vertically centered, 
to make it more useful for computer listings. Suggested by Walter 
Schmidt.

\end{document}