ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \quotation, protrusion and linebreaking
@ 2022-10-11 18:00 Leah Neukirchen via ntg-context
  2022-10-11 18:21 ` Henning Hraban Ramm via ntg-context
  0 siblings, 1 reply; 11+ messages in thread
From: Leah Neukirchen via ntg-context @ 2022-10-11 18:00 UTC (permalink / raw)
  To: ntg-context; +Cc: Leah Neukirchen

Hello,

I noticed the following problem:


\showframe

\startluacode
  fonts.protrusions.vectors.pure[0x201C] = { 1, 1 }
\stopluacode

\definefontfeature[default][default][protrusion=pure]
\setupalign[hanging]

\starttext

This text is unquoted.

“This text is quoted manually.”

\quotation{This text is quoted by a macro.}

This is a very long line followed by a nice linebreak, very supercalifragilisticexpialidocious.

This is a very long line followed by an ugly linebreak, not \quotation{supercalifragilisticexpialidocious}

\stoptext


The macro-quoted text is not protruded.  I fixed this locally with a macro
\def\q#1{\protrusionboundary1\quotation{#1}}
Should this be default?

But the missing hyphenation I have to add myself with \-.  Ideas?

-- 
Leah Neukirchen  <leah@vuxu.org>  https://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
___________________________________________________________________________________

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

* Re: \quotation, protrusion and linebreaking
  2022-10-11 18:00 \quotation, protrusion and linebreaking Leah Neukirchen via ntg-context
@ 2022-10-11 18:21 ` Henning Hraban Ramm via ntg-context
  2022-10-11 19:06   ` Leah Neukirchen via ntg-context
  0 siblings, 1 reply; 11+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-10-11 18:21 UTC (permalink / raw)
  To: Leah Neukirchen via ntg-context; +Cc: Henning Hraban Ramm

Am 11.10.22 um 20:00 schrieb Leah Neukirchen via ntg-context:
> Hello,
> 
> I noticed the following problem:
> 
> 
> \showframe
> 
> \startluacode
>    fonts.protrusions.vectors.pure[0x201C] = { 1, 1 }
> \stopluacode
> 
> \definefontfeature[default][default][protrusion=pure]
> \setupalign[hanging]
> 
> \starttext
> 
> This text is unquoted.
> 
> “This text is quoted manually.”
> 
> \quotation{This text is quoted by a macro.}
> 
> This is a very long line followed by a nice linebreak, very supercalifragilisticexpialidocious.
> 
> This is a very long line followed by an ugly linebreak, not \quotation{supercalifragilisticexpialidocious}
> 
> \stoptext
> 
> 
> The macro-quoted text is not protruded.  I fixed this locally with a macro
> \def\q#1{\protrusionboundary1\quotation{#1}}
> Should this be default?
> 
> But the missing hyphenation I have to add myself with \-.  Ideas?

Try
\setupdelimitedtext[quotation][method=font]

Hraban

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

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

* Re: \quotation, protrusion and linebreaking
  2022-10-11 18:21 ` Henning Hraban Ramm via ntg-context
@ 2022-10-11 19:06   ` Leah Neukirchen via ntg-context
  2022-10-12  8:14     ` Henning Hraban Ramm via ntg-context
  2022-10-12 19:54     ` Rik Kabel via ntg-context
  0 siblings, 2 replies; 11+ messages in thread
From: Leah Neukirchen via ntg-context @ 2022-10-11 19:06 UTC (permalink / raw)
  To: ntg-context; +Cc: Leah Neukirchen

Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl> writes:

> Am 11.10.22 um 20:00 schrieb Leah Neukirchen via ntg-context:
>> Hello,
>> I noticed the following problem:
>> \showframe
>> \startluacode
>>    fonts.protrusions.vectors.pure[0x201C] = { 1, 1 }
>> \stopluacode
>> \definefontfeature[default][default][protrusion=pure]
>> \setupalign[hanging]
>> \starttext
>> This text is unquoted.
>> “This text is quoted manually.”
>> \quotation{This text is quoted by a macro.}
>> This is a very long line followed by a nice linebreak, very
>> supercalifragilisticexpialidocious.
>> This is a very long line followed by an ugly linebreak, not
>> \quotation{supercalifragilisticexpialidocious}
>> \stoptext
>> The macro-quoted text is not protruded.  I fixed this locally with a
>> macro
>> \def\q#1{\protrusionboundary1\quotation{#1}}
>> Should this be default?
>> But the missing hyphenation I have to add myself with \-.  Ideas?
>
> Try
> \setupdelimitedtext[quotation][method=font]

That fixes both issues, thanks!

Not sure where I should have learned this exists, however. ;)

-- 
Leah Neukirchen  <leah@vuxu.org>  https://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
___________________________________________________________________________________

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

* Re: \quotation, protrusion and linebreaking
  2022-10-11 19:06   ` Leah Neukirchen via ntg-context
@ 2022-10-12  8:14     ` Henning Hraban Ramm via ntg-context
  2022-10-12 18:49       ` Denis Maier via ntg-context
  2022-10-12 19:54     ` Rik Kabel via ntg-context
  1 sibling, 1 reply; 11+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-10-12  8:14 UTC (permalink / raw)
  To: ntg-context; +Cc: Henning Hraban Ramm

Am 11.10.22 um 21:06 schrieb Leah Neukirchen:
> Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl> writes:
>> \setupdelimitedtext[quotation][method=font]
> 
> That fixes both issues, thanks!
> 
> Not sure where I should have learned this exists, however. ;)

Oops, I answered only to Leah:

I agree. Someone (Hans or Wolfgang, probably) told me at one time, or I 
picked it up from a discussion on the list, and it’s part of my default 
setup since.

Hraban

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

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

* Re: \quotation, protrusion and linebreaking
  2022-10-12  8:14     ` Henning Hraban Ramm via ntg-context
@ 2022-10-12 18:49       ` Denis Maier via ntg-context
  2022-10-12 19:12         ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 11+ messages in thread
From: Denis Maier via ntg-context @ 2022-10-12 18:49 UTC (permalink / raw)
  To: ntg-context; +Cc: denis.maier

> -----Ursprüngliche Nachricht-----
> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Henning
> Hraban Ramm via ntg-context
> Gesendet: Mittwoch, 12. Oktober 2022 10:15
> An: ntg-context@ntg.nl
> Cc: Henning Hraban Ramm <texml@fiee.net>
> Betreff: Re: [NTG-context] \quotation, protrusion and linebreaking
> 
> Am 11.10.22 um 21:06 schrieb Leah Neukirchen:
> > Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl> writes:
> >> \setupdelimitedtext[quotation][method=font]
> >

Just a quick request for clarification: What does that actually do?

Best,
Denis
___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: \quotation, protrusion and linebreaking
  2022-10-12 18:49       ` Denis Maier via ntg-context
@ 2022-10-12 19:12         ` Hans Hagen via ntg-context
  2022-10-12 19:17           ` Denis Maier via ntg-context
  0 siblings, 1 reply; 11+ messages in thread
From: Hans Hagen via ntg-context @ 2022-10-12 19:12 UTC (permalink / raw)
  To: Denis Maier via ntg-context; +Cc: Hans Hagen

On 10/12/2022 8:49 PM, Denis Maier via ntg-context wrote:
>> -----Ursprüngliche Nachricht-----
>> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Henning
>> Hraban Ramm via ntg-context
>> Gesendet: Mittwoch, 12. Oktober 2022 10:15
>> An: ntg-context@ntg.nl
>> Cc: Henning Hraban Ramm <texml@fiee.net>
>> Betreff: Re: [NTG-context] \quotation, protrusion and linebreaking
>>
>> Am 11.10.22 um 21:06 schrieb Leah Neukirchen:
>>> Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl> writes:
>>>> \setupdelimitedtext[quotation][method=font]
>>>
> 
> Just a quick request for clarification: What does that actually do?
uses glyph in font instead (most opentype have them)


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

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

* Re: \quotation, protrusion and linebreaking
  2022-10-12 19:12         ` Hans Hagen via ntg-context
@ 2022-10-12 19:17           ` Denis Maier via ntg-context
  2022-10-12 20:25             ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 11+ messages in thread
From: Denis Maier via ntg-context @ 2022-10-12 19:17 UTC (permalink / raw)
  To: ntg-context; +Cc: denis.maier

> -----Ursprüngliche Nachricht-----
> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Hans Hagen
> via ntg-context
> Gesendet: Mittwoch, 12. Oktober 2022 21:12
> An: Denis Maier via ntg-context <ntg-context@ntg.nl>
> Cc: Hans Hagen <j.hagen@freedom.nl>
> Betreff: Re: [NTG-context] \quotation, protrusion and linebreaking
> 
> On 10/12/2022 8:49 PM, Denis Maier via ntg-context wrote:
> >> -----Ursprüngliche Nachricht-----
> >> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Henning
> >> Hraban Ramm via ntg-context
> >> Gesendet: Mittwoch, 12. Oktober 2022 10:15
> >> An: ntg-context@ntg.nl
> >> Cc: Henning Hraban Ramm <texml@fiee.net>
> >> Betreff: Re: [NTG-context] \quotation, protrusion and linebreaking
> >>
> >> Am 11.10.22 um 21:06 schrieb Leah Neukirchen:
> >>> Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl> writes:
> >>>> \setupdelimitedtext[quotation][method=font]
> >>>
> >
> > Just a quick request for clarification: What does that actually do?
> uses glyph in font instead (most opentype have them)

Instead of what?
___________________________________________________________________________________
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
___________________________________________________________________________________

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

* Re: \quotation, protrusion and linebreaking
  2022-10-11 19:06   ` Leah Neukirchen via ntg-context
  2022-10-12  8:14     ` Henning Hraban Ramm via ntg-context
@ 2022-10-12 19:54     ` Rik Kabel via ntg-context
  1 sibling, 0 replies; 11+ messages in thread
From: Rik Kabel via ntg-context @ 2022-10-12 19:54 UTC (permalink / raw)
  To: ntg-context; +Cc: Rik Kabel


[-- Attachment #1.1: Type: text/plain, Size: 3144 bytes --]


On 2022-10-11 15:06, Leah Neukirchen via ntg-context wrote:
> Henning Hraban Ramm via ntg-context<ntg-context@ntg.nl>  writes:
>
>> Am 11.10.22 um 20:00 schrieb Leah Neukirchen via ntg-context:
>>> Hello,
>>> I noticed the following problem:
>>> \showframe
>>> \startluacode
>>>     fonts.protrusions.vectors.pure[0x201C] = { 1, 1 }
>>> \stopluacode
>>> \definefontfeature[default][default][protrusion=pure]
>>> \setupalign[hanging]
>>> \starttext
>>> This text is unquoted.
>>> “This text is quoted manually.”
>>> \quotation{This text is quoted by a macro.}
>>> This is a very long line followed by a nice linebreak, very
>>> supercalifragilisticexpialidocious.
>>> This is a very long line followed by an ugly linebreak, not
>>> \quotation{supercalifragilisticexpialidocious}
>>> \stoptext
>>> The macro-quoted text is not protruded.  I fixed this locally with a
>>> macro
>>> \def\q#1{\protrusionboundary1\quotation{#1}}
>>> Should this be default?
>>> But the missing hyphenation I have to add myself with \-.  Ideas?
>> Try
>> \setupdelimitedtext[quotation][method=font]
> That fixes both issues, thanks!
>
> Not sure where I should have learned this exists, however. ;)

Note that this does not fix the problem when the quotation begins a 
footnote. See the thread "Hanging punctuation misalignment in footnotes" 
(https://mailman.ntg.nl/pipermail/ntg-context/2014/077122.html or 
https://www.mail-archive.com/ntg-context@ntg.nl/msg73516.html, pick your 
favorite archiver), where the problem is described. An test example follows:

    \setuplayout       [width=9cm,
                         height=12cm]
    \definefontfeature [default]
                        [default]
                        [protrusion=quality]
    \setupalign        [hanging]
    \setupquotation    [method=font]
    \setupnote         [endnote]
                        [location=none]
    \setupnotation     [footnote]
                        [numberconversion=set 2]
    \setupnotation     [footnote]
                        [align=hanging]
    \setupwhitespace   [medium]
    \setupbodyfont     [libertinus]
    \showframe
    \starttext

    \quotation{{\em Cantharides}} is the reported message from Sir Francis
    Drake upon defeating the Spanish Armada.\endnote{\quotation{{\em
    Vovi}} is
    reportedly the message from James Broun|-|Ramsay on taking Oudh. Both
    are as likely as the attribution of \quotation{{\em peccavi}} to
    Napier after
    his defeat of the Ameer of Scinde.}\footnote{“{\em Vovi}” is
    reportedly the message from James Broun|-|Ramsay on taking Oudh. Both
    are as likely as the attribution of \quotation{{\em peccavi}} to
    Napier after
    his defeat of the Ameer of Scinde.}

    {\tfx This problem appears intractable. See \quotation{Re:
    [NTG-context] Hanging punctuation misalignment in footnotes} on the
    mailing list, where Wolfgang explains that the problem is struts.}

    \placenotes[endnote]

    \stoptext

A solution is welcomed.

-- 
Rik

[-- Attachment #1.2: Type: text/html, Size: 4638 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

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

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

* Re: \quotation, protrusion and linebreaking
  2022-10-12 19:17           ` Denis Maier via ntg-context
@ 2022-10-12 20:25             ` Wolfgang Schuster via ntg-context
  2022-10-12 22:43               ` Alan Braslau via ntg-context
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-10-12 20:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Denis Maier via ntg-context
  Cc: Wolfgang Schuster

Denis Maier via ntg-context schrieb am 12.10.2022 um 21:17:
> Instead of what?

By default the symbols are placed with a box because you aren't limited
to normal quotation marks.

\setupexternalfigure [location=default]

\setupdelimitedtext
   [quotation]
   [ left={\externalfigure[cow][height=\strutht]},
    right={\externalfigure[cow][height=\strutht]}]

\starttext

\quotation{\input weisman }

\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
___________________________________________________________________________________

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

* Re: \quotation, protrusion and linebreaking
  2022-10-12 20:25             ` Wolfgang Schuster via ntg-context
@ 2022-10-12 22:43               ` Alan Braslau via ntg-context
  2022-10-13  3:56                 ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 11+ messages in thread
From: Alan Braslau via ntg-context @ 2022-10-12 22:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Alan Braslau

On 12/10/22 12/10/22, 14:25, Wolfgang Schuster via ntg-context wrote:
> Denis Maier via ntg-context schrieb am 12.10.2022 um 21:17:
>> Instead of what?
> 
> By default the symbols are placed with a box because you aren't limited
> to normal quotation marks.
> 
> \setupexternalfigure [location=default]
> 
> \setupdelimitedtext
>    [quotation]
>    [ left={\externalfigure[cow][height=\strutht]},
>     right={\externalfigure[cow][height=\strutht]}]

I *like* cow delimiters (but shouldn't the right one be reflected?) ;-)

Alan

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

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

* Re: \quotation, protrusion and linebreaking
  2022-10-12 22:43               ` Alan Braslau via ntg-context
@ 2022-10-13  3:56                 ` Wolfgang Schuster via ntg-context
  0 siblings, 0 replies; 11+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-10-13  3:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster

Alan Braslau schrieb am 13.10.2022 um 00:43:
> On 12/10/22 12/10/22, 14:25, Wolfgang Schuster via ntg-context wrote:
>> Denis Maier via ntg-context schrieb am 12.10.2022 um 21:17:
>>> Instead of what?
>>
>> By default the symbols are placed with a box because you aren't limited
>> to normal quotation marks.
>>
>> \setupexternalfigure [location=default]
>>
>> \setupdelimitedtext
>>    [quotation]
>>    [ left={\externalfigure[cow][height=\strutht]},
>>     right={\externalfigure[cow][height=\strutht]}]
>
> I *like* cow delimiters (but shouldn't the right one be reflected?) ;-)

Better?

\setupdelimitedtext
   [quotation]
   [ 
left={\offset[y=.5\strutdp]{\externalfigure[cow][height=\dimexpr\strutht+.5\strutdp\relax]}\nbsp},
right={\nbsp\mirror{\offset[y=.5\strutdp]{\externalfigure[cow][height=\dimexpr\strutht+.5\strutdp\relax]}}}]

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
___________________________________________________________________________________

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

end of thread, other threads:[~2022-10-13  3:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-11 18:00 \quotation, protrusion and linebreaking Leah Neukirchen via ntg-context
2022-10-11 18:21 ` Henning Hraban Ramm via ntg-context
2022-10-11 19:06   ` Leah Neukirchen via ntg-context
2022-10-12  8:14     ` Henning Hraban Ramm via ntg-context
2022-10-12 18:49       ` Denis Maier via ntg-context
2022-10-12 19:12         ` Hans Hagen via ntg-context
2022-10-12 19:17           ` Denis Maier via ntg-context
2022-10-12 20:25             ` Wolfgang Schuster via ntg-context
2022-10-12 22:43               ` Alan Braslau via ntg-context
2022-10-13  3:56                 ` Wolfgang Schuster via ntg-context
2022-10-12 19:54     ` Rik Kabel via ntg-context

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).