Discussion:
[XeTeX] popup windows in XeLaTeX?
Janusz S. Bień
2018-02-25 15:59:59 UTC
Permalink
Hi!

I use regularly XeLaTeX, but for a specific text I switched to LuaLaTeX
because using the engine, together with ocgx, seemed the simples way to
get footnotes in the form of the popup windows:

https://bitbucket.org/jsbien/parkosz-traktat/downloads/ParkoszLatin.pdf

Now I run into some problems with LuaTeX (wrong encoding of Polish
letters in the outline); it seems the solution exists but is not a
straightforward one.

Processing the text with XeLaTeX fails on \pdfstartlink, I am aware of a
thread concerning emulating it:

https://tex.stackexchange.com/questions/86027/how-to-emulate-pdfstartlink-and-pdfendlink-with-xetex

I would appreciate your advice what is the most easy and/or elegant way
to solve the problem.

Best regards

Janusz

P.S. I'm sorry for sending it first by mistake to xetex-request.
--
,
Prof. dr hab. Janusz S. Bien - Uniwersytet Warszawski (Katedra Lingwistyki Formalnej)
Prof. Janusz S. Bien - University of Warsaw (Formal Linguistics Department)
***@uw.edu.pl, ***@mimuw.edu.pl, http://fleksem.klf.uw.edu.pl/~jsbien/


--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
Wilfred van Rooijen
2018-02-26 06:22:47 UTC
Permalink
As far as I know, LuaLaTeX works with UTF-8 (as does XeLaTeX), so that they should give the same result

- if the input file is encoded in UTF-8- if the same font is used- if the documentclass is "LuaLaTeX-compatible"

Note that for LuaLaTeX you may need to change the documentclass, it is my experience that non-standard characters are not treated well if LuaLaTeX is used in combination with a "traditional" documentclass. At least for Japanese material the "standard" LuaLaTeX simply ignores the Japanese characters, but a "Japanese" documentclass allows to use Japanese characters.
Cheers,Wilfred


On Monday, February 26, 2018 1:02 AM, Janusz S. Bień <***@mimuw.edu.pl> wrote:



Hi!

I use regularly XeLaTeX, but for a specific text I switched to LuaLaTeX
because using the engine, together with ocgx, seemed the simples way to
get footnotes in the form of the popup windows:

https://bitbucket.org/jsbien/parkosz-traktat/downloads/ParkoszLatin.pdf

Now I run into some problems with LuaTeX (wrong encoding of Polish
letters in the outline); it seems the solution exists but is not a
straightforward one.

Processing the text with XeLaTeX fails on \pdfstartlink, I am aware of a
thread concerning emulating it:

https://tex.stackexchange.com/questions/86027/how-to-emulate-pdfstartlink-and-pdfendlink-with-xetex

I would appreciate your advice what is the most easy and/or elegant way
to solve the problem.

Best regards

Janusz

P.S. I'm sorry for sending it first by mistake to xetex-request.
--
                          , 
Prof. dr hab. Janusz S. Bien -  Uniwersytet Warszawski (Katedra Lingwistyki Formalnej)
Prof. Janusz S. Bien - University of Warsaw (Formal Linguistics Department)
***@uw.edu.pl, ***@mimuw.edu.pl, http://fleksem.klf.uw.edu.pl/~jsbien/


--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex
Janusz S. Bień
2018-02-26 07:59:35 UTC
Permalink
Post by Wilfred van Rooijen
As far as I know, LuaLaTeX works with UTF-8 (as does XeLaTeX), so that they should give the same result
- if the input file is encoded in UTF-8
Yes, it's UTF-8
Post by Wilfred van Rooijen
- if the same font is used
Yes
Post by Wilfred van Rooijen
- if the documentclass is "LuaLaTeX-compatible"
I use just the report class.

Thanks for your answer, However talking about "the same results" is not
appropriate, because the source is unusable with XeLaTeX for reasons
described in my previous mail.
[...]
Post by Wilfred van Rooijen
Hi!
I use regularly XeLaTeX, but for a specific text I switched to LuaLaTeX
because using the engine, together with ocgx, seemed the simples way to
[...]
Post by Wilfred van Rooijen
Processing the text with XeLaTeX fails on \pdfstartlink, I am aware of a
https://tex.stackexchange.com/questions/86027/how-to-emulate-pdfstartlink-and-pdfendlink-with-xetex
I would appreciate your advice what is the most easy and/or elegant way
to solve the problem.
So my question is whether there is a simple way to make ocgx usable with
XeLaTeX and/or whether there is an alternative of using ocgx for
creating popup windows.

If I decide to stick with Luatex, I will try to solve the problem with
the help of the LuaTeX mailing list.

Best regards

Janusz
--
,
Prof. dr hab. Janusz S. Bien - Uniwersytet Warszawski (Katedra Lingwistyki Formalnej)
Prof. Janusz S. Bien - University of Warsaw (Formal Linguistics Department)
***@uw.edu.pl, ***@mimuw.edu.pl, http://fleksem.klf.uw.edu.pl/~jsbien/



--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
h
Zdenek Wagner
2018-02-26 10:11:19 UTC
Permalink
Hi,

I would first try to set the outlines correctly. The PDF specification says
that the outline must either be in AdobeStandardEncoding, which does not
cover east european languages, or each text must be preceded by BOM. XeTeX
inserts BOM automatically. Hopefully luatex (or hyperref) has an option to
do it. If not, you can still try to insert it manually by using
\texorpdfstring.


Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz
Post by Wilfred van Rooijen
Post by Wilfred van Rooijen
As far as I know, LuaLaTeX works with UTF-8 (as does XeLaTeX), so that
they should give the same result
Post by Wilfred van Rooijen
- if the input file is encoded in UTF-8
Yes, it's UTF-8
Post by Wilfred van Rooijen
- if the same font is used
Yes
Post by Wilfred van Rooijen
- if the documentclass is "LuaLaTeX-compatible"
I use just the report class.
Thanks for your answer, However talking about "the same results" is not
appropriate, because the source is unusable with XeLaTeX for reasons
described in my previous mail.
Post by Wilfred van Rooijen
On Monday, February 26, 2018 1:02 AM, Janusz S. Bień <
[...]
Post by Wilfred van Rooijen
Hi!
I use regularly XeLaTeX, but for a specific text I switched to LuaLaTeX
because using the engine, together with ocgx, seemed the simples way to
[...]
Post by Wilfred van Rooijen
Processing the text with XeLaTeX fails on \pdfstartlink, I am aware of a
https://tex.stackexchange.com/questions/86027/how-to-
emulate-pdfstartlink-and-pdfendlink-with-xetex
Post by Wilfred van Rooijen
I would appreciate your advice what is the most easy and/or elegant way
to solve the problem.
So my question is whether there is a simple way to make ocgx usable with
XeLaTeX and/or whether there is an alternative of using ocgx for
creating popup windows.
If I decide to stick with Luatex, I will try to solve the problem with
the help of the LuaTeX mailing list.
Best regards
Janusz
--
,
Prof. dr hab. Janusz S. Bien - Uniwersytet Warszawski (Katedra Lingwistyki Formalnej)
Prof. Janusz S. Bien - University of Warsaw (Formal Linguistics Department)
jsbien/
--------------------------------------------------
http://tug.org/mailman/listinfo/xetex
Janusz S. Bień
2018-02-26 12:36:27 UTC
Permalink
Post by Zdenek Wagner
Hi,
I would first try to set the outlines correctly. The PDF specification
says that the outline must either be in AdobeStandardEncoding, which
does not cover east european languages, or each text must be preceded
by BOM. XeTeX inserts BOM automatically. Hopefully luatex (or
hyperref) has an option to do it.
It appeared the option is just pdfencoding=unicode:

http://tug.org/pipermail/luatex/2018-February/006760.html

Thanks to everybody who tried to help.

Best regards

Janusz
--
,
Prof. dr hab. Janusz S. Bien - Uniwersytet Warszawski (Katedra Lingwistyki Formalnej)
Prof. Janusz S. Bien - University of Warsaw (Formal Linguistics Department)
***@uw.edu.pl, ***@mimuw.edu.pl, http://fleksem.klf.uw.edu.pl/~jsbien/


--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex
Loading...