Skip to content
Novus Examples
json2.6 KB

Bidi Isolates — UI templates for user-supplied names

Three notification templates in English, Arabic and Hebrew, each given raw and with every interpolation slot wrapped in FSI…PDI, plus four argument sets covering an LTR name in an RTL sentence, an RTL name in an LTR sentence and a name beginning with a neutral character. This is the fixture for the bug where a display name reorders the sentence around it.

Preview — first 50 linesjson
{
  "note": "UI templates whose {name} slot receives user-supplied text of unknown direction. Each message is given raw and wrapped, so a test can assert that the wrapped form renders identically under an LTR and an RTL paragraph direction.",
  "controls": {
    "FSI": {
      "codePoint": "U+2068",
      "name": "FIRST STRONG ISOLATE"
    },
    "PDI": {
      "codePoint": "U+2069",
      "name": "POP DIRECTIONAL ISOLATE"
    },
    "RLM": {
      "codePoint": "U+200F",
      "name": "RIGHT-TO-LEFT MARK"
    },
    "LRM": {
      "codePoint": "U+200E",
      "name": "LEFT-TO-RIGHT MARK"
    }
  },
  "locales": {
    "en": {
      "dir": "ltr",
      "raw": {
        "commented": "{name} commented on {file}",
        "shared": "{name} shared {file} with you",
        "renamed": "{name} renamed {file} to {newName}"
      },
      "wrapped": {
        "commented": "⁨{name}⁩ commented on ⁨{file}⁩",
        "shared": "⁨{name}⁩ shared ⁨{file}⁩ with you",
        "renamed": "⁨{name}⁩ renamed ⁨{file}⁩ to ⁨{newName}⁩"
      }
    },
    "ar": {
      "dir": "rtl",
      "raw": {
        "commented": "{name} علّق على {file}",
        "shared": "شارك {name} الملف {file} معك",
        "renamed": "أعاد {name} تسمية {file} إلى {newName}"
      },
      "wrapped": {
        "commented": "⁨{name}⁩ علّق على ⁨{file}⁩",
        "shared": "شارك ⁨{name}⁩ الملف ⁨{file}⁩ معك",
        "renamed": "أعاد ⁨{name}⁩ تسمية ⁨{file}⁩ إلى ⁨{newName}⁩"
      }
    },
    "he": {
      "dir": "rtl",
      "raw": {
89 lines total — download for the full file.

Specifications

Locales
en, ar, he
Messages
3
Arguments
4
Forms
raw and FSI/PDI-wrapped, per message
Marks Used
FSI, PDI
Encoding
UTF-8
Seed
20260807
Wave
p7
Line Endings
LF

Testing contract

Expected to pass
Scenario
Interpolate every argument set into both the raw and the wrapped form of each message, in all three locales.
Expected result
The wrapped forms render with the surrounding sentence in its own direction regardless of the argument, while the raw forms let a '-3' or an Arabic name reorder the words around the slot.

What is a .json file?

JSON (JavaScript Object Notation) is a lightweight, text-based data-interchange format representing objects, arrays, strings, numbers, booleans, and null. It is language-independent, human-readable, and the dominant format for web APIs and configuration. It requires a single well-formed root value.

How to use this file

Use an example JSON file to test parsers and serializers, schema validation, Unicode and number-precision handling, and API request or response processing.

How to use this file for testing

“Bidi Isolates — UI templates for user-supplied names” is a deterministic Novus Examples fixture for Internationalization, Localization catalogs, JSON parsing. Parallel text and accented, multi-script content — for testing translation pipelines, Unicode handling, and localization tooling.

Documented properties for this file: seed 20260807 · 3 messages · UTF-8 · LF. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Translation-catalog fixtures carry the same message set across formats, each with its native placeholder syntax. Test your i18n loader, catalog converter, or translation-memory tool, and use the RTL and CJK variants to check bidirectional text and Unicode handling.

Load the catalog with your i18n framework and verify placeholder interpolation and plural handling; the RTL and CJK variants exercise bidirectional text and font fallback.

Code examples

import json

with open("isolates-user-content.json") as f:
    data = json.load(f)
print(type(data), len(data))

Generated by generation/localization_p7.py. Free for any use, no attribution required — license.