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:
@@ -260,7 +260,7 @@ extension PersonalDictionary {
|
||||
guard !term.isEmpty else { return false }
|
||||
var hasLatinLetter = false
|
||||
for scalar in term.unicodeScalars {
|
||||
if isCJKIdeograph(scalar) { return false }
|
||||
if HanScript.isIdeograph(scalar) { return false }
|
||||
if scalar.isASCII, CharacterSet.letters.contains(scalar) {
|
||||
hasLatinLetter = true
|
||||
}
|
||||
@@ -268,15 +268,6 @@ extension PersonalDictionary {
|
||||
return hasLatinLetter
|
||||
}
|
||||
|
||||
private static func isCJKIdeograph(_ scalar: Unicode.Scalar) -> Bool {
|
||||
switch scalar.value {
|
||||
case 0x3400...0x4DBF, 0x4E00...0x9FFF, 0xF900...0xFAFF:
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
/// Case-insensitive lookup by canonical term.
|
||||
public func entry(matchingTerm term: String) -> Entry? {
|
||||
let key = term.lowercased()
|
||||
|
||||
Reference in New Issue
Block a user