TouchKeyboard.Ime.Pinyin
0.3.0
dotnet add package TouchKeyboard.Ime.Pinyin --version 0.3.0
NuGet\Install-Package TouchKeyboard.Ime.Pinyin -Version 0.3.0
<PackageReference Include="TouchKeyboard.Ime.Pinyin" Version="0.3.0" />
<PackageVersion Include="TouchKeyboard.Ime.Pinyin" Version="0.3.0" />
<PackageReference Include="TouchKeyboard.Ime.Pinyin" />
paket add TouchKeyboard.Ime.Pinyin --version 0.3.0
#r "nuget: TouchKeyboard.Ime.Pinyin, 0.3.0"
#:package TouchKeyboard.Ime.Pinyin@0.3.0
#addin nuget:?package=TouchKeyboard.Ime.Pinyin&version=0.3.0
#tool nuget:?package=TouchKeyboard.Ime.Pinyin&version=0.3.0
TouchKeyboard.Ime.Pinyin
English · 简体中文
Optional managed pinyin input for TouchKeyboard.
This package adds PinyinImeEngine and a compact common lexicon (about 20,000
words and phrases) for text fields. It depends only on
TouchKeyboard.Core (netstandard2.0) and has no Avalonia, native or platform
dependency. The UI (IME key, candidate bar, inline composition) lives in
TouchKeyboard.Avalonia and is language-neutral.
Install and activate
dotnet add package TouchKeyboard.Avalonia
dotnet add package TouchKeyboard.Ime.Pinyin
using TouchKeyboard.Avalonia;
using TouchKeyboard.Ime.Pinyin;
KeyboardHost.Configure(options =>
{
options.UseIme(new PinyinImeEngine());
});
KeyboardHost is the x:Name generated for the TouchKeyboardHost in the
host's XAML.
That is the whole integration. text fields show an IME key (中/英 in
Chinese, CN/EN in English) and a fixed candidate bar. Numeric, date, password and ASCII-token profiles stay IME-free.
With no engine configured, the keyboard has no IME key or candidate row and
Space fills the former IME slot (AnsiStyle 7.0 units, PhoneHybrid 3.5).
Scope
- Full pinyin, word/sentence segmentation and common initial-letter
abbreviations (
nihao→ 你好,bj→ 北京,woaibeijing→ 我爱北京). - Common punctuation maps to full-width forms when Chinese input is active.
- No Wubi, handwriting, fuzzy pinyin, cloud input, user learning or Traditional/Simplified conversion.
- The engine is immutable and thread-safe after construction; create one instance and share it across sessions. The lexicon is loaded lazily on the first query.
Data and licence
The code is MIT. The embedded lexicon uses Unihan kMandarin readings (Unicode
License V3) and the jieba word list/frequencies (MIT). The package carries a
NOTICE with the sources, snapshot hashes and full licence texts. Phrase
readings and the polyphone override table are project-owned.
The data and software are provided as-is. No candidate quality, coverage, performance or stability guarantee is made; maintenance is best-effort.
For configuration options and troubleshooting see
Chinese input.
An all-English host does not need this package; it can also keep the package and
set options.KeyLanguage = KeyboardLanguage.English for English key legends.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- TouchKeyboard.Core (>= 0.3.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on TouchKeyboard.Ime.Pinyin:
| Package | Downloads |
|---|---|
|
TouchKeyboard.Ime.Pinyin.Extended
Optional extended pinyin lexicon for TouchKeyboard.Ime.Pinyin: about 100k common words and phrases, using the same managed engine. |
GitHub repositories
This package is not used by any popular GitHub repositories.