[Bug 725946] New: platex+dvips does not produce legible results with Japanese text.=?UTF-8?Q?=20=E6=97=A5=E6=9C=AC=E8=AA=9E=E3=81=AE=E6=96=87=E6=9B=B8=E3=81=AE=E5=A0=B4=E5=90=88=E3=80=81platex=2Bdvips=E3=81=AF=E6=96=87=E5=AD=97=E5=8C=96=E3=81=91=E3=81=AB=E3=81=A3=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86=E3=80=82?=
https://bugzilla.novell.com/show_bug.cgi?id=725946 https://bugzilla.novell.com/show_bug.cgi?id=725946#c0 Summary: platex+dvips does not produce legible results with Japanese text. 日本語の文書の場合、platex+dvipsは文字化けにってしまう。 Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: x86-64 OS/Version: openSUSE 11.4 Status: NEW Severity: Normal Priority: P5 - None Component: KDE4 Applications AssignedTo: kde-maintainers@suse.de ReportedBy: hisha@m9.dion.ne.jp QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 Running platex and dvips on a tex file with Japanese text, does not produce legible text, but so-called mojibake = 文字化け. The document class does not matter. It also does not matter whether we have installed babel and include it with \usepackage[japanese]{babel}, or not. Reproducible: Always Steps to Reproduce: 1. Create sample.tex file with Japanese text in it, like \documentclass{article} \begin{document} 東京 \end{document} ( The document class can also be jarticle or the like, the result does not change. It does also not matter whether we add and activate babel or not. ) 2. run platex sample.tex 3. run dvips sample.dvi 4. open the result with gv sample.ps or okular sample.ps Actual Results: Mojibake 文字化け Expected Results: Japanese characters, 漢字など I repaired ghostscript for myself as follows: The mistake sits in the file /etc/ghostscript/9.00/cidfmap The script /usr/sbin/ghostscript-cjk-config appends to the original file /usr/share/ghostscript/9.00/lib/cidfmap the information about Japanese fonts, but not to the file /etc/ghostscript/9.00/cidfmap . Hence if we link this file via sudo mv /etc/ghostscript/9.00/cidfmap /etc/ghostscript/9.00/cidfmap_orig sudo ln -s /usr/share/ghostscript/9.00/lib/cidfmap /etc/ghostscript/9.00/cidfmap then dvips works. I hope that someone can fix this, probably by changing the ghostscript-cjk-config file. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c
Christian Trippe
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c1
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c
zj jia
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c2
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c3
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c4
--- Comment #4 from Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c5
--- Comment #5 from Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c6
--- Comment #6 from Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c7
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c8
--- Comment #8 from Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c9
Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c10
Johannes Meixner
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c11
Takashi Iwai
Takashi Iwai,
Any reason to call me with a full name? :)
according to comment #0 the script /usr/sbin/ghostscript-cjk-config "appends" to the cidfmap file so that your fix in comment #6 should be sufficient and there is no need to remove anything from the ghostscript-library package.
Or is there a special reason why there must be no /etc/ghostscript/9.00/cidfmap file at all?
FYI: As far as I understand /usr/sbin/ghostscript-cjk-config it actually re-writes the whole cidfmap file (I wonder why it does not only append) but in the end the result is (similar) as if /usr/sbin/ghostscript-cjk-config appends to it.
Hm, one remaining concern is that the file isn't marked as %config, so it'll be overwritten when ghostscript-library package is updated. Meanwhile, the SuSEconfig stuff will eventually re-add the cjk stuff again, so it might work still after update. But I'm not 100% sure about it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c12
--- Comment #12 from Johannes Meixner
From the ghostscript-library.spec file:
for c in Fontmap Fontmap.X11-auto {cidf,xlat}map \ FAPI{cidfmap,config,fontmap} do ... echo "%%config $ec" >> config.gs done .. %files -f config.gs ---------------------------------------------------------------------- Accordingly in the ghostscript-library build log there is: -------------------------------------------------------------------------- $ osc remotebuildlog openSUSE:Factory ghostscript-library standard i586 \ | grep cidfmap .. + echo '%config /etc/ghostscript/9.00/cidfmap' --------------------------------------------------------------------------
From my point of view there is no need to change anything in ghostscript-library.
If /usr/sbin/ghostscript-cjk-config writes to /etc/ghostscript/9.00/cidfmap it should work o.k. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c13
--- Comment #13 from Takashi Iwai
Takashi, the "Takashi Iwai" is the result of a dumb copy and paste from what Bugzilla shows me as your name. I do copy and paste to avoid typos. In particular for non-western names I do not know which part of a name I could omit so that I do a dumb copy and paste of the full name. By accident I did it for your name too.
Heh, don't worry. I was just curious whether it was a bot or something like that ;)
For me /etc/ghostscript/9.00/cidfmap is a RPM config file: -------------------------------------------------------------- # rpm -q -c ghostscript-library ... /etc/ghostscript/9.00/cidfmap --------------------------------------------------------------
From the ghostscript-library.spec file: ---------------------------------------------------------------------- for c in Fontmap Fontmap.X11-auto {cidf,xlat}map \ FAPI{cidfmap,config,fontmap} do ... echo "%%config $ec" >> config.gs done ... %files -f config.gs ----------------------------------------------------------------------
Accordingly in the ghostscript-library build log there is: -------------------------------------------------------------------------- $ osc remotebuildlog openSUSE:Factory ghostscript-library standard i586 \ | grep cidfmap ... + echo '%config /etc/ghostscript/9.00/cidfmap' --------------------------------------------------------------------------
From my point of view there is no need to change anything in ghostscript-library.
If /usr/sbin/ghostscript-cjk-config writes to /etc/ghostscript/9.00/cidfmap it should work o.k.
OK, thanks for checking. I must have overlooked it. Then I'll submit the fixed package ghostscript-cjk just changing the cifdmap path. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c14
Takashi Iwai
https://bugzilla.novell.com/show_bug.cgi?id=725946
https://bugzilla.novell.com/show_bug.cgi?id=725946#c15
--- Comment #15 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com