Re: [NTG-context] debugging lmtx and firefox (was: TeXGyre Heros on Firefox)

2022-07-25 Thread luigi scarso via ntg-context
On Mon, Jul 25, 2022 at 7:52 PM Pablo Rodriguez via ntg-context <
ntg-context@ntg.nl> wrote:

>
> Sadly, as already reported, LuaTeX doesn’t work on Linux anymore.
>
>
hm at least luatex on x86-64 is still ok, as far as  I know.

-- 
luigi
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] debugging lmtx and firefox (was: TeXGyre Heros on Firefox)

2022-07-25 Thread Hans Hagen via ntg-context

On 7/25/2022 7:52 PM, Pablo Rodriguez via ntg-context wrote:


Just in case it might help,
Hinting is optionally and not needed on todays high res screens anyway. 
I see no need to spend time of that at our end.


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] debugging lmtx and firefox (was: TeXGyre Heros on Firefox)

2022-07-25 Thread Pablo Rodriguez via ntg-context
On 7/25/22 14:00, juh+ntg-context--- via ntg-context wrote:
>
> I reported the bug to Mozilla and they answered very fast.
>
> Sadly up too now without a good solution.

Many thanks for the bug report.

> They hint to LuaMetaTex as the cause of the problem. You can follow the
> discussion here.

I would like to compare the LMTX output with the one from LuaTeX.

Sadly, as already reported, LuaTeX doesn’t work on Linux anymore.

> https://bugzilla.mozilla.org/show_bug.cgi?id=1781022

From the two questions from Jonathan Kew, HTML with TeX Gyre Heros is
displayed fine.

I extracted the font from the PDF output document (with a source
document similar to
https://mailman.ntg.nl/pipermail/ntg-context/2022/106302.html) with
"mutools extract", but some info may be missing and Firefox cannot use
it to display the HTML file.

I extracted the font with Fontforge and it was displayed perfectly fine.
But I guess Fontforge is adding some info when generating the OTF font
(font size is bigger: 4KB and 2.3KB when extracted with mutools).

I’m no font expert, but what astonishes me is that it isn’t clear
whether the font has lost the hinting information or not with LMTX
(sorry if I got this wrong).

I have no idea whether Identity-H may be preventing the FreeType
autohinter from working properly. But ft-view (from freetype-demos)
displays poorly the font extracted without FontForge (unlike the font
extracted with it). I attach the first font.

After switching hinting from on to auto, the autohinter displays the
font way better.

To reproduce the issue "ftview  20 font-0009.otf" and press "a".

Just in case it might help,

Pablo
Title: tgyre




Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa turpis, semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Donec nunc lorem, sollicitudin vel sodales eget, vehicula nec mi. Proin ullamcorper rutrum nibh, at porttitor nunc euismod et. Donec faucibus nisi faucibus ipsum porttitor phare­tra. Sed elementum, lectus nec congue imperdiet, ipsum leo viverra nisi, sit amet commodo odio odio id nisl. Fusce sagittis lobortis nisi sed consectetur. Nam eges­tas, sem ut fermentum convallis, ipsum tellus venenatis augue, eget condimentum risus quam id erat. Sed metus dui, sollicitudin pharetra pellentesque sed, placerat eget augue. Mauris sodales pretium tortor vitae rutrum. Proin quam sem, lobortis tincidunt pretium vitae, feugiat eu lacus.




font-0009.otf
Description: font/otf
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] debugging lmtx and firefox (was: TeXGyre Heros on Firefox)

2022-07-25 Thread juh+ntg-context--- via ntg-context


I reported the bug to Mozilla and they answered very fast.

Sadly up too now without a good solution.

They hint to LuaMetaTex as the cause of the problem. You can follow the 
discussion here.


https://bugzilla.mozilla.org/show_bug.cgi?id=1781022

juh
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Unwanted blank page before page figures when using non-placed (hidden) heads

2022-07-25 Thread Hans Hagen via ntg-context

On 7/24/2022 11:35 PM, cryo shock via ntg-context wrote:

Hey there,

I am having trouble understanding some basic blank page behavior. I hope 
that somebody of you can point me in the right direction.


My primary goal is to create application documents consisting of various 
.tex components and with external PDF pages inserted as well. The second 
part of that goal is to use multiple-level bookmarking as well. 
Bookmarking should look like this:


- Letter
- Resume
- Testimonies
-- Testimony A
-- Testimony B
-- Testimony C

In the following MWE you can see my progress along with some notes to 
help understanding.


There are two questions, I'd wish could be answered:

1. Why does TeX insert a blank page before a pagefigure I enclose within 
a (hidden) head?


2. Can the \bookmark[list]{text} command be somehow used for multi-level 
bookmarking?


While the first question would make up for a more consistent solution, 
the second question would do the job as well.


I hope some of you can enlighten me.

Cheers, k


%%% START of MWE

\definehead[VisiSection][section]
\setuphead[VisiSection][number=no]

\definehead[InvisiSection][VisiSection]
\setuphead[InvisiSection][placehead=no]

\definelist[CustomBMarks]

\setupinteraction[state=start]
\placebookmarks[VisiSection,InvisiSection,CustomBMarks]

\startcomponent * % not a product, no
   \startVisiSection[title={Custom Section A}]
     Text of Custom Section A
   \stopVisiSection
   \page
   \startVisiSection[title={Custom Section B}]
     Text of Custom Section B
   \stopVisiSection
   \startInvisiSection[title={Hidden Custom Section A}]
     Text of Hidden Custom Section A
   \stopInvisiSection
   \page
   \startInvisiSection[title={Hidden Custom Section B}]
     Text of Hidden Custom Section B
   \stopInvisiSection
   \page
   TEST\bookmark[CustomBMarks]{Start of Teststack} \dorecurse{800}{TEST 
}NEEDLE\bookmark[CustomBMarks]{Needle in the Teststack} 
\dorecurse{400}{TEST }TEST.\bookmark[CustomBMarks]{End of Teststack}

   %%%
   %%% So far no problems.
   %%% The following combination does the job, but I see no possibility
   %%% to arrange the "CustomBMarks"-list in multi-levels.
   %%%
   \page
   \startstandardmakeup
     \filterpages[{test.pdf}][1]\bookmark[CustomBMarks]{Pagefigure}
   \stopstandardmakeup
   %%%
   %%% So the following method would be the best choice to work with
   %%% multi-level bookmarks. But as soon as I start working with
   %%% (custom) heads together with pagefigures, CTX places a blank
   %%% page before every figure...
   %%% Note: you don't need a dummy file. The last (unnumbered) page is
   %%% the wanted external PDF. The numbered page before is the unwanted 
one.

   %%%
   \startInvisiSection[title={External Testpage A}]
     \startstandardmakeup
       \filterpages[{test.pdf}][1]
     \stopstandardmakeup
   \stopInvisiSection
\stopcomponent

because even a hidden head is something (anchor on page), you can try this:

\startstandardmakeup
  \startInvisiSection[title={External Testpage A}]
  \filterpages[{test.pdf}][1]
  \stopInvisiSection
\stopstandardmakeup

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___