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 characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=794px, initial-scale=1"> | |
| <title>QunaSys — Use Case Overview v2</title> | |
| <style> | |
| @page { size: 210mm 297mm; margin: 0; } | |
| * { margin: 0; padding: 0; box-sizing: border-box; } | |
| html, body { |
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 characters
| require 'pry' | |
| require 'nkf' | |
| words =[] | |
| File.open('mid.txt') do |file| | |
| file.each_line do |l| | |
| l.gsub!("\n","") | |
| ll = NKF.nkf("--hiragana -w", l) | |
| words.push(ll) |
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 characters
| # Suppose Imagemagck is installed on system. | |
| # Get the image list in a target directry | |
| pngs=Dir.glob("*.png") | |
| pngs.each {|p| | |
| system("convert -trim #{p} ./trimed/#{p}") | |
| } |