ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Hanging punctuation misalignment in footnotes
       [not found] <00c101cf2f5a$dccfc600$966f5200$@tosovsky@tiscali.cz>
@ 2014-02-22  0:25 ` Jan Tosovsky
       [not found] ` <00c201cf2f64$9c6d7d50$d54877f0$@tosovsky@email.cz>
       [not found] ` <5307ee93.437e0e0a.70d2.413eSMTPIN_ADDED_BROKEN@mx.google.com>
  2 siblings, 0 replies; 8+ messages in thread
From: Jan Tosovsky @ 2014-02-22  0:25 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

On 2014-02-22 Jan Tosovsky wrote:
> 
> when hanging in footnotes is enabled and the starting character is a
> punctuation, it is not protruded. However, the same character in the
> footnote body works fine. When both cases are close each other, it
> looks weird, see the screenshot:
> 
> http://drifted.in/other/footnote_alignment.png
> 
> Would it be possible make this behaviour uniform - either do not
> protrude it
> on the starting (left) edge or protrude it everywhere?
> 

A minimal example is available at 
http://drifted.in/other/sample.tex

(those guillemets would be lost here in the mailing list)

Tested in the current beta on Windows (it requires Palatino Linotype font).

Jan

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Hanging punctuation misalignment in footnotes
       [not found] ` <00c201cf2f64$9c6d7d50$d54877f0$@tosovsky@email.cz>
@ 2014-02-22  9:55   ` Hans Hagen
  2014-02-22 11:36     ` Jan Tosovsky
  0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2014-02-22  9:55 UTC (permalink / raw)
  To: ntg-context

On 2/22/2014 1:25 AM, Jan Tosovsky wrote:
> On 2014-02-22 Jan Tosovsky wrote:
>>
>> when hanging in footnotes is enabled and the starting character is a
>> punctuation, it is not protruded. However, the same character in the
>> footnote body works fine. When both cases are close each other, it
>> looks weird, see the screenshot:
>>
>> http://drifted.in/other/footnote_alignment.png
>>
>> Would it be possible make this behaviour uniform - either do not
>> protrude it
>> on the starting (left) edge or protrude it everywhere?
>>
>
> A minimal example is available at
> http://drifted.in/other/sample.tex
>
> (those guillemets would be lost here in the mailing list)
>
> Tested in the current beta on Windows (it requires Palatino Linotype font).

Hard to solve that one fast .. basically all that gets bound to a next 
characters makes that next character not protrude. This is not something 
the engine can solve as it doesn't know what it deals with (so the 
current behaviour is as it should be).

Maybe in a future version of context I can deal with it (as I know how 
to do it, but that doesn't help much now).

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Hanging punctuation misalignment in footnotes
  2014-02-22  9:55   ` Hans Hagen
@ 2014-02-22 11:36     ` Jan Tosovsky
  0 siblings, 0 replies; 8+ messages in thread
From: Jan Tosovsky @ 2014-02-22 11:36 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

On 2014-02-22 Hans Hagen wrote:
> On 2/22/2014 1:25 AM, Jan Tosovsky wrote:
> > On 2014-02-22 Jan Tosovsky wrote:
> >>
> >> when hanging in footnotes is enabled and the starting character is a
> >> punctuation, it is not protruded. However, the same character in the
> >> footnote body works fine. When both cases are close each other, it
> >> looks weird, see the screenshot:
> >>
> >> http://drifted.in/other/footnote_alignment.png
> >>
> >> Would it be possible make this behaviour uniform - either do not
> >> protrude it
> >> on the starting (left) edge or protrude it everywhere?
> >>
> >
> > A minimal example is available at
> > http://drifted.in/other/sample.tex
> >
> > (those guillemets would be lost here in the mailing list)
> >
> > Tested in the current beta on Windows (it requires Palatino Linotype
> font).
> 
> Hard to solve that one fast .. basically all that gets bound to 
> a next characters makes that next character not protrude. This is 
> not something the engine can solve as it doesn't know what it deals 
> with (so the current behaviour is as it should be).

:-/

> Maybe in a future version of context I can deal with it (as I know how
> to do it, but that doesn't help much now).

I am looking forward to it. 

While I can intervene manualy now {\hskip -0.7mm}>Fel..., it is of no use
for dynamic publishing.

Thanks, Jan

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Hanging punctuation misalignment in footnotes
       [not found] ` <5307ee93.437e0e0a.70d2.413eSMTPIN_ADDED_BROKEN@mx.google.com>
@ 2014-02-23 18:50   ` Wolfgang Schuster
  2016-03-29 21:07     ` Jan Tosovsky
       [not found]     ` <025b01d189ff$02089e00$0619da00$@tosovsky@email.cz>
  0 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2014-02-23 18:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 22.02.2014 um 01:25 schrieb Jan Tosovsky <j.tosovsky@email.cz>:

> On 2014-02-22 Jan Tosovsky wrote:
>> 
>> when hanging in footnotes is enabled and the starting character is a
>> punctuation, it is not protruded. However, the same character in the
>> footnote body works fine. When both cases are close each other, it
>> looks weird, see the screenshot:
>> 
>> http://drifted.in/other/footnote_alignment.png
>> 
>> Would it be possible make this behaviour uniform - either do not
>> protrude it
>> on the starting (left) edge or protrude it everywhere?
>> 
> 
> A minimal example is available at 
> http://drifted.in/other/sample.tex

There are two things which prevent the protrusion of the opening quote at the begin of the paragraph. One of these can be avoided with a change in the setup for footnotes but not the other without destroying the layout of the footnote text.


One problem is the way how context places the footnote number in front of the text, by default context uses the \llap command to move the number into the left margin but this prevents also the protrusion of the opening quote. You can avoid this problem when you change the footnote setup to \setupnotation[footnote][alternative=margin].

<example>
\definefontfeature[default][default][expansion=quality,protrusion=quality]

\setupbodyfont[modern]

\setupalign[hanging]

\showframe[text][text]

\starttext

»Text«

\noindent\hbox to 0pt{}»Text«

\noindent\hbox to 0pt{\hss}»Text«

\stoptext
</example>


The second problem which prevents the opening quote to protrude are the struts which are added by context at the begin and end of the footnote content and there is no way to disable them because they are needed to have proper spacing between the individual footnote texts on the same page.

<example>
\definefontfeature[default][default][expansion=quality,protrusion=quality]

\setupbodyfont[modern]

\setupalign[hanging]

\showframe[text][text]

\starttext

»Text«

\strut »Text«

\stoptext
</example>


In the example below where I took care of these two problems (don’t take care of \begstrut in this way in your real document because it will cause many problems, it’s just for educational purpose) to show you this is what caused the unwanted output.

<example>
\definefontfeature[default][default][expansion=quality,protrusion=quality]

\setupbodyfont[modern]

\setupalign[hanging]

\showframe[text][text]

\setupnotation[footnote][alternative=margin,align=hanging]

\starttext

\let\begstrut\relax

First Footnote.\footnote{»\input{ward}«}

Second Footnote.\footnote{»\input{ward}«}

\stoptext
</example>

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Hanging punctuation misalignment in footnotes
  2014-02-23 18:50   ` Wolfgang Schuster
@ 2016-03-29 21:07     ` Jan Tosovsky
       [not found]     ` <025b01d189ff$02089e00$0619da00$@tosovsky@email.cz>
  1 sibling, 0 replies; 8+ messages in thread
From: Jan Tosovsky @ 2016-03-29 21:07 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

On 2014-02-23 Wolfgang Schuster wrote:
> On 2014-02-22 Jan Tosovsky wrote: 
> > On 2014-02-22 Jan Tosovsky wrote:
> >>
> >> when hanging in footnotes is enabled and the starting character 
> >> is a punctuation, it is not protruded. However, the same character 
> >> in the footnote body works fine. When both cases are close each 
> >> other, it looks weird, see the screenshot:
> >>
> >> http://drifted.in/other/footnote_alignment.png
> >
> > A minimal example is available at
> > http://drifted.in/other/sample.tex
> 
> One problem is the way how context places the footnote number in 
> front of the text, by default context uses the \llap command to move 
> the number into the left margin but this prevents also the protrusion
> of the opening quote. You can avoid this problem when you change the
> footnote setup to \setupnotation[footnote][alternative=margin].
> 

Placing labels into margin seems to be a default settings. 

> 
> The second problem which prevents the opening quote to protrude are
> the struts which are added by context at the begin and end of the 
> footnote content and there is no way to disable them because they are 
> needed to have proper spacing between the individual footnote texts 
> on the same page.
> 

Hans quote from another thread:
>
> for the footnote case there is no real solution as the heuristics of
> finding a protrusion character cannot be tricked too much without
> breaking it in other cases
> 
> but ... i think i can cook up something extra in the engine to drive
> the process

I can't reproduce the original issue in the latest beta (0.90). Was there
something improved in this regard?

It looks really great!

Many thanks, 

Jan


___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Hanging punctuation misalignment in footnotes
       [not found]     ` <025b01d189ff$02089e00$0619da00$@tosovsky@email.cz>
@ 2016-03-30  6:28       ` Hans Hagen
  0 siblings, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2016-03-30  6:28 UTC (permalink / raw)
  To: ntg-context

On 3/29/2016 11:07 PM, Jan Tosovsky wrote:

> I can't reproduce the original issue in the latest beta (0.90). Was there
> something improved in this regard?

yes, some improvements in the engine and (so far only in a few places) 
adaption to that in context

> It looks really great!

it looks consistent; if it looks 'great' is a matter of taste

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Hanging punctuation misalignment in footnotes
       [not found] <5307de3d.c8670e0a.6ad6.ffffcff0SMTPIN_ADDED_BROKEN@mx.google.com>
@ 2014-02-21 23:34 ` Thangalin
  0 siblings, 0 replies; 8+ messages in thread
From: Thangalin @ 2014-02-21 23:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Jan,

Do you have some test code you can share?
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Hanging punctuation misalignment in footnotes
@ 2014-02-21 23:15 Jan Tosovsky
  0 siblings, 0 replies; 8+ messages in thread
From: Jan Tosovsky @ 2014-02-21 23:15 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

Dear All,

when hanging in footnotes is enabled and the starting character is a
punctuation, it is not protruded. However, the same character in the
footnote body works fine. When both cases are close each other, it looks
weird, see the screenshot:

http://drifted.in/other/footnote_alignment.png

Would it be possible make this behaviour uniform - either do not protrude it
on the starting (left) edge or protrude it everywhere?

Thanks, Jan

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2016-03-30  6:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <00c101cf2f5a$dccfc600$966f5200$@tosovsky@tiscali.cz>
2014-02-22  0:25 ` Hanging punctuation misalignment in footnotes Jan Tosovsky
     [not found] ` <00c201cf2f64$9c6d7d50$d54877f0$@tosovsky@email.cz>
2014-02-22  9:55   ` Hans Hagen
2014-02-22 11:36     ` Jan Tosovsky
     [not found] ` <5307ee93.437e0e0a.70d2.413eSMTPIN_ADDED_BROKEN@mx.google.com>
2014-02-23 18:50   ` Wolfgang Schuster
2016-03-29 21:07     ` Jan Tosovsky
     [not found]     ` <025b01d189ff$02089e00$0619da00$@tosovsky@email.cz>
2016-03-30  6:28       ` Hans Hagen
     [not found] <5307de3d.c8670e0a.6ad6.ffffcff0SMTPIN_ADDED_BROKEN@mx.google.com>
2014-02-21 23:34 ` Thangalin
2014-02-21 23:15 Jan Tosovsky

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