-
Notifications
You must be signed in to change notification settings - Fork 9
Description
https://www.w3.org/TR/rdf12-concepts/
While rdf:dirLangString handles the base direction, the specification should clarify how inline directional changes within a plain literal string should be handled, probably as a note, like this:
While
rdf:dirLangStringspecifies the base direction for the entire literal, inline directional changes within the string value (e.g., embedding text of opposite directionality) can be managed using Unicode bidirectional control characters. These control characters isolate parts of the text to ensure correct rendering under the Unicode Bidirectional Algorithm.Markup-based approaches (e.g., using HTML
<bdi>or<span dir="...">elements) are not applicable to plain literals likerdf:dirLangString, as they are intended for structured formats such asrdf:HTML. Instead, rely on Unicode controls for bidi support in plain text strings.For more details, see: