LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-04-2009, 05:00 PM   #1
nima0102
Member
 
Registered: Nov 2006
Posts: 209

Rep: Reputation: 30
Unicode on debian Squeeze


Hi
Thanks for sharing your experiences
I have installed Debian Squeeze, but when I want play movie with persian subtitle on VLC or Mplayer, the characters are not correctly appeared!!
I do not know about solving this issue.

Thanks for any help or guidance
 
Old 12-05-2009, 07:33 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Wheezy (Fluxbox WM)
Posts: 1,363
Blog Entries: 52

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Check that the font being used by the player is one that has the unicode characters that you require.

In VLC, you can find the font under:
VLCSettings->Preferences->Video->Subtitles/OSD->Text_Renderer

In mplayer, you can use the '-font' and '-subfont' options to specify the subtitle font.
 
Old 12-05-2009, 08:02 AM   #3
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian jessie/sid; OpenSuSE; Fedora
Posts: 1,593

Rep: Reputation: 162Reputation: 162
For MPlayer you can install the font you wish to use. I think you put it in ~/.mplayer/font/
 
Old 12-06-2009, 06:06 AM   #4
nima0102
Member
 
Registered: Nov 2006
Posts: 209

Original Poster
Rep: Reputation: 30
Thanks
Excuse me for my fault
Apparently coding that *.srt files is windows-cp1252, when I coding of mplayer or smplayer or vlc set to "windows-cp1252" the characters is correctly displayed but all characters separately one by one are displayed for example "سلام" is showed "س" "ل" "ا" "م" .
I do not know about this problem!!
 
Old 12-06-2009, 08:16 AM   #5
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Wheezy (Fluxbox WM)
Posts: 1,363
Blog Entries: 52

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Apparently coding that *.srt files is windows-cp1252
Perhaps it is windows-cp1256 (Arabic/Persian). Anyway, it is an 8 bit encoding. You can convert to unicode using the following:

Code:
iconv -f CP1256 -t UTF-8 input.srt -o output.srt
However, that might not solve the problem where the rendering by the player does not join the letter forms.

On my system the version of libfribidi that is being used by vlc and mplayer to render the Arabic/Persian shows the isolated forms. I gather that version 2 may perform better, but I have not tried it.

Last edited by neonsignal; 12-06-2009 at 08:50 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Squeeze Repositories drakeman007 Linux - Newbie 15 11-19-2010 09:24 PM
[SOLVED] Installing Eclipse on Debian Squeeze nima0102 Debian 9 12-14-2009 12:01 PM
Squeeze Debian: how to use the kbluetooth ? frenchn00b Debian 5 11-18-2009 01:37 PM
Why we have no jscalibrator for Squeeze debian? frenchn00b Debian 4 11-16-2009 11:46 AM


All times are GMT -5. The time now is 05:50 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration