clapper icon indicating copy to clipboard operation
clapper copied to clipboard

RTL Support for Subtitles

Open mrostd opened this issue 1 year ago • 7 comments

I have noticed an issue with the subtitle display. Clapper does not correctly display right-to-left (RTL) text in subtitles. This is particularly problematic for languages such as Arabic, Persian, and Hebrew. The text appears to be displayed left-to-right (LTR), which makes the subtitles difficult to read and understand.

mrostd avatar Apr 24 '24 14:04 mrostd

A video sample to work with + screenshots how it looks and how its supposed to would be helpful.

There was a new Clapper version released recently, but since its sink that renders them (and it was not part of this release work) I suspect that this is NOT a new issue, just nobody reported this earlier.

Rafostar avatar Apr 24 '24 14:04 Rafostar

Sure! On the right side, the rtl text is arranged correctly. Screenshot from 2024-04-24 18-36-58 Screenshot from 2024-04-24 18-38-25

mrostd avatar Apr 24 '24 15:04 mrostd

I assume these are muxed (contained in file) subtitles, yes? Or opened from external file? In case of muxed in video, can you share some short/small video file or a cut part of it where issue happens?

Rafostar avatar Apr 24 '24 16:04 Rafostar

Subtitles are external. However, I have put a rtl subtitle file here, you can import it into a video file. 3. Interstellar.2014.BluRay.NightMovie.zip

mrostd avatar Apr 25 '24 15:04 mrostd

Same issue for me

fawaz006 avatar Jun 27 '24 16:06 fawaz006

Does these files with issues have affected lines displayed correctly when opened in a Pango-based text editor (GNOME Text Editor or Gedit)?

Rafostar avatar Jun 27 '24 17:06 Rafostar

For me, they do not seem to be rendered correctly by Pango:

image

image

Rafostar avatar Jun 27 '24 17:06 Rafostar