HexSel plugin

Discuss and announce AkelPad plugins
  • Author
  • Message
Offline
Site Admin
Posts: 6311
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

Fixed: possible problem with plugin unload.


HexSel plugin v2.3

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

Post by Instructor »

Fixed: compatibility with ContextMenu's "+Call()" method.


HexSel plugin v2.4

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

Post by Instructor »

Changed: AkelPad 3.5.3 required.


HexSel plugin v2.5

Offline
Posts: 119
Joined: Sat Jan 12, 2008 10:16 am
Location: Shantou, China

Bad Value Bug

Post by cnnnc »

there is a bug when do with double_byte character, as for Chinese Simplified character.

for example, a 4 character Chinese_Simplified string in ANSI:
简体中文

The HEX value in WinHEX:
BCF2CCE5D6D0CEC4

The HEX value in Akelpad Via HEXSel:
BCF2CCE5

The bug only happen in ANSI HEX, the UTF-16 BE HEX is OK.

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

Post by Instructor »

Fixed: DBCS codepages support.


HexSel plugin v2.6

Offline
Posts: 119
Joined: Sat Jan 12, 2008 10:16 am
Location: Shantou, China

UTF-8???

Post by cnnnc »

The same string in a UTF-8 file, and its HEX value is:

E7AE80E4BD93E4B8ADE69687

But there is still ANSI value in Akelpad.
How can I get the right value in the mode according to the codepage Akelpad detect the file?

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

Post by Instructor »

cnnnc
Plugin doesn't know what codepage file has, it only knows that selection in AkelPad window is in UTF16-LE (AkelPad always work with UTF16-LE). After plugin gets selection text in UTF16-LE, it converts it to default ANSI codepage.

Offline
Posts: 5
Joined: Thu Apr 24, 2008 10:45 am

Post by Black_Sun »

Я немного не понял, как работает эта программа
Допустим, я написал вот это mvi a, 81h
выделил это, и внизу он мне пишет

<6D><76><69><20><61><2C><20><38><31><68>

<006D><0076><0069><0020><0061><002C><0020><0038><0031><0068>

Как это понимать? должен написать что-то на подобии <3E> <81>

DV
Offline
Posts: 1250
Joined: Thu Nov 16, 2006 11:53 am
Location: Kyiv, Ukraine

Post by DV »

Black_Sun wrote:должен написать что-то на подобии <3E> <81>
:))) Где вы увидели слово "Assembler" в описании плагина???
HexSel - это показ выделенных символов в 16-ричном коде (как в HEX-редакторах), при чем тут вообще команды процессора?

Offline
Posts: 5
Joined: Thu Apr 24, 2008 10:45 am

Post by Black_Sun »

А, ну тогда всё ок :)

Offline
Posts: 119
Joined: Sat Jan 12, 2008 10:16 am
Location: Shantou, China

Post by cnnnc »

Instructor wrote: Plugin doesn't know what codepage file has, it only knows that selection in AkelPad window is in UTF16-LE (AkelPad always work with UTF16-LE). After plugin gets selection text in UTF16-LE, it converts it to default ANSI codepage.
How about:
add a new API named CurrentCodepage for called by plugs, then the plug can convert the unicode-le value into CurrentCodepage value.

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

Post by Instructor »

Added: support for AkelPad 4.0.0.


HexSel plugin v2.7

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

Post by Instructor »

Changed: AkelPad 3.6.0 required.
Changed: while reconversion to multibyte string, active file codepage is used.


HexSel plugin v2.8

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

Post by Instructor »

Added: column selection support (AkelPad 4.0.0 beta 2).


HexSel plugin v2.9

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

Post by Instructor »

Fixed: context menu on two monitors.


HexSel plugin v3.0
Post Reply