-
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
Presentation XML caption markup #617
Comments
This is growing, and I'm scared of where this is going to end up:
So:
This is:
And that means I'm also adding the span class fmt-element-name. I won't know the autonum value at the time I am calcluating the cross-references, and I am not convinced of the value of cross-referencing autonum when it is recoverable contextually. I may revisit that decision. I will post samples soon, but I'm still working through the implications. |
I will have to deal with multiple numbers in container xrefs after all: I am currently generating:
Clause 2.1, Example 1. If we are going to allow this to be reformatted dynamically, I have to be able to tell the Presentation XML which autonum references the clause, and which the example. I am going to make autonum be an attribute of the element after all, and make
|
from
to
|
Unnumbered figures and sourcecode still need to have "Figure/Sourcecode" in their caption: no idea why I had blocked that... |
Ah. I do see. We want to avoid captioning in such cases:
If example/figure/name is supplied, we need to transform it to |
…ry delimiters, clause label processing: #617
Added name processing in Presentation XML for dl, ul, ol, to ensure that any name instances are copied to fmt-name |
…ssing, to guarantee labels are assigned: #617
Needed to deal with autonum XML added to xref and contents contents for punctuation localisation: punctuation localisation was naive about preceding and following context in different XML tags. Need to also generalise CJK extending titles to cope with titles now containing XML markup. |
Obligation parentheses for annex titles appear on their own line: I need to localise them separately, so that CJK does not spuriously use surrounding Roman text as context from previous lines. This needs to be a general caution: punctuation localisation needs to be one line at a time. |
isodoc done. Next, mn-requirements, which impacts isodoc integration testing. |
Both the monospace identifier in references to other Modspec requierements, and the full crossreference, were being linked to the requirement; this was mangling cross-references after the refactor. The intent was to hyperlink only the monospace identifier, so that is now behaviour:
becomes
The |
…dspec identifier component of modspec label in modspec table rows: metanorma/isodoc#617
Now metanorma-iso |
Marking up subfigure xrefs in ISO to differentiate subfigure counter from parent figure counter, and link back to the separate anchors of each. Need to port that solution back to generic isodoc. |
Extending solution to nested provisions |
Historical inconsistency: tables, figures and formulas numbered sequentially in main body of document did not have container references by default (Table 3, not Clause 4, Table 3). Provisions were having container references (Clause 4, Requirement 3). This is inconsistent, and if it is required behaviour, it needs to be specified explicitly per flavour. |
From #610
@autonum
), and its label (label
), are differentiated from its caption (fmt-name
,fmt-title
; these will incorporate thename
andtitle
from the Semantic XML)span class="autonum-delimiter"
, so that they can be identified and overridden if needed.Semantic XML:
Current Presentation XML:
Future Presentation XML:
Every single solitary instance of
title
andname
will be shadowed or replaced byfmt-title
andfmt-name
, and renderers need to process that, and ignoretitle
,name
,autonum
,label
.The text was updated successfully, but these errors were encountered: