Skip to content

A minimal 倉頡 (Cong1 Kit3 or CangJie) input method practice.

Notifications You must be signed in to change notification settings

ethanppl/cong1-kit3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

倉頡 (Cong1 Kit3) 輸入法練習

A minimal 倉頡 (Cong1 Kit3 or CangJie) input method practice. Check it out here: https://ethanppl.github.io/cong1-kit3/

  • I built this just because different online practice I found contains ads that I don't like
  • I just want a simple, minimal layout
  • I started with adding event listeners for keypress, which already works for me
  • Then I thought maybe I can try creating a virtual keyboard for mobile as well

This page currently only contains the most common 3000 words. Data came from here:

Getting Started

To run it:

elm reactor

Then visit http://localhost:8000/src/Main.elm

To build it:

elm make src/Main.elm

Why Elm

  • I thought maybe I can try Elm for this one, as someone suggested it to me
  • Turns out Elm is pretty fun to use, the Elm architecture takes some time to learn, but it's worth it
  • It's like the types are teaching you to architect better

Potential Improvements

  • Data:
    • Make answers a list, some words can have multiple code
    • More words
  • UI:
    • Keyboard size and buttons
    • Dark mode
  • Performance and practice:
    • Add history
    • Repeat words that failed or took a longer time
    • Add explanation, maybe link to external webpage
    • Custom practice pack

About

A minimal 倉頡 (Cong1 Kit3 or CangJie) input method practice.

Resources

Stars

Watchers

Forks