Fix #5454: latex: Index has disappeared from PDF for Japanese documents

This commit is contained in:
Takeshi KOMIYA 2018-09-22 00:53:24 +09:00
parent 49c231ee34
commit 282282cc22
2 changed files with 4 additions and 5 deletions

View File

@ -32,6 +32,7 @@ Bugs fixed
* #5457: Fix TypeError in error message when override is prohibited * #5457: Fix TypeError in error message when override is prohibited
* #5453: PDF builds of 'howto' documents have no page numbers * #5453: PDF builds of 'howto' documents have no page numbers
* #5463: mathbase: math_role and MathDirective was disappeared in 1.8.0 * #5463: mathbase: math_role and MathDirective was disappeared in 1.8.0
* #5454: latex: Index has disappeared from PDF for Japanese documents
Testing Testing
-------- --------

View File

@ -5,12 +5,10 @@ sub mendex {
my ($source, $basename, $destination) = @_; my ($source, $basename, $destination) = @_;
my $dictfile = $basename . ".dic"; my $dictfile = $basename . ".dic";
unlink($destination); unlink($destination);
if (-f $dictfile) {
system("mendex", "-U", "-f", "-d", $dictfile, "-s", "python.ist", $source); system("mendex", "-U", "-f", "-d", $dictfile, "-s", "python.ist", $source);
if ($? > 0) { if ($? > 0) {
print("mendex exited with error code $? (ignored)\n"); print("mendex exited with error code $? (ignored)\n");
} }
}
if (!-e $destination) { if (!-e $destination) {
# create an empty .ind file if nothing # create an empty .ind file if nothing
open(FH, ">" . $destination); open(FH, ">" . $destination);