Skip to content

Instantly share code, notes, and snippets.

@AlephAlpha AlephAlpha/greek.dict.yaml
Last active Feb 20, 2019

Embed
What would you like to do?
Rime 的希腊字母输入方案,也支持一些常用的数学符号。如果需要在其他输入方案中直接输入希腊字母,请参考:https://gist.github.com/lotem/3705586
# Rime dictionary
# encoding: utf-8
---
name: greek
version: "0.1"
sort: original
...
# 小写希腊字母
α alpha
β beta
γ gamma
δ delta
ε epsilon
ζ zeta
η eta
θ theta
ι iota
κ kappa
λ lambda
μ mu
ν nu
ξ xi
ο omicron
π pi
ρ rho
σ sigma
τ tau
υ upsilon
φ phi
χ chi
ψ psi
ω omega
# 大写希腊字母
Α Alpha
Β Beta
Γ Gamma
Δ Delta
Ε Epsilon
Ζ Zeta
Η Eta
Θ Theta
Ι Iota
Κ Kappa
Λ Lambda
Μ Mu
Ν Nu
Ξ Xi
Ο Omicron
Π Pi
Ρ Rho
Σ Sigma
Τ Tau
Υ Upsilon
Φ Phi
Χ Chi
Ψ Psi
Ω Omega
# 希腊字母变体
# 只收录用作数学符号的
ϵ epsilon
ϑ theta
ϰ kappa
ϖ pi
ϱ rho
ς sigma
ϕ phi
Ϝ Digamma
ϝ digamma
# 其他数学符号
# 主要参考的是 TeX
# https://en.wikipedia.org/wiki/Help:Displaying_a_formula
∂ partial
∇ nabla
∞ infty
ℵ aleph
√ sqrt
√ surd
± pm
× times
÷ div
∘ circ
⊕ oplus
⊗ otimes
∅ empty
∈ in
∉ notin
∋ ni
∩ cap
∪ cup
⊂ subset
⊃ supset
⊆ subseteq
⊇ supseteq
≠ ne
≡ equiv
≅ cong
≈ approx
≤ le
≥ ge
∀ forall
∃ exists
∨ or
∧ and
∨ vee
∧ wedge
¬ neg
→ to
∑ sum
∏ prod
∐ coprod
∫ int
∮ oint
# Rime schema
# encoding: utf-8
schema:
schema_id: greek
name: 希腊字母
version: "0.1"
author:
- AlephAlpha <alephalpha911@gmail.com>
description: |
输入希腊字母及其他数学符号。
switches:
- name: ascii_mode
reset: 0
states: [ 希腊, 拉丁 ]
engine:
processors:
- ascii_composer
- speller
- selector
- navigator
- express_editor
segmentors:
- ascii_segmentor
- abc_segmentor
- fallback_segmentor
translators:
- r10n_translator
filters:
- uniquifier
speller:
alphabet: 'ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba'
delimiter: " '"
algebra:
- derive/([A-Z])/\L$1/
translator:
dictionary: greek
enable_user_dict: false
spelling_hints: 1
@et2010

This comment has been minimized.

Copy link

et2010 commented May 10, 2016

我想在明月简体拼音输入方案中使用,但是按照链接中所说方法设置无效。我的luna_pinyin_simp.custom.yaml文件如下:

# luna_pinyin.custom.yaml
#
# 在【朙月拼音】裏使用Greek字符
#
# 保存到Rime用戶文件夾後,重新部署生效
# ~/.config/ibus/rime  (linux)
# ~/Library/Rime       (macos)
# %APPDATA%\Rime       (windows)
#
# 如果目標文件已經包含其他修改內容,只需按照縮進合併 patch: 以下的部分
#

patch:
  schema/dependencies:
    - greek
  abc_segmentor/extra_tags:
    - reverse_lookup
  reverse_lookup:
    dictionary: greek
    enable_completion: false
    prefix: "`"
    tips: 〔数学〕

@AlephAlpha 这样设置对吗?

@AlephAlpha

This comment has been minimized.

Copy link
Owner Author

AlephAlpha commented May 15, 2016

@et2010 是我没写清楚。用简体拼音的话,还要加点别的东西,参看那个链接下面的评论。也就是改成这样:

# luna_pinyin_simp.custom.yaml

patch:
  engine/translators:
    - punct_translator
    - r10n_translator
    - reverse_lookup_translator
  recognizer/patterns/reverse_lookup: "`[a-z]*$"
  schema/dependencies:
    - greek
  abc_segmentor/extra_tags:
    - reverse_lookup
  reverse_lookup:
    dictionary: greek
    enable_completion: false
    prefix: "`"
    tips: 〔数学〕
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.