Skip to content

A librime filter plugin that can lookup dictionaries and override current comments of candidates

License

Notifications You must be signed in to change notification settings

TypeDuck-HK/rime-dictionary-lookup-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rime-dictionary-lookup-filter

A librime filter plugin that can lookup dictionaries and override current comments of candidates with comments provided by another dictionary

installation

cd librime/plugins/
git clone https://github.com/TypeDuck-HK/rime-dictionary-lookup-filter.git dictionary_plugin

then compile librime

usage

example: in jyutping.schema.yaml

  filters:
    - simplifier@variants_hk
    - simplifier@trad_tw
    - simplifier
    - simplifier@emoji_suggestion

put dictionary_lookup_filter on below.

  filters:
    - simplifier@variants_hk
    - simplifier@trad_tw
    - simplifier
    - simplifier@emoji_suggestion
    - dictionary_lookup_filter

options for dictionary_lookup_filter

dictionary_lookup_filter:
    dictionary: anotherDict

anotherDict.schema.yaml

# Rime schema
# encoding: utf-8

schema:
  schema_id: anotherDict
  name: anotherDict
  version: "0.1"
  author:
    - ZNL
  description: |
    a dictionary for compile a trie-dictioinary
switches:
  - name: ascii_mode
    reset: 0
    states: [ 中文, 英文 ]

engine:
  processors:
    - ascii_composer
  segmentors:
    - ascii_segmentor
  translators:
    - table_translator

translator:
  dictionary: anotherDict

anotherDict.dict.yaml

---
name: anotherDict
version: "0.0"
sort: original
use_preset_vocabulary: false
...

(a place name) Hong Kong	香港|hoeng1gong2

About

A librime filter plugin that can lookup dictionaries and override current comments of candidates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published