I.e., it is not a problem of XeTeX, but a problem of Windows.<br>
<br>/r<br>
<br><br><div class="gmail_quote">2009/4/23 Yue Wang <span dir="ltr"><<a href="mailto:yuleopen@gmail.com">yuleopen@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
Well, I know, I know, the same chinese file name example in ConTeXt (<br>
\XeteXpicfile "你好.jpg" \bye) also works on FreeBSD and Mac OS X, but<br>
not on Windows.<br>
On Windows, I already set the encoding to UTF-8.<br>
The output log is get from TeXWorks. Windows' cmd cannot display that<br>
(I am using the English version, but I doubt Chinese version cannot<br>
display that either since Simplified Chinese version Windows use GBK<br>
for cmd).<br>
<font color="#888888"><br>
Yue Wang<br>
</font><div><div></div><div class="h5"><br>
On Thu, Apr 23, 2009 at 10:37 PM, Rembrandt Wolpert <<a href="mailto:wolpert@uark.edu">wolpert@uark.edu</a>> wrote:<br>
> However, it works on OSX:<br>
><br>
> \begin{frame}<br>
> \frametitle{Trying Chinese filename}<br>
> \begin{center}<br>
> \includegraphics[height=6cm]{../Illustrations/北路.jpg}<br>
> \end{center}<br>
> \end{frame}<br>
><br>
> compiles without error, and inserts the correct jpg.<br>
><br>
> Rembrandt<br>
><br>
><br>
> 2009/4/23 Yue Wang <<a href="mailto:yuleopen@gmail.com">yuleopen@gmail.com</a>><br>
>><br>
>> On Windows, I can confirm that it doesn't work.<br>
>><br>
>> TeXExec | processing document 'a.tex'<br>
>> TeXExec | no ctx file found<br>
>> TeXExec | tex processing method: context<br>
>> TeXExec | TeX run 1<br>
>> TeXExec | writing option file a.top<br>
>> TeXExec | using randomseed 262<br>
>> TeXExec | tex engine: xetex<br>
>> TeXExec | tex format: cont-en<br>
>> This is XeTeX, Version 3.1415926-2.2-0.999.8 (Web2C 7.5.7)<br>
>> \write18 enabled.<br>
>> entering extended mode<br>
>> (./a.tex<br>
>><br>
>> ConTeXt ver: 2009.04.21 16:11 MKII fmt: 2009.4.22 int: english/english<br>
>><br>
>> system : cont-new loaded<br>
>> (c:/context/tex/texmf-context/tex/context/base/cont-new.tex<br>
>> systems : beware: some patches loaded from cont-new.tex<br>
>> (c:/context/tex/texmf-context/tex/context/base/cont-new.mkii)<br>
>> (c:/context/tex/texmf-context/tex/context/base/cont-mtx.tex))<br>
>> system : cont-fil loaded<br>
>> (c:/context/tex/texmf-context/tex/context/base/cont-fil.tex<br>
>> loading : ConTeXt File Synonyms<br>
>> )<br>
>> system : cont-sys.rme loaded<br>
>> (c:/context/tex/texmf-context/tex/context/user/cont-sys.rme<br>
>> (c:/context/tex/texmf-context/tex/context/base/type-tmf.tex)<br>
>> (c:/context/tex/texmf-context/tex/context/base/type-siz.tex<br>
>> (c:/context/tex/texmf-context/tex/context/base/type-siz.mkii))<br>
>> (c:/context/tex/texmf-context/tex/context/base/type-otf.tex<br>
>> (c:/context/tex/texmf-context/tex/context/base/type-otf.mkii))<br>
>> (c:/context/tex/texmf-context/tex/context/base/type-xtx.tex))<br>
>> system : a.top loaded<br>
>> (./a.top)<br>
>> bodyfont : 12pt rm is loaded<br>
>> language : patterns nl->default:default->1->2:2<br>
>> us->default:default->2-><br>
>> 2:3 de->default:default->3->3:3 da->default:default->4->2:2<br>
>> sv->default:default<br>
>> ->5->2:2 gb->default:default->6->2:2 fr->default:default->7->2:2<br>
>> es->default:de<br>
>> fault->8->2:2 ca->default:default->9->2:2 it->default:default->10->2:2<br>
>> la->defa<br>
>> ult:default->11->2:2 pt->default:default->12->2:2<br>
>> ro->default:default->13->2:2<br>
>> pl->default:default->14->2:2 cs->default:default->15->2:2<br>
>> sk->default:default-><br>
>> 16->2:2 hr->default:default->17->2:2 sl->default:default->18->2:2<br>
>> tr->default:d<br>
>> efault->19->2:2 agr->default:default->21->2:2 fi->default:default->22->2:2<br>
>> hu-><br>
>> default:default->23->2:2 ru->default:default->26->2:2<br>
>> uk->default:default->27-><br>
>> 3:3 loaded<br>
>> specials : dvips loaded<br>
>> language : language en is active<br>
>> specials : loading definition file dpx<br>
>> (c:/context/tex/texmf-context/tex/context/base/spec-dpx.tex<br>
>> specials : loading definition file fdf<br>
>> (c:/context/tex/texmf-context/tex/context/base/spec-fdf.tex))<br>
>> specials : loading definition file xet<br>
>> (c:/context/tex/texmf-context/tex/context/base/spec-xet.tex)<br>
>> ! Unable to load picture or PDF file '你好.jpg'.<br>
>> <to be read again><br>
>> \par<br>
>> \bye ->\par<br>
>> \vfill \supereject \end<br>
>> l.2 \bye<br>
>><br>
>> ?<br>
>><br>
>><br>
>> sample file<br>
>> \starttext<br>
>> \XeTeXpicfile "你好.jpg"<br>
>> \stoptext<br>
>><br>
>><br>
>> rename "你好.jpg" to "hello.jpg" , and change the source code can solve<br>
>> the problem.<br>
>><br>
>><br>
>> On Thu, Apr 23, 2009 at 10:25 PM, Jjgod Jiang <<a href="mailto:gzjjgod@gmail.com">gzjjgod@gmail.com</a>> wrote:<br>
>> > Hi,<br>
>> ><br>
>> > On Thu, Apr 23, 2009 at 7:33 PM, Jonathan Kew <<a href="mailto:jfkthame@googlemail.com">jfkthame@googlemail.com</a>><br>
>> > wrote:<br>
>> >> This may depend on your operating system; in particular, I think it<br>
>> >> may have problems on Windows, though I'm not really sure. You could<br>
>> >> try it and see what happens.<br>
>> ><br>
>> > On Mac OS X, I can confirm that:<br>
>> ><br>
>> > \XeTeXpicfile "测试.png"<br>
>> > \XeTeXpdffile "测试.pdf"<br>
>> > \includegraphics{测试.png}<br>
>> ><br>
>> > all worked flawlessly.<br>
>> ><br>
>> > - Jiang<br>
>> > _______________________________________________<br>
>> > XeTeX mailing list<br>
>> > <a href="mailto:postmaster@tug.org">postmaster@tug.org</a><br>
>> > <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
>> ><br>
>> _______________________________________________<br>
>> XeTeX mailing list<br>
>> <a href="mailto:postmaster@tug.org">postmaster@tug.org</a><br>
>> <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
><br>
><br>
><br>
> --<br>
> 人有不為也而後可有為<br>
><br>
> _______________________________________________<br>
> XeTeX mailing list<br>
> <a href="mailto:postmaster@tug.org">postmaster@tug.org</a><br>
> <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br>
><br>
><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> 人有不為也而後可有為<br>