-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the official wiki for rtl-text-tools a complete, zero-dependency text processing toolkit for Right-to-Left (RTL) languages like Arabic, Persian, Hebrew, and Urdu.
Whether you are fixing reversed brackets, converting Latin digits to local numerals, or ensuring plain-text emails render correctly, this library has you covered. It works all the way back to IE11 with maximum browser compatibility.
Looking at the sidebar, you might see a lot of documentation and feel like there is a steep learning curve. Don't worry!
For 99% of use cases, you don't need to read the whole manual or learn every function. You only need to use one function and tell it your language:
import { fixRTL } from 'rtl-text-tools';
// That's it! It automatically fixes digits, punctuation, ellipsis, and brackets.
fixRTL('Ω
Ψ±ΨΨ¨Ψ§, Ψ±ΩΩ
123...', { lang: 'arabic' });
// Output: "...Ω
Ψ±ΨΨ¨Ψ§Ψ Ψ±ΩΩ
Ω‘Ω’Ω£"Just pass your text to fixRTL(), define your target language ('arabic', 'persian', or 'hebrew'), and let the library handle the rest. It is smart enough to leave English/LTR text completely untouched.
If you want to know more about how the library works, or if you need to solve a specific problem, choose your path below:
Start here to learn how to install the package, understand the basic options, and see a few quick examples. π Getting Started
If you want to use individual utility functions (like just converting digits, or just wrapping text for emails), or you need to know the exact parameters and return types for every function. π API Reference
Find idiomatic integration guides, custom hooks, directives, and pipes for your tech stack. π Framework Guides (React, Vue, Angular, Vanilla JS)
Learn how to handle RTL text in tricky environments like HTML Emails, Chat Applications, Text Editors, and E-commerce platforms. π Use Cases
Deep dive into the Unicode ranges, specific numeral systems, and quirks of Arabic, Persian, Hebrew, Urdu, and other RTL scripts. π Language-Specific Guides
Check out common rendering issues, framework-specific tips, and our legacy browser compatibility matrix. π FAQ & Troubleshooting | Browser Compatibility
- π Found a bug? Open an issue on GitHub.
- π‘ Have an idea? We welcome contributions! Check out the Contributing Guide.
- π¦ View on NPM: rtl-text-tools
Happy coding! π
Homayoun Mohammadi (@homayounmmdy)
π Home β’ π Getting Started β’ π API Reference β’ π Report Issue
Made with β€οΈ by Homayoun Mohammadi
If you find this project useful, please consider β starring the repo to show your support!
- π Home
- π Getting Started
- π§© API Overview
- π οΈ Framework Guides
- π‘ Use Cases
- π₯οΈ Browser Compatibility
- β FAQ & Troubleshooting
Homayoun Mohammadi
π GitHub β’ βοΈ Email
β Love this project? Star it on GitHub to show your support!