textlint-rule-numeral-systems
v1.0.0
Published
Unify the usage of Arabic, Arabic-Indic and Farsi numbers in a single text
Downloads
7
Readme
textlint-rule-numeral-systems
Unify the usage of Arabic, Arabic-Indic and Farsi numbers in a single text
Fixable
textlint --rule numeral-systems --fix README.md
Example
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
Install with npm:
npm install textlint-rule-numeral-systems
Usage
Via .textlintrc.json
(Recommended)
{
"rules": {
"numeral-systems": {
"default_numbers" : "arabic" // can be: 'arabic', 'indic' or 'persian
}
}
}
Via CLI
textlint --rule numeral-systems README.md
Build
Builds source codes for publish to the lib
folder.
You can write ES2015+ source codes in src/
folder.
npm run build
Tests
Run test code in test
folder.
Test textlint rule by textlint-tester.
npm test
License
MIT © aborazmeh