Skip to content
Projects

About

hallelujahIM(哈利路亚 英文输入法) is an intelligent English input method with auto-suggestions and spell check features.

Other Projects

How these counts are measured

Measured star growth

in 24h
+1
in 7 days
+3
in 15 days
+4
in 1 month
+11

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README-En.md

Original

Platform:macOS Platform:windows Platform:linux github actions License: GPL v3

hallelujahIM

hallelujahIM is an english input method with auto-suggestions and spell check features.

  1. The auto-suggestion words are derived from Google's 1/3 million most frequent English words. I have refined this list to 140,402 words, removing nearly all misspelled ones. Candidate words are sorted by frequency.
  2. HallelujahIM also functions as a Spell-Checker: when you input an incorrect word, it will suggest the right alternatives.
  3. HallelujahIM also serves as a Text Expander: You can define your favorite substitutions on Hallelujah's native Preferences window, such as {"te":"text expander", "yem":"you expand me"}.
  4. Instant translation is available as you type words (currently, it only supports English-to-Chinese, but the translation dictionary can be configured later on).
  5. Pinyin to English: you can input Hanyu Pinyin and receive the matching English word.
  6. Fuzzy phonetic match is another feature. For example, you can input cerrage or kerrage to get courage, and aosome or ausome to get awesome.
  7. The right Command key cycles through three input modes: intelligent English → Pinyin → traditional English (raw, keys pass straight through to the app) → back to intelligent English. Pinyin is skipped while it is disabled in Preferences (it is off by default).
  8. Pinyin to Chinese: Press the right Command key to cycle into Pinyin input mode (enable Enable pinyin (Rime) input in Preferences first). Type Chinese pinyin and get Chinese hanzi candidates; space or a digit key commits the highlighted candidate, Enter commits it without a trailing space. The raw pinyin always occupies a configurable candidate position (the 2nd by default, configurable 1st–5th in Preferences); pressing its digit commits the typed input as-is (space follows the commit-word-with-space preference). Non-pinyin input can offer up to three English completions. These lead by default (book, star), but strong pinyin with a complete prefix of at least three letters covering at least 70% of the input puts three Chinese candidates first (wend → 稳定、温度、文档), keeping the English completions after them. Press right Command again to cycle back to intelligent English input mode.
  9. Custom grid candidate panel: the candidate panel is drawn by the input method itself (CandidatePanel + CandidatePanelState): a grid of 5–9 columns (default 7; 9 is the ceiling because digits 1-9 are the selection keys), configurable in Preferences, with 50 Rime candidates per page. At most five rows are visible; keyboard navigation scrolls the candidate window at its edges, but no visible scrollbar is drawn. The grid layout follows SwiftType's Grid Panel design: arrow-key navigation, the first ↓ expands the grid, afterwards all four arrows navigate (another ↑ at the first row collapses it), ←/→ cycle within the active row, and space/Enter/digit keys commit the highlighted candidate.
  10. Translation drawn inside the candidate panel (replaces the separate annotation window): the highlighted word's phonetic symbol and gloss are drawn as a compact row at the bottom of the panel (auto-hidden when there's no translation) instead of a floating window. Refreshes as you move the highlight.
  11. Candidate panel skins: six built-in skins — Matrix (default), Verdant, Carbon, Graphite, Tangerine and Classic — switchable from the Skin dropdown on the preference web page, applied live. The five colorful skins are cloned from Remix-Design/Sogou-Input-Skin's open-source design mockups.

download and install

  1. download releases
  1. unzip the app, copy it to /Library/Input\ Methods/ or ~/Library/Input\ Methods/
  2. go to System Preferences --> Input Sources --> click the + --> select English --> select hallelujah setup
  3. switch to hallelujah input method

⚠️ Note: Because this app is not distributed through the App Store and is not signed/notarized with a Developer ID, macOS will show a security warning when you open the .pkg installer. How to get past it depends on your macOS version:

  • macOS 14 and earlier: right-click the hallelujah .pkg installer and choose Open to start the installation.
  • macOS 15 (Sequoia) and later: the right-click Open trick no longer works. Open System Settings → Privacy & Security, scroll down to the notice about the blocked installer, and click Open Anyway.
  • Alternatively, remove the quarantine attribute in Terminal, then double-click the pkg: xattr -d com.apple.quarantine ~/Downloads/hallelujah-*.pkg

⚠️ Note: If the input method isn't added automatically after restarting, go to System Settings → Keyboard → Text Input and add it manually.

update/reinstall

  1. delete the hallelujah from Input Sources
  2. kill the old hallelujah Process (kill it by pkill -9 hallelujah, check it been killed via ps ax|grep hallelujah )
  3. replace the hallelujah app in /Library/Input Methods/.
  4. add the hallelujah to Input Sources
  5. switch to hallelujah, use it.

Why it's named hallelujahIM?

Inspired by hallelujah_autocompletion.

preferences setting

click Preferences... in the input method menu to open the native preferences window. preference

web-preference

  • Enable pinyin (Rime) input: off by default. When on, the right-Command cycle passes through the Pinyin mode, where typing pinyin yields Chinese hanzi candidates; when off, the cycle alternates between intelligent English and traditional English only.
  • Pinyin raw input candidate position: the 2nd by default. The typed pinyin always occupies this candidate position in the panel (configurable 1st–5th); pressing its digit commits the typed input as-is. Set it to the 1st and space/Enter commit the raw input.
  • Grid columns (5-9): 7 by default (9 is the ceiling because digits 1-9 are the selection keys; below 5 there is no reason to have a grid at all). Column widths fit the rows that are on screen — the first row while collapsed (so the bar stays compact), the visible rows once expanded (never reserving room for words scrolled out of view). Opening or closing the grid is therefore a deliberate re-fit, and scrolling to another screenful re-fits again, but navigating within a screenful never moves a column. Every cell reserves the same number gutter, so words line up whether or not their row shows selection keys. The first ↓ press expands the panel to all rows, afterwards all four arrow keys navigate (←/→ cycle within the active row, ↑ again at the first row collapses), and space/Enter/digits commit the highlighted candidate. The highlighted word's phonetic and gloss are drawn as a bottom row inside the panel and auto-hide when there's no translation.
  • Skin: the candidate panel's palette, Matrix by default (dark navy background, teal highlight). Also available: Verdant (white, rounded, green highlight), Carbon (charcoal, white text), Graphite (plain white, black text), Tangerine (white with an orange border and highlight) and Classic (the original dark palette). Switching applies live; no restart needed. The five colorful skins are cloned from Remix-Design/Sogou-Input-Skin.

Development

Building, debugging, testing, packaging, data storage and implementation notes live in dev-guide.md. Run sh format-code.sh before submitting a PR.

License

GPL3(GNU GENERAL PUBLIC LICENSE Version 3)

Thanks to the following projects:

  1. FMDB, SQLite wrapper for efficient prefix matching queries.
  2. cc-cedict: dictionary/cedict.json is transformed from it and used to build the cedict_pinyin table.
  3. librime, the Rime input method engine powering the pinyin mode, together with rime-prelude, rime-luna-pinyin (schema and dictionary), rime-stroke (stroke reverse lookup), rime-essay (word frequencies) and OpenCC (Chinese conversion). The extended terminology dictionary rime-data/cs_ai.dict.yaml comes from the v0.4.0 release of mizorewww/rime-qwen-freq (MIT license); its CS/AI term frequencies were calibrated offline with Qwen3-14B-Base.
  4. cmudict and https://github.com/mphilli/English-to-IPA
  5. talisman, using its phonex algorithm to implement fuzzy phonics match.
  6. MDCDamerauLevenshtein, using it to calculate the edit distance.
  7. squirrel, I shamelessly copied the script to install and build pkg App for Mac.
  8. SwiftType, the grid candidate panel's navigation semantics (first-press expand, four-way navigation, in-row cycling) are inspired by its Grid Panel implementation. Thanks mgxv!
  9. Sogou-Input-Skin by xiaochun, the five colorful candidate-panel skins (Matrix, Verdant, Carbon, Graphite, Tangerine) are cloned from its open-source design mockups.

snapshots

english-grid-h-closed english-grid-h pinyin-grid-h

Paid Support

If functional you need is missing but you're ready to pay for it, feel free to contact me. If not, create an issue anyway, I'll take a look as soon as I can.

Contact me

  • wechat: dongyuwei
  • gmail: newdongyuwei

Explore related projects

Loading…