emoji: search the dictionary by prefix in the engine, not in the data
mkemoji wrote a row for every prefix of every alias, so that a query matched as it was typed; the trie is a prefix index already, and with a real emoji list those rows would be four times the aliases themselves. Now emoji.dict has one row per alias, trienode() names a key's node, and dictlookup walks the entries at and below it, the key's own first, up to Maxkouho. Trie children are appended rather than pushed, so the walk keeps the file's order and a bare digit still picks the superscript or subscript it always did. The hand-written symbol rows move to symbol.src; emoji.src is left to the emoji. mkemoji reads both by default, or the files it is given.
This commit is contained in:
104
map/emoji.src
104
map/emoji.src
@@ -1,107 +1,3 @@
|
||||
# Result first, followed by one or more TAB-separated aliases.
|
||||
⚠ !!
|
||||
★ **
|
||||
± +-
|
||||
→ ->
|
||||
· ..
|
||||
… ...
|
||||
÷ ./
|
||||
☹ :(
|
||||
☺ :)
|
||||
|
||||
# Bare 1-9 choose prefix candidates; keep digit aliases in matching slots.
|
||||
← <-
|
||||
≤ <=
|
||||
♥ <3
|
||||
≠ <> !=
|
||||
≡ ==
|
||||
⇒ =>
|
||||
≥ >=
|
||||
¹ ^1
|
||||
² ^2
|
||||
³ ^3
|
||||
⁴ ^4
|
||||
⁵ ^5
|
||||
⁶ ^6
|
||||
⁷ ^7
|
||||
⁸ ^8
|
||||
⁹ ^9
|
||||
₁ _1
|
||||
₂ _2
|
||||
₃ _3
|
||||
₄ _4
|
||||
₅ _5
|
||||
₆ _6
|
||||
₇ _7
|
||||
₈ _8
|
||||
₉ _9
|
||||
|
||||
⁽ ^(
|
||||
⁾ ^)
|
||||
⁺ ^+
|
||||
⁻ ^-
|
||||
⁼ ^=
|
||||
₍ _(
|
||||
₎ _)
|
||||
₊ _+
|
||||
₋ _-
|
||||
₌ _=
|
||||
≈ ~=
|
||||
⁰ ^0
|
||||
₀ _0
|
||||
ₐ _a
|
||||
α alpha
|
||||
β beta
|
||||
χ chi
|
||||
° deg
|
||||
δ delta
|
||||
Δ De
|
||||
↓ dn
|
||||
ₑ _e
|
||||
ε eps
|
||||
η eta
|
||||
凸 fuck
|
||||
γ gamma
|
||||
Γ Ga
|
||||
ⁱ ^i
|
||||
∫ II
|
||||
∞ inf
|
||||
ι iota
|
||||
κ kappa
|
||||
λ lambda
|
||||
Λ La
|
||||
× mul
|
||||
μ mu
|
||||
ⁿ ^n
|
||||
ν nu
|
||||
ω omega
|
||||
Ω Om
|
||||
● oo
|
||||
ₒ _o
|
||||
φ phi
|
||||
Φ Ph
|
||||
π pi
|
||||
Π Pi
|
||||
∏ PP
|
||||
ψ psi
|
||||
Ψ Ps
|
||||
ρ rho
|
||||
σ sigma
|
||||
Σ Si
|
||||
√ sq
|
||||
∑ SS
|
||||
τ tau
|
||||
θ theta
|
||||
Θ Th
|
||||
↑ up
|
||||
υ ups
|
||||
✓ vv
|
||||
ξ xi
|
||||
Ξ Xi
|
||||
✗ xx
|
||||
ₓ _x
|
||||
ζ zeta
|
||||
|
||||
# Small multilingual emoji seed. Shared aliases intentionally produce choices.
|
||||
😀 웃음 웃다 스마일 えがお エガオ わらい ワライ smile grin
|
||||
😄 웃음 미소 스마일 えがお エガオ ほほえみ ホホエミ smile happy
|
||||
|
||||
Reference in New Issue
Block a user