MiKteX で xindy を使用する (tex2xindy は壊れているようです)

MiKteX で xindy を使用する (tex2xindy は壊れているようです)

私は、xindyユーティリティ (v. 2.5.1、2022-03-29 にパッケージ化) をimakeidxパッケージで使用しようと必死になっています。 (ちなみに、私の目的は XeLaTeX を使用することで、非ラテン文字も使用したインデックスをいくつか作成することを目的としています)。

編集:TeX.SE や他のフォーラム上の関連する質問はすべて時代遅れであり、提案された解決策は私には役に立ちません。

LaTeX 側は、(非常に)最小限のケースではうまく機能します。

\documentclass{article}
\usepackage{fontspec} % with XeLaTeX
\usepackage[xindy]{imakeidx}
\makeindex[program=texindy,options= -L french -C utf8]
\begin{document}
A \TeX\index{a} test\index{b}

\printindex
\end{document}

期待どおりの.idxファイルを取得します。内容は次のとおりです:

\indexentry{a}{1}
\indexentry{b}{1}

問題は、適切なファイルが作成されないtexindyまたはを実行しているときに発生し、取得できる最大値は空のインデックスです。xindy.idn

コマンド :

`texindy.exe -d script -d keep_tmpfiles -d level=3 -C utf8 -L french   -I latex -t testxindy.ilg testxindy.idx`

印刷する以外は何もしません:

Calling xindy as: C:/Program Files/MiKTeX/scripts/xindy/xindy.pl -d script -d keep_tmpfiles -d level=2 -t testxindy.ilg -L french -C utf8 -M tex/inputenc/utf8 -M texindy -M page-ranges -M word-order -I latex testxindy.idx

このコマンドを実行しても (space_in_path の問題をさまざまな方法で先頭に追加して修正したかどうかに関係なくperl) 機能しません。ただし、xindy.exe上記の引用符付きの引数を使用して呼び出すと、次のようになります。

xindy.exe -d script -d keep_tmpfiles -d level=2 -C utf8 -t testxindy.ilg -L french  -M texindy -M page-ranges -M word-order -I latex -t testxindy.ilg testxindy.idx

一連の情報が表示されますが、関連する行は次のとおりです。

concatenated xindy input file: "FXFmfaN5Gb"
Running filter: "C:/Program Files/MiKTeX/scripts/xindy/../../miktex/bin/x64/internal/tex2xindy" <"FXFmfaN5Gb" >"2iExgBvNHa"
filtered xindy input file: "2iExgBvNHa"
Found language module C:/Program Files/MiKTeX/xindy/modules/lang/french/utf8-lang.xdy
xindy startup file: "wYayV891eS"
modules directory: C:/Program Files/MiKTeX/xindy/modules.
command: C:/Program Files/MiKTeX/scripts/xindy/../../miktex/bin/x64/internal/xindy-lisp.exe -M C:/Program Files/MiKTeX/scripts/xindy/../../miktex/bin/x64/internal/xindy.mem -E iso-8859-1 "wYayV891eS"
Opening logfile "testxindy.ilg" (done)
Reading indexstyle...
Loading module "lKuqmNCawW"...
... *(other modules)*
Finished reading indexstyle.
Finalizing indexstyle... (done)

Reading raw-index "2iExgBvNHa"...
ERROR: LOAD: A file with name 2iExgBvNHa does not exist

私の結論はユーティリティtex2xindy.exeが動作しません。これを修正するにはどうすればいいですか?

コマンドのいくつかのバリエーション、または Perl スクリプトの編集バージョンを使用すると、一時的な「2iExgBvNHa」ファイルが作成されますが、空のままになり、.idn次の内容のみを含むファイルが生成されます。

\begin{theindex}
  \providecommand*\lettergroupDefault[1]{}
  \providecommand*\lettergroup[1]{%
      \par\textbf{#1}\par
      \nopagebreak
  }  
\end{theindex}

私は最新の MiKTeX ディストリビューションを Windows 10(x64) で実行しています。`xindy` コンポーネントは次の場所にあります:
C:\Program Files\MiKTeX\scripts\xindy : the perl scripts texindy.pl, xindy.pl 
C:\Program Files\MiKTeX\miktex\bin\x64 : texindy.exe, xindy.exe, apparently wrappers to the formers
C:\Program Files\MiKTeX\miktex\bin\x64\internal : tex2xindy.exe, xindy.mem, xindy-lisp.exe
C:\Program Files\MiKTeX\xindy\modules : the folders of modules

そして私はコンパクトな perl.exe (v5) 実行ファイル、パス内にあります。

関連情報