Giter Club home page Giter Club logo

ids-edit's Introduction

IDS Editing Tool for Emacs

This file provides IDS (Ideographic Description Sequence) composition/decomposition tools for Emacs. The IDS represents a structure of Ideographs. For example, “地” can be decomposed to “⿰土也” in IDS, and “⿱艹化” can be composed to “花”. “⿰” and “⿱” are called IDCs (Ideographic Description Characters).

Basic setup

Please BYTE-COMPILE the elisp file. That will integrate data files into compiled lisp file.

(autoload 'ids-edit-mode "ids-edit" nil t) ;; if necessary
(autoload 'ids-edit "ids-edit" nil t)

IDS edit mode

Minor `ids-edit-mode’ will let you input IDCs and compose/decompose ideographs by M-U key.

keycommand
M-0“⿰” (U+2FF0)
M-1“⿱” (U+2FF1)
M-2“⿲” (U+2FF2)
M-3“⿳” (U+2FF3)
M-4“⿴” (U+2FF4)
M-5“⿵” (U+2FF5)
M-6“⿶” (U+2FF6)
M-7“⿷” (U+2FF7)
M-8“⿸” (U+2FF8)
M-9“⿹” (U+2FF9)
M–“⿺” (U+2FFa)
M-=“⿻” (U+2FFb)
M-Uids-edit

Decomposing CJK Ideographs to IDS

Just type `M-U’ (meta-shift-u) after the position of target CJK Ideograph. There should be no numerics, ideographs or IDCs at the cursor. With prefix argument given, it tries to decomposes previous character unconditionally.

Composing IDS to CJK Ideograph

Type `M-U’ on partial IDS. It may contain a (range of) strokes number. When there are multiple candidates, they will all be inserted to the current position with bracket. Attaching G,T,J,K at the end will limit the candidates to specific charset (namely, GB2312, Big5, JISX0213/0212, KSX1001).

For example, “⿰氵20-22J”, with cursor on “⿰” character, will be composed to “[灊灝灞灣]”.

Data Sources

Data ‘ids.txt’ and ‘ucs-strokes.txt’ are taken from http://github.com/cjkvi/. License follows their terms.

ids-edit's People

Contributors

kawabata avatar

Watchers

Christian Wittern avatar  avatar

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.