[autolabeling improvements atehwa@sange.fi**20050629231717] { hunk ./common/gatherlinkmap.lsed 20 -s#^.*\[+\([^]]*\)+\].*$#define(`@w_label_of_\1', w_make_label)dnl#p -s#^!!* *\(.*\)$#define(`@w_label_of_\1', w_make_label)dnl#p +s#^.*\[+\([^]]*\)+\].*$#w_make_autolabel(`\1')dnl#p +s#^!!* *\(.*\)$#w_make_autolabel(`\1')dnl#p hunk ./common/markup.lm4 154 -define(`w_make_label', -`w_stepcounter(autolabel)label.w_counter_arabic(autolabel)') -define(`w_autolabel', `w_label(defn(`@w_label_of_$1'),`$1')') +define(`w_genlabel', +`ifdef(`@w_label_used_$1', + `w_stepcounter(autolabel)w_genlabel(`$1'w_counter_arabic(autolabel))', + `define(`@w_label_used_$1',t)`$1'')') +define(`w_tidystring', +`ifelse(`$1',,, + `ifelse(index(`BCDFGHJKLMNPQRSTVWXZbcdfghjklmnpqrstvwxz',substr(`$1',0,1)), + -1,,`substr(`$1',0,1)')`'w_tidystring(substr(`$1',1))')') +define(`w_make_autolabel', +`define(`@w_label_of_$1',w_genlabel(w_tidystring(substr(`$1',0,6))))') +define(`w_autolabel', +`ifdef(`@w_label_of_$1',`w_label(defn(`@w_label_of_$1'),`$1')',`$1')') hunk ./debian/changelog 1 +stx2any (1.46) unstable; urgency=low + + * neater results when label abbrevs in the same line + * automatic labels are better named (less spurious diffs) + + -- Panu Thu, 30 Jun 2005 01:48:27 +0300 + hunk ./regression/link-abbrev.docbook-xml 10 -<Anchor id="label.1"/>Testing link abbreviations +<Anchor id="Tstn"/>Testing link abbreviations hunk ./regression/link-abbrev.docbook-xml 15 -Second paragraph. It doesn't have anything weird, either. There's +Second paragraph. It doesn't have anything weird, either. There's hunk ./regression/link-abbrev.docbook-xml 20 -links here. See Testing link abbreviations to get a hold of what +links here. See Testing link abbreviations to get a hold of what hunk ./regression/link-abbrev.docbook-xml 25 -URIs is that youthe reader have hard time knowing where they stop. +URIs is that youthe reader have hard time knowing where they stop. hunk ./regression/link-abbrev.docbook-xml 29 -RFC2396.? (Another example is +RFC2396.? (Another example is hunk ./regression/link-abbrev.docbook-xml 35 -. Please jump back. +. Please jump back. hunk ./regression/link-abbrev.docbook-xml 44 +<Anchor id="xplc"/>Explicit label + +How do multiple labels in the same line work? +What about Second-label conflicts? + hunk ./regression/link-abbrev.docbook-xml 53 -RFC2396: Uniform Resource Identifies (URI): Generic Syntax +RFC2396: Uniform Resource Identifies (URI): Generic Syntax hunk ./regression/link-abbrev.docbook-xml 56 - + hunk ./regression/link-abbrev.html 11 -

Testing link abbreviations

+

Testing link abbreviations

hunk ./regression/link-abbrev.html 16 -

Second paragraph. It doesn't have anything weird, either. There's +

Second paragraph. It doesn't have anything weird, either. There's hunk ./regression/link-abbrev.html 22 -links here. See Testing link abbreviations to get a hold of what +links here. See Testing link abbreviations to get a hold of what hunk ./regression/link-abbrev.html 28 -URIs is that you[3] have hard time knowing where they stop. +URIs is that you[3] have hard time knowing where they stop. hunk ./regression/link-abbrev.html 35 -RFC2396.
+RFC2396.
hunk ./regression/link-abbrev.html 37 -

Here is also an inline image. Please jump back. +

Here is also an inline image. Please jump back. hunk ./regression/link-abbrev.html 49 +

Explicit label

+ +

How do multiple labels in the same line work? +What about Second-label conflicts? + hunk ./regression/link-abbrev.html 58 -

RFC2396: Uniform Resource Identifies (URI): Generic Syntax +

RFC2396: Uniform Resource Identifies (URI): Generic Syntax hunk ./regression/link-abbrev.latex 15 -\section*{\label{label.1}Testing link abbreviations} +\section*{\label{Tstn}Testing link abbreviations} hunk ./regression/link-abbrev.latex 20 -\label{label.2}Second paragraph. It doesn't have anything weird, either. There's +\label{Scnd}Second paragraph. It doesn't have anything weird, either. There's hunk ./regression/link-abbrev.latex 25 -links here. See ``Testing link abbreviations (\pageref{label.1})'' to get a hold of what +links here. See ``Testing link abbreviations (\pageref{Tstn})'' to get a hold of what hunk ./regression/link-abbrev.latex 30 -URIs (\pageref{label.3}) is that you\footnote{the reader} have hard time knowing where they stop. +URIs (\pageref{RFC}) is that you\footnote{the reader} have hard time knowing where they stop. hunk ./regression/link-abbrev.latex 34 -RFC2396 (\pageref{label.3}).}? (Another example is +RFC2396 (\pageref{RFC}).}? (Another example is hunk ./regression/link-abbrev.latex 37 -Here is also an \includegraphics{pictures/zebra.eps}. Please jump back (\pageref{label.2}). +Here is also an \includegraphics{pictures/zebra.eps}. Please jump back (\pageref{Scnd}). hunk ./regression/link-abbrev.latex 45 + +\subsection*{\label{xplc}Explicit label} + +How do multiple labels in the same line \label{wrk}work? +What about \label{Scnd1}Second-label conflicts? hunk ./regression/link-abbrev.latex 57 -\label{label.3}RFC2396: Uniform Resource Identifies (URI): Generic Syntax +\label{RFC}RFC2396: Uniform Resource Identifies (URI): Generic Syntax hunk ./regression/link-abbrev.man 111 +.SS Explicit label +.PP +How do multiple labels in the same line work? +What about Second-label conflicts? hunk ./regression/link-abbrev.test 47 +!! [+Explicit label+] + +How do [+multiple labels+] in the same line [+work+]? +What about [+Second-label conflicts+]? + }