-
Notifications
You must be signed in to change notification settings - Fork 24
I18N Review #93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Would it be fair to say that JSON-LD "supports" the use of RLI/LRI/FSI with PDI and RLM/LRM that are in literals? (Even if that support is in form of pass-through?). Should the spec recommend that RLE/LRE with PDF be avoided in literals (as best practice)? |
@asmusf, "supports" may indeed be the right term. JSON-LD does not put any constraints, nor does it define any internal structure, on string literals apart from the fact that a string is defined as "a sequence of zero or more Unicode (UTF-8)" (see the terminology section). Meaning that, indeed, all Unicode control characters are usable. I am not sure, however, that it is appropriate for the JSON-LD specification to talk about best practices for such a complex subject. Instead, the document, in its I18N section, refers to the string-meta note which, I think, is the right place to provide such information. |
@r12a @aphillips : can we consider the I18N horizontal review as officially done for this specification? |
Propose to call this done after TPAC |
Intro
This a shortened version of the i18n questionnaire. Following the Short i18n review checklist, the original list has been pruned, retaining only the sections that are relevant to the JSON-LD Specs. Comments have been added, when necessary/possible in italics.
The glaring issue is of course the text direction question, but that is now subject of a separate discussion. But that may end up as a topic for a separate Working Group (see a draft charter), and the JSON-LD Working Group should follow what is happening there.
Language
Language basics
lang
and XMLxml:lang
language attributes where appropriate to identify the text processing language, rather than creating a new attribute or mechanism. morerdf:HTML
datatype with these tagsrdf:HTML
lang
and XMLxml:lang
language attributes, but should use a different attribute when they represent metadata (which indicates the intended use of the resource rather than the language of a specific range of text). moreDefining language values
Declaring language at the resource level
Establishing the language of a content block
Establishing the language of inline runs
Text direction
JSON-LD does not currently handle text directions due to the defficiencies of RDF. See separate discussion that MAY lead to a possible solution, albeit possibly in a later version of JSON-LD only. The answers below are answered WITH THE ASSUMPTION that a separate
@direction
is introduced (now or later) alongside@language
.Basic requirements
rdf:HTML
Background information
Base direction values
auto
is meaningful in JSON-LD. But can be easily done if necessaryHandling direction in markup
@direction
, just like@language
.rdf:HTML
. JSON-LD does not provide information inside a literalauto
. This means that the base direction will be determined by examining the content itself.auto
for plain text, the direction of content paragraphs should be determined on a paragraph by paragraph basis.Handling base direction for strings
Setting base direction for inline or substring text
For the whole section: JSON-LD does not, and should not, provide means to specify the "internals" of Literal and the way receiving applications handle Literals. (Using
rdf:HTML
, if necessary, can be used for this, but that is not a matter of JSON-LD. This makes all the points in this section not applicable.The text was updated successfully, but these errors were encountered: