Make img alt information available

Aperta
#112 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php

Direzione di ricerca

Start by reading the mf2 parsing path that turns image properties into XRay output, then inspect the JF2 representation and its specification, which the issue links. Compare the proposed img+alt and indexed-list options and establish which representation should be used before making changes. Done means consumers can access image alt text without breaking existing output; verify with relevant parser and output tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Currently, when parsing mf2 data which includes alt information for properties parsed from images, XRay has no way of making the alt information available to library consumers.

This might additionally be a JF2 issue, as the current spec doesn’t mention image alt values at all https://jf2.spec.indieweb.org/

Potential solutions which come to mind:

  • Provide img+alt structures where alt information is available, forcing consumers to check whether every image-based property is a string or img+alt array before consuming (breaks existing code)
  • Provide img+alt structures by default on every property which is parsed as an image, with empty alt values if none is found. Breaks existing code but is more consistent.
  • Use either the ref(erences) list or a new “alts” list on jf2 objects to provide the alt value, indexed by the image URL. This would not break any existing code afaik
Lingua principale
PHP
Stelle
96
Fork
17
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di aaronpk/XRay

Tutte le issue di aaronpk/XRay

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.