In fact it's possible to use any character using a 5bits coding:Originally Posted by mister_e
Since A-Z is only 26 letters, the 5 bits coding has a remaining 5 position to be used as controls like bellow:
I prefer to use the default as a lower case chars. (abcdef...)
So A-Z are coded as a=1, b=2, c=3, d=4...till z=26
As controls I use:
0 - End of string
27 - Space char
28 - Begin/End mark for a upper case string
29 - Begin/End mark for numbers 0-9
30 - Begin/End mark for symbols +-,.!$%^ (max 26 symbols each one is a char A-Z)
31 - Reserved, I have in nothing in mind in the moment :-)
So I code the string this way:
Source:
"/t/hese /word/ is in upper case this year is [bjjf]"
the ouput:
"This WORD is in upper case this year is 2006"
I am doing this ... errr... by hand :-) transforming the string directly to bits, it's a hell of work i know, I need just to create a program to translate the strings (Source above) to the bits and coded as i want.
Well, this idea I took from the HTML format, so even with as little as 5 bits I can get any char in a compact size :-)




Bookmarks