Skip to content

Instantly share code, notes, and snippets.

弓辰 lotem

Block or report user

Report or block lotem

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lotem
lotem / jyutping.custom.yaml
Created Jun 16, 2014
在粵拼中啓用臺灣正體字形
View jyutping.custom.yaml
# 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 Aug 29, 2015
用注音反查倉頡碼
View cangjie5.custom.yaml
# 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 Aug 29, 2015
Test Trie.reverse_lookup() and Trie.map() features.
View test-node-marisa-trie.js
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 Aug 29, 2015
Proposal of Rime config subtree loading
View luna_pinyin.schema.yaml
# 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 Mar 22, 2012
Rime輸入方案【速記打字法】
View stenotype.schema.yaml
# 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.custom.yaml
Created Jun 17, 2012
Rime定製檔:設定【倉頡】的反查碼爲雙拼
View cangjie5.custom.yaml
# 因爲【雙拼】使用的詞典就是【朙月拼音】的詞典,所以輸入方案中原有的
# reverse_lookup/dictionary: luna_pinyin 保持不變,另外指定一項 prism
patch:
reverse_lookup/prism: double_pinyin
reverse_lookup/tips: 〔雙拼〕
reverse_lookup/preedit_format: []
@lotem
lotem / cangjie5-ext-abcd-markup.py
Created Jul 1, 2012
倉頡碼表標註Ext-A/B/C/D
View cangjie5-ext-abcd-markup.py
#!/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 Oct 25, 2012
〔Rime 輸入方案〕有女同車廣韻羅馬字
View kuankhiunn.dict.yaml
# Rime dictionary
# vim: set ts=8 sw=8 noet:
# encoding: utf-8
#
# kuankhiunn - 廣韻羅馬字
#
# 基於Polyhedron、有女同車整理的《廣韻全字表》製作
# 拼寫方案採用有女同車羅馬字,佛振根據有女同車的修改意見改編
#
@lotem
lotem / user.conf
Created Nov 6, 2012
百度输入法配置文件——自定义双拼方案
View user.conf
ShuangPin :
{
ZiRanMa :
{
YinJie :
{
a="oa";
ai="ol";
an="oj";
ang="oh";
@lotem
lotem / cangjie_pinyin.dict.yaml
Created Jan 10, 2013
【倉頡拼音】輸入方案 以拼寫運算實現輔助碼的示例
View cangjie_pinyin.dict.yaml
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
You can’t perform that action at this time.