-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support for ISO/IEC full subfigures (ISO DIR 2:2021 28.3.2) (was: Subfigures not working if Key is included) #754
Comments
Subfigures are recognised as examples containing only figures. Figure keys are supposed to be definition lists, and are recognised as such. DISCURSIVE PARAGRAPHS ARE NOT DEFINITION LISTS. This is the first time I've seen any indication that anything other than definition lists is supposed to be a figure key. Every single other example in ISO/IEC DIR 2 of a table or figure key is a definition list, and the cited subfigure "key" is an umbrella description of notes and footnotes. I take very strong exception to being told that I should have magically anticipated random markup that does not correspond to the common sense understanding of ISO/IEC DIR 2. This is not a key as far as Metanorma is concerned, and it is not encompassed by Metanorma syntax. I REFUSE to implement this without EXPLICIT feedback from ISO editorial that this is a legitimate instance of a key. As it is, if I were to implement this, it would NOT be with that existing markup: I would need to introduce a new open block syntax, and a much looser syntax. I VEHEMENTLY recommend you do not disrupt Metanorma parsing and syntax over addle-headed frivolous and one-off use of ISO formatting. This is not a key. This is a note. And it should be treated as such. |
We are seeking confirmation on whether keys can be free text. The image is not a definition of keys, and it contradicts the definition of keys for tables. ISO DIR 2 is not explicit that the foregoing is a definition of keys; in fact, in its source diagram (in IEC, keys are mutually exclusive from requirement paragraphs and notes. It does turn out that definition lists will incorrectly be embedded within subfigures (as nearest neighbours). That needs to be prevented, as it violates ISO/IEC DIR 2. |
I have updated the original ticket to update our current understanding. Will also update this once we receive feedback from ISO Editorial. |
I think we know what Keys are, they are the ones shown in the Rice document, which is not free text.
I think we should stop merging the nearest definition list into the figure, it is very confusing for the author, especially when the definition list often is not part of the figure. |
In fact we now also support this:
In fact, so will:
At issue is whether we allow
We aren't: we are only merging definition lists marked with We also have the original syntax
But I'm happy for that to be dropped from documentation, and kept only as legacy. |
I would say we should only allow text blocks in the figure if it was explicitly put in the figure block. I don’t think DIR 2 specified exactly what a “Key” is.
Let’s make this legacy. And keep it as a note in documentation. BTW, does the Key syntax work the same way for Formulas? |
That's not answering my question. Should text blocks be recognised as keys? That's your pending query to ISO. Formulas work the same way: "where", or [%key], and again, what follows is expected to be a definition list. |
Units notes implemented: metanorma/metanorma-standoc#688 |
(UPDATED: 20220731)
ISO/IEC DIR 2 supports Figure with subfigures
ISO/IEC DIR 2, 28.3.2 describes "subfigures"here. This feature has been in DIR 2 since at least 2011.
A figure that contains subfigures supports the following elements:
Metanorma current support of subfigures
Currently in Metanorma subfigures are supported in ISO but only the simplest form, of multiple images/figures.
Here, it describes that the "Key" content exists within the Figure.
Note that the subfigure example we have currently lacks a few things:
Metanorma also supports a figure with non-images:
This is the intended layout:
However, including the "Key" in the Figure doesn't work in Word, and PDF generation crashes.
It becomes an EXAMPLE with 3 inner Figures, which is wrong:
If I move the "Key" outside of the Figure, it works:
Metanorma with full subfigure support
We need to implement a complete
[figure]
block syntax to support figures with subfigures and their associated content.Some functionality needed:
[figure]
syntaxunits
statementkey
Full figure syntax
While this is the full syntax for a figure/subfigures, there are "convenience syntaxes" for simpler figure inclusion.
Figure with multiple images only => auto subfigures
We have this now:
Figure with image + text => one figure
We have this now:
Figure with key after => one figure with key
We support this.
Image with key after => one figure with key
We support this.
Figure with subfigures with key after => multiple figures with key
We don't support this.
Once this task is done we should also update the Metanorma site to provide a full example of subfigure with text/paragraphs.
NOTE: This is a blocker to https://github.com/metanorma/iso-19144-2.
The text was updated successfully, but these errors were encountered: