public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Asymptote with option '-tex lualatex' makes an unexpected shift
@ 2019-11-23  0:53 Lemures Lemniscati
  2019-11-23 19:07 ` Ken Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Lemures Lemniscati @ 2019-11-23  0:53 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 1589 bytes --]

Hi! And thank you for maintaining many packages!

I've experienced a situation:

Asymptote with option '-tex lualatex' makes an unexpected shift.
(I've installed all the texlive packages by setup*.exe.)

I opened an issue on its main stream https://github.com/vectorgraphics/asymptote/issues/123

But No one seems to reproduce it.
I don't know whether it is an issue only on cygwin or not.

Does anyone have a good idea?


====

Asymptote 2.49 with LuaLaTeX 1.10 as engine on Cygwin makes an unexpected shift.
Is it an issue on Asymptote or on LuaLaTeX?

A test file a.asy:

--------
real s=30;
draw(scale(s)*unitsquare,defaultpen+.5mm);
label("\TeX",scale(s)*(.5,.5));
--------



Compiling as follows results in default.pdf and lualatex.pdf.

--------
asy -f pdf -o default a
asy -f pdf -o lualatex -tex lualatex a
--------

And, default.pdf has no problem, but lualatex.pdf has unexpected shift.

Expected result is
https://github.com/vectorgraphics/asymptote/files/3858069/lualatex.pdf

But what I've got is
https://github.com/vectorgraphics/asymptote/files/3858024/lualatex.pdf


====

I've found that disabling otfload-main.lua (e.g. by renaming it) makes an expected result.
But I don't know why this is effective.

And I really need otfload-main.lua for other purposes.

Please, help me.

--
Lem
\x03B‹KCB”\x1c›Ø›\x19[H\x1c™\^[ܝ\x1cΈ\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÜ\x1c›Ø›\x19[\Ëš\x1d^[[\x03B‘TNˆ\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÙ˜\KÃB‘^[ØÝ[Y[\x18]\x1a[ÛŽˆ\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÙ^[ØÜËš\x1d^[[\x03B•[œÝXœØÜšX™H\x1a[™›Îˆ\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÛ[\vÈÝ[œÝXœØÜšX™K\Ú[\^[\x19CBƒB

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Asymptote with option '-tex lualatex' makes an unexpected shift
  2019-11-23  0:53 Asymptote with option '-tex lualatex' makes an unexpected shift Lemures Lemniscati
@ 2019-11-23 19:07 ` Ken Brown
  2019-11-24 14:07   ` Ken Brown
  0 siblings, 1 reply; 4+ messages in thread
From: Ken Brown @ 2019-11-23 19:07 UTC (permalink / raw)
  To: cygwin

On 11/22/2019 7:24 AM, Lemures Lemniscati wrote:
> Hi! And thank you for maintaining many packages!
> 
> I've experienced a situation:
> 
> Asymptote with option '-tex lualatex' makes an unexpected shift.
> (I've installed all the texlive packages by setup*.exe.)
> 
> I opened an issue on its main stream https://github.com/vectorgraphics/asymptote/issues/123
> 
> But No one seems to reproduce it.
> I don't know whether it is an issue only on cygwin or not.
> 
> Does anyone have a good idea?

I can reproduce this, both with Cygwin's TeX Live packages and with native TeX 
Live on Cygwin, installed by following the instructions at

   https://www.tug.org/texlive/acquire-netinstall.html

starting with downloading install-tl-unx.tar.gz.

But I'm not yet convinced that this is a Cygwin issue.  Bowman said he couldn't 
see a difference between the two PDFs, but maybe he didn't know what to look 
for.  He didn't respond to your posts in which you supplied the two PDFs.  I'd 
like to try this myself on Linux before I conclude that it's a Cygwin issue.

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Asymptote with option '-tex lualatex' makes an unexpected shift
  2019-11-23 19:07 ` Ken Brown
@ 2019-11-24 14:07   ` Ken Brown
  2019-11-25 13:09     ` Lemures Lemniscati
  0 siblings, 1 reply; 4+ messages in thread
From: Ken Brown @ 2019-11-24 14:07 UTC (permalink / raw)
  To: cygwin

On 11/22/2019 7:53 PM, Ken Brown wrote:
> On 11/22/2019 7:24 AM, Lemures Lemniscati wrote:
>> Hi! And thank you for maintaining many packages!
>>
>> I've experienced a situation:
>>
>> Asymptote with option '-tex lualatex' makes an unexpected shift.
>> (I've installed all the texlive packages by setup*.exe.)
>>
>> I opened an issue on its main stream https://github.com/vectorgraphics/asymptote/issues/123
>>
>> But No one seems to reproduce it.
>> I don't know whether it is an issue only on cygwin or not.
>>
>> Does anyone have a good idea?
> 
> I can reproduce this, both with Cygwin's TeX Live packages and with native TeX
> Live on Cygwin, installed by following the instructions at
> 
>     https://www.tug.org/texlive/acquire-netinstall.html
> 
> starting with downloading install-tl-unx.tar.gz.
> 
> But I'm not yet convinced that this is a Cygwin issue.  Bowman said he couldn't
> see a difference between the two PDFs, but maybe he didn't know what to look
> for.  He didn't respond to your posts in which you supplied the two PDFs.  I'd
> like to try this myself on Linux before I conclude that it's a Cygwin issue.

I just tested this on Ubuntu 18.04 (which provides TeX Live 2017), and I saw the 
same shift.  So it's not a Cygwin issue.

FWIW, the intermediate files lualatex_.tex differ in exactly one place between 
the good (without luaotfload-main.lua) and bad (with luaotfload-main.lua) cases:

$ diff -u lualatex_with_luaotfload-main/lualatex_.tex 
lualatex_without_luaotfload-main/
--- lualatex_with_luaotfload-main/lualatex_.tex 2019-11-18 05:01:29.000000000 -0500
+++ lualatex_without_luaotfload-main/lualatex_.tex      2019-11-18 
05:02:07.000000000 -0500
@@ -57,5 +57,5 @@
  \definecolor{ASYcolor}{gray}{0.000000}\color{ASYcolor}
  \fontsize{12.000000}{14.400000}\selectfont
  \usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%
-\ASYalign(15.767569,15.767569)(-0.500000,-0.260156){\TeX}%
+\ASYalign(15.767569,15.767569)(-0.500000,-0.264452){\TeX}%
  \end{document}

I don't know if this difference accounts for the shift.

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Asymptote with option '-tex lualatex' makes an unexpected shift
  2019-11-24 14:07   ` Ken Brown
@ 2019-11-25 13:09     ` Lemures Lemniscati
  0 siblings, 0 replies; 4+ messages in thread
From: Lemures Lemniscati @ 2019-11-25 13:09 UTC (permalink / raw)
  To: cygwin

Date: Sat, 23 Nov 2019 23:15:04 +0000
From: Ken Brown

> On 11/22/2019 7:53 PM, Ken Brown wrote:
> > On 11/22/2019 7:24 AM, Lemures Lemniscati wrote:
> >> Hi! And thank you for maintaining many packages!
> >>
> >> I've experienced a situation:
> >>
> >> Asymptote with option '-tex lualatex' makes an unexpected shift.
> >> (I've installed all the texlive packages by setup*.exe.)
> >>
> >> I opened an issue on its main stream https://github.com/vectorgraphics/asymptote/issues/123
> >>
> >> But No one seems to reproduce it.
> >> I don't know whether it is an issue only on cygwin or not.
> >>
> >> Does anyone have a good idea?
> > 
> > I can reproduce this, both with Cygwin's TeX Live packages and with native TeX
> > Live on Cygwin, installed by following the instructions at
> > 
> >     https://www.tug.org/texlive/acquire-netinstall.html
> > 
> > starting with downloading install-tl-unx.tar.gz.
> > 
> > But I'm not yet convinced that this is a Cygwin issue.  Bowman said he couldn't
> > see a difference between the two PDFs, but maybe he didn't know what to look
> > for.  He didn't respond to your posts in which you supplied the two PDFs.  I'd
> > like to try this myself on Linux before I conclude that it's a Cygwin issue.
> 
> I just tested this on Ubuntu 18.04 (which provides TeX Live 2017), and I saw the 
> same shift.  So it's not a Cygwin issue.
> 
> FWIW, the intermediate files lualatex_.tex differ in exactly one place between 
> the good (without luaotfload-main.lua) and bad (with luaotfload-main.lua) cases:
> 
> $ diff -u lualatex_with_luaotfload-main/lualatex_.tex 
> lualatex_without_luaotfload-main/
> --- lualatex_with_luaotfload-main/lualatex_.tex 2019-11-18 05:01:29.000000000 -0500
> +++ lualatex_without_luaotfload-main/lualatex_.tex      2019-11-18 
> 05:02:07.000000000 -0500
> @@ -57,5 +57,5 @@
>   \definecolor{ASYcolor}{gray}{0.000000}\color{ASYcolor}
>   \fontsize{12.000000}{14.400000}\selectfont
>   \usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%
> -\ASYalign(15.767569,15.767569)(-0.500000,-0.260156){\TeX}%
> +\ASYalign(15.767569,15.767569)(-0.500000,-0.264452){\TeX}%
>   \end{document}
> 
> I don't know if this difference accounts for the shift.
> 

Thank you for testing.

The difference above seems irrelevant to the horizontal shift.

But, I have no idea...
And I've requested to reopen the issue https://github.com/vectorgraphics/asymptote/issues/123#issuecomment-557890681

--
Lem

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-11-24 14:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-23  0:53 Asymptote with option '-tex lualatex' makes an unexpected shift Lemures Lemniscati
2019-11-23 19:07 ` Ken Brown
2019-11-24 14:07   ` Ken Brown
2019-11-25 13:09     ` Lemures Lemniscati

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).