Commit Graph

440 Commits

Author SHA1 Message Date
zonble ee521b6ee2 Fixes the behavior of the delete and backspace key. 2022-01-28 16:59:28 +08:00
zonble 9612aa6ba0 Code clean-up. 2022-01-28 16:51:25 +08:00
zonble b13da10ec0 Code clean-up. 2022-01-28 16:16:52 +08:00
zonble 0bc9468ba2 Splits Input Method controller into two classes. 2022-01-28 15:02:00 +08:00
zonble dd803b6c31 Removes logs and add copyright information. 2022-01-28 04:40:53 +08:00
zonble 056ffeabfd Tunes the interface. 2022-01-28 04:04:44 +08:00
zonble 7ee955a55c Cleans-up KeyHandlerInput. 2022-01-28 03:24:06 +08:00
zonble 87702f76c5 Cleans-up the interface. 2022-01-28 03:18:10 +08:00
zonble e17d06fd2a Fixes the cursor index when choosing candidates. 2022-01-28 01:58:25 +08:00
zonble 9351d877ba Fixes the issue on presenting the candidate window. 2022-01-28 01:44:50 +08:00
zonble fc0c077193 Fixes the bug on handling arrow keys. 2022-01-28 01:35:15 +08:00
zonble 2bbaa4a793 Fixes NSCoding exceptions. 2022-01-28 00:23:31 +08:00
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 6fe2fc59f3 Moves the way to render attributed string to the states. 2022-01-24 21:47:24 +08:00
zonble 82a916c433 Adds a new file KeyHandler.swift to start to break input controller to testable modules. 2022-01-24 17:46:34 +08:00
zonble 177cba5d56 [WIP] Starts to extract input states from the input controller. 2022-01-24 02:13:18 +08:00
Weizhong Yang a.k.a zonble 43d9e8bd42 Merge pull request #254 from zonble/dev/swift_main
Converts main.m and the installer into Swift
2022-01-22 11:35:21 +08:00
zonble 6f254bf75d Updates copyright information. 2022-01-22 11:24:22 +08:00
zonble 3bba134e2f Adds Credits.rtf. 2022-01-22 00:34:48 +08:00
zonble 8717625d2e Adds a missing line back to the installer. 2022-01-22 00:07:07 +08:00
zonble bfb66cb080 Converts the installer to Swift. 2022-01-22 00:01:21 +08:00
zonble 5fe1c28ae7 Converts main to Swift. 2022-01-21 19:17:36 +08:00
Lukhnos Liu 957b66a96b Bump to version 2.0.1 2022-01-20 15:37:31 -08:00
Lukhnos Liu 6c76b2cae0 Delete a duplicate key in McBopomofo-Info.plist 2022-01-20 15:36:33 -08:00
Lukhnos Liu 4f718019e1 Merge pull request #251 from zonble/master
Fixes the order of the keyboard layouts.
2022-01-19 22:37:40 -08:00
zonble cb05937478 Fixes the order of the keyboard layouts.
Fixes #250.
2022-01-20 14:20:10 +08:00
Lukhnos Liu 25c50e67a4 Bump to version 2.0 2022-01-19 10:05:48 -08:00
Lukhnos Liu 42c4441d05 Introduce a Swift class to the Installer
This is so that the Installer will be built with the correct Swift
settings, especially those that instruct the Xcode to package the Swift
runtime libraries. This is needed because the Installer now depends on
InputSourceHelper, which is written in Swift. Without this, the app
would not be packaged with the Swift runtime libraries, which caused
the installer to be unusable on older but supported macOS versions.
2022-01-19 10:05:38 -08:00
Lukhnos Liu 9abd445490 Update README for dev workflow 2022-01-19 07:42:17 -08:00
Lukhnos Liu 29df72b79f Bump to version 2.0-alpha 2022-01-18 23:31:07 -08:00
Lukhnos Liu 8c692e6c3b Update copyright years 2022-01-18 23:28:08 -08:00
Lukhnos Liu b7ef7b5fb7 Merge pull request #246 from lukhnos/more-tolerant-userphraseslm
Make UserPhrasesLM more tolerant
2022-01-18 23:01:45 -08:00
Lukhnos Liu a2e551d000 Clean up Travis CI settings
This was missed from #247.
2022-01-18 22:47:08 -08:00
Lukhnos Liu 202b1fa058 Also make PhraseReplacementMap more tolerant
This also clarifies the test expectations and how parsing errors are
handled.
2022-01-18 22:46:26 -08:00
Weizhong Yang a.k.a zonble 9bc3536630 Merge branch 'master' into more-tolerant-userphraseslm 2022-01-19 14:01:23 +08:00
Weizhong Yang a.k.a zonble 19dbe171f8 Merge pull request #243 from lukhnos/update-readme
Update README and mention Code of Conduct
2022-01-19 13:59:45 +08:00
Weizhong Yang a.k.a zonble 04d2ff5a4d Merge pull request #244 from lukhnos/custom-data-templates
Writes templates the first time custom data is used
2022-01-19 13:31:15 +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 8e66c328d6 Make reference to the FAQ 2022-01-18 18:57:06 -08:00
Lukhnos Liu c8f65580bb Make UserPhrasesLM more tolerant
This lets UserPhrasesLM consumes as much user data as possible before
bailing. This makes it more tolerant to data errors and will not fail
entirely just because the user has one faulty line in a data file.

Also removes FastFM from the benchmarking suite.

This also runs the CMake-based C++ tests as part of the GitHub CI.
2022-01-18 16:20:25 -08:00
Lukhnos Liu 75f321f088 Update copyright headers (fixes #213) 2022-01-18 14:21:55 -08:00
Lukhnos Liu 61f55670fb Write templates the first time custom data is used
Now that we allow comments in the custom data files, this change writes
localized templates as well as basic instructions. Links to McBopomofo
User's Manual are also provided.
2022-01-18 13:42:45 -08:00
Lukhnos Liu 83162b4d8f Update README and mention Code of Conduct 2022-01-18 12:44:40 -08:00
zonble 7e2d3df5ba Prevents users from adding custom phrases with more than 6 characters.
Also fixes typos.
2022-01-19 00:49:50 +08:00
zonble d2c039c42d Notifies the users it is not suggested to add phrase when model is converted. 2022-01-18 22:19:25 +08:00
zonble aa9c31ffcf Fixes the location of the tooltip. 2022-01-18 22:04:09 +08:00
zonble 0d80d28e0e Formats Swift code. 2022-01-18 21:16:07 +08:00
zonble 1e7d4fe2b0 Makes the timeout for version update check test longer. 2022-01-18 18:50:35 +08:00