aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/ocda_functions.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/ocda_functions.org')
-rw-r--r--org/ocda_functions.org15
1 files changed, 7 insertions, 8 deletions
diff --git a/org/ocda_functions.org b/org/ocda_functions.org
index db6d63b..a5b60fa 100644
--- a/org/ocda_functions.org
+++ b/org/ocda_functions.org
@@ -70,16 +70,15 @@ bool[string] _heading_anchor_tags_seen;
these names means the document's heading is disambiguated the same
way a repeated anchor tag is, and the generated section keeps the
name that the table of contents links to.
+ .
+ The list itself is in sisudoc.ocda.meta.reserved_names, with the
+ check that reports such a heading to its author. Two lists would be
+ two answers to what spine has taken.
+/
bool[string] _reserved_heading_anchor_tags() {
- bool[string] _reserved;
- foreach (_name; [
- "toc", "endnotes", "glossary", "bibliography", "bookindex", "blurb",
- "_the_title",
- ]) {
- _reserved[_name] = true;
- }
- return _reserved;
+ import sisudoc.ocda.meta.reserved_names;
+ mixin spineReservedNames _rn;
+ return _rn.reservedHeadingAnchorTags();
}
string lev_anchor_tag;
string[string][string] tag_assoc;