Skip to content
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

More about directions #75

Closed
iherman opened this issue Oct 22, 2024 · 5 comments · Fixed by #78
Closed

More about directions #75

iherman opened this issue Oct 22, 2024 · 5 comments · Fixed by #78
Assignees
Labels
spec:editorial Minor issue or proposed change in the specification (markup, typo, informative text)

Comments

@iherman
Copy link
Member

iherman commented Oct 22, 2024

In §2.5.1 Quoted Literals as part of the examples, it may be better to use a "real" example for directions (the ones listed among the examples are really superfluous). E.g.,

show:218 show:blurb "HTML و CSS: تصميم و إنشاء مواقع الويب"@ar--rtl.

or:

show:218 show:blurb "HTML היא שפת סימון."@he--rtl

Maybe it is also important add a note whereby the text the value field in turtle represents the text as it is stored in memory and not as it is supposed to be displayed. (We spent quite some time to get it right in the spec for the publication manifest, feel free to copy and paste.)

(In my experience, getting the spec examples right bidirectional text is a challenge; you should probably ask the i18n guys to check it.)

@iherman iherman added the spec:editorial Minor issue or proposed change in the specification (markup, typo, informative text) label Oct 22, 2024
@afs
Copy link
Contributor

afs commented Oct 22, 2024

(fixed syntax of @ar--ltr)

@gkellogg gkellogg self-assigned this Oct 24, 2024
@gkellogg
Copy link
Member

Note that RDF Concepts has a more general discussion of BIDI similar to what you pointed to in the ePub spec, which has been reviewed by the I18N group. But, we can add further explaination of ltr and rtl similar to what you have.

@pfps
Copy link
Contributor

pfps commented Oct 24, 2024

Wouldn't it also be useful to have an example where initial direction alone is insufficient? I think that the examples involve a RTL language with embedded LTR strings that are separated by neutral characters.

@gkellogg
Copy link
Member

Concepts expands more on this, but it could use a langString example which dominates directionality based on the first character.

@gkellogg gkellogg added i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response. and removed i18n-tracker Group bringing to attention of Internationalization, or tracked by i18n but not needing response. labels Oct 25, 2024
@gkellogg
Copy link
Member

Wouldn't it also be useful to have an example where initial direction alone is insufficient? I think that the examples involve a RTL language with embedded LTR strings that are separated by neutral characters.

@pfps, see w3c/rdf-concepts#109, Specifically https://github.com/w3c/rdf-concepts/blob/0957e914d33cb39326aa6828d84b47fb0056530d/spec/index.html#L860-L864,

   <p>In the absence of an explicit initial text direction, the [[?UAX9]] algorithm
     can detect text direction from the initial character.
     For example "<bdi lang="ar">اَلأَعْشَى</bdi> - 1st place" displays the
     Arabic characters in a right-to-left fashion, while in memory
     they would be stored as "<bdo dir="ltr" lang="ar">اَلأَعْشَى</bdo> - 1st place"</p>

gkellogg added a commit that referenced this issue Oct 28, 2024
* Use better BIDI examples. Fixes #75.

---------

Co-authored-by: Ted Thibodeau Jr <[email protected]>
gkellogg added a commit to w3c/rdf-concepts that referenced this issue Oct 29, 2024
gkellogg added a commit to w3c/rdf-concepts that referenced this issue Oct 31, 2024
* Add a further explanation on `ltr` and `rtl` (based on ePub). Suggested by w3c/rdf-turtle#75.
* Add example of displaying right-to-left text in its natural order vs the way it is stored in memory.
* Update I18N description of implicit initial text direction
* Use I18N-Glossary instead of UAX9 and UAX15 references.

---------

Co-authored-by: Andy Seaborne <[email protected]>
Co-authored-by: Addison Phillips <[email protected]>
Co-authored-by: Ted Thibodeau Jr <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec:editorial Minor issue or proposed change in the specification (markup, typo, informative text)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants