feat(keyboard): ship AI hint carousel, home library cards, and clipboard polish
Rotate AI idle suggestions with optional remote packs, move history/dictionary onto self-sizing Home preview cards, harden clipboard capture/prompting, and simplify keyboard chrome by dropping most liquid-glass shadows.
This commit is contained in:
@@ -19,7 +19,7 @@ public enum TranscriptLanguageDetector: Sendable {
|
||||
continue
|
||||
}
|
||||
meaningfulCount += 1
|
||||
if isHan(scalar) {
|
||||
if HanScript.isIdeograph(scalar) {
|
||||
hanCount += 1
|
||||
}
|
||||
}
|
||||
@@ -32,13 +32,4 @@ public enum TranscriptLanguageDetector: Sendable {
|
||||
public static func prefersChineseGuidance(_ text: String) -> Bool {
|
||||
cjkRatio(text) >= 0.15
|
||||
}
|
||||
|
||||
private static func isHan(_ scalar: Unicode.Scalar) -> Bool {
|
||||
switch scalar.value {
|
||||
case 0x4E00...0x9FFF, 0x3400...0x4DBF, 0xF900...0xFAFF:
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user