Re: [NTG-context] Alignment for narrower text
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...
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 -----------------------------------------------------------------
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:
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
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...
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
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
participants (3)
-
Hans Hagen
-
Jan Tosovsky
-
Wolfgang Schuster