Skip to content

Commit 323d85a

Browse files
committed
figure footnote refactor in Presentation XML: metanorma/isodoc#658
1 parent 6c4ca6a commit 323d85a

File tree

1 file changed

+30
-3
lines changed

1 file changed

+30
-3
lines changed

grammars/isodoc-presentation.rnc

+30-3
Original file line numberDiff line numberDiff line change
@@ -745,9 +745,36 @@ TdBody &= empty
745745
## If figure is labelled with figure/@class (e.g. "diagram"), use the i18n of figure/@class, rather than "Figure",
746746
## to label the figure
747747
##
748-
## By default, any footnotes of the figure are moved to the beginning of the Figure key: the definition term is
749-
## the footnote reference, the definition content is the footnote content. This follows ISO rendering, and presupposes
750-
## that the footnote reference is embedded in the figure graphically.
748+
## By default, any footnotes of the figure are moved to the beginning of the Figure key:
749+
## the definition content is the footnote content (fmt-fn-body), he definition term is
750+
## the footnote reference (fmt-fn-label, removed from fmt-fn-body, and with span[@class = 'fmt-caption-label'] stripped out).
751+
## This follows ISO rendering.
752+
##
753+
## * Before:
754+
## <fmt-fn-body>
755+
## <semx element="fn">
756+
## <p>
757+
## <fmt-fn-label>
758+
## <sup><semx element="autonum">a</semx></sup>
759+
## <span class="fmt-caption-label"><tab/></span>
760+
## </fmt-fn-label>
761+
## Footnote content
762+
## </semx>
763+
## </fmt-fn-body>
764+
##
765+
## * After:
766+
## <dl class="formula_dl">
767+
## <dt><p>
768+
## <fmt-fn-label>
769+
## <sup><semx element="autonum">a</semx></sup>
770+
## </fmt-fn-label>
771+
## </p></dt>
772+
## <dd>
773+
## <fmt-fn-body>
774+
## <semx element="fn"><p>Footnote content</p></semx>
775+
## </fmt-fn-body>
776+
## </dd>
777+
## </dl>
751778
##
752779
## If not supplied, a label paragraph is given for the key. TODO: this should be dl/name throughout, not p
753780
figure &= fmt-figure

0 commit comments

Comments
 (0)