zonble
d11daacbd2
Refactors the keyboard layout enum.
2022-01-14 19:47:53 +08:00
zonble
9faed2153f
Uses property wrappers to manage preferences.
2022-01-14 18:06:26 +08:00
zonble
fcdd59dd6b
Wraps OpenCCBridge into a SPM package.
2022-01-14 00:57:41 +08:00
zonble
e01eb46c9f
Wraps InputSourceHelper to a SPM package.
2022-01-14 00:43:21 +08:00
zonble
d4772ffa99
Adds notifier UI to notify user Chinese conversion on/off.
2022-01-13 23:38:56 +08:00
zonble
a7e38b5b2d
Fine-tunes tooltip UI.
2022-01-13 22:00:29 +08:00
zonble
366453820d
Adds a tiny tooltop for shift-left/right selections.
2022-01-13 21:47:52 +08:00
zonble
4c1781d970
Renames half-size to half-width.
2022-01-13 19:59:49 +08:00
zonble
9cd2306313
Adds emacs-style hotkeys.
2022-01-13 19:57:08 +08:00
zonble
232a944953
Implements half-size punctuations.
2022-01-13 17:07:22 +08:00
zonble
d590d748f8
Adds UserPhrasesLM for user phrases.
...
Since there is no probability information for users' custom phrases,
they should be stored in a format differs from data.txt. Using the same
format and FastLM to parse user phrases just because of laziness but it
is not the right way.
The pull request adds a new language model class to parse user phrases.
It also update the input method controller to adopt the new user phrase
format.
2022-01-12 16:53:51 +08:00
zonble
abdf97f652
Adds McBopomofoLM as the facade of three language models.
...
- main language model
- user phrases
- user excluded phrases
2022-01-12 12:26:24 +08:00
zonble
cbd21cbe1d
Updates localization.
2022-01-12 01:10:39 +08:00
zonble
ea36061a41
Implements excluding punctuations.
2022-01-12 00:36:55 +08:00
zonble
9b485b799c
Implements excluding phrases.
2022-01-12 00:16:55 +08:00
zonble
144d133463
Adds Language Model Manager.
...
The reference of the global language models were stored in the class
InputMethodController, however, the global models are global but not a
part of the input method controller, and the input method controller
only use one of the models (McBopomofo/Plain Bopomofo). I guess it
somehow violates SRP and there should be a better place for the global
models.
2022-01-11 17:12:58 +08:00
zonble
f339948219
Fixes duplicated code and typos.
2022-01-11 13:46:29 +08:00
zonble
a7b2edcf26
Converts AppDelegate to Swift.
2022-01-11 02:22:13 +08:00
zonble
61e2751702
Converts candidate UI to a Swift package.
2022-01-11 01:07:17 +08:00
zonble
f7e927d67d
Starts to use Swift candidate UI.
...
There are bugs still.
2022-01-11 00:30:02 +08:00
zonble
a97cc5ca6c
Converts VerticalCandidateController to Swift.
2022-01-11 00:03:32 +08:00
zonble
75a0f68a9c
Fixes the bug that I forgot to create the user phrases folder.
...
There was a legacy user override model which creates a folder and a
plist file. If a user uses McBopomofo for years, the folder would
exist. However, when the old override model was removed, I forgot
to create the folder for the new user phrase file.
The bug would let the users with new installation of McBopomofo unable
to add user phrases.
2022-01-10 21:59:18 +08:00
zonble
0af238ef79
Cleans-up unused logs.
2022-01-09 08:38:32 -08:00
zonble
a5247d958c
Makes it able to reload user phrases.
2022-01-09 08:38:32 -08:00
zonble
e909dc20b5
Uses user phrases in the block builder.
2022-01-09 08:38:32 -08:00
zonble
6f761ecbcd
Implements adding phrase from shift and arrow keys.
2022-01-09 08:38:32 -08:00
zonble
358462dff1
[WIP] Starts to work on the user phrases.
2022-01-09 08:38:32 -08:00
ovadmin
aeb774a8ed
小幅重構重複的程式碼
2022-01-06 18:28:37 -08:00
ovadmin
2e8e78971c
傳統注音不要記住用戶選字
2022-01-06 18:28:37 -08:00
ovadmin
eef6f8c0ce
加大用戶選字詞模型的容量跟半衰期
2022-01-06 18:28:37 -08:00
ovadmin
3e0e859feb
將用戶選字記憶機制整合入 InputMethodController
2022-01-06 18:28:37 -08:00
ovadmin
3760d24350
移除早期的候選歷史記憶機制
...
這個機制從未正式發布,設計本身也有很多缺陷,因此決定移除。
2022-01-06 18:28:29 -08:00
zonble
23100153cc
Adds an option to clear entire input buffer by ESC key.
...
This fixes #146 .
2022-01-02 22:09:23 +08:00
Lukhnos Liu
5ff3efb385
Revert "Stop using IMK's showPreferences:"
...
This reverts commit 69e463958e .
2021-11-24 21:16:20 -08:00
Lukhnos Liu
69e463958e
Stop using IMK's showPreferences:
...
This turns out to be unreliable on macOS 12.
2021-11-23 19:04:42 -08:00
zonble
164705e6f3
Allows users to use left and right key to go to another candidate page in the vertical candidates list.
...
This fixes #61 .
2021-11-20 22:43:23 -08:00
zonble
e27f5babe1
Allows auto-commiting the first candidate when users input a punctuation in plan BPMF mode.
2021-11-20 22:43:23 -08:00
zonble
385638c3b9
Allows commit the first canidate while typing a punctuation in plain BPMF mode.
2021-11-20 22:43:23 -08:00
zonble
c17d991718
Also applies Chinese conversion on popped text.
...
Fixes issue #172 .
2021-11-20 18:14:08 -08:00
zonble
723a8402ab
Fixes typos.
2021-11-11 00:14:49 +08:00
zonble
f6c36fe325
Bridges SwiftyOpenCC to create a simple Chinese convertion function.
2021-03-01 22:43:02 +08:00
zonble
4e27b5ecfa
Adopts modern Objective-C syntax.
2021-02-28 22:45:36 +08:00
zonble
0f05e245a5
Coverts to Objective-C ARC.
2021-02-28 21:30:10 +08:00
Lukhnos Liu
81748ae7fe
Enable explicit update check in Release builds
2020-10-19 14:51:05 -07:00
Lukhnos Liu
4c8270c42f
Cancel candidate by Bksp or Del when Plain Bopomofo
...
Fixes #152
2020-10-17 06:19:47 -07:00
Lukhnos Liu
71b97f82b3
Simplify candidate fixing by moving code to Grid
2020-10-09 22:16:06 -07:00
Lukhnos Liu
7978a9efba
Update composing buffer after candidate keys ( #145 )
...
Recent versions of Chrome started to rely on whether composing buffer
gets updated after an arrow key event to determine whether to dismiss
(force commit) the composing buffer and handle the arrow key event for
the omnibox URL suggestions.
2019-06-18 22:14:05 -07:00
Lukhnos Liu
ea865c6a24
Fix a static analyzer warning
2018-12-01 06:58:42 -08:00
Lukhnos Liu
8058f37fff
Modernize project and bump min version to 10.10
...
32-bit architecture support is removed as a result.
2018-11-24 21:47:15 -08:00
ovadmin
e065d6fa17
Fix incorrect unprintable ASCII handling ( #139 )
...
When Caps Lock is on and when the character code is not printable, we
should simply reject handling such character instead of absorbing it and
inserting the character to the client buffer--not all apps handle those
insertions.
2018-07-07 13:25:10 -07:00