Skip to content

Commit

Permalink
Organize Hangul Unicode functions into directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mooniker committed Sep 23, 2019
1 parent bb05c53 commit e86f5e2
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Expand Up @@ -3,13 +3,13 @@ const {
computeLIndex,
computeVIndex,
computeTIndex
} = require("./hangul.computations");
} = require("./computations");

const {
JAMO_L_TABLE,
JAMO_V_TABLE,
JAMO_T_TABLE
} = require("./hangul.shortNames");
} = require("./shortNames");

/**
* Generates a letter/jamo-derived short name for a given precomposed Hangul syllable
Expand Down
@@ -1,4 +1,4 @@
const { getHangulCharName } = require("./hangul.characterNameGeneration");
const { getHangulCharName } = require("./characterNameGeneration");
const lo = require("unicode/category/Lo");

const hangulCharNames = {
Expand Down
2 changes: 1 addition & 1 deletion hangul.compose.js → hangul/compose.js
Expand Up @@ -5,7 +5,7 @@ const {
TBase,
NCount,
TCount
} = require("./hangul.constraints");
} = require("./constraints");

/**
* Computes a precomposed/composite syllable mapping for a given a Hangul letter (jamo) sequence
Expand Down
2 changes: 1 addition & 1 deletion hangul.compose.test.js → hangul/compose.test.js
@@ -1,4 +1,4 @@
const { arithmeticPrimaryCompositeMapping } = require("./hangul.compose");
const { arithmeticPrimaryCompositeMapping } = require("./compose");

describe("arithmeticPrimaryCompositeMapping", () => {
test(`should compose (0x1111, 0x1171, 0x11b6) ${String.fromCodePoint(
Expand Down
2 changes: 1 addition & 1 deletion hangul.computations.js → hangul/computations.js
@@ -1,4 +1,4 @@
const { SBase, NCount, TCount, SCount } = require("./hangul.constraints");
const { SBase, NCount, TCount, SCount } = require("./constraints");

/**
* Returns an integer division quotient (rounded down)
Expand Down
Expand Up @@ -3,7 +3,7 @@ const {
computeSIndex,
computeVIndex,
computeLIndex
} = require("./hangul.computations");
} = require("./computations");

describe("Integer division function", () => {
test("should divide 5 by 2 and round the quotient down to the nearest integer", () => {
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions hangul.decompose.js → hangul/decompose.js
@@ -1,12 +1,12 @@
const { SBase, LBase, VBase, TBase } = require("./hangul.constraints");
const { SBase, LBase, VBase, TBase } = require("./constraints");

const {
computeSIndex,
computeLIndex,
computeVIndex,
computeLVIndex,
computeTIndex
} = require("./hangul.computations");
} = require("./computations");

/**
* Based on "Arithmetic Decomposition Mapping" as described in Unicode core spec for "LV" Hangul syllable types
Expand Down
2 changes: 1 addition & 1 deletion hangul.decompose.test.js → hangul/decompose.test.js
Expand Up @@ -3,7 +3,7 @@ const {
arithmeticDecompositionMappingLVT,
decomposeHangulChar,
decomposeHangul
} = require("./hangul.decompose");
} = require("./decompose");

const hangulHexCases = {
: [0x1112, 0x116e, 0x11ab],
Expand Down
File renamed without changes.

0 comments on commit e86f5e2

Please sign in to comment.