Skip to content

Instantly share code, notes, and snippets.

View lotem's full-sized avatar

居戎氏 lotem

  • Beijing, China
View GitHub Profile
@lotem
lotem / jyutping.custom.yaml
Created June 16, 2014 05:08
在粵拼中啓用臺灣正體字形
# encoding: utf-8
# vim: set sw=2 sts=2 et:
#
# 在粵拼中啓用臺灣正體字形
# 修改 reset: 爲 0~2 的值以指定默認字形
patch:
engine/filters:
- simplifier@zh_simp
- simplifier@zh_tw
@lotem
lotem / cangjie5.custom.yaml
Last active August 29, 2015 14:02
用注音反查倉頡碼
# vim: set sw=2 sts=2 et:
# 用注音反查倉頡碼
# 註:不支持用空格鍵輸入第一聲
patch:
schema/dependencies:
- bopomofo
reverse_lookup:
dictionary: terra_pinyin
prism: bopomofo
@lotem
lotem / test-node-marisa-trie.js
Last active August 29, 2015 14:03
Test Trie.reverse_lookup() and Trie.map() features.
var marisa = require('./index.js');
var keyset = marisa.createKeyset();
keyset.push_back("a");
keyset.push_back("app");
keyset.push_back("apple");
var trie = marisa.createTrie();
trie.build(keyset);
@lotem
lotem / luna_pinyin.schema.yaml
Last active August 29, 2015 14:17
Proposal of Rime config subtree loading
# Rime schema: luna_pinyin
# _import: future.schema.yaml
---
# no more need to create the patched file
_patch: 'luna_pinyin.custom.yaml:patch'
_import: luna_pinyin.prototype.yaml # replace the root node
---
@lotem
lotem / stenotype.schema.yaml
Created March 22, 2012 14:43
Rime輸入方案【速記打字法】
# Rime schema
# vim: set sw=2 sts=2 et:
# encoding: utf-8
schema:
schema_id: stenotype
name: 速記打字法
version: "0.2"
author:
- 佛振 <chen.sst@gmail.com>
@lotem
lotem / cangjie5-ext-abcd-markup.py
Created July 1, 2012 07:32
倉頡碼表標註Ext-A/B/C/D
#!/usr/bin/env python
import sys
for x in sys.stdin:
t = x.rstrip().split("\t")
if len(t) != 2:
print x,
continue
ch = t[0].decode('utf8')
if len(ch) != 1:
@lotem
lotem / kuankhiunn.dict.yaml
Created October 25, 2012 04:57
〔Rime 輸入方案〕有女同車廣韻羅馬字
# Rime dictionary
# vim: set ts=8 sw=8 noet:
# encoding: utf-8
#
# kuankhiunn - 廣韻羅馬字
#
# 基於Polyhedron、有女同車整理的《廣韻全字表》製作
# 拼寫方案採用有女同車羅馬字,佛振根據有女同車的修改意見改編
#
@lotem
lotem / user.conf
Created November 6, 2012 10:36
百度输入法配置文件——自定义双拼方案
ShuangPin :
{
ZiRanMa :
{
YinJie :
{
a="oa";
ai="ol";
an="oj";
ang="oh";
@lotem
lotem / cangjie_pinyin.dict.yaml
Created January 10, 2013 15:05
【倉頡拼音】輸入方案 以拼寫運算實現輔助碼的示例
This file has been truncated, but you can view the full file.
# Rime dictionary
# encoding: utf-8
---
name: cangjie_pinyin
version: "1.0"
sort: by_weight
use_preset_vocabulary: true
max_phrase_length: 5
min_phrase_weight: 100
@lotem
lotem / cangjie_quick.schema.yaml
Created June 10, 2013 06:28
倉頡碼打單字,倉頡碼、速成碼混打詞句。 演示 fuzz 拼寫運算與 translator/strict_spelling: 選項。
# Rime schema settings
# encoding: utf-8
schema:
schema_id: cangjie_quick
name: 倉頡+速成
version: "0.1"
author:
- 佛振 <chen.sst@gmail.com>
description: |