> First of all, thank you very much for all the patient and lengthy
> explanations. Very nice of you to share so many tips!
> (Thanks to the others too who answered on and off list!)

Happy to help!

[snip]
> Now that 2 people have said to change ZWNJ to \u200c, I tried that but
> it didn't work. I don't think I have the right tool.
>
> I couldn't do it in Notepad because as I said, it's WYSIWYG in Persian
> script so if I do a global replacement and stick \u200c in the middle
> of Persian script, that's obviously not going to work (and I also
> tried it for good measure and it didn't work but there may be many
> reasons it didn't work out using Notepad.)

I don't know what you mean here.  Why it doesn't work in Notepad?  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.

> Then, since you recommended Frontpage, I tried that. Earlier, it had
> not even occured to me to attempt to open a .js file in  Frontpage
> (version
> 2000.) This time I fooled it by changing the extension from .js to
> .html and so was able to open it in html view where all the unicode
> was in numeric style. I changed all the ‌ to \u200c but now I
> see that also has not worked.

Well, I don't know what the problem is here...

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.  Don't try putting them in an HTML file.  Don't know
about FrontPage 2000, though.

> I think I'm not going to use Notepad for making bidirectional arrays
> from now on! That is insane to go to such great lengths!

Yeah, it's definitely so.

> Not sure what you have in mind here, but at this point, I"ll be glad
> just to make it work with ZWNJ.

In the JS code, try to replace the trailing ZWNJ-raa and ZWNJ-o with nothing
using a regex.

HTH,
-------------
Ehsan Akhgari

Farda Technology (http://www.farda-tech.com/)

List Owner: [EMAIL PROTECTED]

[ Email: [EMAIL PROTECTED] ]
[ WWW: http://www.beginthread.com/Ehsan ]



_______________________________________________
PersianComputing mailing list
[EMAIL PROTECTED]
http://lists.sharif.edu/mailman/listinfo/persiancomputing

Reply via email to