| View previous topic :: View next topic |
| Author |
Message |
AEN007
Joined: 14 Sep 2012 Posts: 7
|
Posted: Sat Sep 15, 2012 6:48 am Post subject: |
|
|
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: | | "Disable Esc" Command(0) Hotkey(27) | be Command(-1)? -
which would/should ignore the accelerators table
whereas Command(0) would/should totally disable Esc ... |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Sun Sep 16, 2012 4:17 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
Instructor Site Admin
Joined: 06 Jul 2006 Posts: 4640
|
Posted: Sun Sep 16, 2012 7:10 pm Post subject: |
|
|
KDJ
Test version |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Sun Sep 16, 2012 8:48 pm Post subject: |
|
|
Instructor
Not have improved. Compare with SearchReplace.js.
Regular expressions:
Text for test:
| Code: | | []()ABC{}<>DEF KLM-XYZ |
|
|
| Back to top |
|
 |
Instructor Site Admin
Joined: 06 Jul 2006 Posts: 4640
|
Posted: Mon Sep 17, 2012 3:35 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Mon Sep 17, 2012 7:31 pm Post subject: |
|
|
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:
".\B" - means any character after which there is no word boundary. Should be match following characters:
Please check how it works in Notepad++ and PSPad or here: http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_regexp_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. |
|
| Back to top |
|
 |
Instructor Site Admin
Joined: 06 Jul 2006 Posts: 4640
|
Posted: Tue Sep 18, 2012 5:55 pm Post subject: |
|
|
KDJ
#1 Changed description of the \b \B metacharacters.
#2 Fixed. |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Tue Sep 18, 2012 8:36 pm Post subject: |
|
|
| 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? |
|
| Back to top |
|
 |
Instructor Site Admin
Joined: 06 Jul 2006 Posts: 4640
|
Posted: Wed Sep 19, 2012 4:03 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
ohehpa
Joined: 19 Sep 2012 Posts: 4
|
Posted: Wed Sep 19, 2012 4:39 pm Post subject: |
|
|
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? |
|
| Back to top |
|
 |
Instructor Site Admin
Joined: 06 Jul 2006 Posts: 4640
|
Posted: Wed Sep 19, 2012 4:45 pm Post subject: |
|
|
ohehpa
See email in program "About". |
|
| Back to top |
|
 |
ohehpa
Joined: 19 Sep 2012 Posts: 4
|
Posted: Wed Sep 19, 2012 4:52 pm Post subject: |
|
|
| Instructor wrote: | ohehpa
See email in program "About". |
Thanks. I'll send it later. |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Wed Sep 19, 2012 7:10 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Instructor Site Admin
Joined: 06 Jul 2006 Posts: 4640
|
Posted: Thu Sep 20, 2012 4:35 am Post subject: |
|
|
KDJ
Test version |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Thu Sep 20, 2012 6:49 am Post subject: |
|
|
Instructor
This test version is dated 17-09-2012. Nothing has changed. |
|
| Back to top |
|
 |
|