False error "BackgroundColor #000000c2, #00000033 is not transparent"

Aperta
#40 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
tooling

Direzione di ricerca

Inizia con il comando validate-ttml e i vincoli di BBC per backgroundColor, quindi riproduci il report usando il file sub_fin_v4.xml collegato. Traccia il modo in cui il validatore interpreta le componenti alpha in #000000c2 e #00000033. Il lavoro è completato quando viene confermato che il risultato di trasparenza segnalato è corretto oppure quando il comportamento di falso errore è coperto da un risultato di validazione appropriato.

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

Descrizione

See this ttml.xml file and errors given by the validator.
https://refapp.hbbtv.org/videos/00_llama_h264_v9/sub_fin_v4.xml

See errors BackgroundColor #000000c2, #00000033 is not transparent values but the hex color has a transparency component. Is this a false error?

C:\apps\python-3.10.7\Scripts\uv.exe run validate-ttml -ttml_in "sub_fin_v4.xml" -results_out "validator-results.txt"
Error: preParse_encoding Unparsed file cp949 encoding found, with no BOM, re-encoding as UTF-8
Error: bbc_block_backgroundColor_constraint 36 locations backgroundColor #00000033 is not transparent (BBC requirement)
Error: bbc_text_fontFamily_constraint 196 locations Computed fontFamily ['Roboto', 'proportionalSansSerif', 'default'] differs from BBC requirement
Error: bbc_text_fontSize_constraint 196 locations Computed fontSize 4.545rh outside BBC-allowed range 6rh-7.5rh
Error: bbc_text_lineHeight_constraint 98 locations Computed lineHeight 5.455rh outside BBC-allowed range 7.200rh-9.000rh
Error: bbc_text_backgroundColor_constraint 98 locations Computed backgroundColor #00000000 not BBC-allowed value
Error: bbc_block_backgroundColor_constraint 38 locations backgroundColor #000000c2 is not transparent (BBC requirement)
Error: bbc_region_position_constraint region element xml:id top Region extends out of BBC-defined permitted area (9.5%-91.5% horizontally and 5%-95% vertically)

ps: No need to worry about the "fontFamily | outside BBC-allowed | BBC-permitted area" error values.

Lingua principale
Python
Stelle
12
Fork
1
Merge medio
1g 18h
PR unite (30g)
5

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 bbc/ttml-validator

Tutte le issue di bbc/ttml-validator

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.