~ubuntu-branches/ubuntu/saucy/tipa/saucy

« back to all changes in this revision

Viewing changes to mf/mktipapk.sh

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2003-12-11 10:50:58 UTC
  • Revision ID: james.westby@ubuntu.com-20031211105058-vq8ttydhah3hdzq1
Tags: upstream-1.2
ImportĀ upstreamĀ versionĀ 1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# This script generates pk font files for tipa.
 
4
#
 
5
# TIPA is a set of metafont source files for IPA (International
 
6
# Phonetic Alphabet) symbols. You can get it from the CTAN archive.
 
7
#
 
8
# In order to use this script, metafont programs, gftopk, and metafont
 
9
# source files (*.mf) must be installed properly.
 
10
#
 
11
# You should also be familiar with the `modes.mf' file which contains
 
12
# parameters for various printers.
 
13
#
 
14
# 1996/03/12  FUKUI Rei (fkr@tooyoo.L.u-tokyo.ac.jp)
 
15
#
 
16
 
 
17
progname=`basename "$0"`
 
18
MF=mf
 
19
 
 
20
if [ $# != 0 ]; then
 
21
        MODE=$1
 
22
else
 
23
        echo "Usage: $progname mode_name"
 
24
        echo "Examples: $progname localfont"
 
25
        echo "        : $progname CanonCX"
 
26
        exit 1
 
27
fi
 
28
 
 
29
execmf()
 
30
{
 
31
        for file in $MFFILES
 
32
        do
 
33
            echo "[ $file at mag=$MAG ]"
 
34
            $MF "\mode=$MODE; mag=$MAG; nonstopmode;" input $file
 
35
        done
 
36
}
 
37
 
 
38
cmbase=/usr/local/lib/texmf/fonts/public/cm/src/cmbase.mf
 
39
if [ -f $cmbase ]; then
 
40
    ln -s $cmbase cmbase.mf
 
41
fi
 
42
 
 
43
##############################
 
44
# make all fonts for mag 5/8 #
 
45
##############################
 
46
 
 
47
MFFILES="tipa8 tipasl8 tipabx8 tipass8"
 
48
MAG=5/8
 
49
execmf
 
50
 
 
51
##############################
 
52
# make all fonts for mag 6/8 #
 
53
##############################
 
54
 
 
55
MFFILES="tipa8 tipasl8 tipabx8 tipass8"
 
56
MAG=6/8
 
57
execmf
 
58
 
 
59
##############################
 
60
# make all fonts for mag 7/8 #
 
61
##############################
 
62
 
 
63
MFFILES="tipa8 tipasl8 tipabx8 tipass8"
 
64
MAG=7/8
 
65
execmf
 
66
 
 
67
#############################
 
68
# make all fonts for mag .5 #
 
69
#############################
 
70
 
 
71
MFFILES="tipab10"
 
72
MAG=.5
 
73
execmf
 
74
 
 
75
#############################
 
76
# make all fonts for mag .6 #
 
77
#############################
 
78
 
 
79
MFFILES="tipab10"
 
80
MAG=.6
 
81
execmf
 
82
 
 
83
#############################
 
84
# make all fonts for mag .7 #
 
85
#############################
 
86
 
 
87
MFFILES="tipab10"
 
88
MAG=.7
 
89
execmf
 
90
 
 
91
#############################
 
92
# make all fonts for mag .8 #
 
93
#############################
 
94
 
 
95
MFFILES="tipab10"
 
96
MAG=.8
 
97
execmf
 
98
 
 
99
#############################
 
100
# make all fonts for mag .9 #
 
101
#############################
 
102
 
 
103
MFFILES="tipab10"
 
104
MAG=.9
 
105
execmf
 
106
 
 
107
############################
 
108
# make all fonts for mag 1 #
 
109
############################
 
110
 
 
111
MFFILES="tipa8 tipa9 tipa10 tipa12 tipa17 tipasl8 tipasl9 tipasl10 tipasl12 \
 
112
        tipabx8 tipabx9 tipabx10 tipabx12 tipass8 tipass9 tipass10 tipass12 \
 
113
        tipass17 tipab10"
 
114
MAG=1
 
115
execmf
 
116
 
 
117
##################################
 
118
# make all fonts for magstep 0.5 #
 
119
##################################
 
120
 
 
121
MFFILES="tipa10 tipasl10 tipabx10 tipass10 tipab10"
 
122
MAG=magstep.5
 
123
execmf
 
124
 
 
125
################################
 
126
# make all fonts for magstep 1 #
 
127
################################
 
128
 
 
129
MFFILES="tipa12 tipa17 tipasl12 tipabx12 tipass12 tipass17 tipab10"
 
130
MAG=magstep1
 
131
execmf
 
132
 
 
133
################################
 
134
# make all fonts for magstep 2 #
 
135
################################
 
136
 
 
137
MFFILES="tipa17 tipasl12 tipabx12 tipass17 tipab10"
 
138
MAG=magstep2
 
139
execmf
 
140
 
 
141
################################
 
142
# make all fonts for magstep 3 #
 
143
################################
 
144
 
 
145
MFFILES="tipasl12 tipabx12 tipab10"
 
146
MAG=magstep3
 
147
execmf
 
148
 
 
149
################################
 
150
# make all fonts for magstep 4 #
 
151
################################
 
152
 
 
153
MFFILES="tipasl12 tipabx12 tipab10"
 
154
MAG=magstep4
 
155
execmf
 
156
 
 
157
################################
 
158
# make all fonts for magstep 5 #
 
159
################################
 
160
 
 
161
MFFILES="tipab10"
 
162
MAG=magstep5
 
163
execmf
 
164
 
 
165
for gf in tipa*gf
 
166
do
 
167
        gftopk $gf
 
168
done
 
169
 
 
170
rm -f *gf *.log cmbase.mf
 
171
#rm -f *.tfm
 
172
 
 
173
exit 0