* automatic generation of em dash at the beginning of a line
@ 2015-03-01 16:41 Piotr Kopszak
2015-03-01 16:58 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Piotr Kopszak @ 2015-03-01 16:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hello list,
This is probably a Polish idiosyncrasy, but we have to live with it.
According to punctuation rules when an em dash is at the end of a
line, it should be repeated at the beginning of the next one (true, it
is often disregarded due to lack of support for it in typesetting
programs). Is there any way to deal with it in ConTeX?
Best
Piotr
--
http://okle.pl
___________________________________________________________________________________
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] 5+ messages in thread
* Re: automatic generation of em dash at the beginning of a line
2015-03-01 16:41 automatic generation of em dash at the beginning of a line Piotr Kopszak
@ 2015-03-01 16:58 ` Hans Hagen
2015-03-01 19:34 ` Piotr Kopszak
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2015-03-01 16:58 UTC (permalink / raw)
To: ntg-context
On 3/1/2015 5:41 PM, Piotr Kopszak wrote:
> Hello list,
>
> This is probably a Polish idiosyncrasy, but we have to live with it.
> According to punctuation rules when an em dash is at the end of a
> line, it should be repeated at the beginning of the next one (true, it
> is often disregarded due to lack of support for it in typesetting
> programs). Is there any way to deal with it in ConTeX?
\starttext
\setuplanguage[pl][lefthyphenchar=45,righthyphenchar=45]
\pl \input tufte
\stoptext
-----------------------------------------------------------------
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] 5+ messages in thread
* Re: automatic generation of em dash at the beginning of a line
2015-03-01 16:58 ` Hans Hagen
@ 2015-03-01 19:34 ` Piotr Kopszak
2015-03-02 9:02 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Piotr Kopszak @ 2015-03-01 19:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
Many Thanks Hans!
But that's not exactly what I need, sorry for being imprecise, I do
not need to repeat hyphens, but only em dashes (or en dashes, which
ever are used in the document) in situations like this.
Most newspapers — and all that follow AP style — insert a space before
and after the em dash.
It should look like this:
Most newspapers — and all that follow AP style —
— insert a space before and after the em dash.
All Best
Piotr
2015-03-01 17:58 GMT+01:00 Hans Hagen <pragma@wxs.nl>:
> On 3/1/2015 5:41 PM, Piotr Kopszak wrote:
>>
>> Hello list,
>>
>> This is probably a Polish idiosyncrasy, but we have to live with it.
>> According to punctuation rules when an em dash is at the end of a
>> line, it should be repeated at the beginning of the next one (true, it
>> is often disregarded due to lack of support for it in typesetting
>> programs). Is there any way to deal with it in ConTeX?
>
>
> \starttext
>
> \setuplanguage[pl][lefthyphenchar=45,righthyphenchar=45]
>
> \pl \input tufte
>
> \stoptext
>
>
> -----------------------------------------------------------------
> 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
> ___________________________________________________________________________________
--
http://okle.pl
___________________________________________________________________________________
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] 5+ messages in thread
* Re: automatic generation of em dash at the beginning of a line
2015-03-01 19:34 ` Piotr Kopszak
@ 2015-03-02 9:02 ` Hans Hagen
2015-03-02 11:00 ` Alan BRASLAU
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2015-03-02 9:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 3/1/2015 8:34 PM, Piotr Kopszak wrote:
> Many Thanks Hans!
>
> But that's not exactly what I need, sorry for being imprecise, I do
> not need to repeat hyphens, but only em dashes (or en dashes, which
> ever are used in the document) in situations like this.
>
> Most newspapers — and all that follow AP style — insert a space before
> and after the em dash.
>
> It should look like this:
>
> Most newspapers — and all that follow AP style —
> — insert a space before and after the em dash.
\starttext
\def\LEFT {\space\emdash\nbsp}
\def\RIGHT{\nbsp\discretionary{\emdash}{\emdash}{\emdash}\nbsp}
\setuplayout[width=21mm]
\setuplayout[width=24mm]
\setuptolerance[verytolerant]
\showframe
test test \LEFT a test and some more test\RIGHT\ test test
\stoptext
> All Best
>
> Piotr
>
> 2015-03-01 17:58 GMT+01:00 Hans Hagen <pragma@wxs.nl>:
>> On 3/1/2015 5:41 PM, Piotr Kopszak wrote:
>>>
>>> Hello list,
>>>
>>> This is probably a Polish idiosyncrasy, but we have to live with it.
>>> According to punctuation rules when an em dash is at the end of a
>>> line, it should be repeated at the beginning of the next one (true, it
>>> is often disregarded due to lack of support for it in typesetting
>>> programs). Is there any way to deal with it in ConTeX?
>>
>>
>> \starttext
>>
>> \setuplanguage[pl][lefthyphenchar=45,righthyphenchar=45]
>>
>> \pl \input tufte
>>
>> \stoptext
>>
>>
>> -----------------------------------------------------------------
>> 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
>> ___________________________________________________________________________________
>
>
>
--
-----------------------------------------------------------------
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] 5+ messages in thread
* Re: automatic generation of em dash at the beginning of a line
2015-03-02 9:02 ` Hans Hagen
@ 2015-03-02 11:00 ` Alan BRASLAU
0 siblings, 0 replies; 5+ messages in thread
From: Alan BRASLAU @ 2015-03-02 11:00 UTC (permalink / raw)
Cc: mailing list for ConTeXt users
How about
Most newspapers |<|and all that follow AP style|>| insert a space
before and after the em dash.
Might I suggest that this could/should be set|-|up in Polish to repeat
the (second) emdash if it is followed by a line break?
Alan
On Mon, 2 Mar 2015 10:02:53 +0100
Hans Hagen <pragma@wxs.nl> wrote:
> On 3/1/2015 8:34 PM, Piotr Kopszak wrote:
> > Many Thanks Hans!
> >
> > But that's not exactly what I need, sorry for being imprecise, I do
> > not need to repeat hyphens, but only em dashes (or en dashes, which
> > ever are used in the document) in situations like this.
> >
> > Most newspapers — and all that follow AP style — insert a space
> > before and after the em dash.
> >
> > It should look like this:
> >
> > Most newspapers — and all that follow AP style —
> > — insert a space before and after the em dash.
>
> \starttext
>
> \def\LEFT {\space\emdash\nbsp}
> \def\RIGHT{\nbsp\discretionary{\emdash}{\emdash}{\emdash}\nbsp}
>
> \setuplayout[width=21mm]
> \setuplayout[width=24mm]
>
> \setuptolerance[verytolerant]
>
> \showframe
>
> test test \LEFT a test and some more test\RIGHT\ test test
>
> \stoptext
>
>
> > All Best
> >
> > Piotr
> >
> > 2015-03-01 17:58 GMT+01:00 Hans Hagen <pragma@wxs.nl>:
> >> On 3/1/2015 5:41 PM, Piotr Kopszak wrote:
> >>>
> >>> Hello list,
> >>>
> >>> This is probably a Polish idiosyncrasy, but we have to live with
> >>> it. According to punctuation rules when an em dash is at the end
> >>> of a line, it should be repeated at the beginning of the next one
> >>> (true, it is often disregarded due to lack of support for it in
> >>> typesetting programs). Is there any way to deal with it in
> >>> ConTeX?
> >>
> >>
> >> \starttext
> >>
> >> \setuplanguage[pl][lefthyphenchar=45,righthyphenchar=45]
> >>
> >> \pl \input tufte
> >>
> >> \stoptext
--
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.braslau@cea.fr
___________________________________________________________________________________
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] 5+ messages in thread
end of thread, other threads:[~2015-03-02 11:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-01 16:41 automatic generation of em dash at the beginning of a line Piotr Kopszak
2015-03-01 16:58 ` Hans Hagen
2015-03-01 19:34 ` Piotr Kopszak
2015-03-02 9:02 ` Hans Hagen
2015-03-02 11:00 ` Alan BRASLAU
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).