-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
1,609 additions
and
555 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
|
||
2024-10-27 Karl Berry <[email protected]> | ||
|
||
* Import 76.2. | ||
* Import 76.1. | ||
(version.ac): update. | ||
|
||
2023-12-22 Karl Berry <[email protected]> | ||
|
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 |
---|---|---|
@@ -1,3 +1,13 @@ | ||
2024-11-09 TANAKA Takuji <[email protected]> | ||
|
||
* tests/{makeindex,pprec}.test: Split test scripts. | ||
* tests/rangeA[123].ind: Remove unused files. | ||
* tests/nest.test, tests/nested3.{ist,idx,ind}, | ||
tests/toodeep.idx: Add new tests for nested depth. | ||
* tests/makeindex.test, tests/tort{,W}.idx, tests/ok-tort.ind: | ||
Add new tests for error/warning. | ||
* Makefile.am: Adjust. | ||
|
||
2023-08-27 TANAKA Takuji <[email protected]> | ||
|
||
* tests/makeindex.test: Make easier to test on Windows. | ||
|
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#! /bin/sh -vx | ||
# $Id: makeindex.test 68083 2023-08-27 14:18:16Z takuji $ | ||
# $Id: makeindex.test 72804 2024-11-09 10:39:22Z takuji $ | ||
# Copyright 2024 TANAKA Takuji <[email protected]> | ||
# Copyright 2017 Karl Berry <[email protected]> | ||
# Copyright 2012 Peter Breitenlohner <[email protected]> | ||
# You may freely use, modify and/or distribute this file. | ||
|
@@ -11,7 +12,7 @@ _makeindex=$BinDir/makeindex$ExeExt | |
TEXMFCNF=$srcdir/../kpathsea | ||
export TEXMFCNF | ||
|
||
rm -f sample.* range*.* pprec*.* romalp*.* | ||
rm -f sample.* tort*.* | ||
rc=0 | ||
|
||
$_makeindex $srcdir/tests/sample.idx -o sample.ind1 -t sample.ilg1 \ | ||
|
@@ -20,58 +21,11 @@ $_makeindex $srcdir/tests/sample.idx -o sample.ind1 -t sample.ilg1 \ | |
cat $srcdir/tests/sample.idx | $_makeindex >sample.ind2 2>sample.ilg2 \ | ||
&& diff $srcdir/tests/sample.ind sample.ind2 || rc=2 | ||
|
||
$_makeindex $srcdir/tests/tort.idx -o tort.ind1 -t tort.ilg1 \ | ||
&& diff $srcdir/tests/ok-tort.ind tort.ind1 || rc=20 | ||
|
||
# test for range suffix_2p, suffix_3p, suffix_mp | ||
|
||
for num in 1 2 3; do | ||
$_makeindex -s $srcdir/tests/range$num.ist $srcdir/tests/range.idx \ | ||
-o range$num.ind1 -t range$num.ilg \ | ||
&& diff $srcdir/tests/range$num.ind range$num.ind1 || rc=3 | ||
done | ||
|
||
|
||
# test for page_precedence and suffix_3p | ||
|
||
sfx=A | ||
for num in 0 1 2; do | ||
$_makeindex -s $srcdir/tests/pprec$num.ist $srcdir/tests/pprec$sfx.idx \ | ||
-o pprec$sfx-$num.ind1 -t pprec$sfx-$num.ilg \ | ||
&& diff $srcdir/tests/pprec$sfx-$num.ind pprec$sfx-$num.ind1 || rc=4 | ||
done | ||
sfx=B | ||
for num in 0 3 4; do | ||
$_makeindex -s $srcdir/tests/pprec$num.ist $srcdir/tests/pprec$sfx.idx \ | ||
-o pprec$sfx-$num.ind1 -t pprec$sfx-$num.ilg \ | ||
&& diff $srcdir/tests/pprec$sfx-$num.ind pprec$sfx-$num.ind1 || rc=5 | ||
done | ||
|
||
|
||
# test for page_precedence, heuristic detection if a letter is Roman or Alpha | ||
|
||
sfx=A | ||
for num in 5 6; do | ||
$_makeindex -s $srcdir/tests/pprec$num.ist $srcdir/tests/romalp$sfx.idx \ | ||
-o romalp$sfx-$num.ind1 -t romalp$sfx-$num.ilg \ | ||
&& diff $srcdir/tests/romalp$sfx-$num.ind romalp$sfx-$num.ind1 || rc=6 | ||
done | ||
sfx=B | ||
for num in 5 6 7; do | ||
$_makeindex -s $srcdir/tests/pprec$num.ist $srcdir/tests/romalp$sfx.idx \ | ||
-o romalp$sfx-$num.ind1 -t romalp$sfx-$num.ilg \ | ||
&& diff $srcdir/tests/romalp$sfx-$num.ind romalp$sfx-$num.ind1 || rc=7 | ||
done | ||
sfx=C | ||
for num in 5; do | ||
$_makeindex -s $srcdir/tests/pprec$num.ist $srcdir/tests/romalp$sfx.idx \ | ||
-o romalp$sfx-$num.ind1 -t romalp$sfx-$num.ilg \ | ||
&& diff $srcdir/tests/romalp$sfx-$num.ind romalp$sfx-$num.ind1 || rc=8 | ||
done | ||
sfx=D | ||
for num in 5 6 7; do | ||
$_makeindex -s $srcdir/tests/pprec$num.ist $srcdir/tests/romalp$sfx.idx \ | ||
-o romalp$sfx-$num.ind1 -t romalp$sfx-$num.ilg \ | ||
&& diff $srcdir/tests/romalp$sfx-$num.ind romalp$sfx-$num.ind1 || rc=9 | ||
done | ||
$_makeindex $srcdir/tests/tortW.idx -o tortW.ind1 -t tortW.ilg1 \ | ||
&& diff $srcdir/tests/ok-tort.ind tortW.ind1 || rc=21 | ||
|
||
|
||
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,26 @@ | ||
#! /bin/sh -vx | ||
# $Id$ | ||
# Copyright 2024 TANAKA Takuji <[email protected]> | ||
# Copyright 2017-2022 Karl Berry <[email protected]> | ||
# Copyright 2013 Peter Breitenlohner <[email protected]> | ||
# You may freely use, modify and/or distribute this file. | ||
|
||
BinDir=${BinDir:-.} | ||
ExeExt=${ExeExt:-} | ||
_makeindex=$BinDir/makeindex$ExeExt | ||
|
||
TEXMFCNF=$srcdir/../kpathsea | ||
export TEXMFCNF | ||
|
||
rm -f nested*.* toodeep*.* | ||
rc=0 | ||
|
||
# test for nested items and delimiters | ||
$_makeindex -s $srcdir/tests/nested3.ist -o nested3.ind1 -t nested3.ilg $srcdir/tests/nested3.idx \ | ||
&& diff $srcdir/tests/nested3.ind nested3.ind1 || rc=30 | ||
|
||
# test for too deep indexentry | ||
$_makeindex $srcdir/tests/toodeep.idx -o toodeep.ind1 -t toodeep.ilg | ||
|
||
|
||
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,19 @@ | ||
\indexentry{xa}{1} | ||
\indexentry{xb}{1} | ||
\indexentry{xc}{1} | ||
\indexentry{ya!x}{1} | ||
\indexentry{ya!y}{1} | ||
\indexentry{ya!z}{1} | ||
\indexentry{yb!x!x}{1} | ||
\indexentry{yb!x!y}{1} | ||
\indexentry{yb!x!z}{1} | ||
\indexentry{a}{1} | ||
\indexentry{a!a}{2} | ||
\indexentry{a!a!a}{3} | ||
\indexentry{ab}{6} | ||
\indexentry{ad!a}{8} | ||
\indexentry{ad!b}{9} | ||
\indexentry{ae!a!a}{11} | ||
\indexentry{ae!b!b}{12} | ||
\indexentry{pa}{21} | ||
\indexentry{pa!qa!ra}{22} |
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,40 @@ | ||
\begin{theindex} | ||
|
||
\item_0 a(0) 1 | ||
\item_01 a(1) 2 | ||
\item_12 a(2) 3 | ||
\item_0 ab(0) 6 | ||
\item_0 ad | ||
\item_x1 a(1) 8 | ||
\item_1 b(1) 9 | ||
\item_0 ae | ||
\item_x1 a | ||
\item_x2 a(2) 11 | ||
\item_1 b | ||
\item_x2 b(2) 12 | ||
|
||
\indexspace | ||
|
||
\item_0 pa(0) 21 | ||
\item_01 qa | ||
\item_x2 ra(2) 22 | ||
|
||
\indexspace | ||
|
||
\item_0 xa(0) 1 | ||
\item_0 xb(0) 1 | ||
\item_0 xc(0) 1 | ||
|
||
\indexspace | ||
|
||
\item_0 ya | ||
\item_x1 x(1) 1 | ||
\item_1 y(1) 1 | ||
\item_1 z(1) 1 | ||
\item_0 yb | ||
\item_x1 x | ||
\item_x2 x(2) 1 | ||
\item_2 y(2) 1 | ||
\item_2 z(2) 1 | ||
|
||
\end{theindex} |
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,10 @@ | ||
item_0 "\n \\item_0 " | ||
item_1 "\n \\item_1 " | ||
item_2 "\n \\item_2 " | ||
item_01 "\n \\item_01 " | ||
item_12 "\n \\item_12 " | ||
item_x1 "\n \\item_x1 " | ||
item_x2 "\n \\item_x2 " | ||
delim_0 "(0) " | ||
delim_1 "(1) " | ||
delim_2 "(2) " |
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,24 @@ | ||
\begin{theindex} | ||
|
||
\item bad-encaps, \ii{5--7} | ||
|
||
\indexspace | ||
|
||
\item implicit-range, 10--12 | ||
\item incons-encaps, \ii{6}, 5--7 | ||
\item incons-encaps2, \ii{5}, 5 | ||
\item incons-entries, 6, \xx{6} | ||
|
||
\indexspace | ||
|
||
\item missing(, 6 | ||
\item missing), 6 | ||
\item mixed-range, i, 6 | ||
\item mixed-range1, i--iv, 3--6 | ||
\item mixed-range2, \xx{ii}, i--ii, \yy{3--6} | ||
|
||
\indexspace | ||
|
||
\item ok-encaps, \ii{5--7} | ||
|
||
\end{theindex} |
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,71 @@ | ||
#! /bin/sh -vx | ||
# $Id: pprec.test 72804 2024-11-09 10:39:22Z takuji $ | ||
# Copyright 2021-2024 TANAKA Takuji <[email protected]> | ||
# Copyright 2017 Karl Berry <[email protected]> | ||
# Copyright 2012 Peter Breitenlohner <[email protected]> | ||
# You may freely use, modify and/or distribute this file. | ||
|
||
BinDir=${BinDir:-.} | ||
ExeExt=${ExeExt:-} | ||
_makeindex=$BinDir/makeindex$ExeExt | ||
|
||
TEXMFCNF=$srcdir/../kpathsea | ||
export TEXMFCNF | ||
|
||
rm -f range*.* pprec*.* romalp*.* | ||
rc=0 | ||
|
||
# test for range suffix_2p, suffix_3p, suffix_mp | ||
|
||
for num in 1 2 3; do | ||
$_makeindex -s $srcdir/tests/range$num.ist $srcdir/tests/range.idx \ | ||
-o range$num.ind1 -t range$num.ilg \ | ||
&& diff $srcdir/tests/range$num.ind range$num.ind1 || rc=6 | ||
done | ||
|
||
|
||
# test for page_precedence and suffix_3p | ||
|
||
sfx=A | ||
for num in 0 1 2; do | ||
$_makeindex -s $srcdir/tests/pprec$num.ist $srcdir/tests/pprec$sfx.idx \ | ||
-o pprec$sfx-$num.ind1 -t pprec$sfx-$num.ilg \ | ||
&& diff $srcdir/tests/pprec$sfx-$num.ind pprec$sfx-$num.ind1 || rc=7 | ||
done | ||
sfx=B | ||
for num in 0 3 4; do | ||
$_makeindex -s $srcdir/tests/pprec$num.ist $srcdir/tests/pprec$sfx.idx \ | ||
-o pprec$sfx-$num.ind1 -t pprec$sfx-$num.ilg \ | ||
&& diff $srcdir/tests/pprec$sfx-$num.ind pprec$sfx-$num.ind1 || rc=8 | ||
done | ||
|
||
|
||
# test for page_precedence, heuristic detection if a letter is Roman or Alpha | ||
|
||
sfx=A | ||
for num in 5 6; do | ||
$_makeindex -s $srcdir/tests/pprec$num.ist $srcdir/tests/romalp$sfx.idx \ | ||
-o romalp$sfx-$num.ind1 -t romalp$sfx-$num.ilg \ | ||
&& diff $srcdir/tests/romalp$sfx-$num.ind romalp$sfx-$num.ind1 || rc=9 | ||
done | ||
sfx=B | ||
for num in 5 6 7; do | ||
$_makeindex -s $srcdir/tests/pprec$num.ist $srcdir/tests/romalp$sfx.idx \ | ||
-o romalp$sfx-$num.ind1 -t romalp$sfx-$num.ilg \ | ||
&& diff $srcdir/tests/romalp$sfx-$num.ind romalp$sfx-$num.ind1 || rc=10 | ||
done | ||
sfx=C | ||
for num in 5; do | ||
$_makeindex -s $srcdir/tests/pprec$num.ist $srcdir/tests/romalp$sfx.idx \ | ||
-o romalp$sfx-$num.ind1 -t romalp$sfx-$num.ilg \ | ||
&& diff $srcdir/tests/romalp$sfx-$num.ind romalp$sfx-$num.ind1 || rc=11 | ||
done | ||
sfx=D | ||
for num in 5 6 7; do | ||
$_makeindex -s $srcdir/tests/pprec$num.ist $srcdir/tests/romalp$sfx.idx \ | ||
-o romalp$sfx-$num.ind1 -t romalp$sfx-$num.ilg \ | ||
&& diff $srcdir/tests/romalp$sfx-$num.ind romalp$sfx-$num.ind1 || rc=12 | ||
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,6 @@ | ||
\indexentry{a}{1} | ||
\indexentry{a!a}{2} | ||
\indexentry{a!a!a}{3} | ||
\indexentry{a!a!a!a}{4} | ||
\indexentry{a!a!a!a!a}{5} | ||
\indexentry{a!a!a!a!a!a}{6} |
Oops, something went wrong.