Skip to content

Commit b467143

Browse files
committed
Don't store defaults for decomposition
1 parent 11cc0d0 commit b467143

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

data/unicode.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:1a5fe9c6fa1582509d67ca8f78a665e93cff78465a0668a91dec07ed675982fe
3-
size 120256673
2+
oid sha256:e5ba0ca839cff83cb3bd5471ff5d88d6ff8c5ad40b81054342f9b867fbb7ab79
3+
size 119644129

scripts/transformers/expander.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ export const expander =
4545
return {
4646
...currentValue,
4747
code,
48-
decomposition,
48+
// Do not include decomposition if it is the same as the character
49+
decomposition:
50+
decomposition.length > 1 || decomposition[0] !== code
51+
? decomposition
52+
: [],
4953
// Table 4-8 Name Derivation Rule Prefix Strings
5054
name: getName(currentValue.name, code, decomposition, jamo),
5155
};

0 commit comments

Comments
 (0)