False error "BackgroundColor #000000c2, #00000033 is not transparent"
还没有人认领这个 Issue。
评估
调研方向
先从 validate-ttml 命令和 BBC 的 backgroundColor 约束开始,然后使用链接的 sub_fin_v4.xml 文件重现报告。跟踪验证器如何解释 #000000c2 和 #00000033 中的 alpha 分量。确认报告的透明度结果正确,或由适当的验证结果涵盖错误报告行为,即表示完成。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 12
- 派生
- 1
- 平均合并
- 1 天 18 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bbc/ttml-validator 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 58/100
bbc/ttml-validator#52 ·
-
难度 4/5 3-5 天 新手友好度 35/100
bbc/ttml-validator#14 ·
-
难度 4/5 3-5 天 新手友好度 35/100
bbc/ttml-validator#13 ·
-
难度 4/5 3-5 天 新手友好度 35/100
bbc/ttml-validator#4 ·
-
难度 3/5 1-2 天 新手友好度 45/100
bbc/ttml-validator#1 · 1 条评论 ·
查看 bbc/ttml-validator 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
dbt-labs/spark-utils#51 ·
-
bug pydanty:is-working
难度 2/5 1-3 小时 新手友好度 68/100
pydantic/pydantic-ai#13444 ·
维护者通常 1 天内回复
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 82/100
-
good first issue help wanted
难度 1/5 1 小时以内 新手友好度 72/100
-
changelog investigate
难度 1/5 1 小时以内 新手友好度 68/100
ramnes/notion-sdk-py#502 ·