thai-language.comInternet resource
for the Thai language
Lookup:
» more options here
Browse

F.A.Q. Check out the list of frequently asked questions for a quick answer to your inquiry

e-mail the author
guestbook
site settings
site news
bulk lookup
Bangkok
Thanks for your

recent donations!

Narisa N. $+++!
John A. $+++!
Paul S. $100!
Mike A. $100!
Eric B. $100!
John Karl L. $100!
Don S. $100!
John S. $100!
Peter B. $100!
Ingo B $50
Peter d C $50
Hans G $50
Alan M. $50
Rod S. $50
Wolfgang W. $50
Bill O. $70
Ravinder S. $20
Chris S. $15
Jose D-C $20
Steven P. $20
Daniel W. $75
Rudolf M. $30
David R. $50
Judith W. $50
Roger C. $50
Steve D. $50
Sean F. $50
Paul G. B. $50
xsinventory $20
Nigel A. $15
Michael B. $20
Otto S. $20
Damien G. $12
Simon G. $5
Lindsay D. $25
David S. $25
Laurent L. $40
Peter van G. $10
Graham S. $10
Peter N. $30
James A. $10
Dmitry I. $10
Edward R. $50
Roderick S. $30
Mason S. $5
Henning E. $20
John F. $20
Daniel F. $10
Armand H. $20
Daniel S. $20
James McD. $20
Shane McC. $10
Roberto P. $50
Derrell P. $20
Trevor O. $30
Patrick H. $25
Rick @SS $15
Gene H. $10
Aye A. M. $33
S. Cummings $25
Will F. $20
Get e-mail

Sign-up to join our mail­ing list. You'll receive e­mail notification when this site is updated. Your privacy is guaran­teed; this list is not sold, shared, or used for any other purpose. Click here for more infor­mation.

To unsubscribe, click here.

DB ThaiText conversion from old Word doc

Typing, encoding, and display of Thai characters

Moderator: acloudmovingby

DB ThaiText conversion from old Word doc

Postby FL_Farang » Mon May 13, 2013 2:49 pm

I have some MS Word documents I created in Thai and English pre-1995 (boy am I getting old).

They open fine in Word 2007. I can even save them as docx files with all Thai and English readable.

The problem is that the Thai encoded in DB ThaiText can't be changed to any other font. Worse, it can't be cut and pasted into a browser.

I can cut and paste it into another Word doc...but it's only readable in DB ThaiText. It turns to this with all other Thai fonts and in my browser:

ÊØÃÔÃѵ¹ì ˧ÉìÅÍÂÅÁ

I saw one post about font conversions, but nothing about converting complex (and long) Word docs.

Thank you for your help!
FL_Farang
 
Posts: 4
Joined: Mon May 13, 2013 2:26 pm

Re: DB ThaiText conversion from old Word doc

Postby Eric67 » Mon May 13, 2013 3:27 pm

Eric67
 
Posts: 87
Joined: Thu Feb 10, 2011 12:17 pm

Re: DB ThaiText conversion from old Word doc

Postby FL_Farang » Mon May 13, 2013 3:47 pm

Wow, Eric, you're quick, thank you!

Your link is a terrific resource (like so many others on T-L.com).

This does allow me to convert words and sentences into text that works in my browser. Also, when I paste it back into the original docs it goes in as BowalliaUPC.

A great step one, but I have hundreds of pages of docs (mixed Thai and English) so if you have any ideas for Word conversion I'm still looking. (-:
FL_Farang
 
Posts: 4
Joined: Mon May 13, 2013 2:26 pm

Re: DB ThaiText conversion from old Word doc

Postby Richard Wordingham » Mon May 13, 2013 7:04 pm

Can you write computer programs?

If you can, and the programs only contain ASCII and Thai, the solution is to save the files as .rtf or .docx and convert from there.

For RTF, you are likely to find that Thai in DB Thai looks like a whole lot of RTF escape codes such as \'f1. Simply use a global edit to convert them to the escape codes used for Thai. (There might be some issues that you need to convert the RTF specification about; I haven't done such mass conversions.)

A .docx format file boils down to (possibly nested) zip files. If you can, then extract the file and do global edits from 'gobbledegook' (accented Roman characters and a number of symbols) to Thai. In the right environment, you can use iconv to do the conversions. Change the font if you can, and then put the converted file back. It should work, though you may get ignorable complaints about check details not matching. This is what I was reduced to doing with OpenOffice files when I needed to change the character encoding of characters previously not supported by Unicode.

I have a similar page to Glenn's at http://homepage.ntlworld.com/richard.wo ... tis620.htm , but mine does the conversion on the user's computer, and the source code for the conversion is included in the file - it can be run off-line.

If you aren't a programmer, the Abiword word processor might be able to do the conversion for you, at the risk of losing some Word formatting. The wvWare package seems to provide the basic utilities, but it may be easier to use on Linux than on Windows.
Richard Wordingham
 
Posts: 1288
Joined: Mon Feb 14, 2005 12:00 am
Location: Stevenage, England

Re: DB ThaiText conversion from old Word doc

Postby FL_Farang » Tue May 14, 2013 4:00 pm

Richard I thank you for your expert advice.

I'm not a programmer and won't be able to fix the entire documents but your online conversion pages are a great help for sections and they work perfectly. I did try saving the docs in rtf mode but nothing changed (for better or worse).

I do notice that Word displays the notice (compatibility mode) above each of these documents. I also see glitches with Thai characters mixing with English (apostrophes become ไม้ทัณฑฆาต); simple Thai letters like substituting for , etc. Ultimately I'm happy I can read the docs at all!

Fonts remain one of the biggest software mysteries to me, and I've had my issues with them over the years. My toughest experiences were in trying to get Khmer to migrate from Word to Adobe applications, compounded by moving from PC to Mac. Whew. (-:

Thanks again for your help!

With best regards,

Kent
FL_Farang
 
Posts: 4
Joined: Mon May 13, 2013 2:26 pm

Re: DB ThaiText conversion from old Word doc

Postby Richard Wordingham » Wed May 15, 2013 12:36 am

FL_Farang wrote:I did try saving the docs in rtf mode but nothing changed (for better or worse).

The purpose of saving the documents as RTF is that RTF is actually text, albeit with an enormous quantity of mark-up. It is easier to write a program in a general purpose language to convert a text file than to convert an unformatted file, at least, without Word-specific libraries. There's probably a Word Visual Basic macro somewhere that will do exactly what you want, but I'm not fluent in Visual Basic.
Richard Wordingham
 
Posts: 1288
Joined: Mon Feb 14, 2005 12:00 am
Location: Stevenage, England

Re: DB ThaiText conversion from old Word doc

Postby FL_Farang » Wed May 15, 2013 2:36 am

That's beyond my skill too. But the simple paste text decoders you gave get me to the next level.

Thanks!

Kent
FL_Farang
 
Posts: 4
Joined: Mon May 13, 2013 2:26 pm


Return to Fonts, Keyboards, Character Encodings

Who is online

Users browsing this forum: No registered users and 1 guest

Copyright © 2018 thai-language.com. Portions copyright © by original authors, rights reserved, used by permission; Portions 17 USC §107.