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

Đang mở
#40 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

Bắt đầu với lệnh validate-ttml và các ràng buộc backgroundColor của BBC, sau đó tái hiện báo cáo bằng tệp sub_fin_v4.xml được liên kết. Theo dõi cách trình xác thực diễn giải các thành phần alpha trong #000000c2 và #00000033. Hoàn thành khi kết quả độ trong suốt được báo cáo được xác nhận là đúng hoặc khi hành vi báo lỗi sai được bao phủ bằng một kết quả xác thực phù hợp.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
12
Fork
1
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bbc/ttml-validator

Tất cả issue của bbc/ttml-validator

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.