Author Topic: minor hexedit tweak  (Read 2562 times)

Offline cgarcia109

  • Multiple posting newcomer
  • *
  • Posts: 24
minor hexedit tweak
« on: May 29, 2010, 04:27:04 am »
Show visible glyphs for all ascii chars as of codepage 437
http://en.wikipedia.org/wiki/Code_page_437

Havent tested on Linux/Mac, it depends if the included unicode fonts in those platforms include the glyphs to show those codes. If you see the chars below in your web browser its ok.

What is this useful for? nothing really, but i like it.
Apply patch, define NOSTALGIC in HexEditor Project

☹☺☻♥♦♣♠◘○◙♂♀♪♫☼►◄↕‼▬↨↑↓→←∟↔▲▼ !"#$%&'()*+,-./0123456789:;<=>[email protected][\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ܢ₧Ѫ⌐░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αΓπΣστΦΘΩδ∞φε∩≡≥≤⌠⌡≈∙√ⁿ■⓿



[attachment deleted by admin]

[attachment deleted by admin]

Offline cgarcia109

  • Multiple posting newcomer
  • *
  • Posts: 24
Re: minor hexedit tweak
« Reply #1 on: May 30, 2010, 09:15:40 pm »
I couldnt find unicode characters codes for first and last chars. So i placed character codes
\x24\x00
\x24\xFF
actually those should be correct but no font comes with those glyphs or they are not correct or they are no monospaced (they can be taken from other font by the system) what makes it looks bad.
replacing them with space \x00\x20 or dot \x00\x2E looks correct (i preffer dot makes it looks more compact)

HexEditLineBuffer.cpp line 29 (first line of wxString cp437)

--- \x24\x00\x26\x3A\x26\x3B\x26\x65\x26\x66\x26\x63\x26\x60\x20\x22\
+++ \x00\x20\x26\x3A\x26\x3B\x26\x65\x26\x66\x26\x63\x26\x60\x20\x22\

and line 60 (last line of wxString cp437)
--- \x00\xB0\x22\x19\x00\xB7\x22\x1A\x20\x7F\x00\xB2\x25\xA0\x24\xFF\
+++ \x00\xB0\x22\x19\x00\xB7\x22\x1A\x20\x7F\x00\xB2\x25\xA0\x00\x20\

looks correct in winxp and ubuntu 8.04 (have no special fonts installed here)
« Last Edit: May 30, 2010, 09:22:37 pm by cgarcia109 »