feat: a paragraph can opt out of automatic hyphenation

LibreOffice's Format > Paragraph > Text Flow checkbox. Only "off"
travels (Word has no per-paragraph "on") and only under a document that
hyphenates, or it would say what is already true. ODF writes
fo:hyphenate="false" into the paragraph's text properties, DOCX gains
w:suppressAutoHyphens through a post-pack pass — the docx package
exposes no option for it. Both survive a LibreOffice re-save.
This commit is contained in:
Steffen Becker committed 2026-08-15 01:09:55 +02:00
1 parent e1b2fefa55
commit 4afd5cd1d5
13 files changed
+139 -13

No files matched your search

+6
View File
@@ -134,6 +134,12 @@
margin-bottom: 0;
}
/* One paragraph opting out of the document's automatic hyphenation (pageBreak.ts).
The host carries `hyphens: auto`, so only the paragraph has to say no. */
.paper .tiptap [data-no-hyphenation] {
hyphens: none;
}
/* A page-anchored frame is placed from its page corner and is out of the flow, so the
paragraph the importer hoists it into reserves no space (image.ts). !important: several
other paragraph rules below set their own `position: relative` (line-height shift, the