[XeTeX] graphic filename in Chinese
Yue Wang
yuleopen at gmail.com
Thu Apr 23 16:48:34 CEST 2009
Hi,
Well, I know, I know, the same chinese file name example in ConTeXt (
\XeteXpicfile "ÄãºÃ.jpg" \bye) also works on FreeBSD and Mac OS X, but
not on Windows.
On Windows, I already set the encoding to UTF-8.
The output log is get from TeXWorks. Windows' cmd cannot display that
(I am using the English version, but I doubt Chinese version cannot
display that either since Simplified Chinese version Windows use GBK
for cmd).
Yue Wang
On Thu, Apr 23, 2009 at 10:37 PM, Rembrandt Wolpert <wolpert at uark.edu> wrote:
> However, it works on OSX:
>
> \begin{frame}
> \frametitle{Trying Chinese filename}
> \begin{center}
> \includegraphics[height=6cm]{../Illustrations/±±Â·.jpg}
> \end{center}
> \end{frame}
>
> compiles without error, and inserts the correct jpg.
>
> Rembrandt
>
>
> 2009/4/23 Yue Wang <yuleopen at gmail.com>
>>
>> On Windows, I can confirm that it doesn't work.
>>
>> TeXExec | processing document 'a.tex'
>> TeXExec | no ctx file found
>> TeXExec | tex processing method: context
>> TeXExec | TeX run 1
>> TeXExec | writing option file a.top
>> TeXExec | using randomseed 262
>> TeXExec | tex engine: xetex
>> TeXExec | tex format: cont-en
>> This is XeTeX, Version 3.1415926-2.2-0.999.8 (Web2C 7.5.7)
>> \write18 enabled.
>> entering extended mode
>> (./a.tex
>>
>> ConTeXt ver: 2009.04.21 16:11 MKII fmt: 2009.4.22 int: english/english
>>
>> system : cont-new loaded
>> (c:/context/tex/texmf-context/tex/context/base/cont-new.tex
>> systems : beware: some patches loaded from cont-new.tex
>> (c:/context/tex/texmf-context/tex/context/base/cont-new.mkii)
>> (c:/context/tex/texmf-context/tex/context/base/cont-mtx.tex))
>> system : cont-fil loaded
>> (c:/context/tex/texmf-context/tex/context/base/cont-fil.tex
>> loading : ConTeXt File Synonyms
>> )
>> system : cont-sys.rme loaded
>> (c:/context/tex/texmf-context/tex/context/user/cont-sys.rme
>> (c:/context/tex/texmf-context/tex/context/base/type-tmf.tex)
>> (c:/context/tex/texmf-context/tex/context/base/type-siz.tex
>> (c:/context/tex/texmf-context/tex/context/base/type-siz.mkii))
>> (c:/context/tex/texmf-context/tex/context/base/type-otf.tex
>> (c:/context/tex/texmf-context/tex/context/base/type-otf.mkii))
>> (c:/context/tex/texmf-context/tex/context/base/type-xtx.tex))
>> system : a.top loaded
>> (./a.top)
>> bodyfont : 12pt rm is loaded
>> language : patterns nl->default:default->1->2:2
>> us->default:default->2->
>> 2:3 de->default:default->3->3:3 da->default:default->4->2:2
>> sv->default:default
>> ->5->2:2 gb->default:default->6->2:2 fr->default:default->7->2:2
>> es->default:de
>> fault->8->2:2 ca->default:default->9->2:2 it->default:default->10->2:2
>> la->defa
>> ult:default->11->2:2 pt->default:default->12->2:2
>> ro->default:default->13->2:2
>> pl->default:default->14->2:2 cs->default:default->15->2:2
>> sk->default:default->
>> 16->2:2 hr->default:default->17->2:2 sl->default:default->18->2:2
>> tr->default:d
>> efault->19->2:2 agr->default:default->21->2:2 fi->default:default->22->2:2
>> hu->
>> default:default->23->2:2 ru->default:default->26->2:2
>> uk->default:default->27->
>> 3:3 loaded
>> specials : dvips loaded
>> language : language en is active
>> specials : loading definition file dpx
>> (c:/context/tex/texmf-context/tex/context/base/spec-dpx.tex
>> specials : loading definition file fdf
>> (c:/context/tex/texmf-context/tex/context/base/spec-fdf.tex))
>> specials : loading definition file xet
>> (c:/context/tex/texmf-context/tex/context/base/spec-xet.tex)
>> ! Unable to load picture or PDF file 'ÄãºÃ.jpg'.
>> <to be read again>
>> \par
>> \bye ->\par
>> \vfill \supereject \end
>> l.2 \bye
>>
>> ?
>>
>>
>> sample file
>> \starttext
>> \XeTeXpicfile "ÄãºÃ.jpg"
>> \stoptext
>>
>>
>> rename "ÄãºÃ.jpg" to "hello.jpg" , and change the source code can solve
>> the problem.
>>
>>
>> On Thu, Apr 23, 2009 at 10:25 PM, Jjgod Jiang <gzjjgod at gmail.com> wrote:
>> > Hi,
>> >
>> > On Thu, Apr 23, 2009 at 7:33 PM, Jonathan Kew <jfkthame at googlemail.com>
>> > wrote:
>> >> This may depend on your operating system; in particular, I think it
>> >> may have problems on Windows, though I'm not really sure. You could
>> >> try it and see what happens.
>> >
>> > On Mac OS X, I can confirm that:
>> >
>> > \XeTeXpicfile "²âÊÔ.png"
>> > \XeTeXpdffile "²âÊÔ.pdf"
>> > \includegraphics{²âÊÔ.png}
>> >
>> > all worked flawlessly.
>> >
>> > - Jiang
>> > _______________________________________________
>> > XeTeX mailing list
>> > postmaster at tug.org
>> > http://tug.org/mailman/listinfo/xetex
>> >
>> _______________________________________________
>> XeTeX mailing list
>> postmaster at tug.org
>> http://tug.org/mailman/listinfo/xetex
>
>
>
> --
> ÈËÓв»éÒ²¶øáá¿ÉÓÐé
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>
>
More information about the XeTeX
mailing list