ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Alignment for narrower text
Date: Sat, 02 Apr 2016 08:37:43 +0200	[thread overview]
Message-ID: <56FF68B7.4010003@gmail.com> (raw)
In-Reply-To: <56FE2174.4040806@wxs.nl>


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

  parent reply	other threads:[~2016-04-02  6:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [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>
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56FF68B7.4010003@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).