* n-dash and line break
@ 2011-07-15 8:33 Thomas A. Schmitz
2011-07-15 9:53 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Thomas A. Schmitz @ 2011-07-15 8:33 UTC (permalink / raw)
To: ntg-context
Hi all,
is this the intended behavior? In mkiv, no line break after an n-dash;
in mkii only if it is keyed in as "--", not directly as the utf char. I
think lines should be broken at n-dashes.
All best
Thomas
(hope the example isn't maimed by my mail agent)
\setuplayout[width=5cm]
\enableregime[utf]
\showframe
\starttext
0--1--2--3--4--5--6--7--8--9--0--0--1--2--3
0–1–2–3–4–5–6–7–8–9–0–0–1–2–3
\stoptext
___________________________________________________________________________________
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: n-dash and line break
2011-07-15 8:33 n-dash and line break Thomas A. Schmitz
@ 2011-07-15 9:53 ` Hans Hagen
2011-07-15 10:59 ` Thomas A. Schmitz
0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2011-07-15 9:53 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Thomas A. Schmitz
On 15-7-2011 10:33, Thomas A. Schmitz wrote:
> is this the intended behavior? In mkiv, no line break after an n-dash;
> in mkii only if it is keyed in as "--", not directly as the utf char. I
> think lines should be broken at n-dashes.
intended indeed in the sense that this is the way tex works
> \setuplayout[width=5cm]
> \enableregime[utf]
>
> \showframe
>
> \starttext
>
> 0--1--2--3--4--5--6--7--8--9--0--0--1--2--3
>
> 0–1–2–3–4–5–6–7–8–9–0–0–1–2–3
>
> \stoptext
you can play with auto-break ... example from source:
% \start \hsize 1.5cm \setbreakpoints[compound]
% \installbreakpoint [compound] [-]
[nleft=3,nright=3,type=5,left=,right={-},middle={-}]
% \installbreakpoint [compound] [(]
[nleft=3,nright=3,type=5,left=,right={(-},middle={(}]
% \installbreakpoint [compound] [)]
[nleft=3,nright=3,type=5,left={-)},right=,middle={)}]
% composed-word\par composed(word)\par
% \stop
% \mainlanguage[czech]
% \installbreakpoint [compound] [\number`-]
[language=cs,nleft=3,nright=3,type=4]
% \setbreakpoints[compound]
% \start \hsize 1mm test-test \par \stop
% \setbreakpoints[compound]
-----------------------------------------------------------------
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: n-dash and line break
2011-07-15 9:53 ` Hans Hagen
@ 2011-07-15 10:59 ` Thomas A. Schmitz
2011-07-15 12:38 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Thomas A. Schmitz @ 2011-07-15 10:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 07/15/2011 11:53 AM, Hans Hagen wrote:
> On 15-7-2011 10:33, Thomas A. Schmitz wrote:
>> I think lines should be broken at n-dashes.
>
> intended indeed in the sense that this is the way tex works
Hmm, that caused me a lot of troubles especially in bibliographical
lists where the ndash is used to separate numbers.
> you can play with auto-break ... example from source:
I tried to modify my example:
\setuplayout[width=5cm]
\mainlanguage[de]
\installbreakpoint [compound] [–]
[language=de,nleft=2,nright=2,left=,right=-,type=5]
\setbreakpoints[compound]
\showframe
\starttext
0--1--2--3--4--5--6--7--8--9--0--0--1--2--3
0–1–2–3–4–5–6–7–8–9–0–0–1–2–3
\stoptext
but that doesn't change anything.
>
> % \start \hsize 1.5cm \setbreakpoints[compound]
> % \installbreakpoint [compound] [-]
> [nleft=3,nright=3,type=5,left=,right={-},middle={-}]
> % \installbreakpoint [compound] [(]
> [nleft=3,nright=3,type=5,left=,right={(-},middle={(}]
> % \installbreakpoint [compound] [)]
> [nleft=3,nright=3,type=5,left={-)},right=,middle={)}]
> % composed-word\par composed(word)\par
> % \stop
>
> % \mainlanguage[czech]
> % \installbreakpoint [compound] [\number`-]
> [language=cs,nleft=3,nright=3,type=4]
> % \setbreakpoints[compound]
> % \start \hsize 1mm test-test \par \stop
>
> % \setbreakpoints[compound]
>
When I try to run this with yesterday's beta, I get
loading > ConTeXt Page Macros / Runtime Macros
)error: ...text/tex/texmf-context/tex/context/base/node-aux.lua:226:
attempt to call global 'current_font' (a nil value)
.
system > tex > error on line 17 in file test.tex: ? ...
Thomas
___________________________________________________________________________________
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: n-dash and line break
2011-07-15 10:59 ` Thomas A. Schmitz
@ 2011-07-15 12:38 ` Wolfgang Schuster
2011-07-15 12:54 ` Thomas A. Schmitz
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2011-07-15 12:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 15.07.2011 um 12:59 schrieb Thomas A. Schmitz:
> \installbreakpoint [compound] [–] [language=de,nleft=2,nright=2,left=,right=-,type=5]
\installbreakpoint [compound] [–] [language=de,nleft=1,nright=1,left=,right=-,type=1]
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] 5+ messages in thread
* Re: n-dash and line break
2011-07-15 12:38 ` Wolfgang Schuster
@ 2011-07-15 12:54 ` Thomas A. Schmitz
0 siblings, 0 replies; 5+ messages in thread
From: Thomas A. Schmitz @ 2011-07-15 12:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 07/15/2011 02:38 PM, Wolfgang Schuster wrote:
>
> Am 15.07.2011 um 12:59 schrieb Thomas A. Schmitz:
>
>> \installbreakpoint [compound] [–] [language=de,nleft=2,nright=2,left=,right=-,type=5]
>
> \installbreakpoint [compound] [–] [language=de,nleft=1,nright=1,left=,right=-,type=1]
>
> Wolfgang
>
Thanks Wolfgang, this appears to work! Is there any documentation yet on
what type=X means and does? I just saw in typo-brk.mkiv
"we might eventually stick to only method 5"
so that's why I chose it...
Thomas
___________________________________________________________________________________
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:[~2011-07-15 12:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-15 8:33 n-dash and line break Thomas A. Schmitz
2011-07-15 9:53 ` Hans Hagen
2011-07-15 10:59 ` Thomas A. Schmitz
2011-07-15 12:38 ` Wolfgang Schuster
2011-07-15 12:54 ` Thomas A. Schmitz
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).