tibetan-regexps

1.0.3 • Public • Published

tibetan-regexps

Useful RegExps to deal with Unicode Tibetan.

Usage

RegExps

  import TibetanRegExps from 'tibetan-regexps'

  TibetanRegExps.tibetanGroups
  # => /([†◌卍卐\u{f00}-\u{fda}\u{f021}-\u{f042}\u{f162}-\u{f588}]+)/giu
  var match = "སངས་རྒྱས། ཆོས། དགེ་འདུན།".match(TibetanRegExps.tibetanGroups);
  # match[0] => "སངས་རྒྱས།"
  # match[1] => "ཆོས།"
  # match[2] => "དགེ་འདུན།"

  TibetanRegExps.onlyTibetanWithSpaces
  TibetanRegExps.onlyTibetanWithoutSpaces
  TibetanRegExps.anythingNonTibetan
  TibetanRegExps.punctuation
  TibetanRegExps.beginningPunctuation
  TibetanRegExps.endPunctuation

Expressions (strings) used to build the RegExps

  TibetanRegExps.expressions.allTibetanCharacters
  TibetanRegExps.expressions.allTibetanCharactersRange
  TibetanRegExps.expressions.anythingNonTibetanRange
  TibetanRegExps.expressions.punctuationCharacters
  TibetanRegExps.expressions.punctuationCharactersRange

Package Sidebar

Install

npm i tibetan-regexps

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

29.6 kB

Total Files

15

Last publish

Collaborators

  • jerefrer