From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77463 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Critical editions with ConTeXt Date: Fri, 20 Jul 2012 18:45:12 +0200 Message-ID: <50098B18.4000407@wxs.nl> References: <9a69cc6e3c778869.50068b7e@uniovi.es> <50068B59.7070803@uni-bonn.de> <500701D4.2020609@web.de> <50097C2B.2030609@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1342802731 14308 80.91.229.3 (20 Jul 2012 16:45:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Jul 2012 16:45:31 +0000 (UTC) Cc: "Thomas A. Schmitz" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 20 18:45:30 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SsGKX-0003lP-0S for gctc-ntg-context-518@m.gmane.org; Fri, 20 Jul 2012 18:45:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C24AC102E1; Fri, 20 Jul 2012 18:45:27 +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 zZCy0k4Vu7TI; Fri, 20 Jul 2012 18:45:26 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0AA43101F6; Fri, 20 Jul 2012 18:45:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CCE65101F6 for ; Fri, 20 Jul 2012 18:45:24 +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 6-J9H2cryUp4 for ; Fri, 20 Jul 2012 18:45:22 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id EDA44101F4 for ; Fri, 20 Jul 2012 18:45:22 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q6KGjLm2006457 for ; Fri, 20 Jul 2012 18:45:22 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by pragma-net.nl (SurgeMail 5.3h2) with ESMTP (TLS) id 1411-1713362 for multiple; Fri, 20 Jul 2012 18:45:18 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: <50097C2B.2030609@uni-bonn.de> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=03; city=Hattem; latitude=52.4724; longitude=6.0696; http://maps.google.com/maps?q=52.4724,6.0696&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06HAEJlr3 - 5395b6a6d7a5 - 20120720 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77463 Archived-At: On 20-7-2012 17:41, Thomas A. Schmitz wrote: > This may be a bit more difficult, because it involves thinking about > proper input syntax. How do you want to mark this passage? If you can > come up with clean and unequivocal syntax and demonstrate it in an > example, your chances aren't too bad. However, I mean really clean > syntax, not just a kludge to give you the output you want. Ideally, have > a look at the TEI syntax. IMO, this is the best way to go; I don't think > TeX is a good input format for critical editions. If you can come up > with a good mapping TEI --> ConTeXt --> output, that would facilitate > things. Actually ranges have always been supported (as we needed in the previous century already for referring to passages in texts where students had to comment on): \definelinenote[linenote] % was commented but will be predefined \starttext \setuplinenumbering[distance=2em] \setuplinenote [linenote] [distance=2em,rule=off,frame=on,framecolor=darkred] \startlinenumbering test test test \dorecurse{40}{test }. \linenote {A simple linenote does not have a number range} \startlinenote [one] {A linenote environment has a range that covers the first line of an environment up to the last.} \dorecurse{40}{test }. \stoplinenote [one] \linenote {A simple linenote does not have a number range} \dorecurse{30}{test }\removeunwantedspaces. \stoplinenumbering \stoptext but as you mention the interface is a bit problematic as start/stop is not nice when being nested: \let\fromlinenote\startlinenote \let\tolinenote \stoplinenote \startlinenumbering test test test \dorecurse{40}{test }. \linenote {A simple linenote does not have a number range} \fromlinenote [two] {A linenote environment has a range that covers the first line of an environment up to the last.} \dorecurse{40}{test }. \fromlinenote [three]{However, nesting can be mixed.}\dorecurse{40}{test }. \tolinenote [two] \dorecurse{40}{test }. \tolinenote [three] \linenote {A simple linenote does not have a number range} \dorecurse{30}{test }\removeunwantedspaces. \stoplinenumbering \stoptext Maybe I should add those commands. Hans ----------------------------------------------------------------- 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 ___________________________________________________________________________________