Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#2,284 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva

Direzione di ricerca

Non è indicato alcun file o test. Prima riproduci il caption overlay con il persiano o l’arabo usando il modello locale, quindi traccia la misurazione, l’allineamento e i limiti dello sfondo del testo RTL. Il lavoro è completato quando il testo rimane centrato, completamente visibile e con spazio interno dentro lo sfondo nero, senza fuoriuscite.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Rust
Stelle
22.5k
Fork
1.9k
Merge medio
7h 43m
PR unite (30g)
80

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CapSoftware/Cap

Tutte le issue di CapSoftware/Cap

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.