Last active
July 8, 2018 05:45
-
-
Save lo48576/4104005 to your computer and use it in GitHub Desktop.
Revisions
-
らりお (YOSHIOKA Takuma) revised this gist
Dec 22, 2017 . 1 changed file with 0 additions and 224 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,224 +0,0 @@ -
Larry revised this gist
Aug 11, 2014 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -148,7 +148,7 @@ あきつ丸|あきつまる ; 「まるゆ」無理。Unicodeの合成とかでできるのかもだけど、skk-uimじゃ無理。euc-jpだから。 ; 申し訳程度に片仮名バージョン入れとく(これも使えるかわからないが) ; 追記: ごめん無理だった。uim-skk、Unicodeネイティブになってくれないかなー ㋴|まるゆ 弥生|やよい 卯月|うづき @@ -159,9 +159,9 @@ ;; No.171-180 Bismarck/ビスマルク|びすまるく/bismarck ビスマルク|Bismarck Z1 Leberecht Maass/Leberecht Maass/レーベレヒト・マース|れーべれひとまーす/Z1/z1 Z1|れーべれひとまーす Z3 Max Schultz/Max Schultz/マックス・シュルツ|まっくすしゅるつ/Z3/z3 Z3|まっくすしゅるつ ;; No.181-190 天津風|あまつかぜ @@ -221,3 +221,4 @@ Z3|まっくすしゅるつ 輪形陣|りんけいじん 梯形陣|ていけいじん 単横陣|たんおうじん/たんよこ -
Larry revised this gist
Aug 11, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -148,6 +148,7 @@ あきつ丸|あきつまる ; 「まるゆ」無理。Unicodeの合成とかでできるのかもだけど、skk-uimじゃ無理。euc-jpだから。 ; 申し訳程度に片仮名バージョン入れとく(これも使えるかわからないが) ; 追記: ごめん無理だった。uim-skk、Unicode対応してくれないかなー ㋴|まるゆ 弥生|やよい 卯月|うづき -
Larry revised this gist
Aug 11, 2014 . 1 changed file with 222 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,222 @@ ; dictionary for kancolle ; mkss2cdbで変換するとskk用に使えます。 ; これ使う前にSKK-JISYO.L使えば入渠とか工廠とか重巡とか彩雲とか矢矧とか結構カバーできるので ; とりあえずそこから試すべき。 ; ちなみに隼鷹(じゅんよう)とかはSKK-JISYO.Lでも無理。 ; 艦船 (一覧順) ;; No.001-010 長門|ながと/ながもん 陸奥|むつ 伊勢|いせ 日向|ひゅうが 雪風|ゆきかぜ 赤城|あかぎ 加賀|かが 蒼龍|そうりゅう 飛龍|ひりゅう 島風|しまかぜ ;; No.011-020 吹雪|ふぶき 白雪|しらゆき 初雪|はつゆき 深雪|みゆき 叢雲|むらくも 磯波|いそなみ 綾波|あやなみ 敷波|しきなみ 大井|おおい 北上|きたかみ ;; No.021-030 金剛|こんごう 比叡|ひえい 榛名|はるな 霧島|きりしま 鳳翔|ほうしょう 扶桑|ふそう 山城|やましろ 天龍|てんりゅう 龍田|たつた 龍驤|りゅうじょう ;; No.031-040 睦月|むつき 如月|きさらぎ 皐月|さつき 文月|ふみづき 長月|ながつき 菊月|きくづき 三日月|みかづき 望月|もちづき 球磨|くま 多摩|たま ;; No.041-050 木曾|きそ 長良|ながら 五十鈴|いすず 名取|なとり 由良|ゆら 川内|せんだい 神通|じんつう 那珂|なか 千歳|ちとせ 千代田|ちよだ ;; No.051-060 最上|もがみ 古鷹|ふるたか 加古|かこ 青葉|あおば 妙高|みょうこう 那智|なち 足柄|あしがら 羽黒|はぐろ 高雄|たかお 愛宕|あたご ;; No.061-070 摩耶|まや 鳥海|ちょうかい 利根|とね 筑摩|ちくま 飛鷹|ひよう 隼鷹|じゅんよう 朧|おぼろ 曙|あけぼの 漣|さざなみ 潮|うしお ;; No.071-080 暁|あかつき 響|ひびき 雷|いかずち 電|いなづま 初春|はつはる 子日|ねのひ 若葉|わかば 初霜|はつしも 白露|しらつゆ 時雨|しぐれ ;; No.081-090 村雨|むらさめ 夕立|ゆうだち 五月雨|さみだれ 涼風|すずかぜ 朝潮|あさしお 大潮|おおしお 満潮|みちしお 荒潮|あらしお 霰|あられ 霞|かすみ ;; No.091-100 陽炎|かげろう 不知火|しらぬい 黒潮|くろしお 祥鳳|しょうほう ;; No.101-110 翔鶴|しょうかく 瑞鶴|ずいかく 鬼怒|きぬ 阿武隈|あぶくま ;; No.111-120 夕張|ゆうばり 瑞鳳|ずいほう 三隈|みくま 初風|はつかぜ 舞風|まいかぜ 衣笠|きぬがさ ;; No.121-130 伊19|い19/いく 鈴谷|すずや 熊野|くまの 伊168|い168/いむや 伊58|い58/ごーや 伊8|い8/いはち/はち ;; No.131-140 大和|やまと 秋雲|あきぐも 夕雲|ゆうぐも 巻雲|まきぐも 長波|ながなみ 阿賀野|あがの 能代|のしろ 矢矧|やはぎ 酒匂|さかわ ;; No.141-150 武蔵|むさし Верный|う゛ぇーるぬい ;; No.151-160 大鳳|たいほう 伊401|い401/しおい ;; No.161-170 あきつ丸|あきつまる ; 「まるゆ」無理。Unicodeの合成とかでできるのかもだけど、skk-uimじゃ無理。euc-jpだから。 ; 申し訳程度に片仮名バージョン入れとく(これも使えるかわからないが) ㋴|まるゆ 弥生|やよい 卯月|うづき 磯風|いそかぜ 浦風|うらかぜ 谷風|たにかぜ 浜風|はまかぜ ;; No.171-180 Bismarck/ビスマルク|びすまるく/bismarck ビスマルク|Bismarck Z1 Leberecht Maass/Leberecht Maass/レーベレヒト・マース|れーべれひとまーす/Z1 Z1|れーべれひとまーす Z3 Max Schultz/Max Schultz/マックス・シュルツ|まっくすしゅるつ/Z3 Z3|まっくすしゅるつ ;; No.181-190 天津風|あまつかぜ 明石|あかし 大淀|おおよど 大鯨|たいげい 龍鳳|りゅうほう 時津風|ときつかぜ ;; No.191-200 ;; No.201-210 雲龍|うんりゅう 春雨|はるさめ 早霜|はやしも 清霜|きよしも ;; NPC 間宮|まみや ; 艦種 軽巡洋艦/軽巡|けいじゅんようかん/けいじゅん 重巡洋艦/重巡|じゅうじゅんようかん/じゅうじゅん 航空戦艦/航戦|こうくうせんかん/こうせん 航巡/航空巡洋艦|こうくうじゅんようかん|こうじゅん 重雷装巡洋艦/雷巡/重雷装艦|じゅうらいそうじゅんようかん/らいじゅん/じゅうらいそうかん 正規空母|せいきくうぼ 軽空母/軽母|けいくうぼ/けいぼ 水上機母艦/水母|すいじょうきぼかん|すいぼ 給糧艦|きゅうりょうかん ; 装備・装備種 単装砲|たんそうほう 連装砲|れんそうほう 連装高角砲|れんそうこうかくほう 連装副砲|れんそうふくほう 三連装|さんれんそう 四連装|よんれんそう 三連装砲|さんれんそうほう 三連装魚雷|さんれんそうぎょらい 四連装魚雷|よんれんそうぎょらい 艦攻|かんこう 艦戦|かんせん 瑞雲|ずいうん 彩雲|さいうん 三式弾/三式通常弾|さんしきだん/さんしきつうじょうだん 艦偵|かんてい 水上偵察機/水偵|すいじょうていさつき/すいてい 大発動艇|だいはつどうてい 探信儀|たんしんぎ 晴嵐|せいらん 噴進砲|ふんしんほう 水上機|すいじょうき 甲標的|こうひょうてき ; 陣形 単縦陣|たんじゅうじん/たんたて 複縦陣|ふくじゅうじん/ふくたて 輪形陣|りんけいじん 梯形陣|ていけいじん 単横陣|たんおうじん/たんよこ -
Larry revised this gist
Sep 5, 2013 . No changes.There are no files selected for viewing
-
Larry revised this gist
Sep 5, 2013 . No changes.There are no files selected for viewing
-
Larry revised this gist
Sep 5, 2013 . No changes.There are no files selected for viewing
-
Larry revised this gist
Nov 29, 2012 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,9 +11,9 @@ skk辞書形式かcdb形式(あるいは両方)で出力できます。 変換先と変換元のリストは、各項目を「/」で区切ります。 区切り文字の前後に空白は必要ありません(あった場合も無視されません)。 たとえば 例1/例に/例サン/example 4|れいいち/れいに/れいさん/れいよん/ex5 という行があれば、変換後の辞書を使うと 「れいいち」、「れいに」、「れいさん」、「れいよん」、「ex5」のどれを変換しても、候補に 「例1」、「例に」、「例サン」、「example 4」の全てが現れます。 下の例のような、複数の略称や表記があるような言葉の変換がとても楽になるでしょう。 @@ -27,7 +27,7 @@ sample input file: ; This will be converted to: ; リトルバスターズ! /りとばす/りとるばすたーず/ ; Little Busters! /りとばす/りとるばすたーず/ ; You can also write only one item. うみねこのなく頃に|うみねこ ; This will be converted to: ; うみねこのなく頃に /うみねこ/ -
Larry revised this gist
Nov 18, 2012 . 2 changed files with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,8 @@ skk辞書形式かcdb形式(あるいは両方)で出力できます。 下の例のような、複数の略称や表記があるような言葉の変換がとても楽になるでしょう。 sample commandline: mskk2cdb.sh -s my_jisho.skkdic -c my_jisho.cdb -d "sudo /etc/init.d/multiskkserv restart" find mywords/ -type f '!' -name '.*' -execdir cat '{}' + | mskk2cdb.sh -c my_jisho2.cdb sample input file: ; comment This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,8 +5,9 @@ eecho() { } usage() { eecho -e "Usage: `basename ${0}` [<options>] [<input files>...]" eecho -e "\tTool for multiskkserv." eecho -e "\tYou can use standard input instead of input files by not giving input files." eecho -e "options:" eecho -e "\t-s <skkdic output>\tOutput skkdic file." eecho -e "\t\t\t\tNote that this output might be invalid." -
Larry revised this gist
Nov 18, 2012 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -51,7 +51,6 @@ if [ $# -lt 1 ] ; then fi OUTPUT_FILE="$1" AWK_CONVERT_SCRIPT=' BEGIN { -
Larry revised this gist
Nov 18, 2012 . 2 changed files with 27 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,21 +1,32 @@ skkにて、略称や複数の読み/表記がある言葉を簡単に変換できるような辞書を作成するためのユーティリティ。 skk辞書形式かcdb形式(あるいは両方)で出力できます。 「[」や「/」など、skk辞書にて特殊な意味をもつ文字を含む文字列には対応していないので悪しからず。 外部でawk、nkf、tee、skkdic-p2cdb(multiskkservと一緒に配布されている)が必要です。 もしskkdic-p2cdbが無くても、skk辞書形式で出力できるのでmultiskkserv以外でも利用できます。 なお、skk辞書形式ではEUC-JPで出力され、ソートや重複の消去、不正なエントリの削除等は一切ないので、 必要なら別のツールで加工してください。 入力ファイルについて: 「|」で変換先と変換元を区切ります。 変換先と変換元のリストは、各項目を「/」で区切ります。 区切り文字の前後に空白は必要ありません(あった場合も無視されません)。 たとえば 例1/例に/例サン/example 4|れいいち/れいに/れいさん/れい よん/ex5 という行があれば、変換後の辞書を使うと 「れいいち」、「れいに」、「れいさん」、「れい よん」、「ex5」のどれを変換しても、候補に 「例1」、「例に」、「例サン」、「example 4」の全てが現れます。 下の例のような、複数の略称や表記があるような言葉の変換がとても楽になるでしょう。 sample commandline: mskk2cdb.sh -s my_jisho.skkdic -c my_jisho.cdb -d "sudo /etc/init.d/multiskkserv restart" sample input file: ; comment リトルバスターズ!/Little Busters!|りとばす/りとるばすたーず ; This will be converted to: ; リトルバスターズ! /りとばす/りとるばすたーず/ ; Little Busters! /りとばす/りとるばすたーず/ ; You can write only one item. うみねこのなく頃に|うみねこ ; This will be converted to: ; うみねこのなく頃に /うみねこ/ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ eecho() { } usage() { eecho -e "Usage: `basename ${0}` [<options>] <input files>..." eecho -e "\tTool for multiskkserv." eecho -e "options:" eecho -e "\t-s <skkdic output>\tOutput skkdic file." @@ -26,7 +26,7 @@ case "$1" in ;; esac while getopts "d:s:c:" OPT ; do case "$OPT" in "s") # skkdic output file @@ -36,6 +36,10 @@ while getopts "d:s:" OPT ; do # command DONE_COMMAND="$OPTARG" ;; "c") # cdb output file OUTPUT_CDB="$OPTARG" ;; esac done @@ -72,16 +76,19 @@ if [ "x${OUTPUT_SKK}" == "x" ] ; then eecho "ERROR: No output files." exit 2 fi cat "$@" | awk "${AWK_CONVERT_SCRIPT}" | nkf -e | skkdic-p2cdb "${OUTPUT_CDB}" chmod 444 "${OUTPUT_CDB}" else if [ "x${OUTPUT_CDB}" == "x" ] ; then cat "$@" | awk "${AWK_CONVERT_SCRIPT}" | nkf -e | tee "${OUTPUT_SKK}" else cat "$@" | awk "${AWK_CONVERT_SCRIPT}" | nkf -e | tee "${OUTPUT_SKK}" | skkdic-p2cdb "${OUTPUT_CDB}" chmod 444 "${OUTPUT_CDB}" fi fi if [ "x${DONE_COMMAND}" != "x" ] ; then # never quote args of eval. eval ${DONE_COMMAND} fi -
Larry revised this gist
Nov 18, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ skkにて、略称や複数の読み/表記がある言葉を簡単に変換できるような辞書を作成するためのユーティリティ。 skk辞書形式かcdb形式(あるいは両方)で出力できます。 「[」や「/」など、skk辞書にて特殊な意味をもつ文字を含む文字列には対応していないので悪しからず。 awkとnkf、skkdic-p2cdb(multiskkservと一緒に配布されている)が必要です。 もしskkdic-p2cdbが無くても、skk辞書形式で出力できるのでmultiskkserv以外でも利用できます。 なお、skk辞書形式ではEUC-JPで出力され、ソートや重複の消去、不正なエントリの削除等は一切ないので、 必要なら別のツールで加工してください。 -
Larry revised this gist
Nov 18, 2012 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,9 +2,14 @@ skkにて、略称や複数の読み/表記がある言葉を簡単に変換で skk辞書形式かcdb形式(あるいは両方)で出力できます。 「[」や「/」など、skk辞書にて特殊な意味をもつ文字を含む文字列には対応していないので悪しからず。 awkとskkdic-p2cdb(multiskkservと一緒に配布されている)が必要です。 もしskkdic-p2cdbが無くても、skk辞書形式で出力できるのでmultiskkserv以外でも利用できます。 なお、skk辞書形式ではEUC-JPで出力され、ソートや重複の消去、不正なエントリの削除等は一切ないので、 必要なら別のツールで加工してください。 sample commandline: mskk2cdb.sh -s my_jisho.skkdic -c my_jisho.cdb -d "sudo /etc/init.d/multiskkserv restart" sample input file: ; comment リトルバスターズ!/Little Busters!|りとばす/りとるばすたーず ; This will be converted to: -
Larry created this gist
Nov 18, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ skkにて、略称や複数の読み/表記がある言葉を簡単に変換できるような辞書を作成するためのユーティリティ。 skk辞書形式かcdb形式(あるいは両方)で出力できます。 「[」や「/」など、skk辞書にて特殊な意味をもつ文字を含む文字列には対応していないので悪しからず。 awkとskkdic-p2cdb(multiskkservと一緒に配布されている)が必要です。 sample input file: ; comment リトルバスターズ!/Little Busters!|りとばす/りとるばすたーず ; This will be converted to: ; リトルバスターズ! /りとばす/りとるばすたーず/ ; Little Busters! /りとばす/りとるばすたーず/ ; You can write only one item. うみねこのなく頃に|うみねこ ; This will be converted to: ; うみねこのなく頃に /うみねこ/ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,87 @@ #!/bin/sh eecho() { echo "$@" >&2 } usage() { eecho -e "Usage: `basename ${0}` [<options>] <output cdb file> <input files>..." eecho -e "\tTool for multiskkserv." eecho -e "options:" eecho -e "\t-s <skkdic output>\tOutput skkdic file." eecho -e "\t\t\t\tNote that this output might be invalid." eecho -e "\t\t\t\tUse tools like skk-tools to use the output." eecho -e "\t-c <cdb output>\t\tOutput cdb file." eecho -e "\t-d <command>\t\tCommand to execute when done." } OUTPUT_SKK= OUTPUT_CDB= DONE_COMMAND= case "$1" in "--help"|"-h") usage exit ;; esac while getopts "d:s:" OPT ; do case "$OPT" in "s") # skkdic output file OUTPUT_SKK="$OPTARG" ;; "d") # command DONE_COMMAND="$OPTARG" ;; esac done shift $(( ${OPTIND} - 1 )) if [ $# -lt 1 ] ; then usage exit 2 fi OUTPUT_FILE="$1" shift AWK_CONVERT_SCRIPT=' BEGIN { FS="|" } /^;/ { print ";"$0 } /.*\|.*/ && /^[^;]/ { #print $0 split($2, SRC, "/") #print "---" SRC[1] for(ITER in SRC) { print SRC[ITER] " /" $1 "/" } }' if [ "x${OUTPUT_SKK}" == "x" ] ; then if [ "x${OUTPUT_CDB}" == "x" ] ; then eecho "ERROR: No output files." exit 2 fi cat "$@" | awk "${AWK_CONVERT_SCRIPT}" | nkf -e | skkdic-p2cdb "${OUTPUT_FILE}" else if [ "x${OUTPUT_CDB}" == "x" ] ; then cat "$@" | awk "${AWK_CONVERT_SCRIPT}" | nkf -e | tee "${OUTPUT_SKK}" else cat "$@" | awk "${AWK_CONVERT_SCRIPT}" | nkf -e | tee "${OUTPUT_SKK}" | skkdic-p2cdb "${OUTPUT_FILE}" fi fi if [ "x${DONE_COMMAND}" != "x" ] ; then # never quote args of eval. eval ${DONE_COMMAND} fi