ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* quotes potruding out in the left margin
@ 2021-06-04  6:44 Sandra Snan
  2021-06-04  7:16 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Sandra Snan @ 2021-06-04  6:44 UTC (permalink / raw)
  To: ntg-context

Hi♥

How do I get the quotes to potrude out in the left margin?

For example in the following text, I want the "y" in "you are so" to be
aligned with the "oh" in "oh hi there" and the "here" in "here here".

\definefontfeature
  [default]
  [default]
  [protrusion=quality,expansion=quality]

\setupalign[hz,hanging]

\starttext
oh hi there

"you are so"

here here
\stoptext

Also in the real text I'll also be using
\definefontfamily [praise][serif][junicode]
but, the above min via behavior I couldn't get to work at live.contextgarden
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

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

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

* Re: quotes potruding out in the left margin
  2021-06-04  6:44 quotes potruding out in the left margin Sandra Snan
@ 2021-06-04  7:16 ` Wolfgang Schuster
  2021-06-04  7:52   ` Sandra Snan
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2021-06-04  7:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Sandra Snan schrieb am 04.06.2021 um 08:44:
> Hi♥
>
> How do I get the quotes to potrude out in the left margin?
>
> For example in the following text, I want the "y" in "you are so" to be
> aligned with the "oh" in "oh hi there" and the "here" in "here here".
>
> \definefontfeature
>    [default]
>    [default]
>    [protrusion=quality,expansion=quality]
>
> \setupalign[hz,hanging]
>
> \starttext
> oh hi there
>
> "you are so"
>
> here here
> \stoptext
>
> Also in the real text I'll also be using
> \definefontfamily [praise][serif][junicode]
> but, the above min via behavior I couldn't get to work at live.contextgarden

You need proper quotation mark (as shown in my example below) sand not 
". Another option is to use the \quotation command and enable the 
protrusion option for (see \setupquotation).

When you have a text with a lot of quotation marks but your system has 
no easy way to input them you can check if your text editor has smart 
quotes feature which replaces " with the proper quotes.

\definefontfeature
   [default]
   [default]
   [protrusion=quality,expansion=quality]

\setupquotation
   [method=font]

\setupalign[hz,hanging]

\starttext

oh hi there

“you are so”

\quotation{you are so}

here here

\stoptext

Wolfgang

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

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

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

* Re: quotes potruding out in the left margin
  2021-06-04  7:16 ` Wolfgang Schuster
@ 2021-06-04  7:52   ` Sandra Snan
  2021-06-04  8:08     ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Sandra Snan @ 2021-06-04  7:52 UTC (permalink / raw)
  To: Wolfgang Schuster, mailing list for ConTeXt users

Oh, the example you just posted doesn't work on live.contextgarden, let
alone on my installation. The quotation marks still don't potrude.


Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> writes:

> Sandra Snan schrieb am 04.06.2021 um 08:44:
>> Hi♥
>>
>> How do I get the quotes to potrude out in the left margin?
>>
>> For example in the following text, I want the "y" in "you are so" to be
>> aligned with the "oh" in "oh hi there" and the "here" in "here here".
>>
>> \definefontfeature
>>    [default]
>>    [default]
>>    [protrusion=quality,expansion=quality]
>>
>> \setupalign[hz,hanging]
>>
>> \starttext
>> oh hi there
>>
>> "you are so"
>>
>> here here
>> \stoptext
>>
>> Also in the real text I'll also be using
>> \definefontfamily [praise][serif][junicode]
>> but, the above min via behavior I couldn't get to work at live.contextgarden
>
> You need proper quotation mark (as shown in my example below) sand not 
> ". Another option is to use the \quotation command and enable the 
> protrusion option for (see \setupquotation).
>
> When you have a text with a lot of quotation marks but your system has 
> no easy way to input them you can check if your text editor has smart 
> quotes feature which replaces " with the proper quotes.
>
> \definefontfeature
>    [default]
>    [default]
>    [protrusion=quality,expansion=quality]
>
> \setupquotation
>    [method=font]
>
> \setupalign[hz,hanging]
>
> \starttext
>
> oh hi there
>
> “you are so”
>
> \quotation{you are so}
>
> here here
>
> \stoptext
>
> Wolfgang
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

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

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

* Re: quotes potruding out in the left margin
  2021-06-04  7:52   ` Sandra Snan
@ 2021-06-04  8:08     ` Wolfgang Schuster
  2021-06-04  9:20       ` denis.maier
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2021-06-04  8:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 432 bytes --]

Sandra Snan schrieb am 04.06.2021 um 09:52:
> Oh, the example you just posted doesn't work on live.contextgarden, let
> alone on my installation. The quotation marks still don't potrude.

I tested my example on the garden and got the expected output with the 
quotation marks in the margin (only partially but this is normal with 
the quality setting).

I attached the example to ensure nothing was added when I send it.

Wolfgang


[-- Attachment #2: test.tex --]
[-- Type: text/plain, Size: 295 bytes --]

\definefontfeature
  [default]
  [default]
  [protrusion=quality,
   expansion=quality]

\setupquotation
  [method=font]

\setupalign
  [hz,hanging]

\showframe
  [text]
  [text]

\starttext

oh hi there

“you are so”

\quotation{you are so}

here here

\stoptext

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

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

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

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

* Re: quotes potruding out in the left margin
  2021-06-04  8:08     ` Wolfgang Schuster
@ 2021-06-04  9:20       ` denis.maier
  2021-06-04 12:23         ` Hans Hagen
  2021-06-05  5:36         ` Sandra Snan
  0 siblings, 2 replies; 8+ messages in thread
From: denis.maier @ 2021-06-04  9:20 UTC (permalink / raw)
  To: ntg-context

> -----Ursprüngliche Nachricht-----
> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Wolfgang
> Schuster
> Gesendet: Freitag, 4. Juni 2021 10:08
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Betreff: Re: [NTG-context] quotes potruding out in the left margin
> 
> Sandra Snan schrieb am 04.06.2021 um 09:52:
> > Oh, the example you just posted doesn't work on live.contextgarden,
> > let alone on my installation. The quotation marks still don't potrude.
> 
> I tested my example on the garden and got the expected output with the
> quotation marks in the margin (only partially but this is normal with the
> quality setting).
> 

I can confirm that this works. As Wolfgang notes protrusion is only partial with the default settings, but you can tweak it with \setupfontprotrusion (see below).
\setupfontprotrusion [quality] [left=2] is probably what you want since this puts the complete quotation mark into the margin.

I don't know what the numbers mean. Maybe someone can add to this.

Denis

========================
%\setupfontprotrusion [quality] [left=0] % no protrusion on the left margin
\setupfontprotrusion [quality] [left=1] % default
%\setupfontprotrusion [quality] [left=1.5] % more protrustion
%\setupfontprotrusion [quality] [left=2] % even more protrustion
%\setupfontprotrusion [quality] [left=2.5] % too much protrusion

\definefontfeature
  [default]
  [default]
  [protrusion=quality,
   expansion=quality]

\setupquotation
  [method=font]

\setupalign
  [hz,hanging]

\showframe
  [text]
  [text]

\starttext

oh hi there

“you are so”

\quotation{you are so}

here here

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

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

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

* Re: quotes potruding out in the left margin
  2021-06-04  9:20       ` denis.maier
@ 2021-06-04 12:23         ` Hans Hagen
  2021-06-05  5:36         ` Sandra Snan
  1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2021-06-04 12:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users, denis.maier

On 6/4/2021 11:20 AM, denis.maier@ub.unibe.ch wrote:
>> -----Ursprüngliche Nachricht-----
>> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Wolfgang
>> Schuster
>> Gesendet: Freitag, 4. Juni 2021 10:08
>> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
>> Betreff: Re: [NTG-context] quotes potruding out in the left margin
>>
>> Sandra Snan schrieb am 04.06.2021 um 09:52:
>>> Oh, the example you just posted doesn't work on live.contextgarden,
>>> let alone on my installation. The quotation marks still don't potrude.
>>
>> I tested my example on the garden and got the expected output with the
>> quotation marks in the margin (only partially but this is normal with the
>> quality setting).
>>
> 
> I can confirm that this works. As Wolfgang notes protrusion is only partial with the default settings, but you can tweak it with \setupfontprotrusion (see below).
> \setupfontprotrusion [quality] [left=2] is probably what you want since this puts the complete quotation mark into the margin.
> 
> I don't know what the numbers mean. Maybe someone can add to this.

multiplication factors

btw, in lmtx you can locally disable protrusion with:

{\noprotrusion \quotation{you are so}}


> Denis
> 
> ========================
> %\setupfontprotrusion [quality] [left=0] % no protrusion on the left margin
> \setupfontprotrusion [quality] [left=1] % default
> %\setupfontprotrusion [quality] [left=1.5] % more protrustion
> %\setupfontprotrusion [quality] [left=2] % even more protrustion
> %\setupfontprotrusion [quality] [left=2.5] % too much protrusion
> 
> \definefontfeature
>    [default]
>    [default]
>    [protrusion=quality,
>     expansion=quality]
> 
> \setupquotation
>    [method=font]
> 
> \setupalign
>    [hz,hanging]
> 
> \showframe
>    [text]
>    [text]
> 
> \starttext
> 
> oh hi there
> 
> “you are so”
> 
> \quotation{you are so}
> 
> here here
> 
> \stoptext
> ========================
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 


-- 

-----------------------------------------------------------------
                                           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 / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: quotes potruding out in the left margin
  2021-06-04  9:20       ` denis.maier
  2021-06-04 12:23         ` Hans Hagen
@ 2021-06-05  5:36         ` Sandra Snan
  2021-06-05 17:03           ` Michael Guravage
  1 sibling, 1 reply; 8+ messages in thread
From: Sandra Snan @ 2021-06-05  5:36 UTC (permalink / raw)
  To: denis.maier, ntg-context

Thank you both for your help. Additionally, I needed to make sure that
\setupbodyfont comes after all this. But now I've finally got the
margin-potruding quotations of my dreams.

<denis.maier@ub.unibe.ch> writes:

>> -----Ursprüngliche Nachricht-----
>> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Wolfgang
>> Schuster
>> Gesendet: Freitag, 4. Juni 2021 10:08
>> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
>> Betreff: Re: [NTG-context] quotes potruding out in the left margin
>> 
>> Sandra Snan schrieb am 04.06.2021 um 09:52:
>> > Oh, the example you just posted doesn't work on live.contextgarden,
>> > let alone on my installation. The quotation marks still don't potrude.
>> 
>> I tested my example on the garden and got the expected output with the
>> quotation marks in the margin (only partially but this is normal with the
>> quality setting).
>> 
>
> I can confirm that this works. As Wolfgang notes protrusion is only partial with the default settings, but you can tweak it with \setupfontprotrusion (see below).
> \setupfontprotrusion [quality] [left=2] is probably what you want since this puts the complete quotation mark into the margin.
>
> I don't know what the numbers mean. Maybe someone can add to this.
>
> Denis
>
> ========================
> %\setupfontprotrusion [quality] [left=0] % no protrusion on the left margin
> \setupfontprotrusion [quality] [left=1] % default
> %\setupfontprotrusion [quality] [left=1.5] % more protrustion
> %\setupfontprotrusion [quality] [left=2] % even more protrustion
> %\setupfontprotrusion [quality] [left=2.5] % too much protrusion
>
> \definefontfeature
>   [default]
>   [default]
>   [protrusion=quality,
>    expansion=quality]
>
> \setupquotation
>   [method=font]
>
> \setupalign
>   [hz,hanging]
>
> \showframe
>   [text]
>   [text]
>
> \starttext
>
> oh hi there
>
> “you are so”
>
> \quotation{you are so}
>
> here here
>
> \stoptext
> ========================
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

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

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

* Re: quotes potruding out in the left margin
  2021-06-05  5:36         ` Sandra Snan
@ 2021-06-05 17:03           ` Michael Guravage
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Guravage @ 2021-06-05 17:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

If you were to add a start-stopquotation block to Wolfgang's example, you'd
see that the resulting paragraph has lost its narrowness. Is there a way to
allow quotes to protrude into the left margin while preserving the
narrowness of start-stopquotation blocks? My own solution is not to
\setupquotation[method=font] but to define a delimited text environment
whose method=font, and use it when a paragraph begins with a quotation.

I have attached my own mwe. You can toggle the \setquotation command with
--mode=font.

Does anyone have a more elegant, or better yet, a correct solution?

With kind regards,

Michael



On Sat, Jun 5, 2021 at 7:36 AM Sandra Snan <sandra.snan@idiomdrottning.org>
wrote:

> Thank you both for your help. Additionally, I needed to make sure that
> \setupbodyfont comes after all this. But now I've finally got the
> margin-potruding quotations of my dreams.
>
> <denis.maier@ub.unibe.ch> writes:
>
> >> -----Ursprüngliche Nachricht-----
> >> Von: ntg-context <ntg-context-bounces@ntg.nl> Im Auftrag von Wolfgang
> >> Schuster
> >> Gesendet: Freitag, 4. Juni 2021 10:08
> >> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> >> Betreff: Re: [NTG-context] quotes potruding out in the left margin
> >>
> >> Sandra Snan schrieb am 04.06.2021 um 09:52:
> >> > Oh, the example you just posted doesn't work on live.contextgarden,
> >> > let alone on my installation. The quotation marks still don't potrude.
> >>
> >> I tested my example on the garden and got the expected output with the
> >> quotation marks in the margin (only partially but this is normal with
> the
> >> quality setting).
> >>
> >
> > I can confirm that this works. As Wolfgang notes protrusion is only
> partial with the default settings, but you can tweak it with
> \setupfontprotrusion (see below).
> > \setupfontprotrusion [quality] [left=2] is probably what you want since
> this puts the complete quotation mark into the margin.
> >
> > I don't know what the numbers mean. Maybe someone can add to this.
> >
> > Denis
> >
> > ========================
> > %\setupfontprotrusion [quality] [left=0] % no protrusion on the left
> margin
> > \setupfontprotrusion [quality] [left=1] % default
> > %\setupfontprotrusion [quality] [left=1.5] % more protrustion
> > %\setupfontprotrusion [quality] [left=2] % even more protrustion
> > %\setupfontprotrusion [quality] [left=2.5] % too much protrusion
> >
> > \definefontfeature
> >   [default]
> >   [default]
> >   [protrusion=quality,
> >    expansion=quality]
> >
> > \setupquotation
> >   [method=font]
> >
> > \setupalign
> >   [hz,hanging]
> >
> > \showframe
> >   [text]
> >   [text]
> >
> > \starttext
> >
> > oh hi there
> >
> > “you are so”
> >
> > \quotation{you are so}
> >
> > here here
> >
> > \stoptext
> > ========================
> >
> ___________________________________________________________________________________
> > If your question is of interest to others as well, please add an entry
> to the Wiki!
> >
> > maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki     : http://contextgarden.net
> >
> ___________________________________________________________________________________
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

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

[-- Attachment #2: mwe.tex --]
[-- Type: text/x-tex, Size: 815 bytes --]

\showgrid
\showframe[text][text]

\setupwhitespace[medium]
\setuplayout[grid=yes]

\definefontfeature
  [default]
  [default]
  [protrusion=quality,
   expansion=quality]
\setupalign[hz,hanging]

% Definition inherits, followed by setting up
\definedelimitedtext[parquote][quotation]
\setupdelimitedtext[parquote][method=font]
\def\parquotation#1{\startparquote{#1}\stopparquote}

% Provide protrusion for quotations.
\startmode[font]
  \setupquotation[method=font] % Toggle this line to see the effect.
\stopmode

\starttext
  \quotation{Love makes the world go round,}as an old proverb has it\ldots

  “Love makes the world go round,” as an old proverb has it\ldots

  \parquotation{Love makes the world go round,} as an old proverb has it\ldots

  \startquotation
    \input tufte
  \stopquotation

\stoptext

[-- Attachment #3: Type: text/plain, Size: 493 bytes --]

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

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

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

end of thread, other threads:[~2021-06-05 17:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-04  6:44 quotes potruding out in the left margin Sandra Snan
2021-06-04  7:16 ` Wolfgang Schuster
2021-06-04  7:52   ` Sandra Snan
2021-06-04  8:08     ` Wolfgang Schuster
2021-06-04  9:20       ` denis.maier
2021-06-04 12:23         ` Hans Hagen
2021-06-05  5:36         ` Sandra Snan
2021-06-05 17:03           ` Michael Guravage

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