ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setupspacing[...] and the last line of a paragraph
@ 2008-10-10 10:46 Bernd Kosubek
  2008-10-10 10:53 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Bernd Kosubek @ 2008-10-10 10:46 UTC (permalink / raw)
  To: ConTeXt Mailinglist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear all!

%%%%%%%
% Source:
%%%%%%%

\enableregime[utf]
\installlanguage[german][de]
\mainlanguage[de]
\setuppapersize[C5][A4]
\setuplayout[width=124mm]
\setupbodyfont[10pt]
\setupindenting[none]
\setupwhitespace[small]
\setuptolerance[horizontal,strict]
\setupspacing[packed]

\definestartstop[Ausgabe][%
  before={%
    \setuptextrules[location=left]%
    \textrule[top]{Ausgabe}%
  },%
  after={\textrule},%
  commands={\indenting[no]}%
]

\starttext
\startAusgabe
Kurze Sätze.
Das A und O der Tagespresse!\space{}
Dem Leser nur nichts zumuten.
Es muss zwischen Tür und Angel passen.
Alles muss schnell verdaut werden können.

{
  \setupspacing[broad]
  Kurze Sätze.
  Das A und O der Tagespresse!\nospace{}
  Dem Leser nur nichts zumuten.
  Es muss zwischen Tür und Angel passen.
  Alles muss schnell verdaut werden können.
}
\stopAusgabe
\stoptext

%%%%%%%
% Problem:
%%%%%%%

In the output the last line of the first paragraph is longer than the last
line of the second paragraph.

Logically, the last line of the second paragraph supposed to be longer,
because there is more space between the sentences.

Is there a blank (space), with a wrong interpretation at the last punctuation
mark or is it a bug or what is the reason?
- --
Gruß
Bernd Kosubek

Unsigned eMails are not from me.

eMail: kosubek@sksatz.com
Fingerprint: C121 F3C2 A6DD 1ACD A9BC F0AF 1289 2AEC B7C4 D63B

Keyserver: blackhole.pca.dfn.de (oder andere)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQFI7zJ1Eokq7LfE1jsRAlbrAJ9xUxuJFuLtAWunzWn+uqnhY0XbnwCbBMjT
OISFd44KkchZi3R7IH0LZFo=
=OWXc
-----END PGP SIGNATURE-----

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

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

* Re: \setupspacing[...] and the last line of a paragraph
  2008-10-10 10:46 \setupspacing[...] and the last line of a paragraph Bernd Kosubek
@ 2008-10-10 10:53 ` Wolfgang Schuster
  2008-10-10 11:56   ` Bernd Kosubek
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2008-10-10 10:53 UTC (permalink / raw)
  To: kosubek, mailing list for ConTeXt users

On Fri, Oct 10, 2008 at 12:46 PM, Bernd Kosubek <kosubek@sksatz.de> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dear all!
>
> %%%%%%%
> % Source:
> %%%%%%%
>
> \enableregime[utf]
> \installlanguage[german][de]
> \mainlanguage[de]
> \setuppapersize[C5][A4]
> \setuplayout[width=124mm]
> \setupbodyfont[10pt]
> \setupindenting[none]
> \setupwhitespace[small]
> \setuptolerance[horizontal,strict]
> \setupspacing[packed]
>
> \definestartstop[Ausgabe][%
>  before={%
>    \setuptextrules[location=left]%
>    \textrule[top]{Ausgabe}%
>  },%
>  after={\textrule},%
>  commands={\indenting[no]}%
> ]
>
> \starttext
> \startAusgabe
> Kurze Sätze.
> Das A und O der Tagespresse!\space{}
> Dem Leser nur nichts zumuten.
> Es muss zwischen Tür und Angel passen.
> Alles muss schnell verdaut werden können.
>
> {
>  \setupspacing[broad]
>  Kurze Sätze.
>  Das A und O der Tagespresse!\nospace{}
>  Dem Leser nur nichts zumuten.
>  Es muss zwischen Tür und Angel passen.
>  Alles muss schnell verdaut werden können.
> }

Alles muss schnell verdaut werden können.%
}

or

Alles muss schnell verdaut werden können.}

> \stopAusgabe
> \stoptext
>
> %%%%%%%
> % Problem:
> %%%%%%%
>
> In the output the last line of the first paragraph is longer than the last
> line of the second paragraph.
>
> Logically, the last line of the second paragraph supposed to be longer,
> because there is more space between the sentences.
>
> Is there a blank (space), with a wrong interpretation at the last punctuation
> mark or is it a bug or what is the reason?

You inserted a space after the last word in the second paragraph.

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


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

* Re: \setupspacing[...] and the last line of a paragraph
  2008-10-10 11:56   ` Bernd Kosubek
@ 2008-10-10 11:56     ` Wolfgang Schuster
  2008-10-10 15:00     ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2008-10-10 11:56 UTC (permalink / raw)
  To: kosubek; +Cc: mailing list for ConTeXt users

2008/10/10 Bernd Kosubek <kosubek@sksatz.de>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Am Freitag, 10. Oktober 2008 12:53 schrieb Wolfgang Schuster:
>> On Fri, Oct 10, 2008 at 12:46 PM, Bernd Kosubek <kosubek@sksatz.de> wrote:
>
>> > {
>> >  \setupspacing[broad]
>> >  Kurze Sätze.
>> >  Das A und O der Tagespresse!\nospace{}
>> >  Dem Leser nur nichts zumuten.
>> >  Es muss zwischen Tür und Angel passen.
>> >  Alles muss schnell verdaut werden können.
>> > }
>>
>> Alles muss schnell verdaut werden können.%
>> }
>>
>> or
>>
>> Alles muss schnell verdaut werden können.}
>>
>>
>> You inserted a space after the last word in the second paragraph.
>>
>> Wolfgang
>
> Thank you Wolfgang,
>
> this is a possible solution.
>
> Now I doubled the paragraph:
> {
>  \setupspacing[broad]
>  Kurze Sätze.
>  Das A und O der Tagespresse!\nospace{}
>  Dem Leser nur nichts zumuten.
>  Es muss zwischen Tür und Angel passen.
>  Alles muss schnell verdaut werden können.
>
>  Kurze Sätze.
>  Das A und O der Tagespresse!\nospace{}
>  Dem Leser nur nichts zumuten.
>  Es muss zwischen Tür und Angel passen.
>  Alles muss schnell verdaut werden können.
> }
>
> or (with the same result)
>
> \setupspacing[broad]
> Kurze Sätze.
> Das A und O der Tagespresse!\nospace{}
> Dem Leser nur nichts zumuten.
> Es muss zwischen Tür und Angel passen.
> Alles muss schnell verdaut werden können.
>
> Kurze Sätze.
> Das A und O der Tagespresse!\nospace{}
> Dem Leser nur nichts zumuten.
> Es muss zwischen Tür und Angel passen.
> Alles muss schnell verdaut werden können.
> \setupspacing[packed]
>
> The first paragraph is OK, but the second paragraph looks like the original
> problem (without eliminated last space).

Because you insert a space at the end of the second paragraph but none
at the end of the first.

> Now I have a new Problem: where is the difference between a new paragraph and
> the end of a group ( {...} or [broad] ... [packed] )?

Tell us what do you want to achive.

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


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

* Re: \setupspacing[...] and the last line of a paragraph
  2008-10-10 10:53 ` Wolfgang Schuster
@ 2008-10-10 11:56   ` Bernd Kosubek
  2008-10-10 11:56     ` Wolfgang Schuster
  2008-10-10 15:00     ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Bernd Kosubek @ 2008-10-10 11:56 UTC (permalink / raw)
  To: Wolfgang Schuster, mailing list for ConTeXt users

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Freitag, 10. Oktober 2008 12:53 schrieb Wolfgang Schuster:
> On Fri, Oct 10, 2008 at 12:46 PM, Bernd Kosubek <kosubek@sksatz.de> wrote:

> > {
> >  \setupspacing[broad]
> >  Kurze Sätze.
> >  Das A und O der Tagespresse!\nospace{}
> >  Dem Leser nur nichts zumuten.
> >  Es muss zwischen Tür und Angel passen.
> >  Alles muss schnell verdaut werden können.
> > }
>
> Alles muss schnell verdaut werden können.%
> }
>
> or
>
> Alles muss schnell verdaut werden können.}
>
>
> You inserted a space after the last word in the second paragraph.
>
> Wolfgang

Thank you Wolfgang,

this is a possible solution.

Now I doubled the paragraph:
{
  \setupspacing[broad]
  Kurze Sätze.
  Das A und O der Tagespresse!\nospace{}
  Dem Leser nur nichts zumuten.
  Es muss zwischen Tür und Angel passen.
  Alles muss schnell verdaut werden können.

  Kurze Sätze.
  Das A und O der Tagespresse!\nospace{}
  Dem Leser nur nichts zumuten.
  Es muss zwischen Tür und Angel passen.
  Alles muss schnell verdaut werden können.
}

or (with the same result)

\setupspacing[broad]
Kurze Sätze.
Das A und O der Tagespresse!\nospace{}
Dem Leser nur nichts zumuten.
Es muss zwischen Tür und Angel passen.
Alles muss schnell verdaut werden können.

Kurze Sätze.
Das A und O der Tagespresse!\nospace{}
Dem Leser nur nichts zumuten.
Es muss zwischen Tür und Angel passen.
Alles muss schnell verdaut werden können.
\setupspacing[packed]

The first paragraph is OK, but the second paragraph looks like the original 
problem (without eliminated last space).

Now I have a new Problem: where is the difference between a new paragraph and 
the end of a group ( {...} or [broad] ... [packed] )? 

Gruß
Bernd Kosubek

Unsigned eMails are not from me.

eMail: kosubek@sksatz.com
Fingerprint: C121 F3C2 A6DD 1ACD A9BC F0AF 1289 2AEC B7C4 D63B

URL: http://www.sksatz.com

Keyserver: blackhole.pca.dfn.de (oder andere)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQFI70LxEokq7LfE1jsRArvaAJ4ogXDx8KX4gnNJYxVPzKU4G13a6wCgkGYr
Bq2wXrScpmAI//4XTI4tqX4=
=yzzT
-----END PGP SIGNATURE-----

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


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

* Re: \setupspacing[...] and the last line of a paragraph
  2008-10-10 11:56   ` Bernd Kosubek
  2008-10-10 11:56     ` Wolfgang Schuster
@ 2008-10-10 15:00     ` Hans Hagen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2008-10-10 15:00 UTC (permalink / raw)
  To: kosubek, mailing list for ConTeXt users

Bernd Kosubek wrote:

> Now I doubled the paragraph:
> {
>   \setupspacing[broad]
>   Kurze Sätze.
>   Das A und O der Tagespresse!\nospace{}
>   Dem Leser nur nichts zumuten.
>   Es muss zwischen Tür und Angel passen.
>   Alles muss schnell verdaut werden können.
> 
>   Kurze Sätze.
>   Das A und O der Tagespresse!\nospace{}
>   Dem Leser nur nichts zumuten.
>   Es muss zwischen Tür und Angel passen.
>   Alles muss schnell verdaut werden können.

add \par here if you want settings to be applied to this par

> }

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


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

end of thread, other threads:[~2008-10-10 15:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-10 10:46 \setupspacing[...] and the last line of a paragraph Bernd Kosubek
2008-10-10 10:53 ` Wolfgang Schuster
2008-10-10 11:56   ` Bernd Kosubek
2008-10-10 11:56     ` Wolfgang Schuster
2008-10-10 15:00     ` Hans Hagen

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