fix(pdf): honor soft hyphens for every hyphenated language

Forme hyphenates every language it has patterns for, so drop the German-only
gate on soft-hyphen decoding and the "Currently supports German" schema note.
This commit is contained in:
Amruth Pillai
2026-09-30 01:07:33 +02:00
parent 725be158c0
commit 6d4ceefbdf
5 changed files with 23 additions and 25 deletions
@@ -98,7 +98,7 @@ export const RichText = ({ children, semanticField }: RichTextProps) => {
const normalizedHtml = normalizeRichTextHtml(children, {
direction: rtl ? "rtl" : "ltr",
softHyphens: metadata.typography.hyphenation === true && /^de(?:-|$)/i.test(metadata.page.locale),
softHyphens: metadata.typography.hyphenation === true,
});
const html = richTextNodeKey
? projectNormalizedRichTextHtml(normalizedHtml, richTextNodeKey, renderedChildKeysFor)