ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: n-dash and line break
Date: Fri, 15 Jul 2011 12:59:46 +0200	[thread overview]
Message-ID: <4E201DA2.5010100@uni-bonn.de> (raw)
In-Reply-To: <4E200E17.2040308@wxs.nl>

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
___________________________________________________________________________________


  reply	other threads:[~2011-07-15 10:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-15  8:33 Thomas A. Schmitz
2011-07-15  9:53 ` Hans Hagen
2011-07-15 10:59   ` Thomas A. Schmitz [this message]
2011-07-15 12:38     ` Wolfgang Schuster
2011-07-15 12:54       ` Thomas A. Schmitz

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=4E201DA2.5010100@uni-bonn.de \
    --to=thomas.schmitz@uni-bonn.de \
    --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).