Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

skial/seri

Open more actions menu

Repository files navigation

seri

Haitian Creole for range

Seri provides convinence methods to Unicode data. Get the range of codepoints for a specific Block, Script or Category. Get an array of available Blocks, Scripts or Category identifiers.

Php Python Java C# Js/Node Interp Neko HashLink Lua CPP

Installation

lix install gh:skial/seri

API

Seri API

 class Seri {
	public static function getCategory(category:String):Ranges;
	public static function getScript(script:String):Ranges;
	public static function getBlock(block:String):Range;
}

Adding a new or rebuilding a version.

Download the following:

  • Blocks.txt
  • DerivedCoreProperties.txt
  • PropList.txt
  • Scripts.txt
  • UnicodeData.txt

from the Unicode site and save to res/{version}/ as txt or gzips. Unicode version 15.1.0 files can be found at https://www.unicode.org/Public/15.1.0/ucd/.

Then run:

  • haxe build.template.hxml -D seri.version={version} -D dryrun

If that run without errors being thrown, run:

  • haxe build.template.hxml -D seri.version={version} -D save.

This will save Haxe files into src/uhx/sys/seri/v{version}. You need to update Block.hx, Script.hx, Category.hx, Version.hx and Unicode.hx manually to point to the latest release.

About

Unicode information. Blocks, scripts, classes and ranges for Haxe. [Experimental]

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.