Skip to content

kisaragi-hiu/cangjie.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cangjie.el

License: GPL v3+ MELPA

Lookup the Cangjie encoding for a given Han character.

Install

cangjie.el is available on MELPA.

use-package

(use-package cangjie)
(straight-use-package 'cangjie)

Manually

Put cangjie.el under your load-path, then (require 'cangjie) in your init file.

Use

  • cangjie-at-point: Lookup Cangjie encoding for character at point.
  • cangjie (CHARACTER): Lookup Cangjie encoding for CHARACTER (asked in prompt when called interactively).

Customize

cangjie-source: the dictionary to be used by cangjie.

Its value can be:

  • a path, which makes cangjie read from that path if it's a valid RIME dictionary.
  • 'rime, to download the dictionary from https://github.com/rime/rime-cangjie, and save it for future use.
  • wiktionary-raw, to output the line with the Cangjie code on the character's Wiktionary page,
  • 'wiktionary, or anything else, to grep the Wiktionary page like 'wiktionary-raw, then try to remove the markup in the result, leaving just the Cangjie code.

Credits

This is the first standalone Emacs package I've written, so I needed some directions. emacs-powerthesaurus and define-word served as really good references for me to follow.

I'm using the Cangjie dictionary from RIME, rime-cangjie.

About

Lookup Cangjie encoding of a Han character

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published