feat(search): 中文词表扩充至 425 条,3D 表情(Fluent Emoji 3D)支持中文检索

- gen-cn-tags.js 新增 EMOJI_EXTRA 场景词表(情绪/餐饮/动物/职业/物品/运动/交通/节日),词根按 Fluent 实际文件名校准
- 3D 库中文命中率 28/67 → 67/70(爱心→red-heart、奖牌→1st-place-medal、派对→party-popper 等)
- emoji.html 内置库弹窗预载 fluent-emoji-3d(3D 源不在 1200 条轻量搜索索引内)
- api/README.md 更正数据规模(444,754/263 图标、2,362/67 海报),补 3D 位图图标内联说明
This commit is contained in:
sgp
2026-11-05 17:24:42 +08:00
parent 5c18bf864c
commit 409cc766a1
9 changed files with 839 additions and 35 deletions
+621 -24
View File
@@ -84,6 +84,9 @@
"logo",
"brand"
],
"OK手势": [
"ok-hand"
],
"互联网": [
"internet",
"web",
@@ -253,6 +256,86 @@
"六边形": [
"hexagon"
],
"外星人": [
"alien",
"ufo"
],
"爱心眼": [
"heart-eyes"
],
"吐舌头": [
"tongue"
],
"鸡尾酒": [
"cocktail"
],
"巧克力": [
"chocolate"
],
"冰淇淋": [
"ice-cream",
"ice"
],
"独角兽": [
"unicorn"
],
"宇航员": [
"astronaut"
],
"消防员": [
"firefighter",
"fire-engine"
],
"科学家": [
"scientist",
"microscope",
"test-tube"
],
"飞行员": [
"pilot",
"airplane"
],
"乒乓球": [
"ping-pong"
],
"羽毛球": [
"badminton"
],
"保龄球": [
"bowling"
],
"公文包": [
"briefcase"
],
"显微镜": [
"microscope"
],
"望远镜": [
"telescope"
],
"摩托车": [
"motorcycle"
],
"消防车": [
"fire-engine"
],
"红绿灯": [
"traffic-light"
],
"仙人掌": [
"cactus"
],
"圣诞树": [
"christmas-tree"
],
"万圣节": [
"jack-o-lantern",
"ghost",
"pumpkin"
],
"南瓜灯": [
"jack-o-lantern"
],
"学校": [
"school",
"graduation",
@@ -316,7 +399,10 @@
"cup",
"cafe",
"mug",
"tea"
"tea",
"hot-beverage",
"teacup",
"beverage"
],
"银行": [
"bank",
@@ -526,7 +612,9 @@
"truck",
"wheel",
"road",
"engine"
"engine",
"automobile",
"taxi"
],
"航空": [
"plane",
@@ -617,7 +705,8 @@
"headphone",
"speaker",
"audio",
"mic"
"mic",
"musical"
],
"摄影": [
"camera",
@@ -771,7 +860,9 @@
"star",
"sparkle",
"favorite",
"rating"
"rating",
"sparkles",
"glowing-star"
],
"箭头": [
"arrow",
@@ -801,7 +892,8 @@
"gift",
"present",
"box",
"ribbon"
"ribbon",
"wrapped-gift"
],
"旗帜": [
"flag",
@@ -820,7 +912,8 @@
"lightning",
"flash",
"bolt",
"power"
"power",
"high-voltage"
],
"火焰": [
"fire",
@@ -851,7 +944,8 @@
"moon",
"night",
"dark",
"sleep"
"sleep",
"crescent"
],
"相机": [
"camera",
@@ -875,13 +969,15 @@
"laptop",
"desktop",
"monitor",
"pc"
"pc",
"desktop-computer"
],
"手机": [
"phone",
"mobile",
"smartphone",
"device"
"device",
"mobile-phone"
],
"平板": [
"tablet",
@@ -917,7 +1013,8 @@
"bulb",
"idea",
"light",
"lamp"
"lamp",
"light-bulb"
],
"齿轮": [
"gear",
@@ -973,7 +1070,8 @@
"police",
"badge",
"security",
"law"
"law",
"cop"
],
"法庭": [
"court",
@@ -1041,7 +1139,8 @@
"train",
"railway",
"transport",
"travel"
"travel",
"bullet-train"
],
"公交": [
"bus",
@@ -1140,13 +1239,18 @@
"bread",
"food",
"bakery",
"bake"
"bake",
"baguette",
"croissant"
],
"蛋糕": [
"cake",
"dessert",
"birthday",
"food"
"food",
"birthday-cake",
"shortcake",
"cupcake"
],
"披萨": [
"pizza",
@@ -1158,7 +1262,8 @@
"burger",
"food",
"fastfood",
"restaurant"
"restaurant",
"hamburger"
],
"饮料": [
"drink",
@@ -1248,7 +1353,8 @@
"award",
"win",
"prize",
"achievement"
"achievement",
"medal"
],
"排名": [
"ranking",
@@ -1389,7 +1495,8 @@
"lock",
"security",
"access",
"password"
"password",
"locked"
],
"警报": [
"alert",
@@ -1576,7 +1683,8 @@
"clock",
"time",
"watch",
"timer"
"timer",
"alarm-clock"
],
"提醒": [
"bell",
@@ -1697,7 +1805,8 @@
"点赞": [
"like",
"thumbs-up",
"heart"
"heart",
"clap"
],
"评论": [
"comment",
@@ -1794,6 +1903,415 @@
"三角": [
"triangle"
],
"爱心": [
"red-heart",
"heart",
"love",
"two-hearts",
"heart-with-ribbon"
],
"心碎": [
"broken-heart"
],
"奖牌": [
"medal",
"sports-medal",
"trophy"
],
"派对": [
"party",
"confetti",
"partying",
"balloon"
],
"庆祝": [
"party",
"confetti",
"partying",
"sparkles"
],
"生日": [
"birthday",
"birthday-cake",
"balloon"
],
"笑脸": [
"smiling",
"grinning",
"smile"
],
"大笑": [
"laughing",
"grinning",
"joy"
],
"生气": [
"angry",
"pouting",
"rage"
],
"眨眼": [
"winking",
"wink"
],
"挥手": [
"waving"
],
"鼓掌": [
"clapping-hands",
"clap"
],
"祈祷": [
"folded-hands",
"pray"
],
"加油": [
"flexed-biceps",
"muscle",
"strong"
],
"思考": [
"thinking",
"pensive",
"brain"
],
"睡觉": [
"sleeping",
"sleepy",
"zzz",
"bed"
],
"微笑": [
"smiling",
"smile"
],
"亲亲": [
"kissing",
"kiss"
],
"拥抱": [
"hugging",
"hug"
],
"难过": [
"sad",
"crying",
"pensive",
"worried"
],
"惊讶": [
"astonished",
"screaming",
"flushed",
"exploding-head"
],
"害怕": [
"screaming",
"fear",
"ghost"
],
"骷髅": [
"skull",
"crossbones"
],
"幽灵": [
"ghost"
],
"小丑": [
"clown"
],
"恶魔": [
"ogre",
"goblin",
"imp",
"devil"
],
"握手": [
"handshake"
],
"墨镜": [
"sunglasses"
],
"疲惫": [
"tired",
"sleepy",
"yawning"
],
"生病": [
"nauseated",
"vomiting",
"thermometer"
],
"头晕": [
"dizzy",
"woozy"
],
"啤酒": [
"beer",
"mug",
"clinking-beer-mugs"
],
"干杯": [
"clinking",
"clinking-beer-mugs",
"clinking-glasses"
],
"香槟": [
"bottle-with-popping-cork",
"clinking-glasses"
],
"红酒": [
"wine-glass",
"wine"
],
"薯条": [
"fries"
],
"寿司": [
"sushi"
],
"饺子": [
"dumpling"
],
"面条": [
"spaghetti",
"steaming-bowl"
],
"米饭": [
"rice",
"rice-ball",
"cooked-rice"
],
"火锅": [
"pot-of-food"
],
"便当": [
"bento-box"
],
"奶酪": [
"cheese"
],
"糖果": [
"candy",
"lollipop"
],
"饼干": [
"cookie"
],
"水果": [
"apple",
"banana",
"orange",
"grapes",
"melon",
"peach",
"pear",
"pineapple",
"strawberry",
"cherries",
"lemon",
"watermelon",
"kiwi"
],
"牛奶": [
"glass-of-milk",
"milk"
],
"鸡蛋": [
"egg",
"cooking"
],
"猴子": [
"monkey"
],
"兔子": [
"rabbit"
],
"老虎": [
"tiger"
],
"狮子": [
"lion"
],
"大象": [
"elephant"
],
"熊猫": [
"panda"
],
"狐狸": [
"fox"
],
"青蛙": [
"frog"
],
"蝴蝶": [
"butterfly"
],
"蜜蜂": [
"honeybee",
"bee"
],
"乌龟": [
"turtle"
],
"鲸鱼": [
"whale"
],
"海豚": [
"dolphin"
],
"螃蟹": [
"crab"
],
"章鱼": [
"octopus"
],
"恐龙": [
"dinosaur",
"t-rex",
"sauropod"
],
"医生": [
"health-worker",
"stethoscope",
"hospital"
],
"护士": [
"health-worker",
"nurse"
],
"老师": [
"teacher",
"student",
"school"
],
"学生": [
"student",
"graduation"
],
"厨师": [
"cook",
"chef"
],
"农民": [
"farmer"
],
"歌手": [
"singer",
"microphone"
],
"画家": [
"artist",
"palette"
],
"情侣": [
"couple",
"two-hearts"
],
"皇冠": [
"crown"
],
"钻石": [
"gem-stone",
"diamond"
],
"戒指": [
"ring"
],
"红包": [
"red-envelope"
],
"信封": [
"envelope",
"mail"
],
"彩虹": [
"rainbow"
],
"下雨": [
"rain",
"umbrella-with-rain-drops"
],
"运动": [
"sport",
"sports",
"sports-medal"
],
"足球": [
"soccer",
"football"
],
"篮球": [
"basketball"
],
"排球": [
"volleyball"
],
"棒球": [
"baseball"
],
"网球": [
"tennis"
],
"游泳": [
"swimmer",
"swimming"
],
"跑步": [
"runner",
"running"
],
"滑雪": [
"skier",
"ski"
],
"吉他": [
"guitar"
],
"钢琴": [
"musical-keyboard",
"piano"
],
"轮船": [
"ship",
"boat",
"sailboat"
],
"帐篷": [
"tent",
"camping"
],
"蘑菇": [
"mushroom"
],
"落叶": [
"fallen-leaf",
"maple-leaf"
],
"圣诞": [
"christmas",
"santa-claus",
"christmas-tree"
],
"南瓜": [
"jack-o-lantern",
"pumpkin"
],
"蔬菜": [
"broccoli",
"carrot",
"cucumber",
"tomato",
"leafy-green",
"vegetable"
],
"春节": [
"red-envelope",
"firecracker",
"dumpling",
"lantern"
],
"云": [
"cloud",
"server",
@@ -1806,7 +2324,8 @@
"unlock",
"key",
"shield",
"password"
"password",
"locked"
],
"心": [
"heart",
@@ -1825,7 +2344,8 @@
"medicine",
"drug",
"health",
"pharmacy"
"pharmacy",
"syringe"
],
"船": [
"ship",
@@ -1853,20 +2373,29 @@
"nature",
"forest",
"eco",
"plant"
"plant",
"evergreen",
"deciduous",
"palm-tree"
],
"花": [
"flower",
"nature",
"beauty",
"plant",
"bloom"
"bloom",
"blossom",
"tulip",
"bouquet",
"rose",
"sunflower"
],
"狗": [
"dog",
"pet",
"animal",
"paw"
"paw",
"puppy"
],
"猫": [
"cat",
@@ -1880,6 +2409,74 @@
"drink",
"bar",
"alcohol"
],
"哭": [
"crying-face",
"crying",
"sad",
"sob"
],
"茶": [
"teacup",
"hot-beverage",
"beverage"
],
"马": [
"horse"
],
"猪": [
"pig"
],
"鸡": [
"chicken",
"rooster",
"hatching-chick"
],
"熊": [
"bear"
],
"狼": [
"wolf"
],
"鱼": [
"fish",
"tropical-fish"
],
"鸟": [
"bird",
"hatching-chick"
],
"蛇": [
"snake"
],
"虾": [
"shrimp"
],
"钱": [
"money",
"dollar",
"coin",
"banknote",
"yen",
"euro",
"pound",
"credit-card"
],
"书": [
"book",
"notebook"
],
"雪": [
"snow",
"snowflake",
"snowman"
],
"鼓": [
"drum"
],
"山": [
"mountain",
"volcano"
]
};
});
+3 -1
View File
@@ -417,7 +417,9 @@ const HGB_EmojiUI = (function () {
// 预载表情主力单色源,保证搜索可用
const core = (typeof HGB_AvatarGen !== 'undefined' && HGB_AvatarGen.AVATAR_CORE_SOURCES) ||
['lucide', 'tabler', 'feather', 'mdi', 'fluent', 'solar'];
await HGB_IconLib.preload(core);
// 3D 位图表情不在轻量搜索索引内(iconIndex 仅 1200 条采样),表情工作区直接预载,
// 否则中文「爱心 / 奖牌 / 派对」搜不到 Fluent Emoji 3D
await HGB_IconLib.preload(core.concat(['fluent-emoji-3d']));
await searchBuiltin();
}
async function searchBuiltin(append) {