项目作者: Deric-W

项目描述 :
Python module and description of a encoding with infinite letter space.
高级语言: Python
项目地址: git://github.com/Deric-W/Chain-Encoding.git
创建时间: 2019-03-02T17:32:20Z
项目社区:https://github.com/Deric-W/Chain-Encoding

开源协议:MIT License

下载


Chain-encoding

Chain encoding is a simple, (used with numbers less than 128) ASCII-compatible Unicode based encoding that uses the unused 8th bit of an ASCII byte to concatenate multiple bytes (like a chain).
As a result, an infinite number of letters can be stored.

Syntax

If the bit is 1, the other 7 bits are chained to the previous byte.
If the bit is 0, a new chain is created.

Examples

E

01000101 —> new Chain 1000101 —> 1000101 —> 69 —> E

Ä

00000001 11000100 —> new Chain 0000001 + 1000100 —> 00000011000100 —> 196 —> Ä

00000001 11011110 10100010 —> new Chain 0000001 + 1011110 + 0100010 —> 000000110111100100010 —> 28450 —>

Invalid

10100110 10010000 —> missing start of Chain