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

Abierto
#40 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
tooling

Línea de trabajo

Comienza con el comando validate-ttml y las restricciones de BBC para backgroundColor, y después reproduce el informe usando el archivo sub_fin_v4.xml enlazado. Rastrea cómo interpreta el validador los componentes alfa de #000000c2 y #00000033. Se considera terminado cuando se confirme que el resultado de transparencia informado es correcto o cuando el comportamiento de error falso quede cubierto por un resultado de validación adecuado.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
12
Forks
1
Merge medio
1 d 18 h
PR fusionados (30 d)
5

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de bbc/ttml-validator

Todos los issues de bbc/ttml-validator

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.