PDA

View Full Version : Hebrew subtitles in Canola/Mplayer


Magnet
07-22-2009, 07:29 AM
well i'm trying to view heb subtitles but it shows it in non hebrew fonts. how can i change in a simple way the font to see it correctly.

btw, in the browser i see hebrew perfectly after installing hebrew pack ans fonts.

or maybe there is another player which can change subtitles font?

thanks. i'm using n810.

gogabr
07-22-2009, 09:55 AM
The command-line mplayer has a -subcp option to indicate the codepage of subtitles. I don't know whether any GUI players support this functionality.

Magnet
07-22-2009, 01:43 PM
So is there any option to view in hebrew fonts?

Thanks.

gogabr
07-23-2009, 04:13 AM
You write something like

mplayer -subcp cp1255 -sub <fname>.srt <fname>.avi

(I don't know what actual codepage Hebrew speakers use, it might be iso8859-8.)
Also, if the default font does not have Hebrew symbols, you could use the -subfont switch.

Magnet
07-23-2009, 04:29 AM
Thanks for the replies!

But what is -subfont switch?

Thanks.

gogabr
07-23-2009, 04:52 AM
Actually, as I've just checked, you can put the line

subcp = cp1255

in your /etc/mplayer/mplayer.conf file, and the GUI player should pick it up. (I don't have canola, so I used kmplayer for experimenting; I also used Russian and cp1251 because I don't have any Hebrew subtitles.)

gogabr
07-23-2009, 04:56 AM
But what is -subfont switch?


From Mplayer man page:

-subfont <filename> (FreeType only)
Sets the subtitle font. If no -subfont is given, -font is used.