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

« back to all changes in this revision

Viewing changes to mf/gentipa.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
# gentipa.sh --- a shell script for producing TIPA parameter files.
 
4
 
5
# 1996/06/24 first version
 
6
# 2001/11/07 bs10 (= BXSL10), sb10 (=SSBX10), si10 (=SSSL10) added.
 
7
# 2001/12/21 tt8, tt9, tt10, tt12, ts10 (=SLTT10) added.
 
8
 
 
9
AWK=gawk
 
10
 
 
11
DATE="2003/01/01"
 
12
VERSION="1.2"
 
13
 
 
14
PARAMFILE="tipaprm.def"
 
15
 
 
16
FILES="tipa8 tipa9 tipa10 tipa12 tipa17 tipasl8 tipasl9 tipasl10 tipasl12 \
 
17
        tipabx8 tipabx9 tipabx10 tipabx12 tipass8 tipass9 tipass10 tipass12 \
 
18
        tipass17 tipab10 tipabs10 tipasb10 tipasi10 \
 
19
        tipatt8 tipatt9 tipatt10 tipatt12 tipats10"
 
20
 
 
21
for FNAME in $FILES
 
22
do
 
23
  case "$FNAME" in
 
24
    tipa8)    NUM=3; FID="TIPA";  FSIZE="8"; FDESC="Roman 8" ;;
 
25
    tipa9)    NUM=4; FID="TIPA";  FSIZE="9"; FDESC="Roman 9" ;;
 
26
    tipa10)   NUM=5; FID="TIPA";  FSIZE="10";FDESC="Roman 10" ;;
 
27
    tipa12)   NUM=6; FID="TIPA";  FSIZE="12";FDESC="Roman 12" ;;
 
28
    tipa17)   NUM=7; FID="TIPA";  FSIZE="17.28";FDESC="Roman 17.28" ;;
 
29
    tipasl8)  NUM=8; FID="TIPASL";FSIZE="8"; FDESC="Slanted Roman 8" ;;
 
30
    tipasl9)  NUM=9; FID="TIPASL";FSIZE="9"; FDESC="Slanted Roman 9" ;;
 
31
    tipasl10) NUM=10;FID="TIPASL";FSIZE="10";FDESC="Slanted Roman 10" ;;
 
32
    tipasl12) NUM=11;FID="TIPASL";FSIZE="12";FDESC="Slanted Roman 12" ;;
 
33
    tipabx8)  NUM=12;FID="TIPABX";FSIZE="8"; FDESC="Bold Extended Roman 8" ;;
 
34
    tipabx9)  NUM=13;FID="TIPABX";FSIZE="9"; FDESC="Bold Extended Roman 9" ;;
 
35
    tipabx10) NUM=14;FID="TIPABX";FSIZE="10";FDESC="Bold Extended Roman 10" ;;
 
36
    tipabx12) NUM=15;FID="TIPABX";FSIZE="12";FDESC="Bold Extended Roman 12" ;;
 
37
    tipass8)  NUM=16;FID="TIPASS";FSIZE="8"; FDESC="Sans Serif 8" ;;
 
38
    tipass9)  NUM=17;FID="TIPASS";FSIZE="9"; FDESC="Sans Serif 9" ;;
 
39
    tipass10) NUM=18;FID="TIPASS";FSIZE="10";FDESC="Sans Serif 10" ;;
 
40
    tipass12) NUM=19;FID="TIPASS";FSIZE="12";FDESC="Sans Serif 12" ;;
 
41
    tipass17) NUM=20;FID="TIPASS";FSIZE="17.28";FDESC="Sans Serif 17.28" ;;
 
42
    tipab10)  NUM=21;FID="TIPAB"; FSIZE="10";FDESC="Bold Roman 10" ;;
 
43
    tipabs10) NUM=22;FID="TIPABS";FSIZE="10";FDESC="Bold Extended Slanted Roman 10" ;;
 
44
    tipasb10) NUM=23;FID="TIPASB";FSIZE="10";FDESC="Sans Serif Bold Extended 10" ;;
 
45
    tipasi10) NUM=24;FID="TIPASI";FSIZE="10";FDESC="Sans Serif Slanted 10" ;;
 
46
    tipatt8)  NUM=25;FID="TIPATT";FSIZE="8"; FDESC="Typewriter Text 8" ;;
 
47
    tipatt9)  NUM=26;FID="TIPATT";FSIZE="9"; FDESC="Typewriter Text 9" ;;
 
48
    tipatt10) NUM=27;FID="TIPATT";FSIZE="10";FDESC="Typewriter Text 10" ;;
 
49
    tipatt12) NUM=28;FID="TIPATT";FSIZE="12";FDESC="Typewriter Text 12" ;;
 
50
    tipats10) NUM=29;FID="TIPATS";FSIZE="10";FDESC="Typewriter Text Slanted 10" ;;
 
51
  esac
 
52
 
 
53
  echo "% $FNAME.mf: TIPA $FDESC point parameter file" > $FNAME.mf
 
54
  echo "% Copyright 1996-2003 FUKUI Rei" >> $FNAME.mf
 
55
  echo "%" >> $FNAME.mf
 
56
  echo "% This program may be distributed and/or modified under the" >> $FNAME.mf
 
57
  echo "% conditions of the LaTeX Project Public License, either version 1.2" >> $FNAME.mf
 
58
  echo "% of this license or (at your option) any later version." >> $FNAME.mf
 
59
  echo "% The latest version of this license is in" >> $FNAME.mf
 
60
  echo "%   http://www.latex-project.org/lppl.txt" >> $FNAME.mf
 
61
  echo "% and version 1.2 or later is part of all distributions of LaTeX " >> $FNAME.mf
 
62
  echo "% version 1999/12/01 or later." >> $FNAME.mf
 
63
  echo "%" >> $FNAME.mf
 
64
  echo "% This program consists of all files listed in Manifest.txt." >> $FNAME.mf
 
65
  echo "%" >> $FNAME.mf
 
66
  echo "%   Version $VERSION $DATE" >> $FNAME.mf
 
67
  echo "%" >> $FNAME.mf
 
68
  echo '% This file is based on:' >> $FNAME.mf
 
69
  echo '%   Computer Modern font series by D. E. Knuth and' >> $FNAME.mf
 
70
  echo '%   TSIPA by KOBAYASHI Hajime, FUKUI Rei and SHIRAKAWA Shun.' >> $FNAME.mf
 
71
  echo '' >> $FNAME.mf
 
72
  echo 'if unknown cmbase: input cmbase fi' >> $FNAME.mf
 
73
  echo 'if unknown tipabase: input tipabase fi' >> $FNAME.mf
 
74
  echo '' >> $FNAME.mf
 
75
  echo "font_identifier:=\"$FID\"; font_size ${FSIZE}pt#;" >> $FNAME.mf
 
76
  echo '' >> $FNAME.mf
 
77
  echo 'Times_Compat:=false;' >> $FNAME.mf
 
78
  echo 'if Times_Compat: input tipatr fi' >> $FNAME.mf
 
79
  echo '' >> $FNAME.mf
 
80
  $AWK "{if (\$1 == \"p\") {
 
81
     if (\$$NUM == \"0\") print \$2 \"#:=\" \$$NUM \"pt#;\";\
 
82
     else print \$2 \"#:=\" \$$NUM \"/36pt#;\";\
 
83
   }\
 
84
   else if (\$1 == \"P\") print \$2 \"#:=\" \$$NUM \"pt#;\";\
 
85
   else if (\$1 == \"n\") print \$2 \":=\"  \$$NUM \";\";}" $PARAMFILE |\
 
86
  sed 's/SQ/sqrt/' | sed 's/SC12/sind 12\/cosd 12/' >> $FNAME.mf
 
87
  echo '' >> $FNAME.mf
 
88
  echo 'generate tipa    % switch to the driver file' >> $FNAME.mf
 
89
done
 
90
 
 
91
exit 0