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

« back to all changes in this revision

Viewing changes to mf/mkxipapk.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 #
 
45
#############################
 
46
 
 
47
MFFILES="xipa10 xipasl10 xipabx10 xipass10 xipab10"
 
48
MAG=.5
 
49
execmf
 
50
 
 
51
#############################
 
52
# make all fonts for mag .6 #
 
53
#############################
 
54
 
 
55
MFFILES="xipa10 xipasl10 xipabx10 xipass10 xipab10"
 
56
MAG=.6
 
57
execmf
 
58
 
 
59
#############################
 
60
# make all fonts for mag .7 #
 
61
#############################
 
62
 
 
63
MFFILES="xipa10 xipasl10 xipabx10 xipass10 xipab10"
 
64
MAG=.7
 
65
execmf
 
66
 
 
67
#############################
 
68
# make all fonts for mag .8 #
 
69
#############################
 
70
 
 
71
MFFILES="xipa10 xipasl10 xipabx10 xipass10 xipab10"
 
72
MAG=.8
 
73
execmf
 
74
 
 
75
#############################
 
76
# make all fonts for mag .9 #
 
77
#############################
 
78
 
 
79
MFFILES="xipa10 xipasl10 xipabx10 xipass10 xipab10"
 
80
MAG=.9
 
81
execmf
 
82
 
 
83
############################
 
84
# make all fonts for mag 1 #
 
85
############################
 
86
 
 
87
MFFILES="xipa10 xipasl10 xipabx10 xipass10 xipab10"
 
88
MAG=1
 
89
execmf
 
90
 
 
91
##################################
 
92
# make all fonts for magstep 0.5 #
 
93
##################################
 
94
 
 
95
MFFILES="xipa10 xipasl10 xipabx10 xipass10 xipab10"
 
96
MAG=magstep.5
 
97
execmf
 
98
 
 
99
################################
 
100
# make all fonts for magstep 1 #
 
101
################################
 
102
 
 
103
MFFILES="xipa10 xipasl10 xipabx10 xipass10 xipab10"
 
104
MAG=magstep1
 
105
execmf
 
106
 
 
107
################################
 
108
# make all fonts for magstep 2 #
 
109
################################
 
110
 
 
111
MFFILES="xipa10 xipasl10 xipabx10 xipass10 xipab10"
 
112
MAG=magstep2
 
113
execmf
 
114
 
 
115
################################
 
116
# make all fonts for magstep 3 #
 
117
################################
 
118
 
 
119
MFFILES="xipa10 xipasl10 xipabx10 xipass10 xipab10"
 
120
MAG=magstep3
 
121
execmf
 
122
 
 
123
################################
 
124
# make all fonts for magstep 4 #
 
125
################################
 
126
 
 
127
MFFILES="xipa10 xipasl10 xipabx10 xipass10 xipab10"
 
128
MAG=magstep4
 
129
execmf
 
130
 
 
131
################################
 
132
# make all fonts for magstep 5 #
 
133
################################
 
134
 
 
135
MFFILES="xipa10 xipasl10 xipabx10 xipass10 xipab10"
 
136
MAG=magstep5
 
137
execmf
 
138
 
 
139
for gf in xipa*gf
 
140
do
 
141
        gftopk $gf
 
142
done
 
143
 
 
144
rm -f *gf *.log cmbase.mf
 
145
#rm -f *.tfm
 
146
 
 
147
exit 0