This file contains 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 characters
# -*- encoding: utf-8 -*- | |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'MeCab' | |
mecab = MeCab::Tagger.new("") | |
ARGV.each{ |arg| | |
kana = '' | |
parse_node = mecab.parseToNode(arg) |
This file contains 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 characters
;;バッファ全体の句読点と読点をコンマとピリオドに変換 | |
(defun replace-commaperiod-buffer () | |
(interactive "r") | |
(save-excursion | |
(replace-string "、" "," nil (point-min) (point-max)) | |
(replace-string "。" "." nil (point-min) (point-max)))) | |
;;選択範囲内の全角英数字を半角英数字に変換 | |
(defun hankaku-eisuu-region (start end) | |
(interactive "r") |
NewerOlder