By-Typo is a web-based typographic tool designed to enhance Belarusian text by applying various typographic rules and corrections.
It's an adaptation of SBOLTypograph repo to Python and Belarusian.
- Manages no-break spaces along the text
- Fixes different punctuation mistakes
- Works with Belarusian language
- Fixes Ў issues
By-Typo applies the following rules to improve text quality:
-
Letter Ў correction
- Replaces 'у' with 'ў' where appropriate
- Corrects 'ў' to 'у' at the beginning of sentences or after consonants
-
Quotation marks
- Replaces simple quotes with proper quotation marks («»)
-
Dashes
- Applies appropriate dash lengths for different contexts (em dash, en dash)
- Adds non-breaking spaces where needed
-
Punctuation
- Corrects order of multiple punctuation marks
- Replaces triple dots with ellipsis character
-
Spaces
- Adds or removes spaces around punctuation marks as needed
- Eliminates double spaces
-
Non-breaking spaces
- Inserts non-breaking spaces in appropriate places (e.g., between initials and surnames)
-
Number formatting
- Formats large numbers with proper spacing
- Corrects abbreviations for thousands, millions, etc.
-
Currency symbols
- Replaces currency codes (USD, EUR) with symbols ($ €)
- Positions currency symbols correctly relative to numbers
For bug reports or suggestions, contact: [email protected]