summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/ptexdir/yokotate.test
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/ptexdir/yokotate.test')
-rwxr-xr-xBuild/source/texk/web2c/ptexdir/yokotate.test30
1 files changed, 27 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/ptexdir/yokotate.test b/Build/source/texk/web2c/ptexdir/yokotate.test
index 7429c797833..380fa4cc623 100755
--- a/Build/source/texk/web2c/ptexdir/yokotate.test
+++ b/Build/source/texk/web2c/ptexdir/yokotate.test
@@ -6,6 +6,9 @@
test -d ptests || mkdir -p ptests
+TEXMFCNF=$srcdir/../kpathsea
+export TEXMFCNF
+
# Test inputs
testdir=$srcdir/ptexdir/tests
@@ -15,9 +18,30 @@ for font in min10 tmin10; do
./ppltotf -verbose $testdir/$font.pl ptests/x$font.tfm && \
cmp $testdir/$font.tfm ptests/x$font.tfm && echo || exit 1
- TEXMFCNF=$srcdir/../kpathsea \
- ./ptftopl -charcode-format octal -verbose $testdir/$font.tfm ptests/x$font.pl && \
- diff $testdir/$font.pl ptests/x$font.pl && echo || exit 1
+ ./ptftopl -charcode-format octal -verbose $testdir/$font.tfm ptests/x$font.pl && \
+ diff $testdir/$font.pl ptests/x$font.pl && echo || exit 2
done
+
+# Testing pPLtoTF/pTFtoPL for character range & encoding.
+for font in chcode; do
+
+ ./ppltotf $testdir/$font.pl ptests/x$font.tfm && \
+ cmp $testdir/$font.tfm ptests/x$font.tfm && echo || exit 3
+
+ ./ptftopl -charcode-format octal $testdir/$font.tfm ptests/x$font.pl && \
+ diff $testdir/$font.pl ptests/x$font.pl && echo || exit 4
+
+for enc in utf8 euc sjis jis; do
+
+ ./ppltotf -kanji=$enc $testdir/$font-$enc.pl ptests/x$font-$enc.tfm && \
+ cmp $testdir/$font.tfm ptests/x$font-$enc.tfm && echo || exit 5
+
+ ./ptftopl -kanji=$enc $testdir/$font.tfm ptests/x$font-$enc.pl && \
+ if [ $enc = utf8 ]; then \
+ sed -i".bak" -e "y/―~∥-¢£¬/—〜‖−¢£¬/" ptests/x$font-$enc.pl; fi && \
+ diff $testdir/$font-$enc.pl ptests/x$font-$enc.pl && echo || exit 6
+
+done
+done