1
0
mirror of https://github.com/qntm/base65536 synced 2025-11-12 03:24:42 +01:00

Compare commits

...

2 Commits

Author SHA1 Message Date
qntm
f4917c74f5
Update gen.js 2020-09-20 13:16:55 +01:00
qntm
378ea5a4f9
Update README.md 2020-09-20 12:50:37 +01:00
2 changed files with 4 additions and 1 deletions

View File

@ -127,7 +127,7 @@ import { encode, decode } from 'base65536'
const uint8Array = new Uint8Array([104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100]) const uint8Array = new Uint8Array([104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100])
const string = encode(uint8Array.buffer) const string = encode(uint8Array)
console.log(string); console.log(string);
// 6 code points, '驨ꍬ啯𒁷ꍲᕤ' // 6 code points, '驨ꍬ啯𒁷ꍲᕤ'

View File

@ -81,3 +81,6 @@ export default () => SafeCodePoint('8.0.0').then(safeCodePoint => {
// * Perhaps try to find larger blocks of 512 or 1024 code points rather than // * Perhaps try to find larger blocks of 512 or 1024 code points rather than
// 256, or other techniques for reducing the size of the lookup tables. // 256, or other techniques for reducing the size of the lookup tables.
// * Choose all characters with the same East_Asian_Width of 'W' (wide). // * Choose all characters with the same East_Asian_Width of 'W' (wide).
// * Make Base65536 big-endian, so that [0x00 0x00] and [0x00 0x01] encode to
// code points which are separated by 1 - this would simplify decoding and be
// more consistent with my other encodings.