Skip to content

(i18n) 'auto' value for the 'dir' attribute? #1491

Closed

Description

@iherman

The i18n self test says:

Values for the default base direction should include left-to-right, right-to-left, and auto. more

We do not have this for dir, there is a default for page-progression-direction. We could be inspired by the HTML specification. Note that the behavior of dir can also be modeled (or referred to?) the HTML spec.

Activity

  1. mattgarrish commented on Jan 31, 2021

    @mattgarrish
    Member

    Looks like this was deferred because no one was asking for it at the time: #57

  2. added
    i18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.
    on Feb 1, 2021
  3. iherman commented on Feb 1, 2021

    @iherman
    MemberAuthor

    This may be related, actually, to #1494: the value of auto may mean to rely entirely on the content of the string, directed by the UNICODE rules. In other words, if there is an agreement of #1494 that the attribute value wins in priority, auto may mean what is said now. It would then also make sense to say explicitly that auto is the default value (something that, I believe, is not specified anywhere).

  4. xfq commented on Feb 2, 2021

    @xfq
    Member

    FYI - the i18n WG is working on a centralized definition of ltr/rtl/auto that specs can refer to (see also the discussions in w3c/manifest#926 ).

  5. iherman commented on Feb 2, 2021

    @iherman
    MemberAuthor

    Thanks @xfq.

    @mattgarrish, looking at the text in w3c/manifest#926 (comment) (provided by @r12a) do you think it would be possible to reuse this, although the text would have to be spread over the content and RS specs? It would also mean introducing the term auto, and would also close #1494.

  6. iherman commented on Feb 9, 2021

    @iherman
    MemberAuthor

    The issue was discussed in a meeting on 2021-02-04

    List of resolutions:

    • Resolution No. 1: Add the default value of auto to the dir element, resolved 1491 and 1499
    View the transcript

    1. What should be the default value for the dir attribute

    See github issue #1499, #1491.

    See github pull request #1498.

    Dave Cramer: Also going to talk about 1491 because they're related
    … there is also a PR addressing this (#1498)
    … most of the i18n issues we face are in HTML, SVG, CSS, where we rely on those specs
    … our area of influence is the package doc
    … the dir attribute
    … it doesn't have a default value
    … some guidance from i18n says we should have a default of auto
    … lets the system decide what to do, which depends on them, and can be overwritten by rtl or ltr
    … we have a PR open to address this
    … Matt has added this
    … is this a good idea and will it break anything
    … ltr = left to right
    … rtl = right to left

    Brady Duga: I think there is some history we want to keep with HTMLs LTR by default
    … for our case it makes sense to use auto because that's how things work now
    … the default is auto
    … HTML doesn't have a default, but the root is LTR, but it also has more complex inheritance

    Dave Cramer: I don't want to worry about the HTML situation
    … there are complexities
    … it seems to me that adding auto is risk free as a default
    … I can't imagine writing a test where something would happen

    Brady Duga: The scarier thing is the inherent directionality of the text winning over the dir attribute

    Dave Cramer: I wonder that too
    … went down a rabbit hole
    … stared into the abyss...

    Brady Duga: If there's an inherent directionality, it wins over dir, dir might mean nothing

    Dave Cramer: base paragraph direction over the bits of text within
    … atomic elements of the package file that have no instructions
    … instinct to have auto as a nice to have
    … doesn't change existing behaviour
    … the only person who needs to worry is the tester
    … I would propose we resolve to add the auto value
    … does anyone object

    Proposed resolution: Add the default value of auto to the dir attribute, resolved 1491 and 1499 (Wendy Reid)

    Resolution #1: Add the default value of auto to the dir element, resolved 1491 and 1499

    Dave Cramer: We got it! Moving on to 1494

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EPUB33Issues fixed in the EPUB 3.3 revisionSpec-EPUB3The issue affects the core EPUB 3.X Recommendationi18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions