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

« back to all changes in this revision

Viewing changes to mf/genxipa.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
# genxipa.sh --- a shell script for producing TIPA parameter files.
 
4
 
5
# 1996/06/24 first version
 
6
#
 
7
 
 
8
AWK=gawk
 
9
 
 
10
DATE="2003/01/01"
 
11
VERSION="1.2"
 
12
 
 
13
PARAMFILE="xipaprm.def"
 
14
 
 
15
FILES="xipa10 xipasl10 xipab10 xipabs10 xipass10 xipasi10 xipasb10"
 
16
 
 
17
for FNAME in $FILES
 
18
do
 
19
  case "$FNAME" in
 
20
    xipa10)   NUM=3;FID="XIPA";  FSIZE="10";FDESC="Roman 10" ;;
 
21
    xipasl10) NUM=4;FID="XIPASL";FSIZE="10";FDESC="Slanted Roman 10" ;;
 
22
    xipab10)  NUM=5;FID="XIPAB"; FSIZE="10";FDESC="Bold Roman 10" ;;
 
23
    xipabs10) NUM=6;FID="XIPABS";FSIZE="10";FDESC="Bold Slanted Roman 10" ;;
 
24
    xipass10) NUM=7;FID="XIPASS";FSIZE="10";FDESC="Sans Serif 10" ;;
 
25
    xipasi10) NUM=8;FID="XIPASI";FSIZE="10";FDESC="Sans Serif Slanted 10" ;;
 
26
    xipasb10) NUM=9;FID="XIPASB";FSIZE="10";FDESC="Sans Serif Bold 10" ;;
 
27
  esac
 
28
 
 
29
  echo "% $FNAME.mf: XIPA $FDESC point parameter file" > $FNAME.mf
 
30
  echo "% Copyright 1996-2003 FUKUI Rei" >> $FNAME.mf
 
31
  echo "%" >> $FNAME.mf
 
32
  echo "% This program may be distributed and/or modified under the" >> $FNAME.mf
 
33
  echo "% conditions of the LaTeX Project Public License, either version 1.2" >> $FNAME.mf
 
34
  echo "% of this license or (at your option) any later version." >> $FNAME.mf
 
35
  echo "% The latest version of this license is in" >> $FNAME.mf
 
36
  echo "%   http://www.latex-project.org/lppl.txt" >> $FNAME.mf
 
37
  echo "% and version 1.2 or later is part of all distributions of LaTeX " >> $FNAME.mf
 
38
  echo "% version 1999/12/01 or later." >> $FNAME.mf
 
39
  echo "%" >> $FNAME.mf
 
40
  echo "% This program consists of all files listed in Manifest.txt." >> $FNAME.mf
 
41
  echo "%" >> $FNAME.mf
 
42
  echo "%   Version $VERSION $DATE FUKUI Rei" >> $FNAME.mf
 
43
  echo "%" >> $FNAME.mf
 
44
  echo '% This file is based on:' >> $FNAME.mf
 
45
  echo '%   Computer Modern font series by D. E. Knuth and' >> $FNAME.mf
 
46
  echo '%   TSIPA by KOBAYASHI Hajime, FUKUI Rei and SHIRAKAWA Shun.' >> $FNAME.mf
 
47
  echo '' >> $FNAME.mf
 
48
  echo 'if unknown cmbase: input cmbase fi' >> $FNAME.mf
 
49
  echo 'if unknown tipabase: input tipabase fi' >> $FNAME.mf
 
50
  echo '' >> $FNAME.mf
 
51
  echo "font_identifier:=\"$FID\"; font_size ${FSIZE}pt#;" >> $FNAME.mf
 
52
  echo '' >> $FNAME.mf
 
53
  echo 'Times_Compat:=true;' >> $FNAME.mf
 
54
  echo 'if Times_Compat: input tipatr fi' >> $FNAME.mf
 
55
  echo '' >> $FNAME.mf
 
56
  $AWK "{if (\$1 == \"p\") {
 
57
     if (\$$NUM == \"0\") print \$2 \"#:=\" \$$NUM \"pt#;\";\
 
58
     else print \$2 \"#:=\" \$$NUM \"/36pt#;\";\
 
59
   }\
 
60
   else if (\$1 == \"P\") print \$2 \"#:=\" \$$NUM \"pt#;\";\
 
61
   else if (\$1 == \"n\") print \$2 \":=\"  \$$NUM \";\";}" $PARAMFILE |\
 
62
  sed 's/SQ/sqrt/' >> $FNAME.mf
 
63
  echo '' >> $FNAME.mf
 
64
  echo 'generate tipa    % switch to the driver file' >> $FNAME.mf
 
65
done
 
66
 
 
67
exit 0