Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: cgarcia109 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 (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:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■⓿
[attachment deleted by admin]
[attachment deleted by admin]
-
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)