vChewing / vChewing-macOS

威注音輸入法 macOS 版,恐怕是截至目前為止在功能多樣性方面最強的第三方免費 macOS 系統專用輸入法,採純 Swift 語言寫就。威注音的著力點是盡可能在力所能及的範圍內將整個產品的功能做得更好用,搭配特製的簡體中文與繁體中文專用辭庫。是純粹的簡體中文注音輸入法(也內贈原生繁體中文輸入模式),更具諸多威注音特色功能。目前研發管理工作均在 CSDN GitCode 進行。
https://vchewing.github.io/
Other
300 stars 10 forks source link

已處理:同步上游小麥注音 2.0 專案內容至威注音(ends at around 230) #16

Closed ShikiSuen closed 2 years ago

ShikiSuen commented 2 years ago

由於 zonble 提及 ObjC 與 Swift 的優劣、使得我可以確信他在用 ObjC 重寫一些元件的時候修正了不少 Bug。 乾脆同步得了。不過這 Voltaire 選字窗的美化要重新來。

ShikiSuen commented 2 years ago

@hirakujira Please check the following 2 commits to see whether I messed up with something: 77e43050450637b992fe687d99036db6bcc402fc 9f6eccf7b3c727a2da83adbc95e534fc379f05dd

P.S.:

  1. No need to fix the NSURLConnection in ObjC since the AppDelegate is already Swiftified with Zonble's imprementation of NSURLSession.
  2. I tested the AppDelegate.swift with the ObjC version of frmAboutWindow and it worked well. This process requires inserting "#import frmAboutWindow.h" to the bridging header file.
  3. frmAboutWindow commit has problems. The machine-translated frmAboutWindow.swift seems to have a bunch of mistakes.
  4. The Installer still has a method incompatible with the macOS 10.11 target. I have no clue how to deal with that.
ShikiSuen commented 2 years ago

AppDelegate.swift is fine at this moment. The macOS 10.11 target issue will be dealt later with another issue ticket.

ShikiSuen commented 2 years ago

Swift 化暫時告一段落。 frmAboutWindow 保留 ObjC 的樣式,直至非切換不可的那一刻為止。 接下來同步目標是上游的小麥注音 2.0 的內容。

Todo list: https://github.com/openvanilla/McBopomofo/pull/216 https://github.com/openvanilla/McBopomofo/pull/218 https://github.com/openvanilla/McBopomofo/pull/219 https://github.com/openvanilla/McBopomofo/pull/220 https://github.com/openvanilla/McBopomofo/pull/223 https://github.com/openvanilla/McBopomofo/pull/224

ShikiSuen commented 2 years ago

216 Finished.

ShikiSuen commented 2 years ago

218 Finished.

ShikiSuen commented 2 years ago

219 & 220 & 223 Finished.

ShikiSuen commented 2 years ago

眼下發現問題:一旦選了 ASDF 選字之後,便無法再選回 12345 選字鍵。

之後,待辦內容有: openvanilla/McBopomofo#224 Zonble: In-place Phrase Replacement System https://github.com/openvanilla/McBopomofo/pull/227 https://github.com/openvanilla/McBopomofo/pull/230 https://github.com/openvanilla/McBopomofo/pull/232 https://github.com/openvanilla/McBopomofo/pull/233 https://github.com/openvanilla/McBopomofo/pull/236 以及之後的 PR。

關於小麥注音經過改動的詞庫編譯系統,可以先將主程式的 code base 同步下來,然後視需要再調整 libvchewing-data。

ShikiSuen commented 2 years ago

224 遷移完畢。接下來處理 227。

對 277 的處理方式就是不引入任何開關。 康熙正字使用者們斷然不會希望自己的自訂語彙詞庫內出現 MOE 規範的漢字。

ShikiSuen commented 2 years ago

放棄同步 277。 威注音將在同步完 https://github.com/openvanilla/McBopomofo/pull/230/ 之後終止從小麥上游同步功能。 且在補回簡體中文輸入模式的基礎功能之後、準備用 C# 全部重寫。

ShikiSuen commented 2 years ago

無意味のため、230 導入を放棄する。 導入したとしても、その後は新しいデータフォーマットを使うから。

残るのは: https://github.com/openvanilla/McBopomofo/pull/237 https://github.com/openvanilla/McBopomofo/pull/236

ShikiSuen commented 2 years ago

結案。