ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] \wordright
@ 2025-09-11 16:24 Henning Hraban Ramm
  2025-09-11 18:12 ` [NTG-context] \wordright Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Henning Hraban Ramm @ 2025-09-11 16:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

As I also mentioned yesterday in the online meeting, \wordright fails 
within a \framed.

Without the frame, \wordright behaves like it should.

Within the frame, it creates an overfull hbox, i.e. the text exceeds the 
frame. And that without any need, there would be enough space within. In 
the last case, it creates a new line, also needlessly. (The other 
overfull hbox problems are probably due to the mismatched languages.)
In my book, the author disappears completely.
Can I fix / work around that?

BTW the text is my test quote for quotation marks.


"""
\setuppapersize[A5]
\mainlanguage[de]
\setupbodyfont[palatino,12pt]
\setuplayout[width=80mm]

\startbuffer[Fremdsprache]
Schön ist das, in einem fremden Land zu reisen, und auf
\quote{fremdländisch} grade \quotation{Bitte!}, \quotation{Danke!} und 
\quotation{Einschreibepaket!} sagen zu können.\wordright{\emph{Kurt 
Tucholsky}}
\stopbuffer%

\startbuffer[Quote]
{\language[de]\getbuffer[Fremdsprache]}\blank
{\language[fr]\getbuffer[Fremdsprache]}\blank
{\language[fr]\setcharacterspacing[frenchpunctuation]
\getbuffer[Fremdsprache]}\blank
{\language[en]\getbuffer[Fremdsprache]}
\stopbuffer

\starttext

\getbuffer[Quote]

\framedtext[width=fit,align=normal]{\getbuffer[Quote]}
\stoptext
"""

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: \wordright
  2025-09-11 16:24 [NTG-context] \wordright Henning Hraban Ramm
@ 2025-09-11 18:12 ` Wolfgang Schuster
  2025-09-11 18:31   ` Henning Hraban Ramm
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2025-09-11 18:12 UTC (permalink / raw)
  To: ntg-context

Am 11.09.2025 um 18:24 schrieb Henning Hraban Ramm:
> As I also mentioned yesterday in the online meeting, \wordright fails 
> within a \framed.
> 
> Without the frame, \wordright behaves like it should.
> 
> Within the frame, it creates an overfull hbox, i.e. the text exceeds the 
> frame. And that without any need, there would be enough space within. In 
> the last case, it creates a new line, also needlessly. (The other 
> overfull hbox problems are probably due to the mismatched languages.)
> In my book, the author disappears completely.
> Can I fix / work around that?

Set a width for the frame rather than using width=fit.

Wolfgang

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: \wordright
  2025-09-11 18:12 ` [NTG-context] \wordright Wolfgang Schuster
@ 2025-09-11 18:31   ` Henning Hraban Ramm
  0 siblings, 0 replies; 3+ messages in thread
From: Henning Hraban Ramm @ 2025-09-11 18:31 UTC (permalink / raw)
  To: ntg-context

Am 11.09.25 um 20:12 schrieb Wolfgang Schuster:
> Am 11.09.2025 um 18:24 schrieb Henning Hraban Ramm:
>> As I also mentioned yesterday in the online meeting, \wordright fails 
>> within a \framed.
>>
>> Without the frame, \wordright behaves like it should.
>>
>> Within the frame, it creates an overfull hbox, i.e. the text exceeds 
>> the frame. And that without any need, there would be enough space 
>> within. In the last case, it creates a new line, also needlessly. (The 
>> other overfull hbox problems are probably due to the mismatched 
>> languages.)
>> In my book, the author disappears completely.
>> Can I fix / work around that?
> 
> Set a width for the frame rather than using width=fit.

Thanks, but it works only sometimes, depending on the width value.
The detection of remaining space for the “word” seems to fail.

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2025-09-11 18:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-11 16:24 [NTG-context] \wordright Henning Hraban Ramm
2025-09-11 18:12 ` [NTG-context] \wordright Wolfgang Schuster
2025-09-11 18:31   ` Henning Hraban Ramm

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 NNTP newsgroup(s).