Source language: Translate to:

HPWControl

Questions about NeoBook PlugIns

Moderator: Neosoft Support

HPWControl

Postby Wrangler » Sat Dec 26, 2009 10:37 am

Hi Hans-Peter

I noticed that using hpwLineNumber, if the string is not found, it returns '1'. This would be a conflict if the string searched for is on line 1. Can this be changed so string not found would return 0, or -1?

As always, this action is super fast. Thanks for this great plugin.

Thanks!
Wrangler
--------------
"You never know about a woman. Whether she'll laugh, cry or go for a gun." - Louis L'Amour

Windows 7 Ultimate SP1 64bit
16GB Ram
Asus GTX 950 OC Strix
Software made with NeoBook
http://highdesertsoftware.com
User avatar
Wrangler
 
Posts: 1507
Joined: Thu Mar 31, 2005 11:40 pm
Location: USA

Postby HPW » Sun Dec 27, 2009 7:52 am

Did you use 1.39 or later?

There was the bugfix announced in 1.39!

http://www.neosoftware.com/forum/viewto ... 6&start=75
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Postby Wrangler » Sun Dec 27, 2009 9:09 am

Great! Thanks. I thought I had upgraded, but apparently not. I was using 1.27!
Wrangler
--------------
"You never know about a woman. Whether she'll laugh, cry or go for a gun." - Louis L'Amour

Windows 7 Ultimate SP1 64bit
16GB Ram
Asus GTX 950 OC Strix
Software made with NeoBook
http://highdesertsoftware.com
User avatar
Wrangler
 
Posts: 1507
Joined: Thu Mar 31, 2005 11:40 pm
Location: USA

Re: HPWControl

Postby mishem » Mon Dec 10, 2012 11:58 pm

hpwIsNumeric
Check a string if it is numeric including , + .
+ возвращает в переменную 0.

hpwIsAlpha
hpwIsAlphaNumeric
Кирилица не определяется как буквы. Можно исправить что бы на проверку кирилицы тоже возвращало 1 ?
mishem
 
Posts: 575
Joined: Mon Oct 08, 2012 1:51 pm

Re: HPWControl

Postby HPW » Tue Dec 11, 2012 5:44 am

Hello,

hpwIsNumeric suports inculded , and . but not +
(It is not part of a number, you may parse it out)

Code: Select all
         csNumeric         = ['0'..'9'];
         csDezimal         = [',', '.'];
         csDNumeric        = csNumeric + csDezimal;


hpwIsAlpha and hpwIsAlphaNumeric are using such lookup tables in delphi:

Code: Select all
         csNumeric         = ['0'..'9'];
         csUmlaut          = ['ä', 'ö', 'ü', 'Ä', 'Ö', 'Ü', 'ß'];
         csAlphaLow        = ['a'..'z'];
         csAlphaUp         = ['A'..'Z'];
         csAlpha           = csAlphaLow + csAlphaUp + csUmlaut;
         csAlphaNumeric    = csNumeric + csAlpha;


So what would be needed for cyrilic ?

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

Re: HPWControl

Postby mishem » Tue Dec 11, 2012 12:03 pm

Плагин не понимает русский шрифт.
Как мне подсказывают нужно как то так
Const
CyrillicLow = 'абвгдеёжзийклмнопрстуфхцчшщьыъэюя';
CyrillicUp = 'АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯ';

hpwIsNumeric suports inculded , and . but not +

Я понимаю, просто в описании плагина + присутствует.
mishem
 
Posts: 575
Joined: Mon Oct 08, 2012 1:51 pm

Re: HPWControl

Postby HPW » Tue Dec 11, 2012 12:16 pm

I think this will not work, because the cyrilic chars are not known on my development system.
Maybe your russian plugin developer friends can make a similar function for cyrilic fonts.
Hans-Peter
User avatar
HPW
 
Posts: 2521
Joined: Fri Apr 01, 2005 11:24 pm
Location: Germany

Re: HPWControl

Postby mishem » Tue Dec 11, 2012 12:43 pm

I think this will not work, because the cyrilic chars are not known on my development system.

Если вы можете читать мой текст, значит система поддерживает. :)

Но все равно спасибо за ответ и за такие замечательные плагины.
Этот плагин один из моих любимых. :)
mishem
 
Posts: 575
Joined: Mon Oct 08, 2012 1:51 pm

Re: HPWControl

Postby HPW » Tue Dec 11, 2012 3:16 pm

If you can read my text, the system supports.


No, I can read it because the browser supports unicode.
But current neobook and my plugins does not and are ASCII-based.

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


Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 2 guests

cron