Skip to content

aborazmeh/textlint-rule-numeral-systems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textlint-rule-numeral-systems Actions Status: test textlint rule

Unify the usage of Arabic, Arabic-Indic and Farsi numbers in a single text

Fixable

textlint rule

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published