Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 25 Nov 2014, 20:32
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Foreign characters not displaying correctly
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
liro

Joined: 28 Jul 2012
Posts: 149

PostPosted: Fri 12 Oct 2012, 18:58    Post_subject:  Foreign characters not displaying correctly  

I've downloaded a film subtitle in Polish from www.opensubtitles.org. On the download page it gives you the option to preview the first part of the subtitle text. When I do this (in Firefox) the subtitles display fine with the proper Polish letters.

However, after downloading the subtitle text file, it doesn't display correctly in any other program in Puppy (Abiword, Geany, leafpad) or when I try to actually load it as a subtitle in Mplayer.

To give an example of what I mean: "Święty Mikołaj" appears as "Œwiêty Miko³aj", "Wesołych Świąt" as "Weso³ych Œwi¹t!", etc...

Three things I should add:
1) I had this exact same problem in Windows and fixed it by changing the language settings to Polish, after which the subtitle texts automatically displayed correctly.

2) I've tried changing the default language in Puppy to Polish, and also installing the Polish language pack, but this didn't make any difference.

3) Without doing any of the above, I actually had the same subtitles displaying correctly in all of the above-mentioned programs a couple of months ago, but like a fool can't remember how I did it :|.

Thanks for any help with this...
Back to top
View user's profile Send_private_message 
SFR


Joined: 26 Oct 2011
Posts: 1101

PostPosted: Fri 12 Oct 2012, 19:14    Post_subject:  

Cześć Liro.

I had the same problem and found 3 workarounds so far.

1. Usually changing the codepage works, in example of Gnome-mplayer:
Edit -> Preferences -> Language Settings -> File Metadata Encoding -> CP1250

2. If 1 doesn't work, try to use this to convert the subtitle file:
Code:
iconv -f WINDOWS-1250 -t UTF-8 original.txt > converted.txt

3. If 2 doesn't work - manually ("find & replace") correct wrong characters. Rolling Eyes

HTH
Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send_private_message 
liro

Joined: 28 Jul 2012
Posts: 149

PostPosted: Fri 12 Oct 2012, 19:48    Post_subject:  

Cześć SFR! Dziękuję za opowiedź.

I had already tried your options 1 and 3. In fact, I'm pretty sure that changing the encoding in Gnome-mplayer to CP1250 was how I fixed this last time (so I don't know why it doesn't work now :[). The "find and replace" method was what I did at first in Windows, but it took me ages and I still managed to miss out a couple of Polish capital letters.

I've just tried your option 2 (I had to download the iconv.pet as I didn't have it installed), but unfortunately it just gives me the message "conversion from Windows-1250 is not supported" :/
Back to top
View user's profile Send_private_message 
SFR


Joined: 26 Oct 2011
Posts: 1101

PostPosted: Sat 13 Oct 2012, 08:18    Post_subject:  

liro wrote:
I've just tried your option 2 (I had to download the iconv.pet as I didn't have it installed), but unfortunately it just gives me the message "conversion from Windows-1250 is not supported" :/

Indeed, unlike in Lupu-528, iconv is not available OOTB, at least in Slacko-5.3.3 I'm currently on.
It was probably installed as a part of something else (Battleshooter's Conky+Lua has libiconv-1.14.pet as a dep.) in my case, sorry.

You could also try CP1250 instead of WINDOWS-1250, btw.

There's also "recode" tool (check in your PPM).

Code:
recode CP1250..UTF-8 < original.txt > converted.txt

seems to do the same job...

The funny thing is that I too probably don't remember exactly how I did it in the past, because although the conversion works and every single character is displayed correctly in Geany, Gnome-mplayer displays ?? instead, regardless of chosen encoding.
But, for instance, VLC-1.1.11 displays prefectly such converted subtitles...
General confusion. Rolling Eyes

One more thing: you can try to determine the original encoding using:
Code:
file susbtitles.txt

but it didn't help me really with these specific, "problematic" subtitles.

Anyway, good luck with this. Smile

Pozdrawiam! / Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send_private_message 
adnan360

Joined: 21 Nov 2012
Posts: 1

PostPosted: Wed 21 Nov 2012, 10:17    Post_subject: Bangla utf-8 problem solution  

I have had a problem with Bangla text viewing myself. I am using Slacko Puppy 5.3.3

Problem:

- I could not see Bangla language (unicode) text on seamonkey. Only boxes where unicode characters should be.
- I could see the same boxes in the Setup > puppy setup> personalization dialog... in the language under bn (Bangla) entry

Solution (thanks to jiohdi and iluminameluna at IRC):

1. Downloaded the font for Bangla. In my case it was "SolaimanLipi" which is freely downloadable (google it)

2. Opened the terminal and su and then entered rox and then created a directory /root/.fonts

3. Copied the downloaded font in /root/.fonts

Now the font is showing in every place. and even the setup dialog.

Amazing how it works. But it works!!
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0825s ][ Queries: 12 (0.0228s) ][ GZIP on ]