imfuxiao / Hamster

librime for iOS App
GNU General Public License v3.0
1.29k stars 80 forks source link

2.0.1版本造词无法保存 #399

Closed galaxy2000 closed 1 year ago

galaxy2000 commented 1 year ago

问题

输入自定义词组,点击太极图标造词按钮,词组无法被持久化保存,下次使用时得重新来。无法像在macOS squirrel那样被保存到用户词典文件中,下次可直接输入。

如: image

使用环境: 1、iOS版本17.1.1 2、输入法最新版2.0.1,使用自定义五笔方案。相关配置如下:

  # Rime schema settings
# encoding: utf-8

schema:
  schema_id: wubi86_jidian
  name: "极点五笔"
  version: "1.0"
  author:
    - 创始人 王永民先生
  description: |
    五笔字形 86 极点极爽版,方案由 KyleBing 修改 - 2019年11月08日 10:26
  dependencies:
    - clover

switches:
  - name: emoji_suggestion
    reset: 0
    states: [ "🈚️️\uFE0E", "🈶️️\uFE0F" ]
  - name: simplification 
    reset: 0
    states: [ 简体, 繁体]
  - name: full_shape
    states: [ 半角, 全角 ]
  - name: extended_charset
    reset: 1
      #states: [ 常用, 扩展 ]
  - name: ascii_punct
    states: [ 。,, ., ]

engine:
  processors:
    - ascii_composer
    - recognizer
    - key_binder
    - speller
    - punctuator
    - selector
    - navigator
    - express_editor
  segmentors:
    - ascii_segmentor
    - matcher
    - abc_segmentor
    - punct_segmentor
    - fallback_segmentor
  translators:
    - punct_translator
    - reverse_lookup_translator
    - table_translator
    - lua_translator@date_translator
  filters:
    - simplifier@emoji_suggestion
    - simplifier
    - uniquifier
speller:
  max_code_length: 4
  auto_select: true
  auto_select_unique_candidate: true

translator:
  dictionary: wubi86_jidian
  enable_charset_filter: true
  enable_completion: true
  enable_sentence: true
  enable_user_dict: true
  enable_encoder: true
  encode_commit_history: true
  comment_format:
    - xform/.+//
  max_phrase_length: 10
  db_class: tabledb
  user_dict: wubi86_jidian_user
  disable_user_dict_for_patterns:
    - "^z.*$"

reverse_lookup:
  dictionary: clover
  prefix: "z"
  suffix: "'"
  tips: [拼音]
  preedit_format:
    - xform/([nl])v/$1ü/
    - xform/([nl])ue/$1üe/
    - xform/([jqxy])v/$1u/

punctuator:
  import_preset: default

key_binder:
  import_preset: default

recognizer:
  import_preset: default
  patterns:
    punct: "^/([0-9]+[a-z]*|[a-z]+)$"
    reverse_lookup: "^z[a-z]*'?$"

方案部署步骤 1、在iOS文件中,将自定义五笔方案配置和相关词典文件拷贝到Hamster/SharedSupport目录下,然后更改同目录下default.yaml配置文件,在schema_list下增加自定义方案和注释未使用的。配置如下:


config_version: '0.40'

schema_list:
  - schema: clover
#  - schema: double_pinyin
#  - schema: double_pinyin_flypy
#  - schema: tiger
#  - schema: tigress
  - schema: wubi86
  - schema: wubi86_jidian
#  - schema: xkjd6
#  - schema: xmjd6
#  - schema: yuhao
#  - schema: yuhao_tw
#  - schema: yustar

switcher:
  caption: 〔方案選單〕

2、进入输入法设置/RIME/中重新部署方案,部署提示成功。查看RIME日志也是显示方案部署编译成功,输入法其他功能测试也正常。相关部署日志如下:


I20231115 00:40:51.209149 408642 core_module.cc:20] registering core components.
I20231115 00:40:51.211463 408642 registry.cc:14] registering component: config_builder
I20231115 00:40:51.211536 408642 registry.cc:14] registering component: config
I20231115 00:40:51.211710 408642 registry.cc:14] registering component: schema
I20231115 00:40:51.211735 408642 registry.cc:14] registering component: user_config
I20231115 00:40:51.211777 408642 dict_module.cc:25] registering components from module 'dict'.
I20231115 00:40:51.211814 408642 registry.cc:14] registering component: tabledb
I20231115 00:40:51.211828 408642 registry.cc:14] registering component: stabledb
I20231115 00:40:51.211850 408642 registry.cc:14] registering component: plain_userdb
I20231115 00:40:51.211863 408642 registry.cc:14] registering component: userdb
I20231115 00:40:51.211899 408642 registry.cc:14] registering component: corrector
I20231115 00:40:51.211939 408642 registry.cc:14] registering component: dictionary
I20231115 00:40:51.212519 408642 registry.cc:14] registering component: reverse_lookup_dictionary
I20231115 00:40:51.212576 408642 registry.cc:14] registering component: user_dictionary
I20231115 00:40:51.212594 408642 registry.cc:14] registering component: userdb_recovery_task
I20231115 00:40:51.213099 408642 gears_module.cc:42] registering components from module 'gears'.
I20231115 00:40:51.213153 408642 registry.cc:14] registering component: ascii_composer
I20231115 00:40:51.213167 408642 registry.cc:14] registering component: chord_composer
I20231115 00:40:51.213181 408642 registry.cc:14] registering component: express_editor
I20231115 00:40:51.213193 408642 registry.cc:14] registering component: fluid_editor
I20231115 00:40:51.213205 408642 registry.cc:14] registering component: fluency_editor
I20231115 00:40:51.213217 408642 registry.cc:14] registering component: key_binder
I20231115 00:40:51.213230 408642 registry.cc:14] registering component: navigator
I20231115 00:40:51.213243 408642 registry.cc:14] registering component: punctuator
I20231115 00:40:51.213260 408642 registry.cc:14] registering component: recognizer
I20231115 00:40:51.213272 408642 registry.cc:14] registering component: selector
I20231115 00:40:51.213284 408642 registry.cc:14] registering component: speller
I20231115 00:40:51.213296 408642 registry.cc:14] registering component: shape_processor
I20231115 00:40:51.213308 408642 registry.cc:14] registering component: abc_segmentor
I20231115 00:40:51.213322 408642 registry.cc:14] registering component: affix_segmentor
I20231115 00:40:51.213335 408642 registry.cc:14] registering component: ascii_segmentor
I20231115 00:40:51.213346 408642 registry.cc:14] registering component: matcher
I20231115 00:40:51.213358 408642 registry.cc:14] registering component: punct_segmentor
I20231115 00:40:51.213371 408642 registry.cc:14] registering component: fallback_segmentor
I20231115 00:40:51.213384 408642 registry.cc:14] registering component: echo_translator
I20231115 00:40:51.213397 408642 registry.cc:14] registering component: punct_translator
I20231115 00:40:51.213407 408642 registry.cc:14] registering component: table_translator
I20231115 00:40:51.213420 408642 registry.cc:14] registering component: script_translator
I20231115 00:40:51.213434 408642 registry.cc:14] registering component: r10n_translator
I20231115 00:40:51.213447 408642 registry.cc:14] registering component: reverse_lookup_translator
I20231115 00:40:51.213495 408642 registry.cc:14] registering component: schema_list_translator
I20231115 00:40:51.213510 408642 registry.cc:14] registering component: switch_translator
I20231115 00:40:51.213523 408642 registry.cc:14] registering component: history_translator
I20231115 00:40:51.213536 408642 registry.cc:14] registering component: simplifier
I20231115 00:40:51.213549 408642 registry.cc:14] registering component: uniquifier
I20231115 00:40:51.213562 408642 registry.cc:14] registering component: charset_filter
I20231115 00:40:51.213573 408642 registry.cc:14] registering component: cjk_minifier
I20231115 00:40:51.213586 408642 registry.cc:14] registering component: reverse_lookup_filter
I20231115 00:40:51.213598 408642 registry.cc:14] registering component: single_char_filter
I20231115 00:40:51.213701 408642 registry.cc:14] registering component: shape_formatter
I20231115 00:40:51.213747 408642 lua_module.cc:65] registering components from module 'lua'.
I20231115 00:40:51.248474 408642 registry.cc:14] registering component: lua_translator
I20231115 00:40:51.248502 408642 registry.cc:14] registering component: lua_filter
I20231115 00:40:51.248512 408642 registry.cc:14] registering component: lua_segmentor
I20231115 00:40:51.248523 408642 registry.cc:14] registering component: lua_processor
I20231115 00:40:51.248571 408642 levers_module.cc:22] registering components from module 'levers'.
I20231115 00:40:51.248577 408642 registry.cc:14] registering component: detect_modifications
I20231115 00:40:51.248584 408642 registry.cc:14] registering component: installation_update
I20231115 00:40:51.248591 408642 registry.cc:14] registering component: workspace_update
I20231115 00:40:51.248598 408642 registry.cc:14] registering component: schema_update
I20231115 00:40:51.248606 408642 registry.cc:14] registering component: config_file_update
I20231115 00:40:51.248613 408642 registry.cc:14] registering component: prebuild_all_schemas
I20231115 00:40:51.248620 408642 registry.cc:14] registering component: user_dict_upgrade
I20231115 00:40:51.248631 408642 registry.cc:14] registering component: cleanup_trash
I20231115 00:40:51.248636 408642 registry.cc:14] registering component: user_dict_sync
I20231115 00:40:51.248643 408642 registry.cc:14] registering component: backup_config_files
I20231115 00:40:51.248649 408642 registry.cc:14] registering component: clean_old_log_files
I20231115 00:40:51.249783 408642 deployment_tasks.cc:82] updating rime installation info.
I20231115 00:40:51.249908 408642 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/installation.yaml'.
I20231115 00:40:51.251292 408642 deployment_tasks.cc:100] installation info exists. installation id: da99faf0-0138-46c2-8c70-5f0be138f0c5
I20231115 00:40:51.251304 408642 deployment_tasks.cc:111] sync dir: /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/sync
I20231115 00:40:51.251312 408642 deployment_tasks.cc:113] previous distribution: Hamster
I20231115 00:40:51.251319 408642 deployment_tasks.cc:116] previous distribution version: 1
I20231115 00:40:51.251327 408642 deployment_tasks.cc:119] previous Rime version: 1.9.0
I20231115 00:40:51.251374 408642 deployer.cc:113] starting work thread for 3 tasks.
I20231115 00:40:51.251441 408844 deployer.cc:79] running deployment tasks:
I20231115 00:40:51.251489 408844 deployment_tasks.cc:162] updating workspace.
I20231115 00:40:51.251871 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/default.yaml'.
I20231115 00:40:51.254240 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/default.yaml'.
I20231115 00:40:51.255113 408844 deployment_tasks.cc:185] updating schemas.
I20231115 00:40:51.255144 408844 deployment_tasks.cc:194] schema: clover
I20231115 00:40:51.255312 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/SharedSupport/clover.schema.yaml'.
I20231115 00:40:51.256196 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/clover.schema.yaml'.
I20231115 00:40:51.263455 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/clover.schema.yaml'.
I20231115 00:40:51.269541 408844 deployment_tasks.cc:358] preparing dictionary 'clover'.
I20231115 00:40:51.269922 408844 dict_compiler.cc:83] compiling dictionary for /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/clover.schema.yaml
I20231115 00:40:51.484084 408844 table.cc:254] loading table file: /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/clover.table.bin
I20231115 00:40:51.487756 408844 prism.cc:76] loading prism file: /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/clover.prism.bin
I20231115 00:40:51.487951 408844 prism.cc:106] found double array image of size 2304.
I20231115 00:40:51.487983 408844 dict_compiler.cc:128] "/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/SharedSupport/clover.dict.yaml"[15 file(s)] (1265719296)
I20231115 00:40:51.487991 408844 dict_compiler.cc:130] /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/clover.schema.yaml (2729905749)
I20231115 00:40:51.488081 408844 reverse_lookup_dictionary.cc:34] loading reversedb: /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/clover.reverse.bin
I20231115 00:40:51.488698 408844 deployment_tasks.cc:375] dictionary 'clover' is ready.
I20231115 00:40:51.488950 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/clover.schema.yaml'.
I20231115 00:40:51.493052 408844 deployment_tasks.cc:194] schema: emoji
W20231115 00:40:51.493111 408844 deployment_tasks.cc:204] missing input schema; skipped unsatisfied dependency: emoji
I20231115 00:40:51.493513 408844 deployment_tasks.cc:194] schema: wubi86
I20231115 00:40:51.493625 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/SharedSupport/wubi86.schema.yaml'.
I20231115 00:40:51.494324 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86.schema.yaml'.
I20231115 00:40:51.495713 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86.schema.yaml'.
I20231115 00:40:51.496484 408844 deployment_tasks.cc:358] preparing dictionary 'wubi86'.
I20231115 00:40:51.496557 408844 dict_compiler.cc:83] compiling dictionary for /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86.schema.yaml
I20231115 00:40:51.499302 408844 table.cc:254] loading table file: /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86.table.bin
I20231115 00:40:51.500126 408844 prism.cc:76] loading prism file: /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86.prism.bin
I20231115 00:40:51.500342 408844 prism.cc:106] found double array image of size 56064.
I20231115 00:40:51.500355 408844 dict_compiler.cc:128] "/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/SharedSupport/wubi86.dict.yaml"[1 file(s)] (2494271832)
I20231115 00:40:51.500361 408844 dict_compiler.cc:130] /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86.schema.yaml (1833411510)
I20231115 00:40:51.500432 408844 reverse_lookup_dictionary.cc:34] loading reversedb: /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86.reverse.bin
I20231115 00:40:51.501344 408844 deployment_tasks.cc:375] dictionary 'wubi86' is ready.
I20231115 00:40:51.501420 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86.schema.yaml'.
I20231115 00:40:51.502158 408844 deployment_tasks.cc:194] schema: pinyin_simp
I20231115 00:40:51.502277 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/SharedSupport/pinyin_simp.schema.yaml'.
I20231115 00:40:51.502818 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/pinyin_simp.schema.yaml'.
I20231115 00:40:51.507635 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/pinyin_simp.schema.yaml'.
I20231115 00:40:51.511425 408844 deployment_tasks.cc:358] preparing dictionary 'pinyin_simp'.
I20231115 00:40:51.511497 408844 dict_compiler.cc:83] compiling dictionary for /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/pinyin_simp.schema.yaml
I20231115 00:40:51.520671 408844 table.cc:254] loading table file: /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/pinyin_simp.table.bin
I20231115 00:40:51.521612 408844 prism.cc:76] loading prism file: /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/pinyin_simp.prism.bin
I20231115 00:40:51.521919 408844 prism.cc:106] found double array image of size 1536.
I20231115 00:40:51.521929 408844 dict_compiler.cc:128] "/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/SharedSupport/pinyin_simp.dict.yaml"[1 file(s)] (808107734)
I20231115 00:40:51.521936 408844 dict_compiler.cc:130] /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/pinyin_simp.schema.yaml (1361391506)
I20231115 00:40:51.521996 408844 reverse_lookup_dictionary.cc:34] loading reversedb: /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/pinyin_simp.reverse.bin
I20231115 00:40:51.522524 408844 deployment_tasks.cc:375] dictionary 'pinyin_simp' is ready.
I20231115 00:40:51.522738 408844 deployment_tasks.cc:194] schema: wubi86_jidian
I20231115 00:40:51.522852 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/SharedSupport/wubi86_jidian.schema.yaml'.
I20231115 00:40:51.523350 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86_jidian.schema.yaml'.
I20231115 00:40:51.524663 408844 deployment_tasks.cc:418] source file changed: /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/SharedSupport/wubi86_jidian.schema.yaml
I20231115 00:40:51.524763 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/SharedSupport/wubi86_jidian.schema.yaml'.
I20231115 00:40:51.525033 408844 auto_patch_config_plugin.cc:29] auto-patch wubi86_jidian.schema:/__patch: wubi86_jidian.custom:/patch?
W20231115 00:40:51.525079 408844 config_data.cc:66] nonexistent config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/wubi86_jidian.custom.yaml'.
I20231115 00:40:51.525091 408844 config_compiler.cc:426] optional resource not loaded: wubi86_jidian.custom
I20231115 00:40:51.525096 408844 config_compiler.cc:537] resolved: Patch(wubi86_jidian.custom:patch <optional>)
I20231115 00:40:51.525156 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/SharedSupport/default.yaml'.
I20231115 00:40:51.525490 408844 auto_patch_config_plugin.cc:29] auto-patch default:/__patch: default.custom:/patch?
I20231115 00:40:51.525552 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/SharedSupport/punctuation.yaml'.
I20231115 00:40:51.526087 408844 auto_patch_config_plugin.cc:29] auto-patch punctuation:/__patch: punctuation.custom:/patch?
W20231115 00:40:51.526132 408844 config_data.cc:66] nonexistent config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/punctuation.custom.yaml'.
I20231115 00:40:51.526142 408844 config_compiler.cc:426] optional resource not loaded: punctuation.custom
I20231115 00:40:51.526154 408844 config_compiler.cc:537] resolved: Patch(punctuation.custom:patch <optional>)
I20231115 00:40:51.526160 408844 config_compiler.cc:537] resolved: Include(punctuation:/full_shape)
I20231115 00:40:51.526163 408844 config_compiler.cc:537] resolved: PendingChild(default:/punctuator/full_shape)
I20231115 00:40:51.526170 408844 config_compiler.cc:537] resolved: Include(punctuation:/half_shape)
I20231115 00:40:51.526173 408844 config_compiler.cc:537] resolved: PendingChild(default:/punctuator/half_shape)
I20231115 00:40:51.526178 408844 config_compiler.cc:537] resolved: PendingChild(default:/punctuator)
I20231115 00:40:51.526238 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/SharedSupport/key_bindings.yaml'.
I20231115 00:40:51.526823 408844 auto_patch_config_plugin.cc:29] auto-patch key_bindings:/__patch: key_bindings.custom:/patch?
W20231115 00:40:51.526867 408844 config_data.cc:66] nonexistent config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/key_bindings.custom.yaml'.
I20231115 00:40:51.526877 408844 config_compiler.cc:426] optional resource not loaded: key_bindings.custom
I20231115 00:40:51.526882 408844 config_compiler.cc:537] resolved: Patch(key_bindings.custom:patch <optional>)
I20231115 00:40:51.526888 408844 config_compiler.cc:214] patching __append
I20231115 00:40:51.526894 408844 config_compiler.cc:537] resolved: Patch(key_bindings:/emacs_editing)
I20231115 00:40:51.526901 408844 config_compiler.cc:214] patching __append
I20231115 00:40:51.526906 408844 config_compiler.cc:537] resolved: Patch(key_bindings:/move_by_word_with_tab)
I20231115 00:40:51.526911 408844 config_compiler.cc:214] patching __append
I20231115 00:40:51.526916 408844 config_compiler.cc:537] resolved: Patch(key_bindings:/paging_with_minus_equal)
I20231115 00:40:51.526921 408844 config_compiler.cc:214] patching __append
I20231115 00:40:51.526926 408844 config_compiler.cc:537] resolved: Patch(key_bindings:/paging_with_comma_period)
I20231115 00:40:51.526932 408844 config_compiler.cc:214] patching __append
I20231115 00:40:51.526937 408844 config_compiler.cc:537] resolved: Patch(key_bindings:/numbered_mode_switch)
I20231115 00:40:51.526942 408844 config_compiler.cc:537] resolved: PendingChild(default:/key_binder/bindings)
I20231115 00:40:51.526945 408844 config_compiler.cc:537] resolved: PendingChild(default:/key_binder)
W20231115 00:40:51.526985 408844 config_data.cc:66] nonexistent config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/default.custom.yaml'.
I20231115 00:40:51.526994 408844 config_compiler.cc:426] optional resource not loaded: default.custom
I20231115 00:40:51.526999 408844 config_compiler.cc:537] resolved: Patch(default.custom:patch <optional>)
I20231115 00:40:51.527007 408844 legacy_preset_config_plugin.cc:26] interpreting key_binder/import_preset: default
I20231115 00:40:51.527015 408844 legacy_preset_config_plugin.cc:52] interpreting punctuator/import_preset: default
I20231115 00:40:51.527022 408844 legacy_preset_config_plugin.cc:65] interpreting recognizer/import_preset: default
I20231115 00:40:51.527053 408844 build_info_plugin.cc:25] resource 'default.custom' not loaded.
I20231115 00:40:51.527081 408844 build_info_plugin.cc:25] resource 'key_bindings.custom' not loaded.
I20231115 00:40:51.527109 408844 build_info_plugin.cc:25] resource 'punctuation.custom' not loaded.
I20231115 00:40:51.527114 408844 build_info_plugin.cc:25] resource 'wubi86_jidian.custom' not loaded.
I20231115 00:40:51.527143 408844 config_data.cc:88] saving config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86_jidian.schema.yaml'.
I20231115 00:40:51.527900 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86_jidian.schema.yaml'.
I20231115 00:40:51.528692 408844 deployment_tasks.cc:358] preparing dictionary 'wubi86_jidian'.
I20231115 00:40:51.528761 408844 dict_compiler.cc:83] compiling dictionary for /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86_jidian.schema.yaml
I20231115 00:40:51.537477 408844 table.cc:254] loading table file: /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86_jidian.table.bin
I20231115 00:40:51.538727 408844 prism.cc:76] loading prism file: /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86_jidian.prism.bin
I20231115 00:40:51.538918 408844 prism.cc:106] found double array image of size 166656.
I20231115 00:40:51.538928 408844 dict_compiler.cc:128] "/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/SharedSupport/wubi86_jidian.dict.yaml"[5 file(s)] (292354944)
I20231115 00:40:51.538933 408844 dict_compiler.cc:130] /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86_jidian.schema.yaml (957816080)
I20231115 00:40:51.538995 408844 reverse_lookup_dictionary.cc:34] loading reversedb: /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86_jidian.reverse.bin
I20231115 00:40:51.540402 408844 dict_compiler.cc:281] building prism...
I20231115 00:40:51.540410 408844 table.cc:254] loading table file: /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86_jidian.table.bin
I20231115 00:40:51.567021 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86_jidian.schema.yaml'.
I20231115 00:40:51.577941 408844 mapped_file.cc:59] creating file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86_jidian.prism.bin'.
I20231115 00:40:51.584355 408844 mapped_file.cc:70] opening file for read/write access.
I20231115 00:40:51.588865 408844 prism.cc:117] saving prism file: /var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86_jidian.prism.bin
I20231115 00:40:51.588872 408844 mapped_file.cc:118] shrinking file to fit data size. capacity: 1603888
I20231115 00:40:51.588877 408844 mapped_file.cc:129] resize file to: 666940
I20231115 00:40:51.590489 408844 deployment_tasks.cc:375] dictionary 'wubi86_jidian' is ready.
I20231115 00:40:51.590571 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86_jidian.schema.yaml'.
I20231115 00:40:51.591328 408844 deployment_tasks.cc:242] finished updating schemas: 4 success, 0 failure.
I20231115 00:40:51.591364 408844 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/user.yaml'.
I20231115 00:40:51.591648 408844 config_data.cc:196] write: var/last_build_time
I20231115 00:40:51.591658 408844 config_data.cc:88] saving config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/user.yaml'.
I20231115 00:40:51.591832 408844 deployment_tasks.cc:580] clean up trash.
I20231115 00:40:51.591961 408844 deployer.cc:91] 3 tasks ran: 3 success, 0 failure.
W20231115 00:40:51.592056 408642 config_data.cc:66] nonexistent config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/squirrel.yaml'.
I20231115 00:40:51.592070 408642 deployment_tasks.cc:392] missing build info
W20231115 00:40:51.592154 408642 config_data.cc:66] nonexistent config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/squirrel.yaml'.
I20231115 00:40:51.592164 408642 auto_patch_config_plugin.cc:29] auto-patch squirrel:/__patch: squirrel.custom:/patch?
I20231115 00:40:51.592218 408642 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/default.yaml'.
I20231115 00:40:51.593192 408642 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/clover.schema.yaml'.
I20231115 00:40:51.597424 408642 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86.schema.yaml'.
I20231115 00:40:51.598165 408642 config_data.cc:69] loading config file '/var/mobile/Containers/Data/Application/E512873D-A9AE-4326-B3B7-B72A958684ED/Documents/Rime/build/wubi86_jidian.schema.yaml'.

3、完成多个造词后,查看SharedSupport目录下没有用户自定义词典文件,手动创建后文件内也不会有对应造词记录。

imfuxiao commented 1 year ago

您好,

综上,如果你需要看到键盘中的自造词文件,需要开启键盘的完全访问权限,并且查看路径在 "方案文件管理" -> “键盘文件”下。

此目录中,SharedSupport 是存放内置方案的地方,Rime 是用户目录,如果你是自己导入的方案,查看 Rime 目录下文件。

galaxy2000 commented 1 year ago

@imfuxiao 非常感谢您的及时回复!

我不是iOS开发,有几个小白问题还麻烦帮解答和确认下,谢谢!

  1. 方案文件管理中的「应用文件」和「键盘文件」的具体区别是什么?貌似看到是相同的文件;
  2. 这个是指手机上每个APP都有自己独立的运行沙箱,比如在微信聊天中使用的键盘方案,是临时从Hamster中复制到微信沙箱中运行。同时由于在系统层面没打开输入法(键盘)完全访问权限,所以在微信的沙箱运行环境下,无法往Hamster目录下写入造词文件?

    键盘使用的方案是app中方案的复制,两个存储的位置是不同的。

  3. 扩展自定义方案推荐做法,是建议按文档方式,把方案相关文件打包(zip)并copy到Rime目录下,并通过default.custom.yaml patch方式来扩展吗?
imfuxiao commented 1 year ago

您好,正如我上面说的,

问题1, iOS 系统安全限制,每个应用是有自己一套文件系统,彼此是隔离的,键盘与仓应用你可以理解为两个应用,彼此之间的文件系统是不能相互访问的。键盘的需要的文件就必须从应用中复制过去的,所以你看到是几乎相同的文件。

问题2,键盘运行的沙箱环境与微信这些app无关,你把键盘看成是个独立的app。

最后总结下,如果你需要将自造词导出,并同步到其他手机或PC,那么必须为键盘开启完全访问权限。如果不需要,则可以不用开启。

最后关于自造词同步的问题,wiki 中有同步的教程,您可以先查阅下。

galaxy2000 commented 1 year ago

噢,明白了,非常感谢!