[SE 5.4.0] Sinhala Unicode text selection and rendering issue in the main TextBox

Aperta
#17,082 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp

Direzione di ricerca

The payload names no source files, so start by finding the main subtitle TextBox in the Avalonia UI project and reproducing the problem with the Sinhala sample line from the issue. Work out whether the wrong selection comes from Subtitle Edit's own handling of the text or from Avalonia's text layout at the pinned version. Done means mouse selection and the caret land on grapheme-cluster boundaries that match the rendered Sinhala glyphs, and this is confirmed on Windows 11.

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

Descrizione

Description of the issue

When typing or editing Sinhala Unicode text (especially mixed with English words) in the main subtitle TextBox in Subtitle Edit 5.4.0 (Avalonia UI), two issues occur:

  1. Text Selection / Cursor Hit-Testing Bug: When trying to select a Sinhala word or character using the mouse (click and drag), the selection highlights the wrong characters or offsets incorrectly. Because of this, it is very difficult to edit a single letter or vowel sign (diacritic) inside a Sinhala word without deleting the entire word.
  2. Ligature / Diacritic Overlap: When English and Sinhala text appear together in the same line, some Sinhala conjunct letters and diacritics overlap visually in the TextBox (though they render fine in video players).
Steps to reproduce
  1. Open Subtitle Edit 5.4.0 on Windows 11.
  2. Type a line containing mixed English and Sinhala text (e.g., icu මක්ෂේත්‍රක් නවෙයෙ, සර්.).
  3. Try to select a specific Sinhala word or a single character inside a word using the mouse cursor.
Expected behavior

The mouse cursor and text selection should accurately match the visual position of Sinhala characters and allow selecting individual letters/words properly, similar to how it worked in Subtitle Edit 4.0.15 (WinForms).

System Information
  • Subtitle Edit version: 5.4.0 (Avalonia 12.1.5)
  • OS: Windows 11
  • Language: Sinhala (si-LK)
Lingua principale
C#
Stelle
15.1k
Fork
1.4k
Merge medio
1h 58m
PR unite (30g)
564

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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

Tutte le issue di SubtitleEdit/subtitleedit

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.