Skip to content

Instantly share code, notes, and snippets.

Avatar

弓辰 lotem

View GitHub Profile
@lotem
lotem / cangjie5.custom.yaml
Created Aug 16, 2020
Rime config for testing vertical UI in Squirrel https://github.com/rime/squirrel/pull/441
View cangjie5.custom.yaml
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 Dec 4, 2017
为「朙月拼音·简化字」开启笔画反查
View luna_pinyin_simp.custom.yaml
# 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 Sep 27, 2016
中州話打字速記法
View stenotype_zhung.txt
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 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
---
View bopomofo_tw.custom.yaml
# Use a custom dictionary.
patch:
translator/dictionary: terra_pinyin.mine
@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 / 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 / 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
View middle_chinese_lookup.schema.yaml
# Rime schema
# encoding: utf-8
schema:
schema_id: middle_chinese_lookup
name: 廣韻查詢
version: "2.2"
author:
- Polyhedron
- 雪齋
View 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';
You can’t perform that action at this time.