Source language: Translate to:

hpwPlusMemo

Questions about NeoBook PlugIns

Moderator: Neosoft Support

Re: hpwPlusMemo

Postby HPW » Wed Jul 03, 2013 10:32 pm

I understand that in the plug-in is not possible to search and replace?


It might be possible, but it makes no sense to reinvent the wheel in every plugin.

We have native search and replace in neobook and other languages.
The memo display a text-stream, which can be manipulated by the core or other plugins.
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: hpwPlusMemo

Postby HPW » Sat Aug 31, 2013 12:38 am

Just released hpwPlusMemo 1.09:

http://www.hpwsoft.de/anmeldung/html1/n ... ook16.html

Action: hpwPlusMemoUndo - Undo last operation.
Action: hpwPlusMemoRedo - Redo last Undo.
Action: hpwPlusMemoClearUndo - Reset Undo-Buffer.
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: hpwPlusMemo

Postby HPW » Mon Sep 02, 2013 2:02 pm

Just released hpwPlusMemo 1.10:

http://www.hpwsoft.de/anmeldung/html1/n ... ook16.html

Action: hpwPlusMemoInsertText - Each Insert can now be undone by undo. Also need smaller undo-buffer.
Action: hpwPlusMemoDeleteText - Each delete can now be undone by undo. Also need smaller undo-buffer.
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: hpwPlusMemo

Postby mishem » Fri Mar 06, 2015 2:23 am

Hello.
action:

hpwPlusMemoSetVar

[hpwMemoBackColor], [hpwMemoFontColor], [hpwMemoFontName],
[hpwMemoFontSize], [hpwMemoFontStyle], [hpwMemoFontCharset],
[hpwMemoGutterWidth], [hpwMemoHint], [hpwMemoSubHighLighter],
[hpwMemoNumberColor], [hpwMemoScrollTime], [RectangleName_ContextAction],
[RectangleName_OnChangeAction], [RectangleName_OnKeyDownAction],
[RectangleName_OnKeyUpAction], [RectangleName_OnMouseDownAction],
[RectangleName_OnMouseMoveAction], [RectangleName_OnMouseUpAction]

Image
mishem
 
Posts: 575
Joined: Mon Oct 08, 2012 1:51 pm

Re: hpwPlusMemo

Postby mishem » Fri Mar 06, 2015 3:06 am

If the text in Cyrillic. And the keyboard layout ENG.
Select the text. The right mouse button.
Copy text to the clipboard.
Insert to something, a text input field, notepad ...

Image

If the keyboard layout RUS, the text is displayed correctly.

If all this is done in software.
For Example:

Code: Select all
Random "100" "[i]"
hpwPlusMemoSelectPos "TextForRegex" "[i]" "15"
hpwPlusMemoCopyToClip "TextForRegex"

SetVar "[TextEntry1]" "[Clipboard]"


Text in any keyboard layout is displayed correctly.

Variable [hpwMemoFontCharset] assign different values ...
mishem
 
Posts: 575
Joined: Mon Oct 08, 2012 1:51 pm

Re: hpwPlusMemo

Postby HPW » Fri Mar 06, 2015 7:41 am

Hello,

I can not understand the first post. From an acces violation-message no one can guess what the error produce.

The second post is also unspecific.
Also be aware that the plugin is a ANSI-compatibel version and only tested with english/german enviroment.

So what should be done. Typing in cyrillic? Clipboard-pasting in cyrillic?
Not sure if this can be done only with the extended ANSI-Charset.

Regards

Hans-Peter
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: hpwPlusMemo

Postby mishem » Fri Mar 06, 2015 10:08 am

I can not understand the first post.


Video.

Typing in cyrillic? Clipboard-pasting in cyrillic?


Video.
mishem
 
Posts: 575
Joined: Mon Oct 08, 2012 1:51 pm

Re: hpwPlusMemo

Postby HPW » Fri Mar 06, 2015 10:26 am

Hello,

Ok, I see what you do. But I can not reproduce it here on my System.
So it is hard to know whats the Problem is.
Seems that I can not help for now.

Sorry,

Regards
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: hpwPlusMemo

Postby mishem » Sat Mar 07, 2015 2:26 am

Hello.
Do Assistant compiling regular expressions to hpwControl.

Did highlight the text in the match.

The backlight is not consistent with those that hpwControl.

You can fix it as that?

The project itself in our forum.
Direct link to thezip archive.

Required plug-ins:
NeoBookDB23d
hpwPlusMemo
hpwControl
mishem
 
Posts: 575
Joined: Mon Oct 08, 2012 1:51 pm

Re: hpwPlusMemo

Postby HPW » Sat Mar 07, 2015 10:29 am

The backlight is not consistent with those that hpwControl.
You can fix it as that?


What do you mean with that? backlight? Consistent with hpwControl?
hpwControl is no graphical component.

Regards
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: hpwPlusMemo

Postby mishem » Sat Mar 07, 2015 11:53 am

Video

Clipboard-pasting in cyrillic?

Do yourself on the forum dealt with.
In XP it's OK is displayed.
In Windows 7-8 characters can not be displayed correctly.
mishem
 
Posts: 575
Joined: Mon Oct 08, 2012 1:51 pm

Re: hpwPlusMemo

Postby HPW » Mon Mar 09, 2015 11:32 am

Hello,

Reading into the code after a long time let me find the correct setup for the consistent behavior of the regex.
It is consistent but not equal.

PlusMemo has its own layer above the Regex engine and uses it own config-system.
In the demo file newlisp.ini for example you find a section [RegExKeywords].
Instead of contained modifiers Plusmemo supports bitcodes in the entrys.
The bitcodes are explained at the top of the ini file:

;INI-file for hpwNewLISP syntax highlighting with plusmemo
;1 parameter Bitcode 0=none 1=Match case 2=Whole words only
;2 parameter Bitcode 0=none 1=Bold 2=Italic 4=Underline 8=Strike Out 16=Highlight 32=Alternate Font
;3 parameter Context number
;4 parameter Mouse Pointer 0=crDefault -1 to -22 Standardpointer (see MouseCursor.txt)
;5 parameter Background color -1=Default
;6 parameter Foreground color -1=Default
;7 parameter Scope
;8 parameter Priority Level


So the following config does the same as hpwControl with (?i)Jon:
Code: Select all
[RegExKeywords]
Jon=1,0,1,0,-1,255,0,0,


Regards
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: hpwPlusMemo

Postby mishem » Mon Mar 09, 2015 1:08 pm

So the following config does the same as hpwControl with (?i)Jon:

Yes, thank you, I have found and corrected.
I am looking for other options, but to no avail.

For example ^.
Finds all strings.
A must only find the first one.
Modifier (?-m) does not change anything.

With this expression (?m)^N
hpwControl how then do not understand is N.
I open a pub file and experimenting on his text.

I want to find another opportunity to match results could allocate a different color through one. But it's probably not possible. :)

For example, if you specify in the expression of a single point, select the entire text. And I want to do to be seen that highlighted each character separately. Or each match different color.


ps
Maybe I'd better write in Russian?
And you're in Google translate?
mishem
 
Posts: 575
Joined: Mon Oct 08, 2012 1:51 pm

Re: hpwPlusMemo

Postby mishem » Mon Mar 09, 2015 1:11 pm

;INI-file for hpwNewLISP syntax highlighting with plusmemo
;1 parameter Bitcode 0=none 1=Match case 2=Whole words only
;2 parameter Bitcode.....


I am 3.7 and 8 until the parameter as follows can not understand.

......................

In the plug hpwPlusMemo default semicolon ";" (Comments) already defined color. This has been done?

Image
mishem
 
Posts: 575
Joined: Mon Oct 08, 2012 1:51 pm

Re: hpwPlusMemo

Postby HPW » Mon Mar 09, 2015 2:37 pm

Hello,

It is mostly difficult to guess what you want.

So this are entrys which work for me:

Code: Select all
[RegExKeywords]
^w:.*$=0,0,1,0,-1,255,0,0,
^t:.*Bla=0,0,1,0,-1,255,0,0,


First Highlight from w: at linestart to lineend
Second Highlight from t: at linestart and end at word bla.

Regards
Hans-Peter
User avatar
HPW
 
Posts: 2520
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

PreviousNext

Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 1 guest