Skip to content

Script for generating IDS combinations for CJK Unified ideographs

License

Notifications You must be signed in to change notification settings

Sakamitsu/ids-combinations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

A script for generating all possible combinations that a Chinese character can consist of.

The IDS (Ideographic Description Sequence) is used to represent the composition.

This script can be useful in creating Kinship diagrams.

For example:

img

Usage

The script reads a json file of the following form (the order of the characters doesn't matter):

[
    {"id": "", "children" : null},
    {"id": "", "children" : null},
    {"id": "丿", "children" : null},
    {"id": "", "children" : null},
    {"id": "", "children" : ["",""]},
    {"id": "", "children" : ["丿",""]},
    {"id": "", "children" : ["",""]}
]

And creates a json file in the src/files/output.json folder. Example of output for :

 {
    "id": "",
    "children": [
      "",
      ""
    ],
    "result": [
      "十八",
      "十丿乀",
      "一丨八",
      "一丨丿乀"
    ]
  }

Installation

Make sure that you install rust. Then clone this repository and run this command in project directory:

cargo run --release  

License

MIT

About

Script for generating IDS combinations for CJK Unified ideographs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages