Skip to content

yanyingwang/asdfzma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

键序郑码

按照键盘上的按键序列(ASDF...)重新排版之后的郑码(英文名:asdfzma)。

why this project

我在原本设计我的编程语言的时候,意识到我需要一种形码输入方案来输入类中文字符,继而对郑码输入方案做了一些调整,并新赋名之为键序郑码(英文:asdfzma)。

If you are looking for an English version of this passage, please go to https://www.yanying.wang/2022/09/mzhengma.html.

大部分的人都知道五笔,郑码跟五笔类似,也是一种形码输入方案。不同的是,郑码的字根拆分更加的规则有序(可以用来检索输入中日韩三国简繁汉字,五笔只检索输入简体中文)。另外,与五笔的ASDFG为横区、HJKL为竖区等等的划分区域方式不同,郑码是按照A-Z的字母排列顺序来分配字根的,也是因此,郑码在具体的使用上不如五笔直观。

比如,以下为键盘中字母的排列分布:

Q- W- E- R-  +T Y+  U- I- O- P-
A- S- D- F-  +G H+  J- K- L- ;;
Z- X- C- V-  +B N+  M- .< .> /?

如果A为01,B为02,C为03,依次类推直到Z为26的话,那么对于郑码而言会有:

01-08为横起笔的字根区;09-12为竖起笔的字根区;13-18为撇起笔的字根区;19-23为捺起笔的字根区;24-26为折起笔的字根区。

然而如果我们修改郑码的字根键盘分布为类似于五笔的划分方式,那么此输入法就不仅组词逻辑严整,而且物理效果人性:

18 17 16 15  14 19  20 21 22 23
04 03 02 01  13 09  10 11 12 ;:
08 07 06 05  24 25  26 .< .> /?

总的来说,原郑码的字母被重新做了映射,如下:

'((#\A #\F)
  (#\B #\D)
  (#\C #\S)
  (#\D #\A)
  (#\E #\V)
  (#\F #\C)
  (#\G #\X)
  (#\H #\Z)
  (#\I #\H)
  (#\J #\J)
  (#\K #\K)
  (#\L #\L)
  (#\M #\G)
  (#\N #\T)
  (#\O #\R)
  (#\P #\E)
  (#\Q #\W)
  (#\R #\Q)
  (#\S #\Y)
  (#\T #\U)
  (#\U #\I)
  (#\V #\O)
  (#\W #\P)
  (#\X #\B)
  (#\Y #\N)
  (#\Z #\M))

例如,“字”原本的编码为“WDYA”,被重新映射后为“PANF”。

how to run and gen dict data

  • Run zm-to-mzm.rkt to gen data.mzm.txt
  • Check README.md of each sub directories for next.

install fonts

Since Zhengma is able to input more than 60000 chinese characters, your fonts may not able to show them correctly. If so, please go to install (中华书局宋体)ZhongHuaSong font: https://github.com/yanyingwang/favfonts

inputing

input-cqm

cheat sheet

cheat-sheet

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages