AMC 1.3.0 cannot handle Japanese

Added by shin uno over 6 years ago

Hi all

I've been used Auto Multiple Choice version 1.2.1-3 (on debian GNU/Linux 8.9 jessie/old-stable).
It works fine (including Japanese characteristics). It's a great software.

However, my AMC version 1.3.0 cannot handle Japanese.

When I compile provided sample file, simple.tex (Japanese version),
AMC 1.3.0 shows following error.
Wide character in print at /usr/lib/AMC/perl/AMC-prepare.pl line 211.
Wide character in print at /usr/lib/AMC/perl/AMC-prepare.pl line 623.

Package ucs Error: Unknown Unicode character 12486 = U+30C6,...
Package ucs Error: Unknown Unicode character 12473 = U+30B9,...
Package ucs Error: Unknown Unicode character 12488 = U+30C8,...
.......

Unlike AMC, my latex system can compile/display the same file correctly.
$ platex simple.tex
$ dvipdfmx simple.dvi
(These commands work fine and make Japanese pdf file.)

English version of simple.tex can be compiled on AMC v1.3.0, but following error message is shown. *** unhandled exception in callback: *** Wide character at /usr/lib/x86_64-linux-gnu/perl/5.26/Encode.pm line 212. *** ignoring at /usr/lib/AMC/perl/AMC-gui.pl line 7074.

When I open my original file (it workd on amc version 1.2.1-3), amc 1.3.0 shows following message
(and mouse cursor continues rounding). *** unhandled exception in callback: *** Wide character at /usr/lib/x86_64-linux-gnu/perl/5.26/Encode.pm line 212. *** ignoring at /usr/lib/AMC/perl/AMC-gui.pl line 7074.
If I push update button, amc v1.3.0 interrupts compiling with following message. *** unhandled exception in callback: *** Can't call method "n_pages_transaction" on an undefined value at /usr/lib/AMC/perl/AMC-gui.pl line 2399. *** ignoring at /usr/lib/AMC/perl/AMC-gui.pl line 7074.

All files are encoded in UTF-8.

It happens on both of the following systems.
AMC version 1.3.0-2 (on debian GNU/Linux 9.2 streach/stable)
AMC version 1.3.0-4+b1. (on debian GNU/Linux 10? buster/testing)

I want to use AMC in Japanese.
Please help me.


Replies (6)

RE: AMC 1.3.0 cannot handle Japanese - Added by Alexis Bienvenüe over 6 years ago

Can you check that 編集 / 設定 / プロジェクト / 外部コマンド / LaTeXエンジン is set to platex+dvipdf?

RE: AMC 1.3.0 cannot handle Japanese - Added by shin uno over 6 years ago

Thanks for reply.

Yes, I set it platex+dvipdf .
I also tried platex+dvipdfmx , but neither works.

RE: AMC 1.3.0 cannot handle Japanese - Added by Alexis Bienvenüe over 6 years ago

Can you post the options.xml file from the project directory?

RE: AMC 1.3.0 cannot handle Japanese - Added by shin uno over 6 years ago

yes. Here is options.xml.

Now I realized that moteur_latex_b column in optoins.xml seems wrong.

<moteur_latex_b>pdflatex</moteur_latex_b>

But I changed it to be platex+dvipdf in my GUI ...?

options.xml (2.6 kB)

RE: AMC 1.3.0 cannot handle Japanese - Added by Alexis Bienvenüe over 6 years ago

Can you double-check that you changed the value in the プロジェクト tab, and not only the default value in the メイン tab?

RE: AMC 1.3.0 cannot handle Japanese - Added by shin uno over 6 years ago

OK

OH. I've been edited
編集/設定/メイン/外部プログラム 
(to be platex+dvipdf)
but I'v NOT edited
編集/設定/プロジェクト/外部コマンド

Now I edited
編集/設定/プロジェクト/外部コマンド
to be platex+dvipdf

...

Oh, simple.tex can be compiled and displayed. (including Japanese)
GREAT!

But here, I encountered related question.
1. Settled value "platex+dvipdf" is automatically cleared (at every compilation?)
2. My original latex file cannot be compiled yet. (latex command is somewhat complicated.)
I'll investigate these two points and report it again.
Anyway, my AMC 1.3.0 manage Japanese chars.

Thank you very much.

(1-6/6)