Forum Moderators: open

Message Too Old, No Replies

find and replace with chinese

         

hermes

8:21 pm on Jul 3, 2005 (gmt 0)

10+ Year Member



I have found a brilliant "find and replace" program:

"Inforapid Search and replace"

Now this program can search and replace a particular word across many HTML files - this is what sets it apart from say MS Word, where you can just do search and replace in a single document at a time. Inforapid is amazing - BUT, from my playing around it does not support chinese characters. Help! Does anyone know how to adapt it or a similar tool that does support chinese characters?

bill

1:49 am on Jul 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm not familiar with that software, but generally any software that that can display CJK characters in the editor can also do a find & replace. Microsoft FrontPage will do site-wide find & replace on Asian characters. I'll have to look around to see if there are any others.

I'm assuming you're not using a Chinese OS, correct?

Glamba

7:09 am on Jul 4, 2005 (gmt 0)

10+ Year Member



For path wide search/replace - including file name filters - you might try JEdit.

Warning: that's an editor usually used by coders and not for the faint hearted

An alternative would be to use HTML enteties like か for か. (Hiragana sample)

Glamba

7:30 am on Jul 4, 2005 (gmt 0)

10+ Year Member



Just an idea: Are you sure that all the files you are trying to change in a batch have the same character encoding?

hermes

9:19 am on Jul 4, 2005 (gmt 0)

10+ Year Member



"Microsoft FrontPage will do site-wide find & replace on Asian characters."

That sounds brilliant. Unfortunately I dont have that tool. In fact, I try to do things on the cheap and dont tend to use proprietary software - free or open source all the way! I dont have a chinese operating system.

Would be so, so grateful for any options. I have jedit already - will start to see what may be possible with that.

hermes

9:28 am on Jul 4, 2005 (gmt 0)

10+ Year Member



I have written to the author of inforapid:

<snip>

He wrote back:

"Try using a batch file. Create the batch file as single character text file, then copy and paste the Chinese replace string as double byte character between the <Replace> tags. I hope this may help."

The thing is that I really don't understand what he has written back. Can anyone explain this for me? Would be v.grateful.

[edited by: bill at 12:44 am (utc) on July 5, 2005]
[edit reason] no specifics please [/edit]

hermes

10:26 am on Jul 4, 2005 (gmt 0)

10+ Year Member



"Are you sure that all the files you are trying to change in a batch have the same character encoding?"

Yes. Although they are all Western encoding. I know that this may be a cause of problems. But I have been doing some experiments with infrorapid and Big 5 files and this encoding issue does not seem to be the route cause of the problems I am having.

As an aside, does anyone know how I can do a batch job to change the encoding of a few hundred western encoded pages to be big 5 encoded? I know this may effect viewing pleasure but it is something that I would like to do (not manually if I can help it). Is there a program out there that could do it?

Glamba

5:36 pm on Jul 4, 2005 (gmt 0)

10+ Year Member



required ingrediences:

1) command line dirven encoding converter
2) scripting language of your choice

hermes

3:45 pm on Jul 5, 2005 (gmt 0)

10+ Year Member



"Microsoft FrontPage will do site-wide find & replace on Asian characters."

will dreamweaver?

hermes

5:49 pm on Jul 5, 2005 (gmt 0)

10+ Year Member



got it sorted now. got dreamweaver and it can do this. Wanted to avoid having to get it. But could only last without it so long.