It appears taking a break is the best cure. Some progress: On Tue, 18 May 2004, Ehsan Akhgari wrote:
> Why it doesn't work in Notepad? You're right. It DOES work in Notepad and it had worked the very first time I'd try to replace ZWNJ with \u200c. The reason I didn't know it had been a success is really anti-climactic: Although I'd cleared my cache on IE, I had not checked the little optional box for "Delete all offline files." Only because some others have been emailing feedback concerning the content did I realize that the page was operational on other computers. The old .js file must fall into the "offline file" category because that did the trick. Also, although my eyes were telling me it had worked, I'd assumed the Find/Replace process had deposited some invisible junk characters screwing up the direction. An imagined problem! >Note that > on Windows XP, you can't type ZWNJ inside the Find/Replace dialog box - you > need to copy/paste it from inside the Notepad text editor window. Another > reason why not to use Notepad. Find/Replace [the invisible] ZWNJ in Notepad is no problem becuase I have the Persian Experimental Keyboard and ZWNJ is right on Shift-b. Although I can't actually SEE that I've typed ZWNJ in the Find box, it really is there. So now in my .js array, I have a few Persian words with \u200c right in the middle of the Persian script. It doesn't seem like the browsers should be able to handle that but now I see it's not a problem. Only thing I have to remember is to re-open the Notepad file in a non-WYSIWYG editor and delete that BOM creature. Mozilla is now able to "find" my words containing ZWNJ which was the whole point of this exercise. One small problem still remains: in Mozilla, if you click on any Tajik word, it shows you the Persian counterpart in the popup. But Mozilla is not able to display the ZWNJ so that is ignored. I'm not sure what to do to solve this. > BTW, FrontPage 2003 can open the .js file (using File | Open, or drag and > drop) and render the UTF-8 characters without converting them to numeric > entities just fine. ok. That's definitely a 2003 improvement. > In the JS code, try to replace the trailing ZWNJ-raa and ZWNJ-o with nothing > using a regex. I'll look into this possibility. > > HTH, Most definitely. Thanks! -Connie _______________________________________________ PersianComputing mailing list [EMAIL PROTECTED] http://lists.sharif.edu/mailman/listinfo/persiancomputing