mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
swipe::typing implements the API: the word's casing (caps lock, shift and the capital the added space brings, a name the dictionary knows only capitalised, your own words' capitals, Auto-capitalization off), the strip's alternatives with text replacements, the +4 rare-name ranking, the space before the word, and the slid tap, line by line from FullKeyboardEngine+SwipeTyping.swift and SwipeTyping.swift (and the AutocorrectEngine and AutoCapitalization pieces they call). swipe::characters reads text as Swift does: grapheme clusters (unicode-segmentation), canonical equality, context-free case mapping, and Swift's isNumber and isLetter where Rust's tables differ. Two C entry points iOS's tests ask through: hk_swipe_reads_as_name and hk_swipe_starts_and_ends_with (no JNI: Kotlin doesn't need them). A C test types a swipe through the interface.
22 lines
505 B
TOML
22 lines
505 B
TOML
[package]
|
|
name = "hex-keyboard-core"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish.workspace = true
|
|
|
|
[lib]
|
|
name = "hex_keyboard_core"
|
|
|
|
[dependencies]
|
|
unicode-normalization = "0.1"
|
|
# Swift's Character (an extended grapheme cluster), for the swipe rules (swipe/characters.rs).
|
|
unicode-segmentation = "1"
|
|
|
|
[dev-dependencies]
|
|
# The swipe parity test's fixture (tests/swipe_parity.rs): JSON Lines, and the models' SHA-256.
|
|
serde_json = "1"
|
|
sha2 = "0.10"
|
|
|
|
[lints]
|
|
workspace = true
|