feat(typing): add English autocomplete and Chinese candidate expand panel

Offline English lexicon suggestions with autocapitalization, plus a same-height Chinese more-candidates grid over the key area.
This commit is contained in:
Rocky
2026-08-03 18:30:20 +08:00
parent d1e5fed964
commit 38e5ad570d
35 changed files with 5086 additions and 179 deletions
+5 -1
View File
@@ -6,7 +6,11 @@ NS_ASSUME_NONNULL_BEGIN
@interface OSGRimeCandidate : NSObject
@property(nonatomic, copy, readonly) NSString *text;
@property(nonatomic, copy, readonly) NSString *comment;
- (instancetype)initWithText:(NSString *)text comment:(NSString *)comment;
/// Absolute librime candidate index for `select_candidate` (stable across UI reorder).
@property(nonatomic, readonly) NSInteger index;
- (instancetype)initWithText:(NSString *)text
comment:(NSString *)comment
index:(NSInteger)index;
@end
/// Immutable runtime snapshot consumed by SwiftUI.