<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">George De Bruin</b> &lt;<a href="mailto:sndchaser@gmail.com">sndchaser@gmail.com</a>&gt;<br>Date: Jul 29, 2007 11:18 PM
<br>Subject: Re: [pmwiki-users] Automatically add anchors to heading tags?<br>To: &quot;<a href="mailto:christian.ridderstrom@gmail.com">christian.ridderstrom@gmail.com</a>&quot; &lt;<a href="mailto:christian.ridderstrom@gmail.com">
christian.ridderstrom@gmail.com</a>&gt;<br>Cc: &quot;H. Fox&quot; &lt;<a href="mailto:haganfox@users.sourceforge.net">haganfox@users.sourceforge.net</a>&gt;, <a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com
</a><br><br></span>Actually, I think most of this issue was eliminated when the suggestion to generate anchors based on abbreviations of the headings came into play. &nbsp;If you generate the headings using abbreviations, the following edits wirtll not change the anchors in most cases: 
<br><br>-  correcting typos <br>- correcting mis-spellings<br>-  correcting case<br>- correcting punctuation<br><br>The only edits that would affect the anchors are:<br><br>- adding words<br>- removing words<br>- inserting a new heading that has the same abbreviation as another heading 
<br>- removing a heading that has the same abbreviation as another heading.<br><br>IMO - by eliminating the first four as problems, the overall process becomes far more workable&nbsp;/&nbsp;useful. &nbsp;The second four are much lower on the poosibility table. 
<br><br>However, I do still see an issue with &quot;special&quot; characters and i18n support -- anyone care to address this? &nbsp;(IE, what if a &quot;special&quot; character is a normal character in the authors native language, an it appears as the first character of a word? &nbsp;Could this trip up strtolower()? etc.) 
<br><br><br><div><div><span class="e" id="q_11415589d00097f9_1"><span class="gmail_quote">On 7/29/07, <b class="gmail_sendername"><a href="mailto:christian.ridderstrom@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
christian.ridderstrom@gmail.com</a></b> &lt;<a href="mailto:christian.ridderstrom@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> christian.ridderstrom@gmail.com</a>&gt; wrote:</span></span>
</div><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
<div><span class="e" id="q_11415589d00097f9_3"> On Tue, 24 Jul 2007, H. Fox wrote:<br><br>&gt; On 7/22/07, <a href="mailto:christian.ridderstrom@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
christian.ridderstrom@gmail.com</a><br>&gt; &lt;<a href="mailto:christian.ridderstrom@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">christian.ridderstrom@gmail.com </a>&gt; wrote:<br>&gt;&gt;
<br>&gt;&gt;&nbsp;&nbsp;If we worry that an<br>&gt;&gt;&nbsp;&nbsp;enumerated heading becomes incorrect if a heading is inserted before it,<br>&gt;&gt;&nbsp;&nbsp;remember that a similar thing happens if you change the heading text. <br>&gt;<br>&gt; No it doesn&#39;t.&nbsp;&nbsp;If the section&#39;s anchor is determined by heading text it
<br>&gt; will not be affected by inserting other headings.<br><br>My apologies if this is too late, i&#39;ve just now figured out how to access <br>my mail in a sensible fashion from my place of vacation.<br><br>Please read me sentence again. If you change the heading text, the anchor
<br>lable will change. A changed anchor label is a problem that is similar to<br> what you would have if anchor labels were determined from their number,<br>i.e. if this is heading one, two, three etc. In this case, inserting a new
<br>heading means that the old label of say &quot;toc3&quot; will refer to the wrong <br>entry.<br><br>The point is really that neither system is very good.<br><br>/Christian<br><br><br>--<br>Christian Ridderström, +46-8-768 39 44&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<a href="http://www.md.kth.se/~chr" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.md.kth.se/~chr </a><br></span></div><span class="q">_______________________________________________<br>
pmwiki-users mailing list<br><a href="mailto:pmwiki-users@pmichaud.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pmwiki-users@pmichaud.com</a><br><a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
 http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br><br></span></blockquote></div><span class="sg"><br><br clear="all"><br>-- <br>---<br>Faster moments spent spread tales of change within the sound...  </span><br clear="all">
<br>-- <br>---<br>Faster moments spent spread tales of change within the sound...