summaryrefslogtreecommitdiff
path: root/language/tibetan/sirlin/bin/ttex
diff options
context:
space:
mode:
Diffstat (limited to 'language/tibetan/sirlin/bin/ttex')
-rw-r--r--language/tibetan/sirlin/bin/ttex74
1 files changed, 74 insertions, 0 deletions
diff --git a/language/tibetan/sirlin/bin/ttex b/language/tibetan/sirlin/bin/ttex
new file mode 100644
index 0000000000..492ab5adf8
--- /dev/null
+++ b/language/tibetan/sirlin/bin/ttex
@@ -0,0 +1,74 @@
+#!/bin/sh
+#:
+#:shell script for tibetan pre-formatter for tex/latex
+#:
+#set -v
+
+P=/home/kalessin/sam/tex/fonts/tibet/latextibetan/src
+lflag=
+tflag=
+psflag=
+pslflag=
+psleflag=
+
+for name do
+ case ${name} in
+
+ -l) lflag=t ;;
+
+ -t) tflag=t ;;
+
+ -psle) psleflag=t ;;
+
+ -psl) pslflag=t ;;
+
+ -ps) psflag=t ;;
+
+ -i*) iflag=${name} ;;
+
+ *.tib) base=`basename ${name} .tib`
+ echo ${name}: ;
+ $P/tfilt ${name} >${base}.tex ;;
+
+# expects *.tib
+ *) base=${name}
+ name=${name}".tib" ;
+ echo ${name}: ;
+ $P/tfilt ${name} >${base}.tex ;;
+
+ esac
+done
+
+##echo ${lflag}
+
+if test -n "${lflag}"
+ then
+ echo latex ${base}.tex;
+ latex ${base}.tex ;
+ latex ${base}.tex ;
+fi
+
+if test -n "${tflag}"
+ then
+ echo tex ${base}.tex;
+ tex ${base}.tex ;
+fi
+
+if test -n "${psflag}"
+ then
+ echo dvips ${base}.dvi;
+ dvips ${base}.dvi ;
+fi
+
+if test -n "${pslflag}"
+ then
+ echo dvips -t landscape ${base}.dvi;
+ dvips -t landscape ${base}.dvi ;
+fi
+
+if test -n "${psleflag}"
+ then
+ echo dvips -t landscape -t legal ${base}.dvi;
+ dvips -t landscape -t legal ${base}.dvi ;
+fi
+