ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* two bugs with compressed linenotes
@ 2013-07-10 18:18 Pablo Rodríguez
  2013-07-11  8:30 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodríguez @ 2013-07-10 18:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: two bugs with compressed linenotes
  2013-07-10 18:18 two bugs with compressed linenotes Pablo Rodríguez
@ 2013-07-11  8:30 ` Hans Hagen
  2013-07-11 19:15   ` Pablo Rodríguez
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2013-07-11  8:30 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: two bugs with compressed linenotes
  2013-07-11  8:30 ` Hans Hagen
@ 2013-07-11 19:15   ` Pablo Rodríguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodríguez @ 2013-07-11 19:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 \515>linenote: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...
\201>notation ...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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-11 19:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-10 18:18 two bugs with compressed linenotes Pablo Rodríguez
2013-07-11  8:30 ` Hans Hagen
2013-07-11 19:15   ` Pablo Rodríguez

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