Skip to content

Suppress clause delimiter via i18n, not code - #538

Merged
opoudjis merged 1 commit into
mainfrom
fix/ribose-clause-delimiter-i18n
Aug 17, 2026
Merged

Suppress clause delimiter via i18n, not code#538
opoudjis merged 1 commit into
mainfrom
fix/ribose-clause-delimiter-i18n

Conversation

@opoudjis

Copy link
Copy Markdown
Contributor

Refs metanorma/metanorma-pdfa#74

Ribose intended to suppress the terminal clause-number delimiter (clausedelim"" in BaseConvert), but that override only reached the final-format converters (Html/Pdf/Word); Ribose::PresentationXMLConvert fell through to the base ".", so the period was baked into the presentation XML that the FO/PDF path consumes (metanorma-pdfa#74).

Fix via i18n (single source of truth, no inheritor code): set clause_delimiter: '' in the ribose i18n dictionary and drop the now-redundant BaseConvert#clausedelim override. The presentation stage honours it, so PDF/FO drops the period too, and downstream users can retune it without XSL tricks.

Draft / gated: requires the configurable clause_delimiter from metanorma/isodoc#838 (isodoc 3.7.2); inert until that ships.

🤖

Set clause_delimiter to "" in the ribose i18n dictionary and drop the now-redundant BaseConvert#clausedelim override. The delimiter is applied in the presentation-XML stage (single source of truth), so PDF/FO output honours it too — fixing the period that previously appeared only in the presentation-consuming outputs. Prefers YAML config over inheritor code.

Requires isodoc >= 3.7.2 (configurable clause_delimiter, metanorma/isodoc#838).

Refs metanorma/metanorma-pdfa#74
@opoudjis opoudjis self-assigned this Aug 11, 2026
@opoudjis
opoudjis marked this pull request as ready for review August 17, 2026 01:04
@opoudjis
opoudjis merged commit 934dc80 into main Aug 17, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant