Code Monkey home page Code Monkey logo

seri's Introduction

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.

seri's People

Contributors

skial avatar

Stargazers

 avatar

Watchers

 avatar  avatar

seri's Issues

Ranges.remove failure

trace( rs.remove( new Range(0x7F + 1, 0x10FFFF) ) ); returns false on a with a Ranges object { min:9, max: 120171}.

Range.union appears to fail

var a = new Ranges([
        ':'.code, {min:'A'.code, max:'Z'.code}, '_'.code,
        {min:'a'.code, max:'z'.code}, {min:0x00C0, max:0x00D6},
        {min:0x00D8, max:0x00F6}, {min:0x00F8, max:0x02FF}, 
        {min:0x0370, max:0x037D}, {min:0x037F, max:0x1FFF}, 
        {min:0x200C, max:0x200D}, {min:0x2070, max:0x218F}, 
        {min:0x2C00, max:0x2FEF}, {min:0x3001, max:0xD7FF}, 
        {min:0xF900, max:0xFDCF}, {min:0xFDF0, max:0xFFFD}, 
        {min:0x10000, max:0xEFFFF}
    ]);
Ranges.union( a, new Ranges([
        '-'.code, '.'.code, {min:'0'.code, max:'9'.code},
        0x00B7, {min:0x0300, max:0x036F}, {min:0x203F, max:0x2040}
    ]) );

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.