From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: two bugs with compressed linenotes
Date: Thu, 11 Jul 2013 10:30:39 +0200 [thread overview]
Message-ID: <51DE6D2F.1040100@wxs.nl> (raw)
In-Reply-To: <51DDA558.5000906@web.de>
On 7/10/2013 8:18 PM, Pablo Rodríguez wrote:
> Dear Hans,
>
> I have found two bugs with compressed linenotes that I reported
> (http://www.ntg.nl/pipermail/ntg-context/2013/073940.html and
> http://www.ntg.nl/pipermail/ntg-context/2013/073953.html).
>
> I would like to introduce ConTeXt for critical editions to some
> Spanish-speaking people and I think this is a very useful feature.
>
> Many thanks for your help,
put this in cont-new.mkiv
\unexpanded\def\strc_linenotes_range_sparse#1% order
{\doifreferencefoundelse{lr:b:\currentlinenotereference}\settrue\setfalse\c_page_lines_current_from
\ifconditional\c_page_lines_current_from
\xdef\m_page_lines_current_from{\currentreferencelinenumber}%
\doifreferencefoundelse{lr:e:\currentlinenotereference}\settrue\setfalse\c_page_lines_current_to
\ifconditional\c_page_lines_current_to
\xdef\m_page_lines_current_to{\currentreferencelinenumber}%
\ifx\m_page_lines_previous_from\m_page_lines_current_from
\ifx\m_page_lines_previous_to\m_page_lines_current_to
\notationparameter\c!compressseparator
\else
\page_lines_in_from
\ifx\m_page_lines_current_from\m_page_lines_current_to\else\endash\page_lines_in_to\fi
\fi
\else
\page_lines_in_from
\ifx\m_page_lines_current_from\m_page_lines_current_to\else\endash\page_lines_in_to\fi
\fi
\else
\page_lines_in_from
\fi
\else
\ifx\m_page_lines_previous_from\m_page_lines_current_from
\notationparameter\c!compressseparator
\else
\page_lines_in_from
\fi
\fi}
-----------------------------------------------------------------
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
___________________________________________________________________________________
next prev parent reply other threads:[~2013-07-11 8:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-10 18:18 Pablo Rodríguez
2013-07-11 8:30 ` Hans Hagen [this message]
2013-07-11 19:15 ` Pablo Rodríguez
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=51DE6D2F.1040100@wxs.nl \
--to=pragma@wxs.nl \
--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).