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

is the text property the equivalent of an alt-text when required? #8

Open
llemeurfr opened this issue Jul 19, 2024 · 4 comments
Open
Assignees
Labels

Comments

@llemeurfr
Copy link

llemeurfr commented Jul 19, 2024

In this sample comics page sample

{
  "role": ["page"],
  "imgref": "page10.jpg",
  "children": [
    {
      "role": ["panel"],
      "imgref": "page10.jpg#xywh=percent:10,10,60,40",
      "text": "panel 1 text"
    },
    {
      "role": ["panel"],
      "imgref": "page10.jpg#xywh=percent:70,50,30,50",
      "text": "panel 2 text"
    }
  ]
}

Is the 'text' considered a proper alternative text describing the image?
This is not so obvious because the definition of the "text" property ("Textual equivalent ...") is not explicitly usable as a description.

@HadrienGardeur
Copy link
Contributor

No, text is not meant to be a description, it's mostly meant for providing a textual transcript which is not the same. Look at appendix C for an early example of what I'm proposing for description.

Here's also a full example from my response to Arcom:
Panel showcasing how guided navigation can be used

{
  "role": ["page"],
  "imgref": "page10.jpg",
  "children": [
    {
      "role": ["panel"],
      "imgref": "page10.jpg#xywh=percent:10,10,60,40",
      "description": "Emily marche seule, elle semble perdue dans ses pensées. Derrière elle, deux policiers la suivent du regard et échangent à son propos.",
      "character": ["Emily", "Premier policier", "Deuxième policier"],
      "children": [
        {
          "imgref": "page10.jpg#xywh=percent:10,10,30,20",
          "character": ["Emily"],
          "children": [
            {
              "role": ["thoughtBubble"],
              "text": "Quel étrange sentiment."
            },
            {
              "role": ["thoughtBubble"],
              "text": "J'accède enfin à ce poste tant convoité, et pourtant…"
            }
          ]
        },
        {
          "imgref": "page10.jpg#xywh=percent:40,10,20,20",
          "character": ["Premier policier", "Deuxième policier"],
          "children": [
            {
              "role": ["speechBubble"],
              "text": "Hé, c'est pas elle, la fille qui a arrêté le type de l'autre soir, celui qu'on a envoyé à Wormwood ?",
              "character": ["Premier policier"]
            },
            {
              "role": ["speechBubble"],
              "text": "Ouais ! Il paraît qu'Hawkins y serait passé si elle n'avait pas été là.",
              "character": ["Deuxième policier"]
            }
          ]
        }
      ]
    }
  ]
}

@llemeurfr llemeurfr changed the title is the text property the equivalent of a alt-text when required? is the text property the equivalent of an alt-text when required? Jul 19, 2024
@llemeurfr
Copy link
Author

Therefore it is time to add the description property to the model :-)
And the character property would be useful to add for discussion also.

@HadrienGardeur
Copy link
Contributor

HadrienGardeur commented Jul 19, 2024

I agree and that's why description is already listed under TODO and character will end up there as well once I have a rough idea whether we should go beyond just character names.

I've identified the following information as useful for characters:

  • identifier
  • gender
  • age
  • a phonetic transcription of a character's name

The identifier is useful to uniquely identify a character (for example to build an index), whereas gender/age/phonetic transcriptions are all useful for a read aloud feature.

@llemeurfr
Copy link
Author

Also, if a node contains both a text and a description, it would be useful to have a "how to" explaining that the two pieces of information should be both provided to the user, using different affordances.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants