Skip to content

Commit

Permalink
Upgrade to Unicode 9
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakjois committed Aug 31, 2016
1 parent e42342d commit aef8488
Show file tree
Hide file tree
Showing 4 changed files with 1,312 additions and 1,152 deletions.
22 changes: 22 additions & 0 deletions luaucdn-0.0.3-0.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package = "luaucdn"
version = "0.0.3-0"
source = {
url = "git://github.com/deepakjois/luaucdn",
tag = "v0.0.3"
}
description = {
summary = "Lua bindings for ucdn",
homepage = "https://github.com/deepakjois/luaucdn",
license = "MIT",
maintainer = "Deepak Jois <[email protected]>"
}
dependencies = {
"lua ~> 5.2"
}
build = {
type = "builtin",
modules = {
ucdn = "src/ucdn.lua",
luaucdn = {"src/luaucdn/ucdn.c", "src/luaucdn/luaucdn.c"}
}
}
4 changes: 2 additions & 2 deletions spec/ucdn_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ local ucdn = require("ucdn")

describe("ucdn module", function()

it("contains v8.0.0 of the Unicode Character Database", function()
assert.are_equal("8.0.0", ucdn.get_unicode_version())
it("contains v9.0.0 of the Unicode Character Database", function()
assert.are_equal("9.0.0", ucdn.get_unicode_version())
end)

it("returns the Bidi_Class propety value for a given codepoint", function()
Expand Down
6 changes: 6 additions & 0 deletions src/luaucdn/ucdn.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ extern "C" {
#define UCDN_SCRIPT_MULTANI 129
#define UCDN_SCRIPT_OLD_HUNGARIAN 130
#define UCDN_SCRIPT_SIGNWRITING 131
#define UCDN_SCRIPT_ADLAM 132
#define UCDN_SCRIPT_BHAIKSUKI 133
#define UCDN_SCRIPT_MARCHEN 134
#define UCDN_SCRIPT_NEWA 135
#define UCDN_SCRIPT_OSAGE 136
#define UCDN_SCRIPT_TANGUT 137

#define UCDN_LINEBREAK_CLASS_OP 0
#define UCDN_LINEBREAK_CLASS_CL 1
Expand Down
Loading

0 comments on commit aef8488

Please sign in to comment.