added newline encoding logic

This commit is contained in:
Luxferre
2025-03-04 19:15:06 +02:00
parent 2fd14fc10c
commit 7f8c63ebd9
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -32,7 +32,8 @@ the following rules:
1. The text is converted into lowercase.
2. Every occurrence of the `0` (zero) character is replaced with the letter `o`.
3. Every occurrence of either of these characters `_-` is replaced with a space.
4. Any other characters not belonging to the alphabet are deleted from the text.
4. Optionally, every newline is replaced with three consequent spaces.
5. Any other characters not belonging to the alphabet are deleted from the text.
Prior to step 4, the user may apply additional conversions to preserve special
characters, such as replacing `%` with `cto`, `$` with `dlr` and so on.