Created
September 3, 2008 05:21
-
-
Save ohac/8545 to your computer and use it in GitHub Desktop.
nkf guess each line
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
#!/usr/bin/ruby1.9 -rnkf | |
module NKF | |
puts ARGF.file.map{|l|[guess(l),nkf('-w', l)]}.select{|i|i[0]!=ASCII}.join(' ') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment