Re: [NTG-context] two bugs with compressed linenotes

2013-07-11 Thread Hans Hagen

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
___


Re: [NTG-context] two bugs with compressed linenotes

2013-07-11 Thread Pablo Rodríguez
On 11/07/13 10:30, Hans Hagen wrote:
 On 7/10/2013 8:18 PM, Pablo Rodríguez wrote:

 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).
 [...]
 put this in cont-new.mkiv

Many thanks for the patch, Hans.

I copied in cont-new.mkiv (right after \unprotect (from line 19) and I‘m
afraid I get the following error:

! Argument of \515linenote:numbercommand has an extra }.
system   tex  error on line 6 in file
/home/ousia/compressed-linenotes.tex: Argument of  ...
 1 \setupnotation[linenote][compress=yes]
 2 \starttext
 3
 4 \startlinenumbering
 5 \linenote{Without this note, line numbering from ranges is
 6   right}\startlinenote[one]{This should have lines 1 to 3.}line one\\
 7 line two\\
 8 line three\stoplinenote[one]
 9 \stoplinenumbering
10
11 \stoptext
inserted text
\par
to be read again
}
\strc_enumerations_full_number_coupling ...er_yes
  \edef \p_coupling
{\constr...
\strc_enumerations_text ...s_full_number_coupling
  \fi \fi \else
\strc_enumer...
\201notation ...eadcolor \strc_enumerations_text
  \endgroup
\currentconstructiontext ...ionhandler \endcsname
  \endstrut
...
l.6 right}
\startlinenote[one]{This should have lines 1 to 3.}line one\\
?
! Emergency stop.

Am I doing something wrong? (Sorry, but this is all Greek to me.)


Pablo
-- 
http://www.ousia.tk
___
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
___

[NTG-context] two bugs with compressed linenotes

2013-07-10 Thread Pablo Rodríguez
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,


Pablo
-- 
http://www.ousia.tk
___
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
___