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
+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) {