docs: conjugate ZWUS steps and move Unicode note to alert at bottom

This commit is contained in:
2026-09-12 19:15:52 -07:00
parent 27c13c48b2
commit b572a95875

View File

@@ -21,12 +21,10 @@ When enabled, prepends an invisible zero-width signature to the output. This all
## How ZWUS Works ## How ZWUS Works
Because ZWUS operates directly on numerical code points (`U+0000` to `U+10FFFF`), encoding works with **all Unicode characters in existence**—including every language script, emoji, and symbol. 1. Takes each character's Unicode code point.
2. Converts it to the chosen base (3, 6, or 8).
1. Take each character's Unicode code point. 3. Maps each resulting digit to its assigned zero-width character from the alphabet.
2. Convert it to the chosen base (3, 6, or 8). 4. Joins digits together; separates characters with the base's designated separator (also zero-width).
3. Map each resulting digit to its assigned zero-width character from the alphabet.
4. Join digits together; separate characters with the base's designated separator (also zero-width).
The result is a string of invisible Unicode that carries the full original text. Decoding reverses the mapping: split on the separator, look up each zero-width character to recover the digit, parse the base-N number back to a code point, and reconstruct the string. The result is a string of invisible Unicode that carries the full original text. Decoding reverses the mapping: split on the separator, look up each zero-width character to recover the digit, parse the base-N number back to a code point, and reconstruct the string.
@@ -40,3 +38,6 @@ The encoder/decoder is available as a standalone package for multiple languages:
- **JavaScript/TypeScript:** [zwus on npm](https://www.npmjs.com/package/zwus) - **JavaScript/TypeScript:** [zwus on npm](https://www.npmjs.com/package/zwus)
- **Rust:** [zwus on crates.io](https://crates.io/crates/zwus) - **Rust:** [zwus on crates.io](https://crates.io/crates/zwus)
> [!NOTE]
> Encoding works with **all Unicode characters in existence** (`U+0000` to `U+10FFFF`), including every language script, emoji, and symbol.