Italic tags should not include roman characters attached to an italic word (dialogue dash, elided article, trailing punctuation)

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/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ệ
csharp
Lĩnh vực
desktop

Hướng nghiên cứu

Start by inspecting the Blu-ray SUP OCR path that produces italic tags and compare its output with the attached sample, especially the dialogue dash, elided words, and final punctuation. The report does not name the relevant files or tests; trace where OCR styling is assigned and check whether roman characters can be kept outside the tags. Done means the sample output leaves those roman characters unitalicized.

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

Mô tả

Version: Subtitle Edit 5.4.0 Beta 5 (Windows)

Description
When OCR-ing a Blu-ray SUP, characters that are roman in the image end up inside the <i> tags when they touch an italic word: the dialogue dash, elided articles/prepositions (l', d', qu'…) and final punctuation. In French typography they stay roman, e.g. a ship name in italics:

- On manque de marins sur l'<i>Artemis</i>.

Instead, the OCR output puts these characters in italics in the subtitle itself (see screenshot), so they are saved in italics in the file.

Image

Sample
I attached a sample SUP that reproduces the issue.

sample.zip

Request
Could the OCR keep these characters outside the <i> tags when they are roman in the image? Alternatively, an option or a "Fix common errors" rule ("Keep dialogue dashes, elided articles and trailing punctuation in roman") would help a lot.

Ngôn ngữ chính
C#
Star
14.9k
Fork
1.4k
Merge trung bình
1 giờ 19 phút
Pull request đã merge (30 ngày)
606

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 SubtitleEdit/subtitleedit

Tất cả issue của SubtitleEdit/subtitleedit

Issue tương tự

Thêm issue về C#

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.