Skip to content

Instantly share code, notes, and snippets.

View lotem's full-sized avatar

居戎氏 lotem

  • Beijing, China
View GitHub Profile
@lotem
lotem / cangjie5.custom.yaml
Created August 16, 2020 14:57
Rime config for testing vertical UI in Squirrel https://github.com/rime/squirrel/pull/441
patch:
# menu/alternative_select_labels: [ ㊀, ㊁, ㊂, ㊃, ㊄, ㊅, ㊆, ㊇, ㊈ ]
# menu/alternative_select_labels: [ ㈠, ㈡, ㈢, ㈣, ㈤, ㈥, ㈦, ㈧, ㈨ ]
menu/alternative_select_labels: [ 一, 二, 三, 四, 五, 六, 七, 八, 九 ]
translator/preedit_format:
- "xlit|abcdefghijklmnopqrstuvwxyz|日月金木水火土竹戈十大中一弓人心手口尸廿山女田難卜符|"
@lotem
lotem / luna_pinyin_simp.custom.yaml
Created December 4, 2017 06:32
为「朙月拼音·简化字」开启笔画反查
# encoding: utf-8
patch:
schema/dependencies/@next: stroke
engine/translators/@next: reverse_lookup_translator
recognizer/patterns/reverse_lookup: "`[a-z]*'?$"
reverse_lookup:
dictionary: stroke
enable_completion: true
prefix: "`"
@lotem
lotem / stenotype_zhung.txt
Created September 27, 2016 05:29
中州話打字速記法
https://www.evernote.com/shard/s64/sh/00db69f5-cb6e-44df-ab36-03200d3a35fa/673b24375c29312300e4cb698675afa5
中州話打字速記法
#stenotype
zmBo/ 字母表
b 不 p 普 m 母 f 父 v 無
B 比 P 皮 M 米 F 非 V 未
@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
---
# Use a custom dictionary.
patch:
translator/dictionary: terra_pinyin.mine
@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 / 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 / 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
# Rime schema
# encoding: utf-8
schema:
schema_id: middle_chinese_lookup
name: 廣韻查詢
version: "2.2"
author:
- Polyhedron
- 雪齋
@lotem
lotem / test.js
Created January 13, 2014 08:03 — forked from jmyrland/test.js
/**
* Modify the parts you need to get it working.
*/
var should = require('should');
var request = require('../node_modules/request');
var io = require('socket.io-client');
var serverUrl = 'http://localhost';