How to read Thai file name from removable device /mnt/sdb1 ?

Booting, installing, newbie
Message
Author
jimmytom
Posts: 9
Joined: Thu 10 May 2012, 03:47

How to read Thai file name from removable device /mnt/sdb1 ?

#1 Post by jimmytom »

I am a newbie from thailand .
Problem in Puppy 5.2
When i add tahoma ttf in /usr/share/fonts/default/TTF. I can read thai language from Firefox browser but can not read file name from removable device < /mnt/sdb1 > that show ¨????????.doc¨

Please help me , thanks .

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#2 Post by darkcity »

Hi jimmytom

Welcome to the kennels 8)

It is just removable drives or all filer windows?

you could try changing the gtk+ font...

go to-

PuppyMenu > Desktop > Desktop Setting > JWM configuration

then select desktop tab, and click GTK+ theme followed by Font

select your font

click Okay, Okay and restart JWM.

----
http://puppylinux.org/wikka/jwm

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#3 Post by Flash »

Jimmytom, just so I'm clear, do you mean that files ending in .doc are not shown while other files are shown?

jimmytom
Posts: 9
Joined: Thu 10 May 2012, 03:47

jimmytom

#4 Post by jimmytom »

Thanks for your kinds.
Dear darkcity . I go to your suggestion but no change in ???? file name.

Dear Flash.
All files that saved in thai name in /mnt/sdb1 shown
????.doc
????._files
????.gif
????.htm

but in /mnt/sda 1 i can read thai - name files.
< no problem >

User avatar
Makoto
Posts: 1665
Joined: Fri 04 Sep 2009, 01:30
Location: Out wandering... maybe.

#5 Post by Makoto »

You'll probably need a Unicode-compatible font installed, at least. (I don't know if you can change codepage/location in Puppy 5, but that may not be necessary... we'll see.)
If you have a Windows system, copy the file arialuni.ttf from Windows' fonts directory to the font directory on your Puppy 5 system. And, to be on the safe side, restart the X server. Do the filenames show properly?

Alternately, you can find other Unicode TTFs on the net (a number of which aren't commercial like Microsoft's arialuni, and can be downloaded freely), but I don't have any examples handy. :|
[ Puppy 4.3.1 JP, Frugal install ] * [ XenialPup 7.5, Frugal install ] * [XenialPup 64 7.5, Frugal install] * [ 4GB RAM | 512MB swap ]
In memory of our beloved American Eskimo puppy (1995-2010) and black Lab puppy (1997-2011).

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#6 Post by Flash »

If you copy one of the files that doesn't show correctly in sdb1, from sdb1 to sda1, does it show correctly in sda1?

jimmytom
Posts: 9
Joined: Thu 10 May 2012, 03:47

#7 Post by jimmytom »

Dear Flash
When i copy ???.doc from /mnt/sdb1 to /mnt/sda 5 , it show ???.doc.

When i copy <readable - thai - font > file from
/mnt/sda 5 to /mnt/sdb1 , it show <readable - thai - font > file.

When i insert other removable device. /mnt/sdc1 show ???.doc , ????.pdf.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#8 Post by Flash »

Was Windows involved in creating or writing any of the files that are in sda5 or sdb1? I am just trying to bring out information so that someone who knows more than I do can figure out what is going on. :)

jimmytom
Posts: 9
Joined: Thu 10 May 2012, 03:47

#9 Post by jimmytom »

Dear Makoto
In this picture, is it correct directory ?
Attachments
image-2.jpg
(31.96 KiB) Downloaded 579 times

jimmytom
Posts: 9
Joined: Thu 10 May 2012, 03:47

#10 Post by jimmytom »

In PUPPY LINUX 4.2
Thai linux user solved this problem by
1..Go to /usr/local/bin/
2.Edit *drive all *file
line 170 >>mount -t vfat -o shortname=mixed,quiet,iocharset=utf8,umask=000 /dev/$ONEDRVNAME /mnt/$ONEDRVNAME #v411

But in PUPPY 5.2.2
We can*t solve that.

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#11 Post by darkcity »

Hi JimmyTom

With Puppy anything is possible ; -)

Puppy Lucid also has file
/usr/local/bin/all_drive

open in geany and search for "mount -t vfat"

in Polarpup 005 its on line 377

Code: Select all

mount -t vfat -o shortname=mixed,quiet${NLS_PARAM} /dev/$ONEDRVNAME /mnt/$ONEDRVNAME #v411
Maybe system variable NLS_PARAM is supposed to be set to iocharset=utf8 ???

or you could just add it in,

Code: Select all

mount -t vfat -o shortname=mixed,quiet,iocharset=utf8${NLS_PARAM} /dev/$ONEDRVNAME /mnt/$ONEDRVNAME #v411

jimmytom
Posts: 9
Joined: Thu 10 May 2012, 03:47

#12 Post by jimmytom »

thanks darkcity .
I edit /usr/local/bin/all_drive
< in my puppy , it*s on line 327 >
Attachments
image-vfat.jpg
(62.38 KiB) Downloaded 545 times

jimmytom
Posts: 9
Joined: Thu 10 May 2012, 03:47

#13 Post by jimmytom »

When i reboot computer.
Unreadable - thai -name files are not changed.
Attachments
image-3.jpg
(37.03 KiB) Downloaded 553 times

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#14 Post by darkcity »

I think this it the route to the solution, but I would need to study the all_drives file. Shinobar would probably know.

aarf

#15 Post by aarf »

at a guess you need to copy the thai fonts out of the computer that created the files into puppy font folder. else look on the web or even this forum for more thai fonts

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#16 Post by darkcity »

aarf wrote:at a guess you need to copy the thai fonts out of the computer that created the files into puppy font folder. else look on the web or even this forum for more thai fonts
I don't think getting more fonts will help-
the problem as I understand it is,

ext2 format partitions display thai font correctly, but

vfat format partitions display incorrectly ?

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#17 Post by darkcity »

jimmytom wrote:Dear Flash
When i copy ???.doc from /mnt/sdb1 to /mnt/sda 5 , it show ???.doc.

When i copy <readable - thai - font > file from
/mnt/sda 5 to /mnt/sdb1 , it show <readable - thai - font > file.

When i insert other removable device. /mnt/sdc1 show ???.doc , ????.pdf.
just re-read this, now it sounds like the problem could be how the files themselves are named.

can you tell us what format sda5 and sdb1 partitions are in ?

If after you have copied the files, when you reboot do the names stay the same - or are all on sda5 <readable thai> and all on sda1 <???> ?

aarf

#18 Post by aarf »

jimmytom wrote:Dear Flash
When i copy ???.doc from /mnt/sdb1 to /mnt/sda 5 , it show ???.doc.

When i copy <readable - thai - font > file from
/mnt/sda 5 to /mnt/sdb1 , it show <readable - thai - font > file.

When i insert other removable device. /mnt/sdc1 show ???.doc , ????.pdf.
darkcity this one says that the fonts are being read correctly. . although i do agree that partition format does cause problems of this nature
edit: just read previous post
new fonts could be obtained from any computer that can read the file titles,assuming windows hasnt messed with its font arrangement since i last looked long ago.

jimmytom
Posts: 9
Joined: Thu 10 May 2012, 03:47

#19 Post by jimmytom »

Thank you everybody.

Progress note....
I installed thai fonts from
ftp://linux.thai.net/pub/ThaiLinux/software/thai-ttf/
then add all to puppy folder.
Restart X.
: I can read thai- name files in all drives.

Thanks very much for all suggestions.
See you again.

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#20 Post by darkcity »

Great stuff. I was wrong, adding a font (thai) sorted it. Can you mark the topic at [solved] by editing the title on the first post?

Post Reply