[F] Resolve latex conflict with custom_phrases (shenlebantongying/rime_latex#9)

This commit is contained in:
Azalea Gui
2023-02-18 11:29:03 -05:00
parent d32d4630da
commit a4d496f43a
2 changed files with 17 additions and 14 deletions
@@ -0,0 +1,15 @@
patch:
# engine/translators/+:
# - punct_translator
# - r10n_translator
# - reverse_lookup_translator
# meaning of the regex: ^ start of line, \\ the starting \, .+ any char 1 or more time, $ end
recognizer/patterns/reverse_lookup: '^\\.+$'
schema/dependencies/+:
- latex
abc_segmentor/extra_tags:
- reverse_lookup
reverse_lookup:
dictionary: latex
enable_completion: false
tips: latex
@@ -2,6 +2,8 @@ __patch:
# Rx: emoji:customize:schema=luna_pinyin {
- patch/+:
__include: emoji_suggestion:/patch
- patch/+:
__include: latex.patch:/patch
# }
# https://wiki.archlinuxcn.org/wiki/Fcitx5#RIME/%E4%B8%AD%E5%B7%9E%E9%9F%BB
@@ -11,17 +13,3 @@ patch:
"translator/dictionary": extended #词典名字可自定义,与下方文件名保持一致即可
'engine/translators/+':
- lua_translator@date_translator
engine/translators:
- punct_translator
- r10n_translator
- reverse_lookup_translator
# meaning of the regex: ^ start of line, \\ the starting \, .+ any char 1 or more time, $ end
recognizer/patterns/reverse_lookup: '^\\.+$'
schema/dependencies:
- latex
abc_segmentor/extra_tags:
- reverse_lookup
reverse_lookup:
dictionary: latex
enable_completion: false
tips: latex