zonble
56c393cefa
Prevents using global state as possible.
2022-01-27 23:19:27 +08:00
zonble
1ad9e23918
Refactors the input controller.
2022-01-27 22:54:53 +08:00
zonble
177cba5d56
[WIP] Starts to extract input states from the input controller.
2022-01-24 02:13:18 +08:00
zonble
84fc2f068b
Removes unused code and fixes a typo.
2022-01-12 13:16:10 +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
9b485b799c
Implements excluding phrases.
2022-01-12 00:16:55 +08:00
zonble
6bdd2aab44
Fixes a bug on building the unigrams.
2022-01-09 13:00:19 -08:00
zonble
b4276f0488
Fixes a bug on building the vector for unigrams from both global language model and user phrases.
2022-01-09 13:00:19 -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
3e0e859feb
將用戶選字記憶機制整合入 InputMethodController
2022-01-06 18:28:37 -08:00
ovadmin
a17438b67a
修正一些選字機制 C++ 檔案 #include 不完整的問題
2022-01-06 18:28:37 -08:00
Lukhnos Liu
fa224c2657
Reset other nodes' fixed state when fixing a node
...
This fixes a bug that, when a span covers several nodes and a long node
has already been candidate-fixed, fixing a short node does not cause
the walk to reflect the result.
A concrete example:
1. type 高中生.
2. move the cursor to 中 and change to 鐘聲: 高鐘聲.
3. with cursor position unchanged, select the candidate to 忠.
4. the expected result should be 高忠生 but instead it is stuck with
高鐘聲 due to the node representing "鐘聲" is still fixed.
Fixes #54
2020-10-09 22:16:06 -07:00
Lukhnos Liu
71b97f82b3
Simplify candidate fixing by moving code to Grid
2020-10-09 22:16:06 -07:00
Lukhnos Liu
b4eea515c3
Fix Span removal bug when linked against libc++
2013-06-14 23:54:37 -07:00
Lukhnos Liu
71921b848a
Use stable sort in the engine.
...
So that unigram nodes with the same log probability are sorted
according to the order in which they were added to the language
model.
2012-09-10 19:02:24 -07:00
Mengjuei
7476edf12a
最多使用六個自來組成一個詞
2011-10-18 16:06:51 -07:00
Mengjuei Hsieh
8549045ef5
Accepting 5-char phrases
2011-10-01 10:20:18 -07:00
Mengjuei Hsieh
5f976e4642
first commit
2011-09-01 23:56:26 -07:00