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

オープン
#16,367 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp
領域
desktop

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C#
スター
14.8k
フォーク
1.4k
平均マージ
58分
マージ済み PR(30日)
630

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

SubtitleEdit/subtitleedit のほかの issue

SubtitleEdit/subtitleedit の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。