From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70038 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: n-dash and line break Date: Fri, 15 Jul 2011 12:59:46 +0200 Message-ID: <4E201DA2.5010100@uni-bonn.de> References: <4E1FFB5E.4040204@uni-bonn.de> <4E200E17.2040308@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1310727605 32330 80.91.229.12 (15 Jul 2011 11:00:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Jul 2011 11:00:05 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 15 13:00:01 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qhg7j-0002Zi-5G for gctc-ntg-context-518@m.gmane.org; Fri, 15 Jul 2011 12:59:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 54B71CAE51; Fri, 15 Jul 2011 12:59:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BxsdOXZjR86T; Fri, 15 Jul 2011 12:59:51 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D17EECAE49; Fri, 15 Jul 2011 12:59:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6A5A4CAE49 for ; Fri, 15 Jul 2011 12:59:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WyV3tYau9SEU for ; Fri, 15 Jul 2011 12:59:48 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id A15CCCAE48 for ; Fri, 15 Jul 2011 12:59:48 +0200 (CEST) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p6FAxljh008120 for ; Fri, 15 Jul 2011 12:59:48 +0200 Original-Received: from [87.178.31.180] (account tschmit1@uni-bonn.de HELO localhost.localdomain) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.2.12) with ESMTPSA id 65858553 for ntg-context@ntg.nl; Fri, 15 Jul 2011 12:59:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20110628 Thunderbird/5.0 In-Reply-To: <4E200E17.2040308@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0aF8aXLNb - 20a642240f1c - 20110715 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:70038 Archived-At: 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=3D5cm] \mainlanguage[de] \installbreakpoint [compound] [=96] = [language=3Dde,nleft=3D2,nright=3D2,left=3D,right=3D-,type=3D5] \setbreakpoints[compound] \showframe \starttext 0--1--2--3--4--5--6--7--8--9--0--0--1--2--3 0=961=962=963=964=965=966=967=968=969=960=960=961=962=963 \stoptext but that doesn't change anything. > > % \start \hsize 1.5cm \setbreakpoints[compound] > % \installbreakpoint [compound] [-] > [nleft=3D3,nright=3D3,type=3D5,left=3D,right=3D{-},middle=3D{-}] > % \installbreakpoint [compound] [(] > [nleft=3D3,nright=3D3,type=3D5,left=3D,right=3D{(-},middle=3D{(}] > % \installbreakpoint [compound] [)] > [nleft=3D3,nright=3D3,type=3D5,left=3D{-)},right=3D,middle=3D{)}] > % composed-word\par composed(word)\par > % \stop > > % \mainlanguage[czech] > % \installbreakpoint [compound] [\number`-] > [language=3Dcs,nleft=3D3,nright=3D3,type=3D4] > % \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 t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________