Test versionKDJ wrote:Let's do the test: "Cycle search" turn on, search down and up (F3, Shift+F3).
Regular expressions for test:Text for test:Code: Select all
^ $ ^$ \b \B
Code: Select all
RegExp test - boundary
Bug reports
- Author
- Message
-
Offline
- Posts: 119
- Joined: Sat Jan 12, 2008 10:16 am
- Location: Shantou, China
Replace button not work
AkelPad 4.8.0
OS: XP SP3
I like to convert following:
into:
So I call ReplaceDialog and tpye find:
replace:
Opt: RegExp+Beginning
Then I click "Replace" button, but its action just same as "Find Next" button's.
BTW, the "Replace All" button works OK.
OS: XP SP3
I like to convert following:
Code: Select all
acb
dfe
gih
Code: Select all
abc
def
ghi
Code: Select all
^(\w)(\w)(\w)$
Code: Select all
\1\3\2
Then I click "Replace" button, but its action just same as "Find Next" button's.
BTW, the "Replace All" button works OK.
-
Offline
- Posts: 119
- Joined: Sat Jan 12, 2008 10:16 am
- Location: Shantou, China
There are 17 chars that StatusUserFormat "%cl:%cH" no show anything, 1 Zero char and 16 Surrogate pair Chars, below is their EscapeValue: all of their Hex value is: In order to get the original text, copy the EscapeValue text to AkelPad, run SearchReplace.js, Find: Replace with: Options:Then click ReplaceAll.
Well, put caret at the beginning of every line, you will see nothing about the section of "%cl:%cH" on the StateBar.
Code: Select all
%00
%uD800%uDC00
%uD840%uDC00
%uD880%uDC00
%uD8C0%uDC00
%uD900%uDC00
%uD940%uDC00
%uD980%uDC00
%uD9C0%uDC00
%uDA00%uDC00
%uDA40%uDC00
%uDA80%uDC00
%uDAC0%uDC00
%uDB00%uDC00
%uDB40%uDC00
%uDB80%uDC00
%uDBC0%uDC00
Code: Select all
\u0000
\u010000
\u020000
\u030000
\u040000
\u050000
\u060000
\u070000
\u080000
\u090000
\u0a0000
\u0b0000
\u0c0000
\u0d0000
\u0e0000
\u0f0000
\u100000
Code: Select all
(.*)
Code: Select all
return unescape($1);
Code: Select all
[v]RegExp
[v]MultiLine
[v]Replace with function
(*)Beginning
Well, put caret at the beginning of every line, you will see nothing about the section of "%cl:%cH" on the StateBar.
-
Offline
- Posts: 119
- Joined: Sat Jan 12, 2008 10:16 am
- Location: Shantou, China
Hmm, I made "%cl" and "%cH" separately not in one block, it seem OK now.
It seems that I found a bug about save file from ULE(Unicode_LE) to GB18030(54936).
In order to get the text to test, please run .
Save that into file in ULE codepage.
Then Find "?" without any checkbox. there only one "?" exist. It's OK.
Save as the file in codepage GB18030(54936), then Find "?" again, still OK?
Yes, it seem OK.
Then reopen the file and Find "?" again, you will find that there is 42 general chars and 1024 surrogate pair chars become dirty.
The same save action in BabelPad 6.2.0.3 is OK.
Another bug, I had set the default codepage from GBK(936) to GB18030(54936), and had restarted AkelPad. But when I open a ANSI file autodect, AkelPad open it in GBK(936), even I deleted GBK(936) from filter list.
_____________
AkelPad 4.8.0+
WinXP SP3 ChineseSimplified
It seems that I found a bug about save file from ULE(Unicode_LE) to GB18030(54936).
In order to get the text to test, please run .
Save that into file in ULE codepage.
Then Find "?" without any checkbox. there only one "?" exist. It's OK.
Save as the file in codepage GB18030(54936), then Find "?" again, still OK?
Yes, it seem OK.
Then reopen the file and Find "?" again, you will find that there is 42 general chars and 1024 surrogate pair chars become dirty.
The same save action in BabelPad 6.2.0.3 is OK.
Another bug, I had set the default codepage from GBK(936) to GB18030(54936), and had restarted AkelPad. But when I open a ANSI file autodect, AkelPad open it in GBK(936), even I deleted GBK(936) from filter list.
_____________
AkelPad 4.8.0+
WinXP SP3 ChineseSimplified
-
Offline
- Site Admin
- Posts: 6311
- Joined: Thu Jul 06, 2006 7:20 am
Test versioncnnnc wrote:It seems that I found a bug about save file from ULE(Unicode_LE) to GB18030(54936).
Autodetection proceeds with hardcoded codepages you cannot change them.Another bug, I had set the default codepage from GBK(936) to GB18030(54936), and had restarted AkelPad. But when I open a ANSI file autodect, AkelPad open it in GBK(936), even I deleted GBK(936) from filter list.
-
Offline
- Posts: 119
- Joined: Sat Jan 12, 2008 10:16 am
- Location: Shantou, China
It seems there still a bug about save file from ULE(Unicode_LE) to GB18030(54936).
In order to get the text to test, please run UnicodeCharGen.js but a little change the:
Save that into file in ULE codepage.
Then Find "?" without any checkbox. there only one "?" exist. It's OK.
Save as the file in codepage GB18030(54936), then Find "?" again, still OK?
Yes, it seem OK.
Then reopen the file and Find "?" again, you will find that there is 512 surrogate pair chars become dirty. They look rules:
There not only these surrogate pair chars become dirty, some others generated in some other actual cases, but they are not look rules.
_____________
AkelPad 4.8.1+
WinXP SP3 ChineseSimplified
In order to get the text to test, please run UnicodeCharGen.js but a little change the:
Code: Select all
AkelPad.ReplaceSel(vChar.join("\n "));
Then Find "?" without any checkbox. there only one "?" exist. It's OK.
Save as the file in codepage GB18030(54936), then Find "?" again, still OK?
Yes, it seem OK.
Then reopen the file and Find "?" again, you will find that there is 512 surrogate pair chars become dirty. They look rules:
The same save action in BabelPad 6.2.0.3 is OK.\u0101b3 ... \u0109b3
\u0111b3 ... \u0119b3
...
\u10F1B3 ... \u10F9B3
There not only these surrogate pair chars become dirty, some others generated in some other actual cases, but they are not look rules.
_____________
AkelPad 4.8.1+
WinXP SP3 ChineseSimplified
-
Offline
- Posts: 119
- Joined: Sat Jan 12, 2008 10:16 am
- Location: Shantou, China
This test version still exist bug.Instructor wrote:cnnnc
Test version
OK now, but there is another 1024 surrogate pair chars become dirty. They look rules:\u0101b3 ... \u0109b3
\u0111b3 ... \u0119b3
...
\u10F1B3 ... \u10F9B3
\u0102C5...\u0106C5...\u010AC5...\u010EC5
\u0112C5...\u0116C5...\u011AC5...\u011EC5
...
\u10F2C5...\u10F6C5...\u10FAC5...\u10FEC5