ã¯ã©ã¹ã®ç¶æ¿ãªã¹ã: NKF è¦ç´ nkf(Network Kanji code conversion Filter, http://sourceforge.jp/projects/nkf/) ã Ruby ãã使ãããã®ã¢ã¸ã¥ã¼ã«ã§ãã Ruby 1.8.2 以éã§ã¯ nkf ã® 2.0 以éãåãè¾¼ã¾ãã¦ãã¾ãã 使ãæ¹ ä»¥ä¸ã¯ãæ¼¢åã³ã¼ãå¤æã³ãã³ãã®ä¾ã§ãã #!/usr/local/bin/ruby require 'nkf' opt = '' opt = ARGV.shift if ARGV[0][0] == ?- while line = ARGF.gets print NKF.nkf(opt, line) end 以ä¸ã¯ãæ¼¢åã³ã¼ãå¤å¥ã³ãã³ãã®ä¾ã§ãã #!/usr/local/bin/ruby require 'nkf' CODES = { NKF::JIS => "J
{{#tags}}- {{label}}
{{/tags}}