Unify the usage of Arabic, Arabic-Indic and Farsi numbers in a single text
textlint --rule numeral-systems --fix README.md
In ١٧٩٩, during Napoleon's campaign in Egypt, a French soldier discovered the Rosetta Stone near the town of Rosetta (modern-day Rashid). The number ۱۹۶ comes into play as it was the year 196 BCE when the decree inscribed on the Rosetta Stone was written. This decree was issued by Ptolemy V, and its purpose was to establish the divine cult of the king.
In 1799, during Napoleon's campaign in Egypt, a French soldier discovered the Rosetta Stone near the town of Rosetta (modern-day Rashid). The number 196 comes into play as it was the year 196 BCE when the decree inscribed on the Rosetta Stone was written. This decree was issued by Ptolemy V, and its purpose was to establish the divine cult of the king.
Install with npm:
npm install textlint-rule-numeral-systems
Via .textlintrc.json
(Recommended)
{
"rules": {
"numeral-systems": {
"default_numbers" : "arabic" // can be: 'arabic', 'indic' or 'persian
}
}
}
Via CLI
textlint --rule numeral-systems README.md
Builds source codes for publish to the lib
folder.
You can write ES2015+ source codes in src/
folder.
npm run build
Run test code in test
folder.
Test textlint rule by textlint-tester.
npm test
MIT © aborazmeh