Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Bug: RTL AI Captions (Persian/Arabic) overflow outside the background bounding box

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発

調査の方向性

ファイルもテストも指定されていません。まずローカルモデルを使ってペルシャ語またはアラビア語で caption overlay を再現し、その後、RTL テキストの測定、配置、背景の境界を追跡します。テキストが中央揃えのまま完全に表示され、黒い背景内に余白を保って収まり、はみ出さなければ完了です。

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

説明

Description

When using the AI caption feature for Right-to-Left (RTL) languages like Persian, the text shaping works fine (letters are connected properly). However, the bounding box calculation or text alignment is incorrect. The RTL text shifts horizontally and renders outside/overflows the edges of the caption background container.

Steps to Reproduce
  1. Record a video speaking in Persian or Arabic.
  2. Generate AI captions using the local model.
  3. Observe the caption overlay.
Expected Behavior

The black background box should properly wrap the RTL text with correct padding, and the text should be perfectly centered/aligned inside the container.

Actual Behavior

The text aligns incorrectly and spills outside the right/left edge of the background box, getting cut off.

Please see the attached screenshots for reference:

Image Image
主要言語
Rust
スター
22.5k
フォーク
1.9k
平均マージ
6時間 33分
マージ済み PR(30日)
77

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

CapSoftware/Cap のほかの issue

CapSoftware/Cap の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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