-
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
Bug fix: if we have multiple abstracts or introductions in the preface, which we move to the right location in the preface in Presentation XML, ensure they are in the right order, not reverse: Abstract1 Abstract2 was ending up as Abstract2 Abstract1. (This has only happened in reality in Plateau, which has two abstracts.) |
metanorma-plateau done |
Will test against all local samples directories, and then close this ticket. |
Testing the local samples directories with the updated PDF stylesheets locally sounds too difficult, TBH, so I'm going to defer testing to Monday's release. I'm going to do a final round of rspec testing, and then move to other tickets for the remainder of the week. |
Need to intervene in bilingual document markup in metanorma gem. |
Not done, this has disrupted metanorma collections. Will also need to document the schema updates for Presentation XML. |
Prefatory and Final content in collections needs to be compiled to Presentation XML not Semantic XML, as it is merged in with Presentation XML for the collection documents. |
We want it to be Presentation XML, so we can have fmt-title instead of title. ... But we do not actually want any clause numbering or asset numbering in the Prefatory and Final content! So I will intervene in the compilation to make all clauses (at least) unnumbered. |
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: