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 -----------------------------------------------------------------