HalfText

From Esolang
Jump to navigation Jump to search

HalfText =

HalfText is a non-turing-complete text format where assuming little-endianness, turning code to array of binary bits and grouping into 7 bit groups, printing character with ASCII code of each 7-bit group. It will limit maximum ASCII code to 127.

Turning HalfText to normal ASCII may contain invisible characters. However, excluding the first character, any character which it's index is multiple of 7 will properly shown as ASCII character (from proper executed text).

A HalfText code can be 12.5% shorter than plain ASCII.

Hello, World! Example

 00010010 10100110 00110110 00110110 11110110 00110100 00000100 11101010 11110110 01001110 00110110 00100110 10000100

Hex version:

 12 A6 36 36 F6 34 04 EA F6 4E 36 26 84