Commit Graph

67 Commits

Author SHA1 Message Date
ShikiSuen bcbb7e5cd7 TDKCandidates // Fix font clipping when lang identifier is enabled. 2022-12-17 14:49:05 +08:00
ShikiSuen 5b0c80db1b NotifierUI // Use extended NSOrderedSet in lieu of array. 2022-12-17 14:49:05 +08:00
ShikiSuen 98df537d81 NotifierUI // Fix memory and CPU issues by limiting instances. 2022-12-17 14:49:05 +08:00
ShikiSuen cb81da6581 Repo // Clang-format. 2022-12-17 14:49:05 +08:00
ShikiSuen 1f19b9b8c4 TDKCandidates // Fix outdated README. 2022-12-17 14:49:05 +08:00
ShikiSuen 030a8cb776 CtlCandidateTDK // Vertical candidate layout support, etc.
- SP2: Fix a color scheme mistake in bright mode.
2022-12-17 14:49:05 +08:00
ShikiSuen 8fd236a065 Repo // Removing page button toggle. 2022-12-17 14:49:05 +08:00
ShikiSuen 0def927690 Repo // Allow turning off CapsLock notifications, etc. 2022-12-17 14:49:05 +08:00
ShikiSuen 227d0fb1bc Repo // Require that minimum candidate key count is 6, etc.
- SP2 Fix: Shared // Add missing dependency.
2022-12-17 14:49:05 +08:00
ShikiSuen b117710579 Repo // Deprecating Zonble's Voltaire-Swift candidate window. 2022-12-17 14:49:05 +08:00
ShikiSuen d531f04fa9 CtlCandidateTDK // Auto-adjust window height. 2022-12-17 14:49:05 +08:00
ShikiSuen 1be59aa364 CtlCandidateTDK // Limit rows per page to 3. 2022-12-17 14:49:05 +08:00
ShikiSuen cef1a2a3f5 CtlCandidateTDK // DIfferentiate page flipping and row flipping. 2022-12-17 14:49:05 +08:00
ShikiSuen b38938de54 CtlCandidateTDK // Performance boost. 2022-12-17 14:49:05 +08:00
ShikiSuen eadae22dbb Repo // Introducing CtlCandidateTDK (horizontal). 2022-12-17 14:49:05 +08:00
ShikiSuen 72b1099e63 CtlCandidate // Comments update. 2022-12-17 14:49:05 +08:00
ShikiSuen 560920150d Repo // Fix copyright information among certain headers. 2022-12-17 14:49:05 +08:00
ShikiSuen c04684d5e4 NotifierUI // Deduplicate messages when necessary. 2022-12-17 14:49:05 +08:00
ShikiSuen 082e4ba455 NotifierUI // Tweak how out-of-date notifications look like. 2022-12-17 14:49:05 +08:00
ShikiSuen b8ddfcabbf SessionCtl // Remove useless delegate symbols, etc. 2022-12-17 14:49:05 +08:00
ShikiSuen 216fe6e1ba Repo // "ctlInputMethod" -> "SessionCtl". 2022-12-17 14:49:05 +08:00
ShikiSuen e9137b9e53 CtlCandidate(s) // Refactor with partial packaging.
- The CtlCandidateIMK is not package-able due to its utilization of bridging-header. There is no workaround available at this moment.
2022-12-17 14:49:05 +08:00
ShikiSuen 7c3d90dc80 LMI // Introducing hasKeyValuePairFor(), using it in LMMgr. 2022-12-17 14:49:05 +08:00
ShikiSuen 45f595920a PCB // Disable movability. 2022-12-17 14:49:05 +08:00
ShikiSuen 2f1b4f8aeb TooltipUI // Disable movability. 2022-12-17 14:49:05 +08:00
ShikiSuen dbd7dc92a1 PCB // Pack PopupCompositionBuffer into Swift package. 2022-12-17 14:49:05 +08:00
ShikiSuen 1648152b24 Repo // Move IMEState-related protocols to Shared package. 2022-12-17 14:49:05 +08:00
ShikiSuen abec924d16 TooltipUI // Pack ctlTooltip into a package. 2022-12-17 14:49:05 +08:00
ShikiSuen 1f5481a8d4 NotifierUI // Refactor into a standalone package. 2022-12-17 14:49:05 +08:00
ShikiSuen 50396a42c6 Prefs // +onlyLoadFactoryLangModelsIfNeeded. 2022-12-17 14:49:04 +08:00
ShikiSuen d3668d9f0b LMCandidateNode // Use GCD on load. 2022-12-17 14:49:04 +08:00
ShikiSuen 9a58893585 LMI // Apply GCD to all functions loading user dictionaries. 2022-12-17 14:49:04 +08:00
ShikiSuen f80c13331d Repo // Pack InputMode typedefs into Shared package. 2022-12-17 14:49:04 +08:00
ShikiSuen 03d4099894 KeyHandler // Use PrefMgrProtocol delegate to handle UserDefaults. 2022-12-17 14:49:04 +08:00
ShikiSuen 9d077a9d49 Repo // Massive refactor & renovation.
- This commit is a massive refactor update towards the current vChewing codebase, modernizing the entire project structure.
- Put things into packages to boost compile speed.
- Also: IMKCandidates // macOS 10.13 High Sierra compatibility.
- ctlIME // Remove duplicated setValue().
2022-12-17 14:49:04 +08:00
ShikiSuen ce6e8453e7 Removing everything. 2022-12-17 14:23:03 +08:00
Lukhnos Liu 2091c1dc7d Format ObjC code with clang-format, WebKit style 2022-02-19 08:26:28 -08:00
Lukhnos Liu c18f497a55 Use backward-compatible Swift in certain places
Older Swift compiler does not allow declaring certain variables that
have the same names with those outside of their scope, even though the
scoping rules should allow them. This makes the code buildable with
Xcode 12.4 again.
2022-02-02 09:32:02 -08:00
zonble 0ff36cde88 Updates copyright info and CI settings. 2022-02-03 00:46:46 +08:00
zonble b5220cbfe3 Add tests. 2022-02-03 00:02:23 +08:00
zonble ec2fb7023c Renames `var split` to `func split()`. 2022-02-02 23:01:16 +08:00
zonble f39b4fa0bc Moves the Swift StringUtils class to a Swift package. 2022-02-02 22:47:15 +08:00
zonble 0fffe6f082 Fixes test cases. 2022-01-31 14:27:57 +08:00
zonble 169d03ab9b Minor changes on the associated phrases.
1. Removes the tooltip on the candidate window to make the exprience
   looks like OpenVanilla.
2. Adds a Shift key symbol on the key label.
2022-01-31 14:16:16 +08:00
zonble 2ebc789030 Implements the associated phrases function.
Since we use states manage the input flow in McBopomofo, implementing this function becomes easy. What I did is to create a new state, Associated Phrases state, and let the key handler to emit such a state just after emitting a Committing state.

When the input method controller is under Associated Phrase state, it shows the candidate window with a tooltip, and only accept candidate keys with the shift key. The key handler uses the characters without modifiers in an NSEvent object to find if there is any matching candidate label, so I added a new member "inputTextIgnoringModifiers" to KeyHandlerInput.

I use KeyValueBlobReader to read the associated phrases. I use the cin file from OpenVanilla project but removed the head and tail of the file to pass KeyValueBlobReader's validation.
2022-01-31 13:23:49 +08:00
zonble 1c339c622e Loads the user phrases just after the files are changes.
The revision uses a FSEventStream to monitor the change of the folder
that stores user phrases.
2022-01-31 04:29:53 +08:00
zonble 4466564e25 Gives a minial cell size in the horizontal candidate window.
It prevents the size of the window from being always changing when using
the punctuation list.
2022-01-30 08:06:22 +08:00
Weizhong Yang a.k.a zonble 777994edcc Merge pull request #245 from lukhnos/update-copyright-headers
Update copyright headers (fixes #213)
2022-01-19 13:29:23 +08:00
zonble 95f88ce802 Fixes an underlying issue in the tableViewSelectionDidChange method. 2022-01-19 13:20:27 +08:00
Lukhnos Liu 75f321f088 Update copyright headers (fixes #213) 2022-01-18 14:21:55 -08:00