Computer Rules (Strict)
- A dot (.) is represented by a single space (| |)
- A dash (-) is represented by 3 spaces (| |)
- The pipe symbol (|) is used to separate dots/dashes
- A space between letters is represented by 6 spaces ( )
- A space between words is represented by a slash (
/)
- Each sentence is on a new line
- Allowed symbols: colon, question mark, comma, and period
- All other symbols are replaced with an apostrophe (
')
- Output will have all letters in uppercase
- Numbers are allowed
Examples
- HELLO JOHN → encoded (example)
- HELLO HUMAN → encoded (example)
Decoding Warnings
The decoder will attempt to decode malformed tokens but will list problems (missing pipes, invalid morse, unknown sequences). Malformed letters are replaced with '.
Paper Rules (Placeholder)
- Rule 1 — Placeholder text. Replace with your paper rules.
- Rule 2 — Placeholder for handwriting spacing guidance.
- Rule 3 — Placeholder for how to indicate word separators on paper.
Examples (Placeholder)
- (placeholder) Example A
- (placeholder) Example B
Code & Usage
Download imcgen-v3.js which contains the same encode/decode functions used here. Use the Node.js CLI examples below.
Quick example
node [filename] [encode/decode] [inputfile] [outputfile]
Examples:
node imcgen-v3.js encode input.txt encoded.txt
node imcgen-v3.js decode encoded.txt decoded.txt
Notes
- Supports A–Z, 0–9 and punctuation
. , ? :.
- Unsupported characters are replaced with a single quote
'.
- Each sentence should be on its own line.
Click Download Source Code on the main page to get imcgen-v3.js.