arabic-persian-reshaper
Node.js module for reshaping Right-To-Left (Arabic/Persian) charators in string
Last updated 6 months ago by soimy .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install arabic-persian-reshaper 
SYNC missed versions from official npm registry.

arabic-persian-reshaper

Node.js module for reshaping Right-To-Left (Arabic/Persian) charators in string

Usage:

const reshaper = require('arabic-persian-reshaper');
reshaper.PersianShaper.convertArabic('ففف ف') // will reshape each charactor based on their position using Persian positions
reshaper.ArabicShaper.convertArabic('ففف ف') // will reshape each charactor based on their position using Arabic positions

Special thanks to @alex-clay to add support for arabic charactors!(I don't know it's missing)

Changes in alex's fork:

  • added charset.arabic.txt asset for soimy/msdf-bmfont-xml. This includes characters in Arabic that are not in Persian and it could be merged with charset.persian.txt safely.
  • renamed index.js to PersianShaper.js
  • added ArabicShaper.js which is modified from PersianShaper.js (index.js) to include characters found in Arabic. This cannot be safely merged with PersianShaper in its current form because JavaScript charCodeAt assigns the charcode for the final form of ALEF_MAKSURA 1640 to YEH_Farsi 1709

Current Tags

  • 1.0.1                                ...           latest (6 months ago)

2 Versions

  • 1.0.1                                ...           6 months ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |