[XeTeX] Ruby Annotation using XeTex? (and the convert problem)
Pektiong Tân
pektiong at gmail.com
Mon Jul 24 04:42:01 CEST 2006
Hi JK,
It works! I think there is room for further improvement but it is
enough for me for now.
Now I have encounter another problem, I would like to convert the PDF
generated by xetex (CJK+Latin) into PNG or BMP,
so I tried "convert" on my Mac OS X. It gives me some error message
and fails to generate PNG file. I have tried to use
convert to convert other PDF generated by the latex I have on my Mac
and it works. Attached is the error message, I would like
to know if there is a way to fix this or I should use other program
to convert PDF into PNG.
Cheers
pektiong
== error message==
**** Warning: File has an invalid xref entry: 7. Rebuilding
xref table.
Error: /rangecheck in --get--
Operand stack:
--dict:5/5(L)-- F2.1 1 --dict:5/5(L)-- --dict:5/5(L)--
XACSFA+LiSungLight --dict:11/12(ro)(G)-- --nostringval-- --dict:
8/8(L)-- --dict:8/8(L)-- --dict:14/19(L)-- --nostringval-- --
dict:2/2(L)-- --nostringval-- 1
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --
nostringval-- 2 %stopped_push --nostringval-- --
nostringval-- --nostringval-- false 1 %stopped_push 1 3
%oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop --
nostringval-- --nostringval-- 2 1 1 --nostringval-- %
for_pos_int_continue --nostringval-- --nostringval-- --
nostringval-- --nostringval-- %array_continue --nostringval--
false 1 %stopped_push --nostringval-- %loop_continue --
nostringval-- --nostringval-- --nostringval-- --nostringval--
--nostringval-- %array_continue --nostringval-- --
nostringval-- --nostringval-- --nostringval-- --nostringval--
--nostringval-- %loop_continue --nostringval--
Dictionary stack:
--dict:1126/1686(ro)(G)-- --dict:0/20(G)-- --dict:75/200
(L)-- --dict:75/200(L)-- --dict:105/127(ro)(G)-- --dict:251/347
(ro)(G)-- --dict:23/24(L)-- --dict:4/6(L)-- --dict:20/20(L)--
--dict:1/1(ro)(G)-- --dict:6/8(L)-- --dict:7/7(L)--
Current allocation mode is local
AFPL Ghostscript 8.51: Unrecoverable error, exit code 1
convert: Postscript delegate failed `Untitled.pdf'.
On Jul 21, 2006, at 12:35 AM, Jonathan Kew wrote:
> On 20 Jul 2006, at 4:46 pm, Pektiong Tân wrote:
>
>> Hi there,
>> I am wondering if there is a way to create ruby annotation using
>> xetex? ( similar to what can be done using cjk-latex package + ruby
>> package).
>> Since the package "ruby" depends on "cjk", I can't just use this
>> package. I think the ability of ruby annotation is important to some
>> of the CJK users.
>
> I haven't ever tried this (well, I haven't ever tried to use CJK
> stuff in standard LaTeX), but I just took a look at the ruby.sty
> file, and I think it should be pretty easy to modify it to work with
> xetex.
>
> As a first step, try making a copy of ruby.sty, rename it xeruby.sty,
> and make two changes (besides the file identification at the top):
>
> (1) remove the \RequirePackage line, so that it won't insist on
> loading CJK -- that's what will really interfere with xetex's built-
> in handling of the Unicode characters.
>
> (2) add the definition (copied from CJK.sty)
>
> \newcommand\CJKglue{\hskip \z@ \@plus .08\baselineskip}
>
> to the xeruby.sty file, as it wants to use this in some cases.
>
> Then try a Unicode CJK document in xelatex, with \usepackage
> {xeruby}.... you should be able to say things like
>
> \ruby{你}{ni}\ruby{好}{hao}
>
> and get ruby annotations.
>
> This will not precisely reproduce everything that CJK+ruby does, but
> it should get you started.
>
> JK
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
More information about the XeTeX
mailing list