-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(u)ptex-{euc,sjis}: test for Japanese filename (#136)
- Loading branch information
Showing
8 changed files
with
76 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#! /bin/sh -vx | ||
# | ||
# Copyright 2022 Japanese TeX Development Community <[email protected]> | ||
# You may freely use, modify and/or distribute this file. | ||
|
||
test -d ptests || mkdir -p ptests | ||
rm -f fn*.* | ||
|
||
rc=0 | ||
|
||
TEXMFCNF=$srcdir/../kpathsea | ||
TEXINPUTS=$srcdir/ptexdir/tests:. | ||
export TEXMFCNF TEXINPUTS | ||
|
||
for enc in euc sjis; do | ||
for doc in fn fnさざ波; do | ||
./ptex -ini -interaction nonstopmode -kanji=utf8 --kanji-internal=$enc $doc.tex >ptests/$doc-$enc-term.log || $rc=1 | ||
diff $doc.txt $srcdir/ptexdir/tests/fn.txt || $rc=2 | ||
done | ||
done | ||
|
||
exit $rc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
% fn.tex | ||
% UTF-8 encoding | ||
\catcode`\{=1 | ||
\catcode`\}=2 | ||
|
||
\immediate\write16{JOB[\jobname] :: We are in fn.tex} | ||
|
||
\immediate\openout0=\jobname.txt | ||
\immediate\write0{abc αβγ абв あア※¥ 天地人} | ||
\immediate\closeout0 | ||
|
||
\input fnさざ波.tex | ||
|
||
\relax\end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
abc αβγ абв あア※¥ 天地人 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
% fnさざ波.tex | ||
% UTF-8 encoding | ||
\catcode`\{=1 | ||
\catcode`\}=2 | ||
|
||
\immediate\write16{JOB[\jobname] :: We are in fnさざ波.tex} | ||
|
||
\immediate\openout0=\jobname.txt | ||
\immediate\write0{abc αβγ абв あア※¥ 天地人} | ||
\immediate\closeout0 | ||
|
||
\relax\end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#! /bin/sh -vx | ||
# | ||
# Copyright 2022 Japanese TeX Development Community <[email protected]> | ||
# You may freely use, modify and/or distribute this file. | ||
|
||
test -d uptests || mkdir -p uptests | ||
rm -f fn*.* | ||
|
||
rc=0 | ||
|
||
TEXMFCNF=$srcdir/../kpathsea | ||
TEXINPUTS=$srcdir/ptexdir/tests:. | ||
export TEXMFCNF TEXINPUTS | ||
|
||
for enc in euc sjis uptex; do | ||
for doc in fn fnさざ波; do | ||
./uptex -ini -interaction nonstopmode -kanji=utf8 --kanji-internal=$enc $doc.tex >uptests/$doc-$enc-term.log || $rc=1 | ||
diff $doc.txt $srcdir/ptexdir/tests/fn.txt || $rc=2 | ||
done | ||
done | ||
|
||
exit $rc |