diff options
author | Karl Berry <karl@freefriends.org> | 2021-02-25 19:22:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-02-25 19:22:25 +0000 |
commit | ad547a6b5986815fda458221149728d9d9ab1d87 (patch) | |
tree | 16296910eb3eca724371474ea9aea3994dc69614 /Build/source/texk/upmendex/tests | |
parent | 947b43de3dd21d58ccc2ffadefc4441ea1c2a813 (diff) |
restore Build,TODO from r57911
git-svn-id: svn://tug.org/texlive/trunk@57915 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/upmendex/tests')
-rw-r--r-- | Build/source/texk/upmendex/tests/foo.idx | 3 | ||||
-rw-r--r-- | Build/source/texk/upmendex/tests/foo.ind | 5 | ||||
-rw-r--r-- | Build/source/texk/upmendex/tests/uni.dict | 3 | ||||
-rw-r--r-- | Build/source/texk/upmendex/tests/uni.idx | 8 | ||||
-rw-r--r-- | Build/source/texk/upmendex/tests/uni.ind | 25 | ||||
-rw-r--r-- | Build/source/texk/upmendex/tests/uni.ist | 10 | ||||
-rwxr-xr-x | Build/source/texk/upmendex/tests/upmendex.test | 26 |
7 files changed, 80 insertions, 0 deletions
diff --git a/Build/source/texk/upmendex/tests/foo.idx b/Build/source/texk/upmendex/tests/foo.idx new file mode 100644 index 00000000000..e65ddf1f183 --- /dev/null +++ b/Build/source/texk/upmendex/tests/foo.idx @@ -0,0 +1,3 @@ +\indexentry{foo|(}{1} +\indexentry{foo|mac}{1} +\indexentry{foo|)}{1} diff --git a/Build/source/texk/upmendex/tests/foo.ind b/Build/source/texk/upmendex/tests/foo.ind new file mode 100644 index 00000000000..c07cff36e6a --- /dev/null +++ b/Build/source/texk/upmendex/tests/foo.ind @@ -0,0 +1,5 @@ +\begin{theindex} + + \item foo, \mac{1}, 1 + +\end{theindex} diff --git a/Build/source/texk/upmendex/tests/uni.dict b/Build/source/texk/upmendex/tests/uni.dict new file mode 100644 index 00000000000..36343dac17d --- /dev/null +++ b/Build/source/texk/upmendex/tests/uni.dict @@ -0,0 +1,3 @@ +% -*- coding: utf-8 -*- +𠮟咤 しった +激励 げきれい diff --git a/Build/source/texk/upmendex/tests/uni.idx b/Build/source/texk/upmendex/tests/uni.idx new file mode 100644 index 00000000000..57b4710309c --- /dev/null +++ b/Build/source/texk/upmendex/tests/uni.idx @@ -0,0 +1,8 @@ +\indexentry{もりおうがい@森鷗外}{1} +\indexentry{さとみとん@里見弴|see{あ}}{1} +\indexentry{𠮟咤激励}{1} +\indexentry{Mendex}{1} +\indexentry{Mendex!のインストール}{1} +\indexentry{Mendex!のつかいかた@---の使い方}{1} +\indexentry{Mendex!のつかいかた@---の使い方!にゅうもんへん@---入門編}{1} +\indexentry{Mendex!のつかいかた@---の使い方!おうようへん@---応用編}{1} diff --git a/Build/source/texk/upmendex/tests/uni.ind b/Build/source/texk/upmendex/tests/uni.ind new file mode 100644 index 00000000000..61afdd7c96b --- /dev/null +++ b/Build/source/texk/upmendex/tests/uni.ind @@ -0,0 +1,25 @@ +\begin{theindex} + +\centerline{\bfseries ◆◆◆ M ◆◆◆}\par\nobreak + \item Mendex\leaders\hbox{$\cdot$}\hfill 1 + \subitem のインストール\leaders\hbox{$\cdot$}\hfill 1 + \subitem ---の使い方\leaders\hbox{$\cdot$}\hfill 1 + \subsubitem ---応用編\leaders\hbox{$\cdot$}\hfill 1 + \subsubitem ---入門編\leaders\hbox{$\cdot$}\hfill 1 + + \indexspace + +\centerline{\bfseries ◆◆◆ サ ◆◆◆}\par\nobreak + \item 里見弴\leaders\hbox{$\cdot$}\hfill \see{あ}{1} + + \indexspace + +\centerline{\bfseries ◆◆◆ シ ◆◆◆}\par\nobreak + \item 𠮟咤激励\leaders\hbox{$\cdot$}\hfill 1 + + \indexspace + +\centerline{\bfseries ◆◆◆ モ ◆◆◆}\par\nobreak + \item 森鷗外\leaders\hbox{$\cdot$}\hfill 1 + +\end{theindex} diff --git a/Build/source/texk/upmendex/tests/uni.ist b/Build/source/texk/upmendex/tests/uni.ist new file mode 100644 index 00000000000..095533d1fb3 --- /dev/null +++ b/Build/source/texk/upmendex/tests/uni.ist @@ -0,0 +1,10 @@ +% -*- coding: utf-8 -*- + +delim_0 "\\leaders\\hbox{$\\cdot$}\\hfill " +delim_1 "\\leaders\\hbox{$\\cdot$}\\hfill " +delim_2 "\\leaders\\hbox{$\\cdot$}\\hfill " + +lethead_flag 1 +lethead_prefix "\n\\centerline{\\bfseries ◆◆◆ " +lethead_suffix " ◆◆◆}\\par\\nobreak" + diff --git a/Build/source/texk/upmendex/tests/upmendex.test b/Build/source/texk/upmendex/tests/upmendex.test new file mode 100755 index 00000000000..da75821d10e --- /dev/null +++ b/Build/source/texk/upmendex/tests/upmendex.test @@ -0,0 +1,26 @@ +#! /bin/sh -vx +# $Id$ +# Copyright 2017 Karl Berry <tex-live@tug.org> +# Copyright 2013 Peter Breitenlohner <tex-live@tug.org> +# You may freely use, modify and/or distribute this file. + +TEXMFCNF=$srcdir/../kpathsea +export TEXMFCNF + +rm -f foo.* + +./upmendex $srcdir/tests/foo.idx -o foo.ind1 -t foo.ilg1 \ + && diff $srcdir/tests/foo.ind foo.ind1 || exit 1 + +cat $srcdir/tests/foo.idx | ./upmendex >foo.ind2 2>foo.ilg2 \ + && diff $srcdir/tests/foo.ind foo.ind2 || exit 1 + +./upmendex -d $srcdir/tests/uni.dict -s $srcdir/tests/uni.ist \ + $srcdir/tests/uni.idx -o uni.ind1 -t uni.ilg1 \ + && diff $srcdir/tests/uni.ind uni.ind1 || exit 1 + +cat $srcdir/tests/uni.idx | \ + ./upmendex -d $srcdir/tests/uni.dict -s $srcdir/tests/uni.ist \ + >uni.ind2 2>uni.ilg2 \ + && diff $srcdir/tests/uni.ind uni.ind2 || exit 1 + |