Files
Lu Fan(SonnyCalcr) 23bfdd4d51 feat(engine,server): 符号混输放开拼音读音,emoji 混输改为整串精确匹配 (#1050)
- 符号混输不再挡读得成拼音的编码:混输本来就只认整串精确匹配,xi → ξ 也照样混入;单字母编码仍不混。
- 构建器读取 msime-dictionary 新增的 custom/symbols.txt(拼音<TAB>符号),把 dian → · 、、
  shuminghao → 《》 〈〉 等标点读音写进 symbol_code,书名号、引号、括号成对给出。
- emoji 混输改用新的 query_mixed_emoji,只认整串精确等于关键词,不再按前缀带出 emoji;双拼下只查
  展开后的全拼,并和符号一样只在光标位于末尾时查询。Shift+E 的 emoji 模式仍按前缀查。
- 同步更新设置页说明、出厂与开发配置注释和 README。
2026-10-18 11:23:26 +08:00

23 lines
1.1 KiB
C++

#pragma once
#include "local_query_result.h"
#include "../core/scheme_type.h"
#include "../shuangpin/shuangpin_profile.h"
#include <filesystem>
#include <string>
namespace metasequoia::local_modes
{
LocalQueryResult query_emoji(const std::string &code, SchemeType scheme, int limit = 10,
const ShuangpinProfile &profile = GetXiaoheShuangpinProfile());
LocalQueryResult query_emoji(const std::string &code, SchemeType scheme, const std::filesystem::path &database_path,
int limit = 10, const ShuangpinProfile &profile = GetXiaoheShuangpinProfile());
// emoji 混输:只认整串精确等于某个键,不做前缀匹配。双拼下只查展开后的全拼,原始码恰好等于
// 某个简拼或英文键(xl → 😀)不是用户要打的词。
LocalQueryResult query_mixed_emoji(const std::string &code, SchemeType scheme,
const std::filesystem::path &database_path, int limit = 3,
const ShuangpinProfile &profile = GetXiaoheShuangpinProfile());
} // namespace metasequoia::local_modes