ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Alignment for narrower text
       [not found] <52eaa335.c3d00e0a.7dbf.ffffcaccSMTPIN_ADDED_BROKEN@mx.google.com>
@ 2014-01-30 19:34 ` Wolfgang Schuster
  2014-01-30 19:49   ` Jan Tosovsky
       [not found]   ` <00af01cf1df4$6c661990$45324cb0$@tosovsky@email.cz>
  0 siblings, 2 replies; 11+ messages in thread
From: Wolfgang Schuster @ 2014-01-30 19:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 30.01.2014 um 20:08 schrieb Jan Tosovsky <j.tosovsky@email.cz>:

> Dear All,
> 
> how can I specify the alignment of narrower text, 'hanging' in my case?

What do you expect from the output?

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] 11+ messages in thread

* Re: Alignment for narrower text
  2014-01-30 19:34 ` Alignment for narrower text Wolfgang Schuster
@ 2014-01-30 19:49   ` Jan Tosovsky
       [not found]   ` <00af01cf1df4$6c661990$45324cb0$@tosovsky@email.cz>
  1 sibling, 0 replies; 11+ messages in thread
From: Jan Tosovsky @ 2014-01-30 19:49 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

On 2014-01-30 Wolfgang Schuster wrote:
> Am 30.01.2014 um 20:08 schrieb Jan Tosovsky <j.tosovsky@email.cz>:
> >
> > how can I specify the alignment of narrower text, 'hanging' in my
> > case?
> 
> What do you expect from the output?
> 

I'd expect that starting french quote sign outside the left text edge -
similarly like it is aligned the main flow when the hanging feature is
enabled.

Now I've found it works as expected when the indenting is disabled:

\definefontfamily[palatino][rm][Palatino Linotype][features={default,
quality}]
\setupbodyfont[palatino]
\setupalign[hz, hanging]
%\setupindenting[medium, yes]  % this helped

\starttext
\input{tufte}
\setupnarrower[left=1cm]
\startnarrower[left]
\it
>this is,\par
just sample.<\par
\stopnarrower
\input{tufte}
\stoptext

Can I have both the main flow indentation and the proper alignment of the
narrow text block?

Thanks for any hint,

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] 11+ messages in thread

* Re: Alignment for narrower text
       [not found]   ` <00af01cf1df4$6c661990$45324cb0$@tosovsky@email.cz>
@ 2016-03-30 18:55     ` Jan Tosovsky
       [not found]     ` <016701d18ab5$cb1723a0$61456ae0$@tosovsky@email.cz>
  1 sibling, 0 replies; 11+ messages in thread
From: Jan Tosovsky @ 2016-03-30 18:55 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

On 2014-01-30 Jan Tosovsky wrote:
> 
> I'd expect that starting french quote sign outside the left text edge -
> similarly like it is aligned the main flow when the hanging feature is
> enabled.
> 
> Now I've found it works as expected when the indenting is disabled...
> 

http://tracker.luatex.org/view.php?id=884

After recent improvements I've tested this older issue, but it is still
problematic.

When that \setupindenting is uncommented, french quote is not hanged.

Just updating the status :-)

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] 11+ messages in thread

* Re: Alignment for narrower text
       [not found]     ` <016701d18ab5$cb1723a0$61456ae0$@tosovsky@email.cz>
@ 2016-03-30 22:32       ` Hans Hagen
  2016-03-31 19:28         ` Jan Tosovsky
       [not found]         ` <020801d18b83$85bd5710$91380530$@tosovsky@email.cz>
  0 siblings, 2 replies; 11+ messages in thread
From: Hans Hagen @ 2016-03-30 22:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 3/30/2016 8:55 PM, Jan Tosovsky wrote:
> On 2014-01-30 Jan Tosovsky wrote:
>>
>> I'd expect that starting french quote sign outside the left text edge -
>> similarly like it is aligned the main flow when the hanging feature is
>> enabled.
>>
>> Now I've found it works as expected when the indenting is disabled...
>>
>
> http://tracker.luatex.org/view.php?id=884
>
> After recent improvements I've tested this older issue, but it is still
> problematic.
>
> When that \setupindenting is uncommented, french quote is not hanged.
>
> Just updating the status :-)

indenting prohibits protrusion

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] 11+ messages in thread

* Re: Alignment for narrower text
  2016-03-30 22:32       ` Hans Hagen
@ 2016-03-31 19:28         ` Jan Tosovsky
       [not found]         ` <020801d18b83$85bd5710$91380530$@tosovsky@email.cz>
  1 sibling, 0 replies; 11+ messages in thread
From: Jan Tosovsky @ 2016-03-31 19:28 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

On 2016-03-31 Hans Hagen wrote:
> On 3/30/2016 8:55 PM, Jan Tosovsky wrote:
> > On 2014-01-30 Jan Tosovsky wrote:
> >>
> >> I'd expect that starting french quote sign outside the left 
> >> text edge - similarly like it is aligned the main flow when 
> >> the hanging feature is enabled.
> >>
> >> Now I've found it works as expected when the indenting is
> >> disabled...
> >
> > http://tracker.luatex.org/view.php?id=884
> 
> indenting prohibits protrusion
> 

Good to know, thanks. I take it rather as a limitation.

Use case:
- book uses global indentation
- there is poem typeset in narrower block
- there is punctuation in the first verse which disrupt optical margin alignment

Are there alternative ways?

Btw, from end user perspective I'd expect it should work by default without further tweaking.

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] 11+ messages in thread

* Re: Alignment for narrower text
       [not found]         ` <020801d18b83$85bd5710$91380530$@tosovsky@email.cz>
@ 2016-04-01  7:21           ` Hans Hagen
  2016-04-01 20:04             ` Jan Tosovsky
  2016-04-02  6:37             ` Wolfgang Schuster
  0 siblings, 2 replies; 11+ messages in thread
From: Hans Hagen @ 2016-04-01  7:21 UTC (permalink / raw)
  To: ntg-context

On 3/31/2016 9:28 PM, Jan Tosovsky wrote:
> On 2016-03-31 Hans Hagen wrote:
>> On 3/30/2016 8:55 PM, Jan Tosovsky wrote:
>>> On 2014-01-30 Jan Tosovsky wrote:
>>>>
>>>> I'd expect that starting french quote sign outside the left
>>>> text edge - similarly like it is aligned the main flow when
>>>> the hanging feature is enabled.
>>>>
>>>> Now I've found it works as expected when the indenting is
>>>> disabled...
>>>
>>> http://tracker.luatex.org/view.php?id=884
>>
>> indenting prohibits protrusion
>>
>
> Good to know, thanks. I take it rather as a limitation.
>
> Use case:
> - book uses global indentation
> - there is poem typeset in narrower block
> - there is punctuation in the first verse which disrupt optical margin alignment
>
> Are there alternative ways?

in your example you use indentation to get a narrower block (and as each 
line is a paragraph each line gets an indent box prepended) .. you 
should use leftskip (\startnarrower...) in such cases

> Btw, from end user perspective I'd expect it should work by default without further tweaking.

so what if someone has

\hbox{some image or whatever unknonws}<character>

should character overflow into the box?

how is tex supposed to know the intentions

so if all gets a boundary mark in the end you end up with as many 
exceptions (maybe more) than when you get now

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


-- 

-----------------------------------------------------------------
                                           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] 11+ messages in thread

* Re: Alignment for narrower text
  2016-04-01  7:21           ` Hans Hagen
@ 2016-04-01 20:04             ` Jan Tosovsky
  2016-04-02  6:37             ` Wolfgang Schuster
  1 sibling, 0 replies; 11+ messages in thread
From: Jan Tosovsky @ 2016-04-01 20:04 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

On 2016-04-01 Hans Hagen wrote:
> On 3/31/2016 9:28 PM, Jan Tosovsky wrote:
> > On 2016-03-31 Hans Hagen wrote:
> >> On 3/30/2016 8:55 PM, Jan Tosovsky wrote:
> >>>
> >>> http://tracker.luatex.org/view.php?id=884
> >>
> >> indenting prohibits protrusion
> >>
> > Are there alternative ways?
> 
> you should use leftskip (\startnarrower...) in such cases

thanks, but I am lost here. The following has impact on the left margin and it doesn't help to hang the initial quote...

\definefontfamily[palatino][rm][Palatino Linotype][features={default, quality}]
\setupbodyfont[palatino]
\setupalign[hz, hanging]
\setupindenting[medium, yes]

\starttext
\input{tufte}
{\leftskip=1cm
\startnarrower
\it
»this is,\par
just sample.«\par
\stopnarrower
}
\input{tufte}
\stoptext

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] 11+ messages in thread

* Re: Alignment for narrower text
  2016-04-01  7:21           ` Hans Hagen
  2016-04-01 20:04             ` Jan Tosovsky
@ 2016-04-02  6:37             ` Wolfgang Schuster
  2016-04-02 21:42               ` Jan Tosovsky
       [not found]               ` <57003cda.c8f2c20a.48efd.2050SMTPIN_ADDED_BROKEN@mx.google.com>
  1 sibling, 2 replies; 11+ messages in thread
From: Wolfgang Schuster @ 2016-04-02  6:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

> Hans Hagen <mailto:pragma@wxs.nl>
> 1. April 2016 um 09:21
> On 3/31/2016 9:28 PM, Jan Tosovsky wrote:
>> On 2016-03-31 Hans Hagen wrote:
>>> On 3/30/2016 8:55 PM, Jan Tosovsky wrote:
>>>> On 2014-01-30 Jan Tosovsky wrote:
>>>>>
>>>>> I'd expect that starting french quote sign outside the left
>>>>> text edge - similarly like it is aligned the main flow when
>>>>> the hanging feature is enabled.
>>>>>
>>>>> Now I've found it works as expected when the indenting is
>>>>> disabled...
>>>>
>>>> http://tracker.luatex.org/view.php?id=884
>>>
>>> indenting prohibits protrusion
>>>
>>
>> Good to know, thanks. I take it rather as a limitation.
>>
>> Use case:
>> - book uses global indentation
>> - there is poem typeset in narrower block
>> - there is punctuation in the first verse which disrupt optical 
>> margin alignment
>>
>> Are there alternative ways?
>
> in your example you use indentation to get a narrower block (and as 
> each line is a paragraph each line gets an indent box prepended) .. 
> you should use leftskip (\startnarrower...) in such cases
This is a bad example because there is no problem with \leftskip.

What he means is that protrusion at the left margin doesn’t at the begin 
of a paragraph when you use indentation.

%%% begin example
\definefontfeature[default][default][protrusion=quality]

\setupbodyfont[modern-designsize]

\setupalign[hanging]

\setupbackgrounds[text][leftframe=on]

\starttext

“How does this look?”

When you a short paragraph with a quotattion mark at the beginning above
another paragraph without a quotation mark the letters at the start of
both paragraph don’t align.

\blank[3*line]\setupindenting[yes,medium]

“How does this look?”

When you a short paragraph with a quotattion mark at the beginning above
another paragraph without a quotation mark the letters at the start of
both paragraph don’t align.

\blank[3*line]

\dontleavehmode\llap{“}How does this look?”

When you a short paragraph with a quotattion mark at the beginning above
another paragraph without a quotation mark the letters at the start of
both paragraph don’t align.

\stoptext
%%% end example

Wolfgang

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

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Alignment for narrower text
  2016-04-02  6:37             ` Wolfgang Schuster
@ 2016-04-02 21:42               ` Jan Tosovsky
       [not found]               ` <57003cda.c8f2c20a.48efd.2050SMTPIN_ADDED_BROKEN@mx.google.com>
  1 sibling, 0 replies; 11+ messages in thread
From: Jan Tosovsky @ 2016-04-02 21:42 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

On 2016-04-02 Wolfgang Schuster wrote:
> On 2016-04-01, Jan Tosovsky wrote:
> > On 2016-04-01 Hans Hagen wrote:
> > > On 2016-03-31, Jan Tosovsky wrote:
> > > >
> > > > http://tracker.luatex.org/view.php?id=884
> > > >
> > > > Use case:
> > > > - book uses global indentation
> > > > - there is poem typeset in narrower block
> > > > - there is punctuation in the first verse which disrupt
> > > >   optical margin alignment
> > >
> > > in your example you use indentation to get a narrower block 
> > > (and as each line is a paragraph each line gets an indent 
> > > box prepended) you should use leftskip (\startnarrower...) 
> > > in such cases
> >
> > I'm lost here (...example...)
>
> This is a bad example because there is no problem with \leftskip.
> 
> What he means is that protrusion at the left margin doesn’t 
> at the begin of a paragraph when you use indentation.

Thanks for examples. I'll finally use another approach - disabling indentation locally:

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

\setupbodyfont[modern-designsize]

\setupalign[hanging]

\setupbackgrounds[text][leftframe=on]

\starttext

\setupindenting[yes,medium]

\input{tufte}

{\noindenting
\startnarrower
“line1\par
line2\par
line3\par
line4.
\stopnarrower
}

\input{tufte}

\stoptext

While protrusion in this case may look ugly, it is consistent with the rest.

I thought Hans could also mean something like example below, but while leftskip should 'indent' all lines inside paragraph, it works only for the first one. Moreover, protrusion is not applied as well. And \crlf doesn't seem to be soft linebreak as it behaves like normal \par command - which is most likely explanation for that indenting issue.

{\leftskip=2cm
“line1\crlf
line2\crlf
line3\crlf
line4.
}

Anyway, I found acceptable solution (noindenting).

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] 11+ messages in thread

* Re: Alignment for narrower text
       [not found]               ` <57003cda.c8f2c20a.48efd.2050SMTPIN_ADDED_BROKEN@mx.google.com>
@ 2016-04-03 16:19                 ` Wolfgang Schuster
  0 siblings, 0 replies; 11+ messages in thread
From: Wolfgang Schuster @ 2016-04-03 16:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

> Jan Tosovsky <mailto:j.tosovsky@email.cz>
> 2. April 2016 um 23:42
> I thought Hans could also mean something like example below, but while 
> leftskip should 'indent' all lines inside paragraph, it works only for 
> the first one. Moreover, protrusion is not applied as well. And \crlf 
> doesn't seem to be soft linebreak as it behaves like normal \par 
> command - which is most likely explanation for that indenting issue.
>
> {\leftskip=2cm
> “line1\crlf
> line2\crlf
> line3\crlf
> line4.
> }
Indenting the whole textblock with \leftskip (or better ConTeXt’s 
narrower environment)
doesn’t prevent protrusion as can be seen in the following example.

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

\setupbodyfont[modern-designsize]

\starttext

“\vl Text\par
  \vl Text

\startnarrower
“\vl Text\par
  \vl Text
\stopnarrower

\blank[3*line]\setupalign[hanging]

“\vl Text\par
  \vl Text

\startnarrower
“\vl Text\par
  \vl Text
\stopnarrower

\stoptext

Wolfgang

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

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Alignment for narrower text
@ 2014-01-30 19:08 Jan Tosovsky
  0 siblings, 0 replies; 11+ messages in thread
From: Jan Tosovsky @ 2014-01-30 19:08 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

Dear All,

how can I specify the alignment of narrower text, 'hanging' in my case?

\definefontfamily[palatino][rm][Palatino Linotype][features={default,
quality}]
\setupbodyfont[palatino]
\setupalign[hz, hanging]
\setupindenting[medium, yes]

\starttext
\input{tufte}
\setupnarrower[left=0cm] % surprisingly it is narrower
\startnarrower[left]
\setupalign[hz, hanging] % setting this again here has no effect
\it
>this is,\par
just sample.<\par
\stopnarrower
\input{tufte}
\stoptext

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] 11+ messages in thread

end of thread, other threads:[~2016-04-03 16:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <52eaa335.c3d00e0a.7dbf.ffffcaccSMTPIN_ADDED_BROKEN@mx.google.com>
2014-01-30 19:34 ` Alignment for narrower text Wolfgang Schuster
2014-01-30 19:49   ` Jan Tosovsky
     [not found]   ` <00af01cf1df4$6c661990$45324cb0$@tosovsky@email.cz>
2016-03-30 18:55     ` Jan Tosovsky
     [not found]     ` <016701d18ab5$cb1723a0$61456ae0$@tosovsky@email.cz>
2016-03-30 22:32       ` Hans Hagen
2016-03-31 19:28         ` Jan Tosovsky
     [not found]         ` <020801d18b83$85bd5710$91380530$@tosovsky@email.cz>
2016-04-01  7:21           ` Hans Hagen
2016-04-01 20:04             ` Jan Tosovsky
2016-04-02  6:37             ` Wolfgang Schuster
2016-04-02 21:42               ` Jan Tosovsky
     [not found]               ` <57003cda.c8f2c20a.48efd.2050SMTPIN_ADDED_BROKEN@mx.google.com>
2016-04-03 16:19                 ` Wolfgang Schuster
2014-01-30 19:08 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).