0
0
mirror of https://github.com/florisboard/florisboard.git synced 2024-09-19 19:42:20 +02:00
florisboard/LANGUAGEPACKS.md
Waelwindows a5dab5fb5a
Add Chinese Shape Based Layouts (#2054)
* feat(ime/nlp): Add `HanShapeBasedLanguageProvider`

* feat: Manually set default NLP to be HanShapeBased

* feat: Temporarily disable adding spaces

This commit should give insight into how the keyboard adds spaces, this
should then be refined into not adding a space after commiting a CJK
text suggestion

* fix(ime/nlp): Remove empty str suggest in HanShape

* feat(ime/nlp): Handle locale variants in HanShape

this should facilitate multiple layouts in the zh locale

* fix(ime/nlp): Handle query params in HanShape

This also helps performance as the DBC doesn't have to compile the query
for every string the user writes

* Space behavior QoL updates for Han shape-based layout (#1)

* Separate space behavior for zh* and latin, and allow space when there is no suggestion.

Signed-off-by: moonbeamcelery <moonbeamcelery@proton.me>

* Add checking if locale is CJK

Signed-off-by: moonbeamcelery <moonbeamcelery@proton.me>

* refactor: Change predicate to a getter & rename

* chore: Remove TODO `supportsAutoSpace` message

* fix: Fix spaces after sugg. in non-space subtypes

* fix: Fix auto space predicate in `PhantomSpace`

Signed-off-by: moonbeamcelery <moonbeamcelery@proton.me>
Co-authored-by: waelwindows <waelwindows9922@gmail.com>

* Draft: editor screen exposes nlpProviders and shape-based Chinese input methods as variants

Signed-off-by: moonbeamcelery <moonbeamcelery@proton.me>

* Fix defaults for zhengma preset

Signed-off-by: moonbeamcelery <moonbeamcelery@proton.me>

* Add word tables for added input methods

Signed-off-by: moonbeamcelery <moonbeamcelery@proton.me>

* Fix: bug in zhengma preset

* Draft: support composing with special characters by delegating nlpProvider to decide composing range.

* Catch SQLite errors such as layout (locale variant) not found (e.g. using HanShapeBased with JIS)

* fixup: remove TODO

* fix: partly addresses 2101, allow searching for locale in English for phones lacking system locale IME

* Adds support for importing "language packs" (sqlite3 db for HanShapeBased for now)

* Changes language pack to zip files. Adds a basic language pack class for storing metadata of IMEs.

Signed-off-by: moonbeamcelery <moonbeamcelery@proton.me>

* Implement language pack as a type of Flex extension, and draft its import and view UI

Signed-off-by: moonbeamcelery <moonbeamcelery@proton.me>

* fix: input method name translation

Signed-off-by: moonbeamcelery <moonbeamcelery@proton.me>

* Trim down to zhengma, quickclassic, and cangjie for the barebones Chinese shape-based pack. Polish extension user documentation.

* Fix hack to allow multiple language pack extensions to co-exist.

Signed-off-by: moonbeamcelery <moonbeamcelery@proton.me>

* Replace quickclassic with boshiamy

* Fix href in LANGUAGEPACKS.md

* build(nix): Clean up nix flake

* refactor: Encapsulate lanaguage pack query in HSB

* feat(ime/nlp): Implement `getListOfWords` in HSB

* feat(ime/nlp): Implement `getFrequencyForWord`

* chore: Normalize weights for freq in `han.sqlite3`

* chore(ime/nlp): Add some logging for HSB

* Update app/src/main/assets/ime/keyboard/org.florisboard.localization/extension.json

Co-authored-by: Patrick Goldinger <patrick@patrickgold.dev>

Signed-off-by: moonbeamcelery <moonbeamcelery@proton.me>
Co-authored-by: moonbeamcelery <114041522+moonbeamcelery@users.noreply.github.com>
Co-authored-by: moonbeamcelery <moonbeamcelery@proton.me>
Co-authored-by: Patrick Goldinger <patrick@patrickgold.dev>
2023-01-15 17:22:10 +01:00

2.8 KiB

Language Packs

Languages

Summary

Stub.

This page should describe how language packs work, how to import them, and point to the location of downloadable language packs.

The homepage of default language packs included in FlorisBoard should link to this page.

Chinese / 中文

TODO: translate into native language

Default barebones Chinese shape-based pack

默认中文形码语言包 / 預設中文形碼語言包 / Default barebones Chinese shape-based language pack which are always available.

Please download the full Chinese language pack to access input methods such as wubi, boshiami, and other versions of cangjie.

This pack is released under the same license as Florisboard.

TODO: translate into native language

Full Chinese shape-based pack

Fcitx5 中文形码语言包 / Fcitx5 中文形碼語言包 / Chinese shape-based language pack based on fcitx5-table-extra.

This pack is released under a separate license. Please visit: TODO: add link to release page

The following input methods are included in this language pack:

  • 中文 (中国) [T9笔画] / Chinese (China) [T9]
  • 中文 (中国) [五笔98] / Chinese (China) [WUBI98]
  • 中文 (中国) [五笔98-拼音混打] / Chinese (China) [WUBI98PINYIN]
  • 中文 (中国) [五笔98-单字] / Chinese (China) [WUBI98SINGLE]
  • 中文 (中国) [五笔-大字库] / Chinese (China) [WUBILARGE]
  • 中文 (中国) [郑码] / Chinese (China) [ZHENGMA]
  • 中文 (中国) [郑码-大字库] / Chinese (China) [ZHENGMALARGE]
  • 中文 (中国) [郑码-拼音混打] / Chinese (China) [ZHENGMAPINYIN]
  • 中文 (香港) [廣東拼音] / Chinese (Hong Kong) [CANTONESE]
  • 中文 (香港) [港式廣東話] / Chinese (Hong Kong) [CANTONHK]
  • 中文 (香港) [輕鬆-大字庫] / Chinese (Hong Kong) [EASYLARGE]
  • 中文 (香港) [粤語拼音-表格] / Chinese (Hong Kong) [JYUTPINGTABLE]
  • 中文 (香港) [速成三代] / Chinese (Hong Kong) [QUICK3]
  • 中文 (香港) [經典速成] / Chinese (Hong Kong) [QUICKCLASSIC]
  • 中文 (香港) [筆順五碼] / Chinese (Hong Kong) [STROKE5]
  • 中文 (台灣) [行列] / Chinese (Taiwan) [ARRAY30]
  • 中文 (台灣) [行列-大字库] / Chinese (Taiwan) [ARRAY30LARGE]
  • 中文 (台灣) [嘸蝦米] / Chinese (Taiwan) [BOSHIAMY]
  • 中文 (台灣) [倉頡三代] / Chinese (Taiwan) [CANGJIE3]
  • 中文 (台灣) [倉頡五代] / Chinese (Taiwan) [CANGJIE5]
  • 中文 (台灣) [倉頡-大字庫] / Chinese (Taiwan) [CANGJIELARGE]
  • 中文 (台灣) [速成五代] / Chinese (Taiwan) [QUICK5]
  • 中文 (台灣) [快倉六] / Chinese (Taiwan) [SCJ6]
  • 中文 (台灣) [吳語注音] / Chinese (Taiwan) [WU]

Third-party license: [https://github.com/fcitx/fcitx5-table-extra/blob/master/LICENSES/GPL-3.0-or-later.txt]

TODO: translate into native language