Bug reports

English main discussion
Post Reply
  • Author
  • Message
Offline
Posts: 8
Joined: Fri Sep 14, 2012 1:33 pm

Post by AEN007 »

15September2012

Greetings.

I did not understand what "and tuned with Exit plugin" meant ...
then I (accidentally) found the Exit plugin ... then I saw the KDJ posts ...
so I am slowly "getting up to speed" ... thanks for the help ...

I used ResourceHacker to also change the AkP.exe icon.
The AkP forum AP gif image should be the AkP.exe icon ... not that dull olive folder!

I have not had time yet to check out the PluginText.js script ... should

Code: Select all

"Disable Esc" Command(0) Hotkey(27)
be Command(-1)? -
which would/should ignore the accelerators table
whereas Command(0) would/should totally disable Esc ...

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

Find/Replace with regular expressions in AkelPad ver. 4.7.9.
"\b" and "\B" do not work.
"\b" for anything not matches.
"\B" matches any symbol boundary.

PS: Settings -> Editor 2 -> Word delimiters is turned off.

Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »


KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

Instructor
Not have improved. Compare with SearchReplace.js.
Regular expressions:

Code: Select all

.\b
.\B
Text for test:

Code: Select all

[]()ABC{}<>DEF    KLM-XYZ

Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

KDJ
And what is wrong? "." is any symbol. It can be "["? Yes, it can. After "[" follow "]". It is delimiter? Yes, it is.

Probably JScript RegExp implementation authors have different logic.

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

Instructor

#1
It seems to me that it should be as follows:

"\b" - it is word boundary, not delimiter. Occurs between delimiter character and non delimiter character. In the sample text, word boundaries are between the following pairs of characters:
")A"
"C{"
">D"
"F "
" K"
"M-"
"-X"

"\B" - is non word boundary, exist between other pairs of characters ("Delimiter|Delimiter", "WordChar|WordChar"), e.g.:
"[]"
"AB"

".\b" - means any character on the left side of word boundary. Should be match following characters:

Code: Select all

)C>F M-Z
".\B" - means any character after which there is no word boundary. Should be match following characters:

Code: Select all

[](AB{}<DE   KLXY
Please check how it works in Notepad++ and PSPad or here: http://www.w3schools.com/jsref/tryit.as ... xp_charset

#2
Action ".\b" and ".\B" depends on whether it is turned "Word delimiters".
We perform the following steps:
1. run AkelPad,
2. turn off Settings->Editor 2->Word delimiters,
3. close AkelPad,
4. run AkelPad again.
Now:
".\b" - for anything not matches.
".\B" - matches any symbol.

Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

KDJ
#1 Changed description of the \b \B metacharacters.
#2 Fixed.

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

Instructor wrote:#1 Changed description of the \b \B metacharacters.
Sorry, but I do not understand the action of "\b" in Find/Replace.
RegExp: "\(\b"
Text: "( ) (ABC)"
Matches the bracket two times. Why?

Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

ak0 wrote:Hello, it is not possible to insert a backslash (\) into the editor through using the normal key combination with Ctrl + Alt.
Test version.

KDJ
Yeah, something strange with current \b behavior. Trying to make it more standard: Test version.

Offline
Posts: 4
Joined: Wed Sep 19, 2012 11:21 am

Post by ohehpa »

Hi, I think I've found a bug which could truncate a double-byte character per 2,048 bytes while AkelPad is doing code page conversion.
Where can I send a patch to?

Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

ohehpa
See email in program "About".

Offline
Posts: 4
Joined: Wed Sep 19, 2012 11:21 am

Post by ohehpa »

Instructor wrote:ohehpa
See email in program "About".
Thanks. I'll send it later.

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

Instructor wrote:Yeah, something strange with current \b behavior. Trying to make it more standard: Test version.
Now is better. I think you need to restore the previous description.

I noticed still the following bugs:

.\b
.\B
- Find next up (Shift+F3) works incorrectly.

\b.+\b
\B.+\B
\B[a-z]+\B
[\]]
- works incorrectly or don't works.

Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »


KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

Instructor
This test version is dated 17-09-2012. Nothing has changed.
Post Reply