-
Notifications
You must be signed in to change notification settings - Fork 63
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
No mechanism to indicate what the "default language" of a description is [I18N] #635
Comments
Thank you for your review! We have been working hard recently and updated the spec already to document the We also added text on the possibility to use content negotiation such as the I will cite the assertions in this Issue. |
We need need some rewrite of the text after the table in 5.3,1,1 Thing. I started sketching the new text, statement by statement:
...continue with the bullet point list |
While this reflects the current state of affairs in JSON standards-based document formats, it's not a particularly desirable recommendation and the I18N WG is actively working to find a "better path". In addition, I'd point out that "compute the base direction" needs a definition. Therefore I'd suggest that you reference our document String-Meta, particularly the best practice documented at #script_subtag, which describes how one would do this. In keeping with the allowed-but-not-loveable nature, I'd suggest:
|
See #643 (comment) which is how it continues (indicated by "...continue with the bullet point list") |
One issue is that we expect the JSON-LD 1.1 WG to add some means to specify text direction explicitly in an |
@aphillips , please have a look at the new definitions in 5.3.1.1 Thing (after the table) and 5.3.1.7 MultiLanguage. |
@mkovatsc My bad for not looking at the bulleted list. @mmccool I fully agree with your comment and appreciate the care the WG applied here. |
In 5.3.1.1 I see:
The call out about script subtags seems overly specific. Do you really need to call that out? It's on your mind now because of the thread about direction, but I think it's a distraction. I would also show some examples with region subtags and maybe even a variant. Perhaps:
|
The direction computing stuff in 5.3.1.1 I have these comments:
I would instead provide guidance to producers and consumers, perhaps as follows:
@r12a any comments? |
On 5.3.1.7:
|
Pushing an update with your proposed changes in 5 min. |
Look again at this suggestion: TD Processors should be aware of certain special cases when processing bidirectional text. They should take care to use bidi isolation when presenting strings to users, particularly when embedding in surrounding text. Mixed direction text can occur in any language, even when the language is properly identified. TD producers should attempt to provide mixed direction strings in a way that can be displayed successfully by a naive user agent. For example, if an RTL string begins with an LTR run (such as a number or a brand or trade name in Latin script), including an RLM character at the start of the string or wrapping opposite direction runs in bidi controls can assist in proper display. |
Note that I removed the critical text on avoiding some text constructs already. We have this NOTE, which should be replaced by the processor/producer paragraphs, I guess:
|
I've reviewed all of the edits pertaining to the original issue here (defining the default language) and the various other suggestions on this thread. I'm satisfied with the results. |
thank you for your feedback. I will close this issue. |
Section 5.2.1 "Thing"
https://cdn.staticaly.com/gh/w3c/wot-thing-description/TD-TAG-review/index.html?env=dev#thing
The optional field
description
is described as above, but there appears to be no mechanism defined for declaring what language the "default language" is. It is possible that the JSON-LD@context
mechanism could be used to supply an@language
for a description. If that is the preferred or intended mechanism, it should be called out. Otherwise there should be mechanism, possibly at the document level, for declaring the default language using a BCP47 language tag.The text was updated successfully, but these errors were encountered: