<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">George De Bruin</b> <<a href="mailto:sndchaser@gmail.com">sndchaser@gmail.com</a>><br>Date: Jul 29, 2007 11:18 PM
<br>Subject: Re: [pmwiki-users] Automatically add anchors to heading tags?<br>To: "<a href="mailto:christian.ridderstrom@gmail.com">christian.ridderstrom@gmail.com</a>" <<a href="mailto:christian.ridderstrom@gmail.com">
christian.ridderstrom@gmail.com</a>><br>Cc: "H. Fox" <<a href="mailto:haganfox@users.sourceforge.net">haganfox@users.sourceforge.net</a>>, <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. 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 / useful. The second four are much lower on the poosibility table.
<br><br>However, I do still see an issue with "special" characters and i18n support -- anyone care to address this? (IE, what if a "special" character is a normal character in the authors native language, an it appears as the first character of a word? 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> <<a href="mailto:christian.ridderstrom@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> christian.ridderstrom@gmail.com</a>> 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>> 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>> <<a href="mailto:christian.ridderstrom@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">christian.ridderstrom@gmail.com </a>> wrote:<br>>>
<br>>> If we worry that an<br>>> enumerated heading becomes incorrect if a heading is inserted before it,<br>>> remember that a similar thing happens if you change the heading text. <br>><br>> No it doesn't. If the section's anchor is determined by heading text it
<br>> will not be affected by inserting other headings.<br><br>My apologies if this is too late, i'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 "toc3" 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
<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...