-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate index in Presentation XML #67
Comments
Note: This functionality also applies to ISO 10303. |
Index in Presentation XML shall take the form of a final |
BIPM have "X, see Y" entries; I will need to add those to metanorma-standoc |
Fix standoc indexterm: if Asciidoctor index term contains formatting, preserve it in rendered text. |
Index target is converted to bookmark in PresentationXML. Rendering highlights the fact that bookmark targets are rendered as bare GUIDs. They need to be rendered as the containing section, for HTML. @Intelligent2013 that means that I will have |
@opoudjis FYI, I've made it already for ToC in Appendix 1 for brochure. |
I know, I just wanted to make sure. |
xref of bookmarks: metanorma/metanorma-bipm#67
@Intelligent2013 The horrors continue:
if there are more than 2 consecutive numbers, you may be expected to concatenated them into x–y. If you do, please use an en-dash: once again, we are obliged to do better typographically than BIPM. |
"X see Y" and "X see also Y" in an index is going to be handled as a new macro,
primary, secondary, tertiary are terms of X, and secondary, tertiary are optional. |
Hmm, then why they put |
@Intelligent2013 I believe |
... Oh God, it's even worse. It means that the index entry is tagged not to a single word instance, but to an entire span of text discussing it. That's quite reasonable and commonplace, and it is not supported natively by Asciidoctor. Moreover, it will override clause boundaries, and will have to be handled via a starting and ending bookmark in text. It will not be hard to render, but it will be somewhat ugly to mark up. ... I mean... yuck. But yes, it means I'm not done here. Span will be |
Secondary index terms are needed. |
And the semantic XML markup shall be |
Modify Asciidoc: we want the equivalent of |
Why not define the concept of a "spanning anchor" and point the index to it? |
... Because the solution I have already implemented is far more elegant than shoving complexity into the target, and making me go through hoops to extract the information again. It is more complicated for both data entry and for processing, it yields minimal conceptual encapsulation at the cost of much confusion, and I reject it. |
@Intelligent2013 This is ready for you to implement. This is a sample index, as featured in the metanorma-bipm rspec:
Note that |
Presumably it will be realised in Presentation XML as the page-only cross-references we have already been bludgeoned by BIPM into producing.
The text was updated successfully, but these errors were encountered: