Re: [NTG-context] \showstruts displaces text in LMTX

2022-10-19 Thread Hans Hagen via ntg-context

On 10/19/2022 8:48 PM, Pablo Rodriguez via ntg-context wrote:

Dear list,

compiling the following sample with current latest (2022.10.15 10:37):

   \showframe
   \showstruts
   \setuppapersize[A6]
   \setupnotation[footnote]
 [alternative=serried]
   \starttext
a\footnote{\input zapf}
   \stoptext

I get the text in the footnote is displaced. It only happens with LMTX
(not with MkIV) and not with previous latest.

Could anyone confirm the issue?

fixed in next upload (side effect of horizontal strut variant)

-
  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
___


[NTG-context] \showstruts displaces text in LMTX

2022-10-19 Thread Pablo Rodriguez via ntg-context
Dear list,

compiling the following sample with current latest (2022.10.15 10:37):

  \showframe
  \showstruts
  \setuppapersize[A6]
  \setupnotation[footnote]
[alternative=serried]
  \starttext
   a\footnote{\input zapf}
  \stoptext

I get the text in the footnote is displaced. It only happens with LMTX
(not with MkIV) and not with previous latest.

Could anyone confirm the issue?

Many thanks for your help,

Pablo
___
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] Suboptimal German hyphenation

2022-10-19 Thread Pablo Rodriguez via ntg-context
On 10/19/22 16:47, Leah Neukirchen via ntg-context wrote:
>> [...]
>> Many prefixes have two letters, so changing the default may be
>> reasonable.  But there are more experienced German typographers on
>> this list who can chime in.
>
> After some research, I found the recommendation in
> Forssman, de Jong: Detailtypografie (4. Aufl, 2008, S. 124f.) to
> use 2/3 for German justified texts, and 3/4 to 5/5 for ragged text.
> They also recommend to never hyphenate words with 5 letters, not sure
> that can be encoded.

Hi Leah,

Hans added hyphenmin some time ago:

  \setuplanguage[de][lefthyphenmin=2, righthyphenmin=3, hyphenmin=6]
  \setuplanguage[deo][lefthyphenmin=2, righthyphenmin=3, hyphenmin=5]
  \mainlanguage[de]
  \starttext
  \startTEXpage[offset=1em]
  \hyphenatedword{davon}
  \deo\hyphenatedword{davon}
  \stopTEXpage
  \stoptext

It is technically on the wiki, but it lacks proper “wikification”.

I hope it helps,

Pablo

___
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] Floating Figure in framed-environment

2022-10-19 Thread Wolfgang Schuster via ntg-context

Oliver Sieber via ntg-context schrieb am 19.10.2022 um 11:31:

Dear ConTeXt Users

I am relatively new to context and I am suffering with a problem with the 
framed environment.

I want to use a framed textbox for Definitions in my script. I also want to use 
floating figures.  But this does not work and I haven’t found out why. Maybe I 
totally use it the wrong way. I would appreciate if someone could help me or 
has a tipp.

Here is an example code, where the figure does not behave as expected, i.e. the 
figure is behind the text:

[...]


You have to use the textbackground mechanism to create a block of text 
where floats work as expected.


\definetextbackground
  [Oliver]
  [ location=paragraph,
  corner=round,
   rulethickness=2pt,
  framecolor=black,
   topoffset=1em,
    bottomoffset=1em,
  leftoffset=1em,
 rightoffset=1em,
  before=\blank,
   after=\blank,
  background=]

\setupfloats
  [freeregion=no]

\definedescription
  [Definition]
  [alternative=top,
  text={Definition: },
 title=yes,
    before=\startOliver,
 after=\stopOliver,
 inbetween={\blank[medium]}]

\startbuffer[sampletext]
Carrot cake tiramisu lollipop dragée lollipop marshmallow carrot cake 
sweet pastry. Tiramisu danish jelly tootsie roll tart gummi bears. 
Carrot cake chupa chups cake wafer lemon drops lemon drops tiramisu. 
Chocolate lemon drops sugar plum cheesecake jelly beans sugar plum. 
Tootsie roll cupcake jujubes pie chocolate bar bear claw chupa chups 
shortbread. Candy candy canes jelly-o jelly beans sugar plum muffin 
danish donut. Bonbon lemon drops powder jujubes marshmallow biscuit 
halvah. Powder carrot cake caramels chocolate cake carrot cake jelly-o. 
Topping danish tootsie roll gummi bears oat cake jujubes. Sweet candy 
canes cotton candy pie topping. Jelly-o carrot cake ice cream lemon 
drops macaroon gummies lemon drops tiramisu chocolate cake. Cupcake 
sugar plum shortbread gummi bears tootsie roll. Chocolate cake sugar 
plum macaroon candy canes chocolate bar donut cake icing tootsie roll.

\stopbuffer

\starttext

\startOliver
{\bf Definition: Hello World}
\blank[medium]
\placefigure[right,none]{This is an example of a 
logo.}{\externalfigure[dummy]}

\getbuffer[sampletext]
\stopOliver

\startDefinition[title={Hello World}]
\placefigure[right,none]{This is an example of a 
logo.}{\externalfigure[dummy]}

\getbuffer[sampletext]
\stopDefinition

\stoptext

Wolfgang

___
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] Floating Figure in framed-environment

2022-10-19 Thread Oliver Sieber via ntg-context
Dear Uschi

Thanks for the example. But unfortunately it behaves similiar. As soon as I 
want to place the figure to the right by using \placefigure
[right]… with floating text to the left. The framed environment behaves 
strange, i.e. it seems to ignore the image.

Just using a centered image works perfectly. I included everything in this 
code, to show exactly, what is not working.

\starttext
\framed[corner=round, rulethickness=2pt, width=\textwidth, align=flushleft, 
offset=1em,background=color,framecolor=black]
{{\bf Box with centered image} \blank[medium] 

\input khatt-en

\placefigure[none]{This is an example of a logo.}{\externalfigure[dummy]}
}

\blank[2cm]



\framed[corner=round, rulethickness=2pt, width=\textwidth, align=flushleft, 
offset=1em,background=color,framecolor=black]
{{\bf Faulty box with floating text, image to the right} \blank[medium] 

\placefigure[right, none]{This is an example of a logo.}{\externalfigure[dummy]}

\input khatt-en
}

\blank[2cm]

{\bf Floating text with image to the right, without box} \blank[medium] 

\placefigure[right, none]{This is an example of a logo.}{\externalfigure[dummy]}

\input khatt-en
\stoptext

Any ideas? 

Thanks a lot in advance.



> Am 19.10.2022 um 13:52 schrieb Ursula Hermann via ntg-context - ntg-context 
> at ntg.nl :
> 
> Dear Oliver, 
> 
> maybe something like this? 
> This is my example: 
> \starttext
> 
> \setuppapersize
>  [A5]
> 
> \setupexternalfigures
>  [location=default]
> 
> \setupindenting
>  [yes, small]
> 
> \setupwhitespace
>  [small]
> 
> \defineframedtext
>  [prettyblock]
>  [width=10cm,
>   indenting={yes, small},
>   background=color, backgroundcolor=lightgreen,
>   foreground=color, foregroundcolor=black,
>   offset=2mm,
>   align=flushleft]
> 
> \starttext
> 
> \startprettyblock
> \setupindenting[next]
>  The Earth, as a habitat for animal life, is in old age and has a fatal
>  illness. Several, in fact.
> 
>  It would be happening whether humans had ever evolved or not.
> 
>  \placefigure
> [][fig:church]
> {Stephanus Church.}
> {\externalfigure[ma-cb-24][width=.4\textwidth]}
> 
> \stopprettyblock
> \setupindenting[next]
> Below, we have two separate columns; but up here, for the nonce, we have but
> the one.
> 
> \startcolumns [n=2]
>  Text, text, text \dots
>  all in the first column
> \column
>  Words, words, words \dots
>  all in the second column.
>  And look ye here! Even more words!
> \stopcolumns
> 
> \stoptext
> 
> Many regards
> Uschi 
> 
> -Ursprüngliche Nachricht-
> Von: ntg-context  Im Auftrag von Oliver Sieber 
> via ntg-context
> Gesendet: Mittwoch, 19. Oktober 2022 11:31
> An: ntg-context@ntg.nl
> Cc: Oliver Sieber 
> Betreff: [NTG-context] Floating Figure in framed-environment
> 
> Dear ConTeXt Users
> 
> I am relatively new to context and I am suffering with a problem with the 
> framed environment.
> 
> I want to use a framed textbox for Definitions in my script. I also want to 
> use floating figures.  But this does not work and I haven’t found out why. 
> Maybe I totally use it the wrong way. I would appreciate if someone could 
> help me or has a tipp.
> 
> Here is an example code, where the figure does not behave as expected, i.e. 
> the figure is behind the text:
> 
> \starttext
> \framed[corner=round, rulethickness=2pt, width=\textwidth, align=flushleft, 
> offset=1em,background=color,framecolor=black]
> {{\bf Definition: Hello World} \blank[medium] 
> 
> \placefigure[right, none]{This is an example of a 
> logo.}{\externalfigure[dummy]}
> 
> Carrot cake tiramisu lollipop dragée lollipop marshmallow carrot cake sweet 
> pastry. Tiramisu danish jelly tootsie roll tart gummi bears. Carrot cake 
> chupa chups cake wafer lemon drops lemon drops tiramisu. Chocolate lemon 
> drops sugar plum cheesecake jelly beans sugar plum. Tootsie roll cupcake 
> jujubes pie chocolate bar bear claw chupa chups shortbread. Candy candy canes 
> jelly-o jelly beans sugar plum muffin danish donut. Bonbon lemon drops powder 
> jujubes marshmallow biscuit halvah. Powder carrot cake caramels chocolate 
> cake carrot cake jelly-o. Topping danish tootsie roll gummi bears oat cake 
> jujubes. Sweet candy canes cotton candy pie topping. Jelly-o carrot cake ice 
> cream lemon drops macaroon gummies lemon drops tiramisu chocolate cake. 
> Cupcake sugar plum shortbread gummi bears tootsie roll. Chocolate cake sugar 
> plum macaroon candy canes chocolate bar donut cake icing tootsie roll.
> }
> \stoptext
> 
> 
> Best regards
> Oli
> ___
> 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] Suboptimal German hyphenation

2022-10-19 Thread Leah Neukirchen via ntg-context
Leah Neukirchen via ntg-context  writes:

> Max Chernoff via ntg-context  writes:
>
>> Hi Leah,
>>
>>> I was typesetting some German text on a narrow page when I discovered
>>> the justification wasn't as good as expected.  I think I tracked this
>>> down to differences in hyphenation points, namely, ConTeXt has fewer:
>>> 
>>> \starttext
>>> \language[de]
>>> \showhyphens{Zusammenhang}
>>> \showhyphens{anderswo}
>>> \showhyphens{anderswoher}
>>> \stoptext
>>> 
>>> This shows
>>> languages   > hyphenation > show: Zusam[-||]men[-||]hang
>>> languages   > hyphenation > show: anderswo
>>> languages   > hyphenation > show: anders[-||]wo[-||]her
>>
>> Babel/ngerman sets left/righthyphenmin to 2/2, but ConTeXt sets those to
>> 3/3 for German. (The English default is 2/3). I don't speak German so I
>> have no idea which is correct, but you can get the same behaviour in
>> ConTeXt with:
>
> Perfect, thanks!
>
> Many prefixes have two letters, so changing the default may be
> reasonable.  But there are more experienced German typographers on
> this list who can chime in.

After some research, I found the recommendation in
Forssman, de Jong: Detailtypografie (4. Aufl, 2008, S. 124f.) to
use 2/3 for German justified texts, and 3/4 to 5/5 for ragged text.
They also recommend to never hyphenate words with 5 letters, not sure
that can be encoded.

-- 
Leah Neukirchenhttps://leahneukirchen.org
___
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] Floating Figure in framed-environment

2022-10-19 Thread Ursula Hermann via ntg-context
Dear Oliver, 

maybe something like this? 
This is my example: 
\starttext

\setuppapersize
  [A5]

\setupexternalfigures
  [location=default]

\setupindenting
  [yes, small]

\setupwhitespace
  [small]

\defineframedtext
  [prettyblock]
  [width=10cm,
   indenting={yes, small},
   background=color, backgroundcolor=lightgreen,
   foreground=color, foregroundcolor=black,
   offset=2mm,
   align=flushleft]

\starttext

\startprettyblock
\setupindenting[next]
  The Earth, as a habitat for animal life, is in old age and has a fatal
  illness. Several, in fact.

  It would be happening whether humans had ever evolved or not.

  \placefigure
[][fig:church]
{Stephanus Church.}
{\externalfigure[ma-cb-24][width=.4\textwidth]}

\stopprettyblock
\setupindenting[next]
Below, we have two separate columns; but up here, for the nonce, we have but
the one.

\startcolumns [n=2]
  Text, text, text \dots
  all in the first column
\column
  Words, words, words \dots
  all in the second column.
  And look ye here! Even more words!
\stopcolumns

\stoptext

Many regards
Uschi 

-Ursprüngliche Nachricht-
Von: ntg-context  Im Auftrag von Oliver Sieber via 
ntg-context
Gesendet: Mittwoch, 19. Oktober 2022 11:31
An: ntg-context@ntg.nl
Cc: Oliver Sieber 
Betreff: [NTG-context] Floating Figure in framed-environment

Dear ConTeXt Users

I am relatively new to context and I am suffering with a problem with the 
framed environment.

I want to use a framed textbox for Definitions in my script. I also want to use 
floating figures.  But this does not work and I haven’t found out why. Maybe I 
totally use it the wrong way. I would appreciate if someone could help me or 
has a tipp.

Here is an example code, where the figure does not behave as expected, i.e. the 
figure is behind the text:

\starttext
\framed[corner=round, rulethickness=2pt, width=\textwidth, align=flushleft, 
offset=1em,background=color,framecolor=black]
{{\bf Definition: Hello World} \blank[medium] 

\placefigure[right, none]{This is an example of a logo.}{\externalfigure[dummy]}

Carrot cake tiramisu lollipop dragée lollipop marshmallow carrot cake sweet 
pastry. Tiramisu danish jelly tootsie roll tart gummi bears. Carrot cake chupa 
chups cake wafer lemon drops lemon drops tiramisu. Chocolate lemon drops sugar 
plum cheesecake jelly beans sugar plum. Tootsie roll cupcake jujubes pie 
chocolate bar bear claw chupa chups shortbread. Candy candy canes jelly-o jelly 
beans sugar plum muffin danish donut. Bonbon lemon drops powder jujubes 
marshmallow biscuit halvah. Powder carrot cake caramels chocolate cake carrot 
cake jelly-o. Topping danish tootsie roll gummi bears oat cake jujubes. Sweet 
candy canes cotton candy pie topping. Jelly-o carrot cake ice cream lemon drops 
macaroon gummies lemon drops tiramisu chocolate cake. Cupcake sugar plum 
shortbread gummi bears tootsie roll. Chocolate cake sugar plum macaroon candy 
canes chocolate bar donut cake icing tootsie roll.
}
\stoptext


Best regards
Oli
___
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
___
___
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] Missing parinitskips in \normalizelinemode=0

2022-10-19 Thread Hans Hagen via ntg-context

On 10/19/2022 3:01 AM, Max Chernoff via ntg-context wrote:

Hi Hans,

When running in \normalizelinemode=0, the \parinitleftskip and
\parinitrightskip nodes are either nonexistant or invisible from Lua,
causing tex.linebreak to not work correctly.

This sample file:

\enabledirectives[system.callbacks.permitoverloads]

\normalizelinemode=0

\directlua{

callback.register("pre_linebreak_filter", function(head)
tex.preparelinebreak(head)
local list, info = tex.linebreak(head)
print(info)

return head

end)
}

\starttext

   \input knuth
\stoptext

Produces this output:

luatex warning  > linebreak: list seems already prepared
luatex warning  > linebreak: [ leftinit | rightinit | leftfill | rigthfill 
] expected
nil

i'll bypass that warnign when the mode is zero

btw, you need to work with a copy of the list

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
___


[NTG-context] Floating Figure in framed-environment

2022-10-19 Thread Oliver Sieber via ntg-context
Dear ConTeXt Users

I am relatively new to context and I am suffering with a problem with the 
framed environment.

I want to use a framed textbox for Definitions in my script. I also want to use 
floating figures.  But this does not work and I haven’t found out why. Maybe I 
totally use it the wrong way. I would appreciate if someone could help me or 
has a tipp.

Here is an example code, where the figure does not behave as expected, i.e. the 
figure is behind the text:

\starttext
\framed[corner=round, rulethickness=2pt, width=\textwidth, align=flushleft, 
offset=1em,background=color,framecolor=black]
{{\bf Definition: Hello World} \blank[medium] 

\placefigure[right, none]{This is an example of a logo.}{\externalfigure[dummy]}

Carrot cake tiramisu lollipop dragée lollipop marshmallow carrot cake sweet 
pastry. Tiramisu danish jelly tootsie roll tart gummi bears. Carrot cake chupa 
chups cake wafer lemon drops lemon drops tiramisu. Chocolate lemon drops sugar 
plum cheesecake jelly beans sugar plum. Tootsie roll cupcake jujubes pie 
chocolate bar bear claw chupa chups shortbread. Candy candy canes jelly-o jelly 
beans sugar plum muffin danish donut. Bonbon lemon drops powder jujubes 
marshmallow biscuit halvah. Powder carrot cake caramels chocolate cake carrot 
cake jelly-o. Topping danish tootsie roll gummi bears oat cake jujubes. Sweet 
candy canes cotton candy pie topping. Jelly-o carrot cake ice cream lemon drops 
macaroon gummies lemon drops tiramisu chocolate cake. Cupcake sugar plum 
shortbread gummi bears tootsie roll. Chocolate cake sugar plum macaroon candy 
canes chocolate bar donut cake icing tootsie roll.
}
\stoptext


Best regards
Oli
___
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-10-19 Thread juh via ntg-context
Dear Pablo,

Am Sun, Oct 16, 2022 at 08:43:25PM +0200 schrieb Pablo Rodriguez via 
ntg-context:
> On 7/25/22 14:00, juh+ntg-context--- via ntg-context wrote:
> > [...]
> > 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
> 
> Hi juh,
> 
> this should have been fixed in current latest. So I think it may be safe
> to close the issue.
> 
> Sorry, but I cannot access to my Mozilla account temporarily (and I
> think you may close your issue without having to ask administrators).

Thanks for the hint. I will test the new upload and close the bug.

A first look into pdfjs/firefox on my notebook is looking good.

Many thanks to our developers to fix this so quickly. 

juh

-- 
Autoren-Homepage: . http://literatur.hasecke.com
Satiren & Essays: . http://www.sudelbuch.de
Privater Blog:  http://www.hasecke.eu
Netzliteratur-Projekt:  http://www.generationenprojekt.de




signature.asc
Description: PGP signature
___
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
___


[NTG-context] My little example

2022-10-19 Thread Ursula Hermann via ntg-context
Dear List,
Maybe someone can need this.

Uschi


file1.tex
Description: file1.tex
___
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
___