Skip to content

Instantly share code, notes, and snippets.

@ShikiOkasaka
ShikiOkasaka / imcontext-demo.py
Created February 21, 2019 11:59
ibusの周辺テキストをつかった漢字入力に対応したアプリの例。
#!/usr/bin/python3
#
# Copyright (c) 2017 Esrille Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@ShikiOkasaka
ShikiOkasaka / html2txt.py
Last active September 3, 2017 08:16
打鍵時間の測定データをテキストデータ化するためのスクリプト例
#!/usr/bin/python3
import sys
import os
from bs4 import BeautifulSoup
characters = " abcdefghijklmnopqrstuvwxyz;,./['LR"
def main():
@ShikiOkasaka
ShikiOkasaka / ns12.zx.セサ.txt
Created August 12, 2017 01:38
New Stickney 12で、左手側ZXをセサで固定する案の計算結果
# 0
# 1000000
# 2000000
# 3000000
# 4000000
# 5000000
# 6000000
# 7000000
# 8000000
# 9000000
@ShikiOkasaka
ShikiOkasaka / zyouyou-kanji.x.csv
Created June 26, 2017 19:05
活用形と許容よみ(;9)を付加した常用漢字表
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 2 columns, instead of 4 in line 1.
亜,ア;7
哀,アイ;7,あわ―れ;7,あわ―れm;7
挨,アイ;7
愛,アイ;4
曖,アイ;7
悪,アク;3,わる―i;3,オ;8
握,アク;7,にぎ―r;7
圧,アツ;5
扱,あつか―w;7
宛,あ―て;7
@ShikiOkasaka
ShikiOkasaka / 500.txt
Created June 16, 2017 02:36
カン字500字制限案。『漢字制限の基本的研究』, 岡崎常太郎, 昭和13年より。(原案で旧字体のものは新字体にかえている。)
愛悪安案以位委異意違
医一壱引印員院右運営
役益駅園円遠横応屋億
乙音下火化加可何花果
科家夏貨過課価回改界
海開階会解外各客画確
学額活完官間感管館関
観願気起記期喜貴機器
帰義議吉九久休求急級
宮給去御魚共京教橋業
@ShikiOkasaka
ShikiOkasaka / imcontext-demo.py
Created June 7, 2017 12:47
An application that uses the IMContext surrounding text API
#!/bin/python3
#
# Copyright (c) 2017 Esrille Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@ShikiOkasaka
ShikiOkasaka / dousi.mdic
Last active April 9, 2017 16:34
梅棹式表記用のまぜがき辞書(restrained.dic)です。(https://github.com/uim/uim-doc-ja/wiki/UimTutcode 用) ‐ 参考: 『日本語と事務革命』 梅棹式表記法のための日本語入力システムをかんがえる, http://shiki.esrille.com/2017/04/blog-post.html
あ― /会/合/在/明/有/空/編/遭/開/
い― /入/忌/煎/要/言/射/行/鋳/
う― /売/得/打/撃/浮/生/産/討/
え― /得/獲/笑/
お― /折/押/推/織/置/負/追/
か― /刈/勝/嗅/描/書/欠/狩/買/貸/飼/交/
き― /切/利/効/斬/着/聞/聴/
く― /組/繰/酌/食/
け― /消/蹴/
こ― /乞/凝/恋/混/請/超/越/込/
@ShikiOkasaka
ShikiOkasaka / katuyou.dic
Created April 1, 2017 08:43
梅棹式表記法で漢字に変換することが許容される動詞の候補(mazegaki.dicより)
あ― /会/合/在/明/有/空/編/逢/遭/開/飽/
い― /云/入/往/忌/煎/良/要/言/謂/
う― /伐/売/得/憂/打/撃/浮/生/産/膿/討/
え― /得/獲/笑/選/
お― /圧/居/折/押/推/於/織/置/負/追/逐/
か― /刈/勝/化/噛/掻/描/書/欠/狩/科/穫/苅/買/貸/飼/駆/
が― /賀/
き― /伐/切/利/効/斬/聞/聴/訊/
ぎ― /切/
く― /喰/汲/組/繰/酌/食/
This file has been truncated, but you can view the full file.
あ /亜/吾/唖/娃/阿/
あ― /会/合/在/明/有/空/編/逢/遭/開/飽/
ああ /嗚呼/
あい /哀/姶/娃/愛/挨/曖/相/藍/隘/
あい― /愛/
あいいれな― /相容れな/
あいお /秋穂/
あいおい /相生/
あいか /哀歌/
あいかぎ /合鍵/
;;;
;;; Copyright (c) 2003-2013 uim Project http://code.google.com/p/uim/
;;;
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are met:
;;; 1. Redistributions of source code must retain the above copyright
;;; notice, this list of conditions and the following disclaimer.