I use Windows XP Pro SP2 full updated.
I tried to insert the Unicode character U+06CC directly from my keyboard, but Notepad++ converted it to U+064A. Changing format to UTF-8 with(out) BOM and Unicode Big and Little endian did not work.
I think it occurred because Notepad++ is not a Unicode application and uses system CodePage (mine is 1256) to insert the characters. Are there any solutions ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The reason no one answered may be that this is not really an npp problem ;-) But I work in this area so let's see what's going on:
Using SC Unipad (the only dedicated unicode editor that handles Arabic-script properly), I typed the four forms of 06CC, 064A, 0649 then copied them to npp:
06CC: ییی ی
064A: ييي ي
0649: ىىى ى
Both in Opera and Npp 06CC comes out correctly, though there is a font bug in Courier-New; the middle form for 0649 does not come out right.
I copied the above back to Unipad and the encoding remains the same; o6cc remains 06CC.
This tell me that your problem has nothing to do with Npp or even the system unicode interpreter.
Now keep in mind that the character 06CC has the following feature: in initial and medial form it has two dots, and in final and isolated form it has no dots (see the unicode manual). Are you sure you are not confusing 06CC-initial/medial with 064A? If you want no dots in initial-medial state then use 0649, though you will have to find a different font without the opentype bug.
Best wishes
Idris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you so much.
You said "then copied them to npp", I know that it works, but it does not work by inserting these characters directly by keyboard.
I say that it is completely related to NotePad++, because I have not this problem with PSPad editor at all. ( http://www.pspad.com/ ) I can easily insert 06CC character in PSPad by keyboard and there is no problem with unicode characters.
Regards,
Mohammad.Mnt
mohammad.mnt@gmail.com
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Neil Hodgson has fixed the bug in Scintilla, and I've sent a note to Don as well. So 6CC should hopefully work properly in the next version of npp.
Best
Idris
------- Forwarded message -------
From: "Neil Hodgson" <snip>
To: "Idris Samawi Hamid" <snip>
Cc:
Subject: Re: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: Insert unicode character via keyboard
Date: Fri, 09 Nov 2007 22:36:28 -0700
Hi,
> There seems to be a serious scintilla-related bug at work here. Basically
> scintilla seems to translate keyboard input U-06CC to O64A. They look
> almost alike but there is a subtle difference:
>
> 06CC
> ی ییی
>
> 064A
> ي ييي
Updating Scintilla module in Notepad++ implies significative modifications in new Scintilla module source in order to adapt to Notepad++.
So it won't be in the next release.
Don
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear Idris,
I use Microsoft default keyboard layout at Windows XP Pro.
Again, I say that this is npp problem because I have not problem with PSPad editor and BabelPad editor.
Regards,
Mohammad Mon.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, this is almost certainly a Scintilla bug. I installed the Persian keyboard layout in WinXP: On most Windows programs (like default Notepad, OOo, Opera -- in which I'm typing these lines) U-06CC comes out as 06CC. But in both Scite and Npp (both scintilla applications) it translates 06CC (Yaa-Persian) into 064A (Yaa-Arabic). So whatever library Scintilla uses to process unicode text has a bug.
This is strange because I thought scintilla just uses the local system libraries.
Please report this to Neil Hodgson and the Scintilla list asap. This is a serious bug that makes scintilla almost useless for transcribing Persian electronic text.
Best wishes
Idris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I use Windows XP Pro SP2 full updated.
I tried to insert the Unicode character U+06CC directly from my keyboard, but Notepad++ converted it to U+064A. Changing format to UTF-8 with(out) BOM and Unicode Big and Little endian did not work.
I think it occurred because Notepad++ is not a Unicode application and uses system CodePage (mine is 1256) to insert the characters. Are there any solutions ?
Hello? Nobody helps me?
Hi,
The reason no one answered may be that this is not really an npp problem ;-) But I work in this area so let's see what's going on:
Using SC Unipad (the only dedicated unicode editor that handles Arabic-script properly), I typed the four forms of 06CC, 064A, 0649 then copied them to npp:
06CC: ییی ی
064A: ييي ي
0649: ىىى ى
Both in Opera and Npp 06CC comes out correctly, though there is a font bug in Courier-New; the middle form for 0649 does not come out right.
I copied the above back to Unipad and the encoding remains the same; o6cc remains 06CC.
This tell me that your problem has nothing to do with Npp or even the system unicode interpreter.
Now keep in mind that the character 06CC has the following feature: in initial and medial form it has two dots, and in final and isolated form it has no dots (see the unicode manual). Are you sure you are not confusing 06CC-initial/medial with 064A? If you want no dots in initial-medial state then use 0649, though you will have to find a different font without the opentype bug.
Best wishes
Idris
Hello. Guess not.
Did you search the forum for any related items?
Dear Idris,
Thank you so much.
You said "then copied them to npp", I know that it works, but it does not work by inserting these characters directly by keyboard.
I say that it is completely related to NotePad++, because I have not this problem with PSPad editor at all. ( http://www.pspad.com/ ) I can easily insert 06CC character in PSPad by keyboard and there is no problem with unicode characters.
Regards,
Mohammad.Mnt
mohammad.mnt@gmail.com
Dear Mohammad,
What keyboard do you use? Which OS (XP, vista)? Please give me as much detail as I can so I can try to reproduce it.
I'll look into this over the weekend and get back to you, perhaps
off-list (depending on what I find).
Best wishes
Idris
Neil Hodgson has fixed the bug in Scintilla, and I've sent a note to Don as well. So 6CC should hopefully work properly in the next version of npp.
Best
Idris
------- Forwarded message -------
From: "Neil Hodgson" <snip>
To: "Idris Samawi Hamid" <snip>
Cc:
Subject: Re: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: Insert unicode character via keyboard
Date: Fri, 09 Nov 2007 22:36:28 -0700
Hi,
> There seems to be a serious scintilla-related bug at work here. Basically
> scintilla seems to translate keyboard input U-06CC to O64A. They look
> almost alike but there is a subtle difference:
>
> 06CC
> ی ییی
>
> 064A
> ي ييي
Use the version in CVS or from http://scintilla.sourceforge.net/wscite.zip.
Neil
Updating Scintilla module in Notepad++ implies significative modifications in new Scintilla module source in order to adapt to Notepad++.
So it won't be in the next release.
Don
Dear Idris,
I use Microsoft default keyboard layout at Windows XP Pro.
Again, I say that this is npp problem because I have not problem with PSPad editor and BabelPad editor.
Regards,
Mohammad Mon.
Ok, this is almost certainly a Scintilla bug. I installed the Persian keyboard layout in WinXP: On most Windows programs (like default Notepad, OOo, Opera -- in which I'm typing these lines) U-06CC comes out as 06CC. But in both Scite and Npp (both scintilla applications) it translates 06CC (Yaa-Persian) into 064A (Yaa-Arabic). So whatever library Scintilla uses to process unicode text has a bug.
This is strange because I thought scintilla just uses the local system libraries.
Please report this to Neil Hodgson and the Scintilla list asap. This is a serious bug that makes scintilla almost useless for transcribing Persian electronic text.
Best wishes
Idris
This looks like to be this bug: http://sourceforge.net/tracker/index.php?func=detail&aid=2089502&group_id=95717&atid=612382
Consider submitting comments directly to it.