1.0.3 • Published 6 months ago

tibetan-regexps v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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
1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago