Zero-Config Multilingual
A group-wide remote-work policy notice that HR sends to every regional office, in nine scripts. Its document definition declares no font at all: each run of text is detected and set in a face that covers it.
- A script ribbon under the title. One letter of each of the nine scripts on its own tile, named, with an arrow for the way its lines run.
- Three headline figures. Nine scripts, two directions, no font declared.
- The same statement in nine languages. A table sets it in Arabic, Hebrew, Hindi, Bengali, Tamil, Thai, Chinese, Japanese and Korean, with the region each serves, in regular and in bold.
- Latin inside native script. Paragraphs mix the policy code, the effective date and an HR email address into Arabic, Hebrew, Hindi, Chinese, Japanese, Korean and Thai text.
- Right-to-left where it belongs. The Arabic and Hebrew cells and paragraphs are aligned right.
- Plus a reference line with issue and effective dates, a scope paragraph, and a faint repeated watermark across the page.
Features used: PDF/A-2b conformance, watermarks, tables, SVG, Arabic, Bengali, Chinese, Devanagari, Hebrew, Japanese kana, Korean, Tamil, Thai text
- Output
- Template
- Data
How it's built
No font, anywhere
The document has no fonts entry, and none of its styles names a fontFamily. The text is written as it is, in whatever script it is in, and each run is set in a face that covers that script. Bold is a style like any other: cellB and cellRtlB add fontWeight: "bold", and the table sets each statement twice, once in cell or cellRtl and once in its bold twin.
Right to left without direction
No style sets direction either. A paragraph's first letter that has a direction decides its base direction, so the Arabic and Hebrew cells run right to left on their own. Their styles only align them to the right:
"styles": {
"cellRtl": { "fontSize": 12, "color": "#0F172A", "textAlign": "right", "paddingTop": 4, "paddingBottom": 4, "paddingLeft": 7, "paddingRight": 7, "border": "0.5pt solid #E2E8F0" },
"cellRtlB": { "fontSize": 11, "fontWeight": "bold", "color": "#1E3A8A", "textAlign": "right", "paddingTop": 4, "paddingBottom": 4, "paddingLeft": 7, "paddingRight": 7, "border": "0.5pt solid #E2E8F0" }
}
Latin inside another script
The paragraphs under the table carry a policy code, a date and an email address inside native text. Nothing marks where the scripts change: each run is found and set in its own face within the one paragraph, and in the Arabic and Hebrew lines the Latin runs keep their left-to-right order.
{ "p": "فريق الموارد البشرية — مرجع السياسة WFH-2026 نافذ اعتباراً من 2026-06-01 — التواصل: hr@verdania.example", "style": "mixedRtl" },
{ "p": "मानव संसाधन विभाग — नीति WFH-2026 प्रभावी दिनांक 2026-06-01 — संपर्क: hr@verdania.example", "style": "mixed" }
The script ribbon
The ribbon is one svg. Each tile is a rounded rect, the script's letter as an svg text, its name, and a path for the arrow; the letter is detected and set like any paragraph. Arabic and Hebrew tiles take the tileRtl, glyphRtl and arrowRtl styles, the others their Ltr counterparts.
{
"svg": {
"title": "The nine scripts this notice is set in",
"viewBox": [495, 64],
"style": "ribbonBlock",
"children": [
{ "rect": { "x": 0.0, "y": 0, "width": 49.67, "height": 64, "rx": 5, "style": "tileRtl" } },
{ "text": { "x": 24.83, "y": 25, "baseline": "alphabetic", "text": "ع", "style": "glyphRtl" } },
{ "text": { "x": 24.83, "y": 38, "text": "Arabic", "style": "scriptName" } },
{ "path": { "d": "M 32.83 54 L 16.83 54 M 20.83 51 L 16.83 54 L 20.83 57", "style": "arrowRtl" } }
]
}
}