new header id system

This commit is contained in:
dtb 2022-11-17 22:52:34 -05:00
parent e50cab2d15
commit 5fa86efd26
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ Alpine has _package(`build-base') and Debian has _package(`build-essential').
For linking to libraries, see _ref(`#pkg-config').
</P>
_subheader(`Prototypical C (1978)')
_subheader(`C1978')
<UL>
<LI><A HREF="https://archive.org/details/TheCProgrammingLanguageFirstEdition">The C Programming Language, 1st ed.</A> (The Internet Archive)</LI>
<LI><A HREF="https://www.bell-labs.com/usr/dmr/www/cman.pdf">C Reference Manual</A> (this paper bears striking similarity to and was also written by the author of Appendix A of <I>The C Programming Language, 1st ed.</I> - the chronology of these writings' release is unknown)</LI>
@ -43,7 +43,7 @@ This was known as "pre-ANSI C" or "K&amp;R C" and dubbed "C78" for the purposes
</P>
_subsubheader(`_italic(`8') and _italic(`9') as valid octal digits')
_bibliography(`
_bentr(`_ref(`#Unix#V6') - see /usr/source/c/ in the Sixth Edition root tree')
_bentr(`_ref(`#unix#v6') - see /usr/source/c/ in the Sixth Edition root tree')
')
<PRE>
main()

View File

@ -6,7 +6,7 @@ define(`_bibliography_entry', `<LI>$1</LI>')dnl
define(`_bentr', `_bibliography_entry($1)')dnl
define(`_cite', `<CITE>$1</CITE>')dnl
define(`_code', `<CODE>$1</CODE>')dnl
define(`_header', `<H2 ID="$1">$1</H2>')dnl
define(`_header', `define(`_CURRENT_HEADER', $1)<H2 ID="_lowercase($1)">$1</H2>')dnl
define(`_italic', `<I>$1</I>')dnl
define(`_link', `<A HREF="$2">$1</A>')dnl
define(`_lowercase', `translit(`$1', _ASCII_UPPER, _ASCII_LOWER)')dnl
@ -15,7 +15,7 @@ define(`_passage', `<FIGURE>
<FIGCAPTION>(_cite(`$1'))</FIGCAPTION>
</FIGURE>')dnl
define(`_ref', `_link(`$1', `$1')')dnl
define(`_subheader', `<H3>$1</H3>')dnl
define(`_subheader', `<H3 ID="_lowercase(_CURRENT_HEADER)#_lowercase($1)">$1</H3>')dnl
define(`_subsubheader', `<H4>$1</H4>')dnl
<!DOCTYPE html>
<HTML LANG="en">