View Single Post
Old 01-03-2019, 10:35 AM   #5
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,090
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
I think it'd be helpful if there were a _FILENAME_ placeholder similar to _TARGET_ and _TEXT_ since the_TEXT_ parameter (1, 2, 3, …) might be used in more that one file

I believe that having the option to create the id like this would make it much easier when the user adds the 'back to' link in the end notes

So in chap_01.xhtml when inserting a hyperlink using the template

Code:
<p>text text text more text<a id="chap_01_noteref_.1." href="endnotes.xhtml#endnote_chap_01_.1.">[1]</a> some more text</p>
<p>text text text more text<a id="chap_01_noteref_.2." href="endnotes.xhtml#endnote_chap_01_.2.">[2]</a> some more text</p>
<p>text text text more text<a id="chap_01_noteref_.3." href="endnotes.xhtml#endnote_chap_01_.3.">[3]</a> some more text</p>
and in chap_02.xhtml

Code:
<p>text text text more text<a id="chap_02_noteref_.1." href="endnotes.xhtml#endnote_chap_02_.1.">[1]</a> some more text</p>
<p>text text text more text<a id="chap_02_noteref_.2." href="endnotes.xhtml#endnote_chap_02_.2.">[2]</a> some more text</p>
<p>text text text more text<a id="chap_02_noteref_.3." href="endnotes.xhtml#endnote_chap_02_.3.">[3]</a> some more text</p>

Seems like it would make it easier when generating the 'back to' in Endnotes

Code:
<p><a id="endnote_chap_01_.1." href="chap_01.xhtml#chap_01_noteref_.1.">[1]</a> - Footnote One in Chapter 1</p>
  <p><a id="endnote_chap_01_.2." href="chap_01.xhtml#chap_01_noteref_.2.">[2]</a> - Footnote Two in Chapter 1</p>
  <p><a id="endnote_chap_01_.3." href="chap_01.xhtml#chap_01_noteref_.3.">[3]</a> - Footnote Three in Chapter 1</p>

  <p><a id="endnote_chap_02_.1." href="chap_02.xhtml#chap_02_noteref_.1.">[1]</a> - Footnote One in Chapter 2</p>
  <p><a id="endnote_chap_02_.2." href="chap_02.xhtml#chap_02_noteref_.2.">[2]</a> - Footnote Two in Chapter 2</p>
  <p><a id="endnote_chap_02_.3." href="chap_02.xhtml#chap_02_noteref_.3.">[3]</a> - Footnote Three in Chapter 2</p>
phossler is offline   Reply With Quote