pax_global_header00006660000000000000000000000064126314122740014514gustar00rootroot0000000000000052 comment=89746407c30a5ee8f2e974f88115b5633ad4c669 docdiff-0.5.0+git20160313/000077500000000000000000000000001263141227400145135ustar00rootroot00000000000000docdiff-0.5.0+git20160313/.gitignore000066400000000000000000000000621263141227400165010ustar00rootroot00000000000000*.gem .bundle Gemfile.lock pkg/* *.log coverage/* docdiff-0.5.0+git20160313/.travis.yml000066400000000000000000000001041263141227400166170ustar00rootroot00000000000000rvm: - 1.8.7 - 1.9.2 - 1.9.3 - ruby-head script: rake test docdiff-0.5.0+git20160313/Gemfile000066400000000000000000000004721263141227400160110ustar00rootroot00000000000000source 'https://rubygems.org' group :darwin do gem 'rb-fsevent' gem 'growl' end gem 'guard' gem 'guard-test' group :test do gem 'simplecov', :require => false, :platforms => :ruby_19 gem 'rcov', :require => false, :platforms => :ruby_18 end # Specify your gem's dependencies in docdiff.gemspec gemspec docdiff-0.5.0+git20160313/Guardfile000066400000000000000000000004031263141227400163350ustar00rootroot00000000000000# A sample Guardfile # More info at https://github.com/guard/guard#readme guard 'test', :all_on_start => true do watch(%r{^lib/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" } watch(%r{^test/.+_test\.rb$}) watch('test/test_helper.rb') { "test" } end docdiff-0.5.0+git20160313/Makefile000066400000000000000000000052401263141227400161540ustar00rootroot00000000000000# Warning: this Makefile is obsolete, use Rakefile instead PRODUCT = docdiff VERSION = $(shell $(RUBY) -r./lib/docdiff/version.rb -e 'Docdiff::VERSION.display') RUBY = ruby TAR_XVCS = tar --exclude=.svn --exclude=.git DOCS = ChangeLog readme.en.html readme.ja.html \ index.en.html index.ja.html DOCSRC = readme.html index.html img sample TESTS = test/*_test.rb DIST = Makefile devutil lib docdiff.conf.example bin/docdiff \ docdiff.gemspec \ docdiffwebui.html docdiffwebui.cgi \ $(DOCSRC) $(DOCS) $(TESTS) TESTLOGS = $(foreach t,\ $(wildcard test/*_test.rb),\ $(t:test/%_test.rb=%_test.log)) \ WWWUSER = hisashim,docdiff WWWSITE = web.sourceforge.net WWWSITEPATH = htdocs/ WWWDRYRUN = --dry-run DESTDIR = PREFIX = /usr/local datadir = $(DESTDIR)$(PREFIX)/share all: $(DOCS) testall: $(MAKE) test RUBY=ruby1.9.1 $(MAKE) test RUBY=ruby1.8 test: $(TESTLOGS) %_test.log: $(RUBY) -I./lib test/$*_test.rb | tee $@ docs: $(DOCS) ChangeLog: devutil/changelog.sh > $@ readme.%.html: readme.html $(RUBY) -Ku langfilter.rb --$* $< > $@ index.%.html: index.html $(RUBY) -Ku langfilter.rb --$* $< > $@ install: $(DIST) @if [ ! -d $(DESTDIR)$(PREFIX)/bin ]; then \ mkdir -p $(DESTDIR)$(PREFIX)/bin; \ fi cp -Ppv bin/docdiff $(DESTDIR)$(PREFIX)/bin/ chmod +x $(DESTDIR)$(PREFIX)/bin/docdiff @if [ ! -d $(datadir)/$(PRODUCT) ]; then \ mkdir -p $(datadir)/$(PRODUCT); \ fi (cd lib && $(TAR_XVCS) -cf - *) | (cd $(datadir)/$(PRODUCT) && tar -xpf -) @if [ ! -d $(DESTDIR)/etc/$(PRODUCT) ]; then \ mkdir -p $(DESTDIR)/etc/$(PRODUCT); \ fi cp -Pprv docdiff.conf.example $(DESTDIR)/etc/$(PRODUCT)/docdiff.conf @if [ ! -d $(datadir)/doc/$(PRODUCT) ]; then \ mkdir -p $(datadir)/doc/$(PRODUCT); \ fi cp -Pprv $(DOCSRC) $(DOCS) $(datadir)/doc/$(PRODUCT) uninstall: -rm -fr $(DESTDIR)$(PREFIX)/bin/docdiff -rm -fr $(datadir)/$(PRODUCT) -rm -fr $(DESTDIR)/etc/$(PRODUCT) -rm -fr $(datadir)/doc/$(PRODUCT) dist: $(DIST) mkdir $(PRODUCT)-$(VERSION) cp -rp $(DIST) $(PRODUCT)-$(VERSION) $(TAR_XVCS) -zvcf $(PRODUCT)-$(VERSION).tar.gz $(PRODUCT)-$(VERSION) -rm -fr $(PRODUCT)-$(VERSION) gem: $(PRODUCT)-$(VERSION).gem $(PRODUCT)-$(VERSION).gem: $(PRODUCT).gemspec gem build $< wwwupload: $(MAKE) www WWWDRYRUN= www: $(DOCSRC) $(DOCS) rsync $(WWWDRYRUN) -auv -e ssh --delete \ --exclude='.svn' --exclude='.git' \ $(DOCSRC) $(DOCS) \ $(WWWUSER)@$(WWWSITE):$(WWWSITEPATH) clean: -rm -fr $(DOCS) -rm -fr $(TESTLOGS) distclean: clean -rm -fr $(PRODUCT)-$(VERSION).tar.gz -rm -fr $(PRODUCT)-$(VERSION).gem .PHONY: all testall test docs install uninstall dist gem \ wwwupload www clean distclean docdiff-0.5.0+git20160313/Rakefile000066400000000000000000000067741263141227400161760ustar00rootroot00000000000000require 'rake/clean' require 'rake/testtask' require 'bundler/gem_tasks' PRODUCT = 'docdiff' RUBY = ENV['RUBY'] ||= 'ruby' VERSION = `#{RUBY} -r./lib/docdiff/version.rb -e 'Docdiff::VERSION.display'` TAR_XVCS = 'tar --exclude=.svn --exclude=.git' DOCS = FileList['ChangeLog', 'readme.en.html', 'readme.ja.html', 'index.en.html', 'index.ja.html'] DOCSRC = FileList['readme.html', 'index.html', 'img', 'sample'] TESTS = FileList['test/*_test.rb'] DIST = FileList['Makefile', 'devutil', 'lib', 'docdiff.conf.example', 'bin/docdiff', 'docdiff.gemspec', 'docdiffwebui.html', 'docdiffwebui.cgi', DOCSRC, DOCS, TESTS] TESTLOGS = Dir.glob('test/*_test.rb').map{|f| File.basename(f).ext('log') } WWWUSER = ENV['WWWUSER'] ||= 'hisashim,docdiff' WWWSITE = ENV['WWWSITE'] ||= 'web.sourceforge.net' WWWSITEPATH = ENV['WWWSITEPATH'] ||= 'htdocs/' WWWDRYRUN = ENV['WWWDRYRUN'] ||= '--dry-run' DESTDIR = ENV['DESTDIR'] ||= '' PREFIX = ENV['PREFIX'] ||= File.join('/', 'usr', 'local') bindir = File.join(DESTDIR, PREFIX, 'bin') datadir = File.join(DESTDIR, PREFIX, 'share') datadir_p = File.join(datadir, PRODUCT) etc_p = File.join(DESTDIR, 'etc', PRODUCT) datadir_doc_p = File.join(datadir, 'doc', PRODUCT) product_version = "#{PRODUCT}-#{VERSION}" rule '.log' => proc{|tn| File.join('test', tn.ext('rb'))} do |t| sh "#{RUBY} -I./lib #{t.prerequisites.first} | tee #{t.name}" end Rake::TestTask.new do |t| t.test_files = FileList["test/test*.rb"] t.verbose = true end if RUBY_VERSION < '1.9' require 'rcov/rcovtask' Rcov::RcovTask.new do |t| t.test_files = FileList['test/test*.rb'] t.output_dir = 'coverage' t.rcov_opts = ["--exclude /gems/*"] t.verbose = true end end task :default => DOCS task :testall do |t| sh 'rake test RUBY=ruby1.9.1' sh 'rake test RUBY=ruby1.8' end task :test => TESTLOGS task :docs => DOCS file 'ChangeLog' do |t| sh "devutil/changelog.sh > #{t.name}" end rule(/.*\.(?:en|ja)\.html/ => proc{|tn| tn.gsub(/\.(?:en|ja)/, '')}) do |t| sh "#{RUBY} -E UTF-8 langfilter.rb" + " --#{t.name.gsub(/.*?\.(en|ja)\.html/){$1}}" + " #{t.prerequisites.first} > #{t.name}" end [bindir, datadir_p, etc_p, datadir_doc_p].map{|d| directory d } task :install => FileList[DIST, bindir, datadir_p, etc_p, datadir_doc_p] do |t| sh "cp -Ppv bin/docdiff #{bindir}" sh "chmod +x #{File.join(bindir, 'docdiff')}" sh "(cd lib && #{TAR_XVCS} -cf - *) | (cd #{datadir_p} && tar -xpf -)" sh "cp -Pprv docdiff.conf.example #{File.join(etc_p, 'docdiff.conf')}" sh "cp -Pprv #{DOCSRC} #{DOCS} #{datadir_doc_p}" end task :uninstall do |t| rm_rf File.join(bindir, 'docdiff') rm_rf datadir_p rm_rf etc_p rm_rf datadir_doc_p end directory product_version task :dist => FileList[DIST, product_version] do |t| sh "cp -rp #{t.prerequisites[0..-2].join(' ')} #{product_version}" sh "#{TAR_XVCS} -zvcf #{product_version}.tar.gz #{product_version}" rm_rf product_version end file "#{product_version}.gem" => ["#{PRODUCT}.gemspec"] do |t| sh "gem build #{t.prerequisites.join(' ')}" end task :gem => "#{product_version}.gem" task :wwwupload do |t| sh "rake www WWWDRYRUN=" end task :www => [DOCSRC, DOCS] do |t| sh "rsync #{WWWDRYRUN} -auv -e ssh --delete" + " --exclude='.svn' --exclude='.git'" + t.prerequisites.join(' ') + " #{WWWUSER}@#{WWWSITE}:#{WWWSITEPATH}" end CLEAN.include(DOCS, TESTLOGS) CLOBBER.include("#{product_version}.tar.gz", "#{product_version}.gem") docdiff-0.5.0+git20160313/bin/000077500000000000000000000000001263141227400152635ustar00rootroot00000000000000docdiff-0.5.0+git20160313/bin/docdiff000077500000000000000000000162241263141227400166140ustar00rootroot00000000000000#!/usr/bin/env ruby # DocDiff: word/character-oriented text comparison utility # Copyright (C) 2002-2011 Hisashi MORITA # Requirements: Ruby (>= 1.8) require 'docdiff' require 'optparse' # do_config_stuff default_config = { :resolution => "word", :encoding => "auto", :eol => "auto", :format => "html", :cache => true, :digest => false, :verbose => false } clo = command_line_options = {} # if invoked as "worddiff" or "chardiff", # appropriate resolution is set respectively. case File.basename($0, ".*") when "worddiff" then; clo[:resolution] = "word" when "chardiff" then; clo[:resolution] = "char" end ARGV.options {|o| o.def_option('--resolution=RESOLUTION', possible_resolutions = ['line', 'word', 'char'], 'specify resolution (granularity)', possible_resolutions.join('|') + ' (default is word)' ){|s| clo[:resolution] = (s || "word")} o.def_option('--line', 'set resolution to line'){clo[:resolution] = "line"} o.def_option('--word', 'set resolution to word'){clo[:resolution] = "word"} o.def_option('--char', 'set resolution to char'){clo[:resolution] = "char"} o.def_option('--encoding=ENCODING', possible_encodings = ['ASCII','EUC-JP','Shift_JIS','CP932','UTF-8','auto'], 'specify character encoding', possible_encodings.join('|'), "(default is auto. try ASCII for single byte encodings such as ISO-8859-X)" ){|s| clo[:encoding] = (s || "auto")} o.def_option('--ascii', 'same as --encoding=ASCII'){clo[:encoding] = "ASCII"} o.def_option('--iso8859x', 'same as --encoding=ASCII'){clo[:encoding] = "ASCII"} o.def_option('--eucjp', 'same as --encoding=EUC-JP'){clo[:encoding] = "EUC-JP"} o.def_option('--sjis', 'same as --encoding=Shift_JIS'){clo[:encoding] = "Shift_JIS"} o.def_option('--cp932', 'same as --encoding=CP932'){clo[:encoding] = "CP932"} o.def_option('--utf8', 'same as --encoding=UTF-8'){clo[:encoding] = "UTF-8"} o.def_option('--eol=EOL', possible_eols = ['CR','LF','CRLF','auto'], 'specify end-of-line character', possible_eols.join('|') + ' (default is auto)' ){|s| clo[:eol] = (s || "auto")} o.def_option('--cr', 'same as --eol=CR'){clo[:eol] = "CR"} o.def_option('--lf', 'same as --eol=LF'){clo[:eol] = "LF"} o.def_option('--crlf', 'same as --eol=CRLF'){clo[:eol] = "CRLF"} o.def_option('--format=FORMAT', possible_formats = ['tty','manued','html','wdiff','stat','user'], 'specify output format', possible_formats.join('|'), "(default is html)", '(user tags can be defined in config file)' ){|s| clo[:format] = (s || "manued")} o.def_option('--tty', 'same as --format=tty'){clo[:format] = "tty"} o.def_option('--manued', 'same as --format=manued'){clo[:format] = "manued"} o.def_option('--html', 'same as --format=html'){clo[:format] = "html"} o.def_option('--wdiff', 'same as --format=wdiff'){clo[:format] = "wdiff"} o.def_option('--stat', 'same as --format=stat (not supported yet)'){clo[:format] = "stat"} o.def_option('--label LABEL', '-L LABEL', 'Use label instead of filename (not supported yet)' ){|s1, s2| clo[:label1], clo[:label2] = s1, s2} o.def_option('--digest', 'digest output, do not show all'){clo[:digest] = true} o.def_option('--summary', 'same as --digest'){clo[:digest] = true} o.def_option('--display=DISPLAY', possible_types = ['inline', 'multi'], 'specify presentation type (effective only with digest; experimental feature)', possible_types.join('|'), '(default is inline)'){|s| clo[:display] ||= s.downcase} o.def_option('--cache', 'use file cache (not supported yet)'){clo[:cache] = true} o.def_option('--no-config-file', 'do not read config files'){clo[:no_config_file] = true} o.def_option('--verbose', 'run verbosely (not supported yet)'){clo[:verbose] = true} o.def_option('--help', 'show this message'){puts o; exit(0)} o.def_option('--version', 'show version'){puts DocDiff::AppVersion; exit(0)} o.def_option('--license', 'show license'){puts DocDiff::License; exit(0)} o.def_option('--author', 'show author(s)'){puts DocDiff::Author; exit(0)} o.on_tail("When invoked as worddiff or chardiff, resolution will be set accordingly.", "Config files: /etc/docdiff/docdiff.conf, ~/etc/docdiff/docdiff.conf") o.parse! } or exit(1) docdiff = DocDiff.new() docdiff.config.update(default_config) unless clo[:no_config_file] == true # process_commandline_option message = docdiff.process_config_file(DocDiff::SystemConfigFileName) if clo[:verbose] == true || docdiff.config[:verbose] == true STDERR.print message end # message = docdiff.process_config_file(DocDiff::UserConfigFileName) case when File.exist?(DocDiff::UserConfigFileName) && File.exist?(DocDiff::AltUserConfigFileName) raise "#{DocDiff::UserConfigFileName} and #{DocDiff::AltUserConfigFileName} cannot be used at the same time. Remove or rename either one." when File.exist?(DocDiff::UserConfigFileName) message = docdiff.process_config_file(DocDiff::UserConfigFileName) when File.exist?(DocDiff::AltUserConfigFileName) message = docdiff.process_config_file(DocDiff::AltUserConfigFileName) end if clo[:verbose] == true || docdiff.config[:verbose] == true STDERR.print message end end docdiff.config.update(clo) # config stuff done # process the documents file1_content = nil file2_content = nil raise "Try `#{File.basename($0)} --help' for more information." if ARGV[0].nil? raise "Specify at least 2 target files." unless ARGV[0] && ARGV[1] raise "No such file: #{ARGV[0]}." unless FileTest.exist?(ARGV[0]) raise "No such file: #{ARGV[1]}." unless FileTest.exist?(ARGV[1]) raise "#{ARGV[0]} is not a file." unless FileTest.file?(ARGV[0]) raise "#{ARGV[1]} is not a file." unless FileTest.file?(ARGV[1]) File.open(ARGV[0], "r"){|f| file1_content = f.read} File.open(ARGV[1], "r"){|f| file2_content = f.read} doc1 = nil doc2 = nil encoding1 = docdiff.config[:encoding] encoding2 = docdiff.config[:encoding] eol1 = docdiff.config[:eol] eol2 = docdiff.config[:eol] if docdiff.config[:encoding] == "auto" encoding1 = DocDiff::CharString.guess_encoding(file1_content) encoding2 = DocDiff::CharString.guess_encoding(file2_content) case when (encoding1 == "UNKNOWN" or encoding2 == "UNKNOWN") raise "Document encoding unknown (#{encoding1}, #{encoding2})." when encoding1 != encoding2 raise "Document encoding mismatch (#{encoding1}, #{encoding2})." end end if docdiff.config[:eol] == "auto" eol1 = DocDiff::CharString.guess_eol(file1_content) eol2 = DocDiff::CharString.guess_eol(file2_content) case when (eol1.nil? or eol2.nil?) raise "Document eol is nil (#{eol1.inspect}, #{eol2.inspect}). The document might be empty." when (eol1 == 'UNKNOWN' or eol2 == 'UNKNOWN') raise "Document eol unknown (#{eol1.inspect}, #{eol2.inspect})." when (eol1 != eol2) raise "Document eol mismatch (#{eol1}, #{eol2})." end end doc1 = DocDiff::Document.new(file1_content, encoding1, eol1) doc2 = DocDiff::Document.new(file2_content, encoding2, eol2) output = docdiff.run(doc1, doc2, {:resolution => docdiff.config[:resolution], :format => docdiff.config[:format], :digest => docdiff.config[:digest], :display => docdiff.config[:display]}) print output docdiff-0.5.0+git20160313/devutil/000077500000000000000000000000001263141227400161675ustar00rootroot00000000000000docdiff-0.5.0+git20160313/devutil/Rakefile000066400000000000000000000003131263141227400176310ustar00rootroot00000000000000require 'rake/clean' file 'JIS0208.TXT' do |t| sh 'curl -O ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/JIS0208.TXT' end task :default => 'JIS0208.TXT' CLOBBER.include('JIS0208.TXT') docdiff-0.5.0+git20160313/devutil/changelog.sh000077500000000000000000000013611263141227400204560ustar00rootroot00000000000000#!/bin/sh # ChangeLog Generator # Copyright 2011 Hisashi Morita # License: Public Domain # # Usage: # changelog.sh [WORKING_DIR] > ChangeLog if [ "$1" ]; then WD="$1" else WD="." fi # Subversion which svn >/dev/null if [ x"$?" = x0 ]; then (svn info "${WD}" >/dev/null 2>&1) && SVN=TRUE if [ x"${SVN}" = xTRUE ]; then (cd "${WD}"; svn log -rBASE:0 -v) fi fi # Git which git >/dev/null if [ x"$?" = x0 ]; then (cd "${WD}" && git status --porcelain >/dev/null 2>&1) && GIT=TRUE if [ x"${GIT}" = xTRUE ]; then (cd "${WD}"; git log | cat) fi fi # Mercurial which hg >/dev/null if [ x"$?" = x0 ]; then (hg status "${WD}" >/dev/null 2>&1) && HG=TRUE if [ x"${HG}" = xTRUE ]; then (cd "${WD}"; hg log --rev tip:0) fi fi docdiff-0.5.0+git20160313/devutil/char_by_charclass.rb000077500000000000000000000013431263141227400221520ustar00rootroot00000000000000#!/usr/bin/ruby # test character classes on ASCII characters. # 2003-03-10 Hisashi MORITA charclasses = ["[:cntrl:]", "[:space:]", "[:blank:]", "[:digit:]", "[:alpha:]", "[:alnum:]", "[:punct:]", "[:lower:]", "[:upper:]", "[:print:]", "[:graph:]", "[:xdigit:]"] chars = (0x00 .. 0xff).to_a charclasses.each{|charclass| member_chars = [] chars.each{|char| if Regexp.new("[#{charclass}]") =~ char.to_a.pack("C*") member_chars.push char end } puts "#{charclass}\t#{member_chars.collect{|char|sprintf("\\x%02x", char)}.join}\n\t\t(#{member_chars.collect{|char|char.to_a.pack('C*').inspect[1..-2]}.join})" } docdiff-0.5.0+git20160313/devutil/charclass_by_char.rb000077500000000000000000000012201263141227400221440ustar00rootroot00000000000000#!/usr/bin/ruby # test character classes on ASCII characters. # 2003-03-10 Hisashi MORITA charclasses = ["[:cntrl:]", "[:space:]", "[:blank:]", "[:digit:]", "[:alpha:]", "[:alnum:]", "[:punct:]", "[:lower:]", "[:upper:]", "[:print:]", "[:graph:]", "[:xdigit:]"] (0x00 .. 0xff).to_a.each{|char| attribute = [] charclasses.each{|charclass| if Regexp.new("[#{charclass}]") =~ char.to_a.pack("C*") attribute.push charclass end } puts "#{sprintf("\\x%02x", char)} (#{char.to_a.pack('C*').inspect})\t#{attribute.join(', ')}" } docdiff-0.5.0+git20160313/devutil/jis0208.rb000077500000000000000000000303231263141227400176170ustar00rootroot00000000000000#!/usr/bin/ruby # Extracts multibyte characters from JIS0208.TXT. # (ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/JIS0208.TXT) # 2003-03-03 .. 20xx-xx-xx, Hisashi MORITA. Use freely at your own risk. # Usage: jis0208.rb #=> \xXX... # Example: jis0208.rb 1 1 utf-8 #=> \xe3\x80\x80 class JIS0208 def utf16_to_utf8(utf16) # Convert UTF-16 to UTF-8N utf16value = (utf16.unpack("C*")[0] * 256 + utf16.unpack("C*")[1]) if utf16value < 0x7f # 1-byte utf-8 utf8 = utf16value.to_a.pack("C*") elsif utf16value < 0x800 # 2-byte utf-8 utf8 = [(0xC0 | (utf16value / 64)), (0x80 | (utf16value % 64))].pack("C*") else # 3-byte utf-8 utf8 = [(0xE0 | ((utf16value / 64) / 64)), (0x80 | ((utf16value / 64) % 64)), (0x80 | (utf16value % 64))].pack("C*") end end def initialize() @lines = File.readlines("JIS0208.TXT") @lines = @lines.grep(/^[^\#]/) # remove comments @lines = @lines.collect{|l| l.sub(/\s+\#[^\#]+$/,'')} # remove unicode names @char_db = @lines.collect {|line| sjis, jis, utf16 = line.split.collect{|string| string.sub(/0x/, '').to_a.pack("H*") # "0xXXXX" to 8-bit byte string } jis_byte_pair = jis.unpack("C*") # jis + 0x8080 => euc euc = jis_byte_pair.collect {|byte| (byte + 0x80)}.pack("C*") # jis - 0x2020 => ku, ten ku, ten = jis_byte_pair.collect {|byte| (byte - 0x20)} utf8 = utf16_to_utf8(utf16) {:s=>sjis, :j=>jis, :u16=>utf16, :e=>euc, :u8=>utf8, :ku=>ku, :ten=>ten} } @characters = {} @char_db.each{|char| if @characters[char[:ku]].nil? @characters[char[:ku]] = {} end if @characters[char[:ku]][char[:ten]].nil? @characters[char[:ku]][char[:ten]] = { :s=>char[:s], :j=>char[:j], :u16=>char[:u16], :e=>char[:e], :u8=>char[:u8] } end } end attr_reader :char_db attr_reader :characters def char(ku, ten, codeset) case when /^[Ee]/ =~ codeset then codeset = :e when /^[Ss]/ =~ codeset then codeset = :s when /^[Jj]/ =~ codeset then codeset = :j when /^[Uu].*16$/ =~ codeset then codeset = :u16 when /^[Uu].*8$/ =~ codeset then codeset = :u8 else raise "invalid codeset name (#{codeset})\n" end characters[ku][ten][codeset].unpack('C*').collect{|byte| sprintf("\\x%x",byte) }.join end end if __FILE__ == $0 # euc-jp def euc_ja_alnum() j = JIS0208.new r = [] (3).to_a.each{|ku|(16..25).to_a.each{|ten|r << j.char(ku,ten,"e")}} (3).to_a.each{|ku|(33..58).to_a.each{|ten|r << j.char(ku,ten,"e")}} (3).to_a.each{|ku|(65..90).to_a.each{|ten|r << j.char(ku,ten,"e")}} r end def euc_ja_blank() j = JIS0208.new r = [] (1).to_a.each{|ku|(1).to_a.each{|ten|r << j.char(ku,ten,"e")}} r end def euc_ja_print() euc_ja_graph() + euc_ja_blank() end def euc_ja_graph() euc_ja_alnum() + euc_ja_punct() end def euc_ja_punct() j = JIS0208.new r = [] (1).to_a.each{|ku|( 2..94).to_a.each{|ten|r << j.char(ku,ten,"e")}} (2).to_a.each{|ku|( 1..14).to_a.each{|ten|r << j.char(ku,ten,"e")}} (2).to_a.each{|ku|(26..33).to_a.each{|ten|r << j.char(ku,ten,"e")}} (2).to_a.each{|ku|(42..48).to_a.each{|ten|r << j.char(ku,ten,"e")}} (2).to_a.each{|ku|(60..74).to_a.each{|ten|r << j.char(ku,ten,"e")}} (2).to_a.each{|ku|(82..89).to_a.each{|ten|r << j.char(ku,ten,"e")}} (2).to_a.each{|ku|(94 ).to_a.each{|ten|r << j.char(ku,ten,"e")}} (6).to_a.each{|ku|( 1..24).to_a.each{|ten|r << j.char(ku,ten,"e")}} (6).to_a.each{|ku|(33..56).to_a.each{|ten|r << j.char(ku,ten,"e")}} (7).to_a.each{|ku|( 1..33).to_a.each{|ten|r << j.char(ku,ten,"e")}} (7).to_a.each{|ku|(49..81).to_a.each{|ten|r << j.char(ku,ten,"e")}} (8).to_a.each{|ku|( 1..32).to_a.each{|ten|r << j.char(ku,ten,"e")}} r end def euc_ja_space() j = JIS0208.new r = [] (1).to_a.each{|ku|(1).to_a.each{|ten|r << j.char(ku,ten,"e")}} r end def euc_hiragana() j = JIS0208.new r = [] (4).to_a.each{|ku|(1..83).to_a.each{|ten|r << j.char(ku,ten,"e")}} r end def euc_katakana() j = JIS0208.new r = [] (5).to_a.each{|ku|(1..86).to_a.each{|ten|r << j.char(ku,ten,"e")}} r end def euc_kanji() j = JIS0208.new r = [] (16..46).to_a.each{|ku| r << "#{j.char(ku,1,'e')}-#{j.char(ku,94,'e')}"} (47).to_a.each{|ku|r << "#{j.char(ku,1,'e')}-#{j.char(ku,51,'e')}"} (48..83).to_a.each{|ku|r << "#{j.char(ku,1,'e')}-#{j.char(ku,94,'e')}"} (84).to_a.each{|ku|r << "#{j.char(ku,1,'e')}-#{j.char(ku,6,'e')}"} r end # sjis (cp932) def sjis_ja_alnum() j = JIS0208.new r = [] (3).to_a.each{|ku|(16..25).to_a.each{|ten|r << j.char(ku,ten,"s")}} (3).to_a.each{|ku|(33..58).to_a.each{|ten|r << j.char(ku,ten,"s")}} (3).to_a.each{|ku|(65..90).to_a.each{|ten|r << j.char(ku,ten,"s")}} r end def sjis_ja_blank() j = JIS0208.new r = [] (1).to_a.each{|ku|(1).to_a.each{|ten|r << j.char(ku,ten,"s")}} r end def sjis_ja_print() sjis_ja_graph() + sjis_ja_blank() end def sjis_ja_graph() sjis_ja_alnum() + sjis_ja_punct() end def sjis_ja_punct() j = JIS0208.new r = [] (1).to_a.each{|ku|(2..94).to_a.each{|ten|r << j.char(ku,ten,"s")}} (2).to_a.each{|ku|(1..14).to_a.each{|ten|r << j.char(ku,ten,"s")}} (2).to_a.each{|ku|(26..33).to_a.each{|ten|r << j.char(ku,ten,"s")}} (2).to_a.each{|ku|(42..48).to_a.each{|ten|r << j.char(ku,ten,"s")}} (2).to_a.each{|ku|(60..74).to_a.each{|ten|r << j.char(ku,ten,"s")}} (2).to_a.each{|ku|(82..89).to_a.each{|ten|r << j.char(ku,ten,"s")}} (2).to_a.each{|ku|(94).to_a.each{|ten|r << j.char(ku,ten,"s")}} (6).to_a.each{|ku|(1..24).to_a.each{|ten|r << j.char(ku,ten,"s")}} (6).to_a.each{|ku|(33..56).to_a.each{|ten|r << j.char(ku,ten,"s")}} (7).to_a.each{|ku|(1..33).to_a.each{|ten|r << j.char(ku,ten,"s")}} (7).to_a.each{|ku|(49..81).to_a.each{|ten|r << j.char(ku,ten,"s")}} (8).to_a.each{|ku|(1..32).to_a.each{|ten|r << j.char(ku,ten,"s")}} #(13).to_a.each{|ku|(1..30).to_a.each{|ten|r << j.char(ku,ten,"s")}}#cp932 #(13).to_a.each{|ku|(32..54).to_a.each{|ten|r << j.char(ku,ten,"s")}}#cp932 #(13).to_a.each{|ku|(63..92).to_a.each{|ten|r << j.char(ku,ten,"s")}}#cp932 #(92).to_a.each{|ku|(81..94).to_a.each{|ten|r << j.char(ku,ten,"s")}}#cp932 r end def sjis_ja_space() j = JIS0208.new r = [] (1).to_a.each{|ku|(1).to_a.each{|ten|r << j.char(ku,ten,"s")}} r end def sjis_hiragana() j = JIS0208.new r = [] (4).to_a.each{|ku|(1..83).to_a.each{|ten|r << j.char(ku,ten,"s")}} r end def sjis_katakana() j = JIS0208.new r = [] (5).to_a.each{|ku|(1..86).to_a.each{|ten|r << j.char(ku,ten,"s")}} r end def sjis_kanji() j = JIS0208.new r = [] (16..46).to_a.each{|ku|r << "#{j.char(ku,1,'s')}-#{j.char(ku,94,'s')}"} (47).to_a.each{|ku|r << "#{j.char(ku,1,'s')}-#{j.char(ku,51,'s')}"} (48..83).to_a.each{|ku|r << "#{j.char(ku,1,'s')}-#{j.char(ku,94,'s')}"} (84).to_a.each{|ku|r << "#{j.char(ku,1,'s')}-#{j.char(ku,6,'s')}"} (89..91).to_a.each{|ku|r << "#{j.char(ku,1,'s')}-#{j.char(ku,94,'s')}"}#cp932 (92).to_a.each{|ku|r << "#{j.char(ku,1,'s')}-#{j.char(ku,78,'s')}"}#cp932 r end # utf8 def utf8_ja_alnum() j = JIS0208.new r = [] (3).to_a.each{|ku|(16..25).to_a.each{|ten|r << j.char(ku,ten,"u8")}} (3).to_a.each{|ku|(33..58).to_a.each{|ten|r << j.char(ku,ten,"u8")}} (3).to_a.each{|ku|(65..90).to_a.each{|ten|r << j.char(ku,ten,"u8")}} r end def utf8_ja_blank() j = JIS0208.new r = [] (1).to_a.each{|ku|(1).to_a.each{|ten|r << j.char(ku,ten,"u8")}} r end def utf8_ja_print() utf8_ja_graph() + utf8_ja_blank() end def utf8_ja_graph() utf8_ja_alnum() + utf8_ja_punct() end def utf8_ja_punct() j = JIS0208.new r = [] (1).to_a.each{|ku|( 2..94).to_a.each{|ten|r << j.char(ku,ten,"u8")}} (2).to_a.each{|ku|( 1..14).to_a.each{|ten|r << j.char(ku,ten,"u8")}} (2).to_a.each{|ku|(26..33).to_a.each{|ten|r << j.char(ku,ten,"u8")}} (2).to_a.each{|ku|(42..48).to_a.each{|ten|r << j.char(ku,ten,"u8")}} (2).to_a.each{|ku|(60..74).to_a.each{|ten|r << j.char(ku,ten,"u8")}} (2).to_a.each{|ku|(82..89).to_a.each{|ten|r << j.char(ku,ten,"u8")}} (2).to_a.each{|ku|(94 ).to_a.each{|ten|r << j.char(ku,ten,"u8")}} (6).to_a.each{|ku|( 1..24).to_a.each{|ten|r << j.char(ku,ten,"u8")}} (6).to_a.each{|ku|(33..56).to_a.each{|ten|r << j.char(ku,ten,"u8")}} (7).to_a.each{|ku|( 1..33).to_a.each{|ten|r << j.char(ku,ten,"u8")}} (7).to_a.each{|ku|(49..81).to_a.each{|ten|r << j.char(ku,ten,"u8")}} (8).to_a.each{|ku|( 1..32).to_a.each{|ten|r << j.char(ku,ten,"u8")}} r end def utf8_ja_space() j = JIS0208.new r = [] (1).to_a.each{|ku|(1).to_a.each{|ten|r << j.char(ku,ten,"u8")}} r end def utf8_hiragana() j = JIS0208.new r = [] (4).to_a.each{|ku|(1..83).to_a.each{|ten|r << j.char(ku,ten,"utf-8")}} r end def utf8_katakana() j = JIS0208.new r = [] (5).to_a.each{|ku|(1..86).to_a.each{|ten|r << j.char(ku,ten,"utf-8")}} r end def utf8_kanji() j = JIS0208.new r = [] (16..46).to_a.each{|ku|(1..94).to_a.each{|ten|r << j.char(ku,ten,"utf-8")}} (47).to_a.each{|ku|(1..51).to_a.each{|ten|r << j.char(ku,ten,"utf-8")}} (48..83).to_a.each{|ku|(1..94).to_a.each{|ten|r << j.char(ku,ten,"utf-8")}} (84).to_a.each{|ku|(1..6).to_a.each{|ten|r << j.char(ku,ten,"utf-8")}} r end jis0208 = JIS0208.new if ARGV.size == 3 ku, ten, codeset = ARGV[0].to_i, ARGV[1].to_i, ARGV[2].to_s puts jis0208.char(ku, ten, codeset) exit(0) elsif ARGV.size == 2 codeset, charclass = ARGV[0].to_s, ARGV[1].to_s else puts "Usage: jis0208.rb ( | )" puts "Supported codeset: EUC-JP, Shift_JIS, UTF-8" puts "Supported charclass: blank, space, alnum, punct, print, graph, hiragana, katakana, kanji" puts "Example 1: jis0208.rb 16 1 utf-8" puts "Example 2: jis0208.rb euc-jp punct" exit(0) end case when (/^e/i.match codeset) # euc-jp case when (/^space/i.match charclass) then puts euc_ja_space() when (/^blank/i.match charclass) then puts euc_ja_blank() when (/^alnum/i.match charclass) then puts euc_ja_alnum() when (/^punct/i.match charclass) then puts euc_ja_punct() when (/^print/i.match charclass) then puts euc_ja_print() when (/^graph/i.match charclass) then puts euc_ja_graph() when (/^hira/i.match charclass) then puts euc_hiragana() when (/^kata/i.match charclass) then puts euc_katakana() when (/^kanji/i.match charclass) then puts euc_kanji() else raise "invalid charclass (#{charclass}).\n" end when (/^s/i.match codeset) # sjis case when (/^space/i.match charclass) then puts sjis_ja_space() when (/^blank/i.match charclass) then puts sjis_ja_blank() when (/^alnum/i.match charclass) then puts sjis_ja_alnum() when (/^punct/i.match charclass) then puts sjis_ja_punct() when (/^print/i.match charclass) then puts sjis_ja_print() when (/^graph/i.match charclass) then puts sjis_ja_graph() when (/^hira/i.match charclass) then puts sjis_hiragana() when (/^kata/i.match charclass) then puts sjis_katakana() when (/^kanji/i.match charclass) then puts sjis_kanji() else raise "invalid charclass (#{charclass}).\n" end when (/^u/i.match codeset) # utf-8 case when (/^space/i.match charclass) then puts utf8_ja_space() when (/^blank/i.match charclass) then puts utf8_ja_blank() when (/^alnum/i.match charclass) then puts utf8_ja_alnum() when (/^punct/i.match charclass) then puts utf8_ja_punct() when (/^print/i.match charclass) then puts utf8_ja_print() when (/^graph/i.match charclass) then puts utf8_ja_graph() when (/^hira/i.match charclass) then puts utf8_hiragana() when (/^kata/i.match charclass) then puts utf8_katakana() when (/^kanji/i.match charclass) then puts utf8_kanji() else raise "invalid charclass (#{charclass}).\n" end else raise "invalid codeset (#{codeset}) or charclass (#{charclass}).\n" end end docdiff-0.5.0+git20160313/devutil/testjis0208.rb000066400000000000000000000020331263141227400205110ustar00rootroot00000000000000require 'test/unit' require 'jis0208' require 'nkf' require 'iconv' class TC_JIS0208 < Test::Unit::TestCase def setup() # end =begin obsolete def test_string_to_array() jis0208 = JIS0208.new expected = [0xe1, 0xa1, 0xa8] # "ɽ"(4129) UTF-8 as array # assert_equal(expected, Iconv.iconv("UTF-8", "EUC-JP", "ɽ").to_s) assert_equal(expected, jis0208.string_to_array("\xe1\xa1\xa8")) end def test_array_to_string() jis0208 = JIS0208.new expected = "\xe1\xa1\xa8" # "ɽ"(4129) in UTF-8 string # assert_equal(expected, Iconv.iconv("UTF-8", "EUC-JP", "ɽ").to_s) assert_equal(expected, jis0208.array_to_string([0xe1, 0xa1, 0xa8])) end =end =begin obsolete def test_to_value_array() expected = [0xe1, 0xa1, 0xa8] # "ɽ"(4129) UTF-8 as array assert_equal(expected, "\xe1\xa1\xa8".to_value_array) end def test_to_binary_string() expected = "\xe1\xa1\xa8" # "ɽ"(4129) in UTF-8 string assert_equal(expected, [0xe1, 0xa1, 0xa8].to_binary_string) end def teardown() # end =end end docdiff-0.5.0+git20160313/docdiff.conf.example000066400000000000000000000012051263141227400204100ustar00rootroot00000000000000## DocDiff configuration file ## Comment out and modify the following lines as you like. # # resolution = word # encoding = UTF-8 # eol = LF # format = html # digest = off # cache = off # not implemented yet # verbose = no # not implemented yet # ## user-defined tags (not well-supported yet) # tag_common_start = '<=>' # tag_common_end = '' # tag_del_start = '<->' # tag_del_end = '' # tag_add_start = '<+>' # tag_add_end = '' # tag_change_before_start = '' # tag_change_before_end = '' # tag_change_after_start = '' # tag_change_after_end = '' docdiff-0.5.0+git20160313/docdiff.gemspec000066400000000000000000000017071263141227400174630ustar00rootroot00000000000000# -*- encoding: utf-8 -*- $:.push File.expand_path("../lib", __FILE__) require "docdiff/version" Gem::Specification.new do |s| s.name = "docdiff" s.version = Docdiff::VERSION s.authors = ["Hisashi Morita"] s.email = ["hisashim at users.sourceforge.net"] s.homepage = "http://docdiff.sourceforge.net" s.summary = %q{Word-by-word diff} s.description = %q{DocDiff compares two text files and shows the difference. It can compare files word by word, character by character, or line by line. It has several output formats such as HTML, tty, Manued, or user-defined markup.} s.rubyforge_project = "docdiff" s.files = `git ls-files`.split("\n") s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.require_paths = ["lib"] end docdiff-0.5.0+git20160313/docdiffwebui.cgi000077500000000000000000000127771263141227400176520ustar00rootroot00000000000000#!/usr/bin/ruby # DocDiff Web UI (CGI) # 2005-10-08.. Hisashi Morita # requirement: Ruby 1.8+ (for timeout.rb) require 'cgi' require 'tempfile' require 'open3' require 'timeout' docdiff = "/usr/bin/docdiff" def errmsg(bndg) # receive binding and return error anatomy timeout_second = eval("timeout_second", bndg) meth = eval("meth", bndg) cgierr = eval("cgierr", bndg) cmderr = eval("cmderr", bndg) cmdline = eval("cmdline", bndg) file1 = eval("file1", bndg) file2 = eval("file2", bndg) msg = ["

I am so sorry, but something went wrong and an error occured.

", "

For users:

", "

#{cgierr}

", "

#{'You may try again specifying encoding and eol explicitly.' if cmderr.size > 0}

", "

If you are still in trouble after self-help effort, please consult your system administrator (or nearest geek) with the detail below.

", "
", "

For system administrators:

", "

Technical detail of the error:

", "

", "CGI error: #{CGI.escapeHTML(cgierr.inspect)}
", "Command error: #{CGI.escapeHTML(cmderr.inspect)}
", "Timeout: #{timeout_second}
", "Method used: #{meth}
", "Commandline used: #{CGI.escapeHTML(cmdline.inspect)}
", "file1: #{CGI.escapeHTML(file1.inspect)}
", "file1 stat: #{CGI.escapeHTML(File.stat(file1.path).inspect)}
", "file2: #{CGI.escapeHTML(file2.inspect)}
", "file2 stat: #{CGI.escapeHTML(File.stat(file2.path).inspect)}
", # "file1 content: #{`head #{file1.path}`}
", # "file2 content: #{`head #{file2.path}`}
", # "#{`#{cmdline}`}", "


"].join return msg end class InvalidUsageError < StandardError end class TimeoutErrorPopen < TimeoutError end class TimeoutErrorPopen3 < TimeoutError end cgi = CGI.new("html4") file1 = Tempfile.new("file1-") file1.print(cgi.params['file1'][0].read) file1.close file2 = Tempfile.new("file2-") file2.print(cgi.params['file2'][0].read) file2.close if resolution = cgi.params['resolution'][0] case resolution.read when "line" then resolution = "line" when "word" then resolution = "word" when "char" then resolution = "char" else raise "Consult your system administrator. Unsupported resolution." end else raise "param 'resolution' was not available." end if format = cgi.params['format'][0] case format.read when "html" then format = "html" when "tty" then format = "tty" when "wdiff" then format = "wdiff" when "manued" then format = "manued" else raise "Consult your system administrator. Unsupported format." end else raise "param 'format' was not available." end if encoding = cgi.params['encoding'][0] case encoding.read when "auto" then encoding = "auto" when "ascii" then encoding = "ASCII" when "utf8" then encoding = "UTF-8" when "eucjp" then encoding = "EUC-JP" when "sjis" then encoding = "Shift_JIS" else raise "Consult your system administrator. Unsupported encoding." end else raise "param 'encoding' was not available." end if eol = cgi.params['eol'][0] case eol.read when "auto" then eol = "auto" when "cr" then eol = "CR" when "lf" then eol = "LF" when "crlf" then eol = "CRLF" else raise "Consult your system administrator. Unsupported eol." end else raise "param 'eol' was not available." end digest = cgi.params['digest'][0] if digest && digest.read == "digest" digest = "--digest" else digest = "" end if timeout_second = cgi.params['timeout_second'][0] case timeout_second.read when "5" then timeout_second = 5 when "15" then timeout_second = 15 when "30" then timeout_second = 30 when "60" then timeout_second = 60 else raise "Consult your system administrator. Unsupported timeout period." end else raise "param 'timeout_second' was not available." end begin cmderr = "" cgierr = "" output = "" cmdline = "#{docdiff} " + " --resolution=#{resolution} --format=#{format} " + " --encoding=#{encoding} --eol=#{eol} #{digest} " + " #{file1.path} #{file2.path} " raise InvalidUsageError, "file1 is either empty (size 0) or not specified." if FileTest.zero?(file1.path) raise InvalidUsageError, "file2 is either empty (size 0) or not specified." if FileTest.zero?(file2.path) raise "file1 is unreadable." unless FileTest.readable?(file1.path) raise "file2 is unreadable." unless FileTest.readable?(file2.path) meth = "IO.popen" timeout(timeout_second, TimeoutErrorPopen){ output = IO.popen(cmdline, "rb").read raise "stdout from docdiff is nil." if output == nil raise "stdout from docdiff is not nil, but empty." if output == "" } rescue InvalidUsageError => cgierr output = errmsg(binding()) rescue TimeoutErrorPopen => cgierr # popen failed, so falling back to open3, though open3 can fail too... meth = "Open3.popen3" timeout(timeout_second, TimeoutErrorPopen3){ stdin, stdout, stderr = Open3.popen3(cmdline) raise "stdin to docdiff is nil." unless stdin raise "stdout from docdiff is nil." unless stdout raise "stderr from docdiff is nil." unless stderr cmderr = stderr.read raise cmderr if cmderr && cmderr.length > 0 output = stdout.read } rescue TimeoutErrorPopen3 => cgierr output = errmsg(binding()) rescue => cgierr output = errmsg(binding()) ensure cgi.out { if output == nil then errmsg(binding()) elsif output.size == 0 then errmsg(binding()) else output end } end docdiff-0.5.0+git20160313/docdiffwebui.html000066400000000000000000000071211263141227400200340ustar00rootroot00000000000000 DocDiff Web UI

DocDiff Web UI

DocDiff is a word/char oriented text file comparison utility.

Caution: This web ui is totally experimental and insecure! Do not use it on public site.

Files to compare
Options
Resolution:

Output Format:
Encoding:
End-of-line:
Digest?
Timeout:


Wait for a while untill you get the result.

If you get an error, try specifying encoding and eol explicitly. If that does not help, ask your system administrator who installed this software.


2005-10-08.. Hisashi Morita docdiff-0.5.0+git20160313/img/000077500000000000000000000000001263141227400152675ustar00rootroot00000000000000docdiff-0.5.0+git20160313/img/docdiff-screenshot-format-html-digest-firefox.png000066400000000000000000000212461263141227400267200ustar00rootroot00000000000000PNG  IHDRPLTE4¼J$BlĄn|$gh \lnlDBD",dfd"4B"Qbr|X<̖ DjLFTf,LVd |~|d RN|L3= kbчց{&#)ZzZudB5!];v! ͹}}}7eeϞ{]rD142/񆆆yU kibl&`PxQ\sPrJ[Y]9cx};Sۯ_?)9_o?~Yio?(Ҟ?wu$3g&(093}fD鑑鑝#;Gv1,, ̈A@2C6K&SoKͻ#USU=S )0=.pKD˄x S xo (LB,0n CZaQ`ްä˪wÀ()%Ѐ1,y(Sek@a nsPpV+'aK0  g`sVAiH5 ', o@w| ox}1&k.ܞ Dx LPLF}s7L\&G2,Nȩ-e9DGdmtUR WyO:h\NU(F)AnSMF-.i"+&K_ USA"2w&$0{B@3jz?7}8.F”p wܵȀ2 !g`ctb,eY]w-R,F-PR+Q7#xIYa$Zuj2v[,eQULlt-QVʼn1"O\4ܵLxQ&WLI59)nTewAlm#ldWNZBܵvt6yMk 4BPi5̵M^/Th&k9"͖,[~ooh%zTmj19.]WV P6u P;lRS'!"!7Եx5Ʌ"[dT̴ Jט2\*NK^KܵY9sɺ|ܹu7BX&;0OdIel Ծ\/{ܵK?<6أת o2 /aɪ}B66"*PGT 3^uBgMcl Mw5:L^Jra mPHdE4uJkrI䵩(d~5]> v"c殕? gp%3¬l@LA=*if#:u-hD!8-PeMتrwHM*P}BjLF 3Hv`F6Km*֦"L.Vek4 e[(4 3K-GAբo &#T`Vo h*90K×({$# G,:yhpYC2vM_68 3(;Fl*fmP`8G&@0ǚ(ڼdӴlҚŚ/c&sW d~7iHؒɅmK#O"_@?{+{thlRv/u+QJq:讃| h.̍&0spMn+(!yT{cG5U2nkXꦆxϓ7}20RKEvW3x$mQ\3SRE>Bk9\?:pwp&>G$#Ibנ u>3-^ק\h\ B_Sѭ|Ov}O:[݉09[vcX&x搜OB!pN/0csDh"o]x]q4FŔeɽut'w[;LRa FM%=Eޱѭa{+<(dEXL!Ie6Ȼ7kGP+ZtfÕr%u-cm|.ǤɌ2OsRfh sl3]D# n|mvNd}kԲ5ꭱ[o4]uu49: [v1b]2[+/GGx1v:Zxe o\*wX A~X«Zj~Lv15y.f W|5ړKu]l#z A9{:̶x=cM{;38x}e{3ܣR:9,@ 7u0V>l)׹,?֚\ M-l?hi?u #VdF L^~H9J6|M9@',p=@ùڥ{bPIq?XspP٣:S6 mRyIGGזp#|[idDwi"Yx/pEװVd{;H@vz0@ާbG{. ~y~7@Jlf׬nkm5كE L.eՓAn* r)&G%aGk h2u˸wmDvurUX::!Xw!}k/S],rub>fѵU{B-:K{/y *xy LYvU~SZFtisLYMߏ,:R r ̬"59uB9k19irəm^2>9b{]Iאr>9둯R{s{ IIp@g>Q-䬞>&^B3MN'ȗir@[&M &75f2ZYWdnu^oʹEfL|bj^r]g.nMt t;tٸjz\ݷ64z~~mP2B rPw;/W  RUs؅:o4YxR!/^ESG?JYWߑ>dc|m!&/c2$$j櫫㚬@\V9egdIv|WOu^Y~9OEI"*w6,%x, ւyv≯}IϚOKY=`Y5Ȟ%5?-}Z?񶞜P )|uؒuizoMFkё ӭ1l,7WiB_~O p N* 9䖊l\Q!Oq[<09O߰ݗqGJzwQb*Sd59Y/=YYbt{h]^x.t6uq+|̚/7q^"rͲ|;x?)t:]߾1ƪ1iXc5\H;21yxln}ޓypis5EPG}}w1ޱ0`jdlOvfkBdyk.*?9 LG'""ԌD꠨3# g-1v5971ٰޑO(4rRMٳ_;= .4۸a"/ӊn}5O;l\qSM.fe# /}iSj//UǾ&gl]M'k:::?mtw, M\mGWF (G?aGW~P0c`5i5ROSIoOəz?nDh*dre%*%u|nIENDB`docdiff-0.5.0+git20160313/img/docdiff-screenshot-format-html-firefox.png000066400000000000000000000242161263141227400254430ustar00rootroot00000000000000PNG  IHDRPLTE4¼J$BlĄn|$gh \lnlDBD",dfd"4B"Qbr|X<̖ DjLFTf,LVd |~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ۈZcܻd"CBu~M&||)} v!U ~;S8اX/曇o譌\;x\#8{,cߧM||+({2NחW3r/?;_l} v> g;OMٯWK ;k8#*2oXq%BCOq>jsׁ={4{}8[3ssamײ߲߲߲߲߲߲߲߲߲߲߲D/ryLfE_@m|< G<Żwwl='fgr4q<[+w~C5N\Z)9A˲]yw 5*J A^4r&FCuMb fj؜dЬFCu7}9\ZLڇ +&09Ad\} d&1'y8|kSՒ}(;3yO]åȎXp& $8q'4(_ ߅)LTIq4٧i|_sBjRއJTKq4cv -7M:Y. gr0gϟS 9 43 U4mײ߲߲߲߲߲߲߲߲߲߲߲+tU1˳`W>!(g5cކ_3h\|ޙCI.Nfom/.nB|6!('2rO;MNa.Om~X׼g sy6xц 4Ci*Kȁ_lCa.ORV>po}}Rɾ2wy~---GrOr º 0=ݑn@5NkZv쯞TvЮ?K`KÿA ^_l0/K:qGlveYn.X./i6%m._o'3Lna8 G#65),B}UG+'y}3U0쏘{fd[yw~}?{_$ +=SD7>.@ vI6$wjpU@r˺GuX܀OG +c gkr(>x>ERŎm?F݉ڛ(v& H k?6SӇn9OZm.lr^>抜QTE$#e0-pTigswJ .;/|¾^/Txmn>On@U_@[}ש[bDeEj>.qo/X~? *{Pe?#LgX p.p? BY#U_n gz`E0/X&!(J`L_8C}ƏCooC' y >6)7RDgFg$X3 Ā>ʨf5쇷1ݷɁS p\֩5p5>[tIDV*|o/PEr?,0ze`OQƦu?YbpX,VDf @20ewKPHͺ/X bj FvWYR3_?`ރ_]1j]v"TB**F6v{p0q߿V6MN:? 1}'{C|Νc7:}{>q=oyVh~`SG-)fVGgO =h1O_r.=V/L_pT8|& >??4}*u/o >%/O=}A>?¥C;ݓQ~ia<3,k<IENDB`docdiff-0.5.0+git20160313/img/docdiff-screenshot-format-tty-rxvtunicode-en.png000066400000000000000000000062151263141227400266260ustar00rootroot00000000000000PNG  IHDR)R0PLTE]LjJlJQWԴ\}- IDATxkNj-f){.>9tQ#VCr!Ch s3$0=BI5YzUUkgz)5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}tYQaUN'6+j-dElVtm٘hL;.gDM1ޱ1h<^δ㝻X;]߫*piit/XQ?;"}P%0?j:._9fN5K6W/+<^u<:6b3L% m*Ԃul-}5<0wQ;/2"&Gvֺ#%ӴU :1u̸0;1b*VǮ;up$vk'4 ˖ث:(H&K"v[[OYI 1}/L Px2[quJR/GIENDB`docdiff-0.5.0+git20160313/index.html000066400000000000000000000130511263141227400165100ustar00rootroot00000000000000 DocDiff

DocDiff

Table of Contents 目次

Summary 概要

DocDiff compares two text files and shows the difference. It can compare files by word, character, or line. It has several output formats such as HTML, tty, Manued, or user-defined markup. DocDiffは2つのテキストファイルを比較してその違いを表示します。単語ごと、文字ごと、そして行ごとにファイルを比較できます。結果を出力する形式は、HTML, tty(文字 端末向けのエスケープシーケンス), Manued(真鵺道という校正用のマークアップ形式)などが用意されており、ユーザ定義のタグを使うこともできます。

It supports several encodings and end-of-line characters, including ASCII (and ISO-8859-*), UTF-8, EUC-JP, Shift_JIS, CR, LF, and CRLF. 次のエンコーディング(文字コード)と行末コード(改行文字)をサポートしています: ASCII(およびISO-8859-*), UTF-8, EUC-JP, Shift_JIS、そしてCR, LF, CRLF.


Screenshot スクリーンショット

Screenshots as of version 0.3.2. All shots are in the img directory. バージョン0.3.2時点のスクリーンショットです。スクリーンショットはimgディレクトリにあります。

HTML output in web browser

screenshot

HTML output in web browser (digest)

screenshot

tty output in terminal

screenshot

tty output in terminal (comparing Japanese text)

screenshot

tty output in terminal

screenshot

tty output in terminal (comparing Japanese text)

screenshot

Comparing English text (codepage 437) on Windows (Cygwin)

screenshot

Comparing Japanese text (codepage 932) on Windows (Cygwin)

screenshot

You can compare text files by line, word, or character (format: tty)

screenshot

Document ドキュメント

Download ダウンロード

Please read the readme before you download. ダウンロードする前にreadmeをお読みください。


Up
2011-02-23 +0900
2001-02-12 +0900
Copyright (C) 2001-2011 Hisashi MORITA
docdiff-0.5.0+git20160313/langfilter.rb000066400000000000000000000006161263141227400171720ustar00rootroot00000000000000#!/usr/bin/ruby # language filter # usage: langfilter.rb --en outfile def ruby_m17n? return true if "".respond_to? :encoding end lang_to_include = ARGV.shift.gsub(/-+/, "") lang_to_exclude = {"en"=>"ja", "ja"=>"en"}[lang_to_include] re = /<([a-z]+) +(?:(?:lang|title)="#{lang_to_exclude}").*?>.*?<\/\1>[\r\n]?/m ARGF.set_encoding("UTF-8") if ruby_m17n? ARGF.read.gsub(re, "").display docdiff-0.5.0+git20160313/lib/000077500000000000000000000000001263141227400152615ustar00rootroot00000000000000docdiff-0.5.0+git20160313/lib/doc_diff.rb000066400000000000000000000153731263141227400173540ustar00rootroot00000000000000# DocDiff: word/character-oriented text comparison utility # Copyright (C) 2002-2011 Hisashi MORITA # Requirements: Ruby (>= 1.8) require 'docdiff/difference' require 'docdiff/document' require 'docdiff/view' class DocDiff AppVersion = Docdiff::VERSION Author = "Copyright (C) 2002-2011 Hisashi MORITA.\n" + "diff library originates from Ruby/CVS by TANAKA Akira.\n" License = "This software is licensed under so-called modified BSD license.\n" + "See the document for detail.\n" SystemConfigFileName = File.join(File::Separator, "etc", "docdiff", "docdiff.conf") UserConfigFileName = File.join(ENV['HOME'], "etc", "docdiff", "docdiff.conf") AltUserConfigFileName = File.join(ENV['HOME'], ".docdiff", "docdiff.conf") def initialize() @config = {} end attr_accessor :config def DocDiff.parse_config_file_content(content) result = {} return result if content.size <= 0 lines = content.dup.split(/\r\n|\r|\n/).compact lines.collect!{|line| line.sub(/#.*$/, '')} lines.collect!{|line| line.strip} lines.delete_if{|line| line == ""} lines.each{|line| raise 'line does not include " = ".' unless /[\s]+=[\s]+/.match line name_src, value_src = line.split(/[\s]+=[\s]+/) raise "Invalid name: #{name_src.inspect}" if (/\s/.match name_src) raise "Invalid value: #{value_src.inspect}" unless value_src.kind_of?(String) name = name_src.intern value = value_src value = true if ['on','yes','true'].include? value_src.downcase value = false if ['off','no','false'].include? value_src.downcase value = value_src.to_i if /^[0-9]+$/.match value_src result[name] = value } result end def compare_by_line(doc1, doc2) Difference.new(doc1.split_to_line, doc2.split_to_line) end def compare_by_line_word(doc1, doc2) lines = compare_by_line(doc1, doc2) words = Difference.new lines.each{|line| if line.first == :change_elt before_change = Document.new(line[1].join, doc1.encoding, doc1.eol) after_change = Document.new(line[2].join, doc2.encoding, doc2.eol) Difference.new(before_change.split_to_word, after_change.split_to_word).each{|word| words << word } else # :common_elt_elt, :del_elt, or :add_elt words << line end } words end # i know this implementation of recursion is so lame... def compare_by_line_word_char(doc1, doc2) lines = compare_by_line(doc1, doc2) lines_and_words = Difference.new lines.each{|line| if line.first == :change_elt before_change = Document.new(line[1].join, doc1.encoding, doc1.eol) after_change = Document.new(line[2].join, doc2.encoding, doc2.eol) Difference.new(before_change.split_to_word, after_change.split_to_word).each{|word| lines_and_words << word } else # :common_elt_elt, :del_elt, or :add_elt lines_and_words << line end } lines_words_and_chars = Difference.new lines_and_words.each{|line_or_word| if line_or_word.first == :change_elt before_change = Document.new(line_or_word[1].join, doc1.encoding, doc1.eol) after_change = Document.new(line_or_word[2].join, doc2.encoding, doc2.eol) Difference.new(before_change.split_to_char, after_change.split_to_char).each{|char| lines_words_and_chars << char } else # :common_elt_elt, :del_elt, or :add_elt lines_words_and_chars << line_or_word end } lines_words_and_chars end def run(doc1, doc2, option) raise "option is nil" if option.nil? raise "option[:resolution] is nil" if option[:resolution].nil? raise "option[:format] is nil" if option[:format].nil? case when doc1.class == Document && doc2.class == Document # OK when doc1.encoding != nil && doc2.encoding != nil # OK when doc1.encoding == doc2.encoding && doc1.eol == doc2.eol # OK else raise("Error! Blame the author (doc1: #{doc1.encoding}, #{doc1.eol}, doc2: #{doc2.encoding}, #{doc2.eol}).") end case option[:resolution] when "line"; then difference = compare_by_line(doc1, doc2) when "word"; then difference = compare_by_line_word(doc1, doc2) when "char"; then difference = compare_by_line_word_char(doc1, doc2) else raise "Unsupported resolution: #{option[:resolution].inspect}" end view = View.new(difference, doc1.encoding, doc1.eol) user_tags = {:start_common => (@config[:tag_common_start] ||= ''), :end_common => (@config[:tag_common_end] ||= ''), :start_del => (@config[:tag_del_start] ||= ''), :end_del => (@config[:tag_del_end] ||= ''), :start_add => (@config[:tag_add_start] ||= ''), :end_add => (@config[:tag_add_end] ||= ''), :start_before_change => (@config[:tag_change_before_start] ||= ''), :end_before_change => (@config[:tag_change_before_end] ||= ''), :start_after_change => (@config[:tag_change_after_start] ||= ''), :end_after_change => (@config[:tag_change_after_end] ||= '')} case option[:digest] when true case option[:format] when "tty"; then result = view.to_tty_digest(option) when "html"; then result = view.to_html_digest(option) when "manued"; then result = view.to_manued_digest(option) when "wdiff"; then result = view.to_wdiff_digest(option) when "stat"; then result = view.to_stat(option) when "user"; then result = view.to_user_digest(user_tags) else raise "Unsupported output format: #{option[:format].inspect}." end when false case option[:format] when "tty"; then result = view.to_tty(option) when "html"; then result = view.to_html(option) when "manued"; then result = view.to_manued(option) when "wdiff"; then result = view.to_wdiff(option) when "stat"; then result = view.to_stat(option) when "user"; then result = view.to_user(user_tags) else raise "Unsupported output format: #{option[:format].inspect}." end end result.join end def process_config_file(filename) file_content = nil begin File.open(filename, "r"){|f| file_content = f.read} rescue Errno::ENOENT message = "config file not found so not read." ensure if file_content != nil self.config.update(DocDiff.parse_config_file_content(file_content)) end end message end end # class DocDiff docdiff-0.5.0+git20160313/lib/docdiff.rb000066400000000000000000000003021263141227400171770ustar00rootroot00000000000000# DocDiff: word/character-oriented text comparison utility # Copyright (C) 2002-2011 Hisashi MORITA # Requirements: Ruby (>= 1.8) require 'docdiff/version' require 'doc_diff' module Docdiff end docdiff-0.5.0+git20160313/lib/docdiff/000077500000000000000000000000001263141227400166575ustar00rootroot00000000000000docdiff-0.5.0+git20160313/lib/docdiff/charstring.rb000066400000000000000000000424121263141227400213530ustar00rootroot00000000000000#!/usr/bin/ruby # Character String module. # To use, include to String, or extend String. # 2003- Hisashi MORITA class DocDiff module CharString Encodings = {} EOLChars = {} # End-of-line characters, such as CR, LF, CRLF. def initialize(string) =begin unnecessary # @encoding = CharString.guess_encoding(string) # @eol = CharString.guess_eol(string) =end unnecessary super end def eol() @eol # if @eol # @eol # else # @eol = CharString.guess_eol(self) # # raise "eol is not set.\n" # end end def eol=(e) @eol = e extend EOLChars[@eol] end def eol_char() if @eol_char @eol_char else nil # extend EOLChars[eol] # eol_char end end def debug() case when @encoding == nil raise "@encoding is nil." when Encodings[@encoding] == nil raise "Encodings[@encoding(=#{@encoding})] is nil." when Encodings[@encoding].class != Module raise "Encodings[@encoding].class(=#{Encodings[@encoding].class}) is not a module." when @eol == nil raise "@eol is nil." when EOLChars[@eol] == nil raise "EOLChars[@eol(=#{@eol})] is nil." else # should I do some alert? end ["id: #{self.id}, class: #{self.class}, self: #{self}, ", "module: #{Encodings[@encoding]}, #{EOLChars[@eol]}"].join end def CharString.register_encoding(mod) Encodings[mod::Encoding] = mod end def CharString.register_eol(mod) EOLChars[mod::EOL] = mod end def CharString.guess_eol(string) # returns 'CR', 'LF', 'CRLF', 'UNKNOWN'(binary), # 'NONE'(1-line), or nil return nil if string == nil #=> nil (argument missing) eol_counts = {'CR' => string.scan(/(\r)(?!\n)/o).size, 'LF' => string.scan(/(?:\A|[^\r])(\n)/o).size, 'CRLF' => string.scan(/(\r\n)/o).size} eol_counts.delete_if{|eol, count| count == 0} # Remove missing EOL eols = eol_counts.keys eol_variety = eols.size # numbers of flavors found if eol_variety == 1 # Only one type of EOL found return eols[0] #=> 'CR', 'LF', or 'CRLF' elsif eol_variety == 0 # No EOL found return 'NONE' #=> 'NONE' (might be 1-line file) else # Multiple types of EOL found return 'UNKNOWN' #=> 'UNKNOWN' (might be binary data) end end def CharString.ruby_m17n? "".respond_to?(:force_encoding) end # Note that some languages (like Japanese) do not have 'word' or 'phrase', # thus some of the following methods are not 'linguistically correct'. def count_byte() split_to_byte().size end def count_char() # eol = 1 char split_to_char().size end def count_graph_char() count_latin_graph_char() + count_ja_graph_char() end def count_blank_char() count_latin_blank_char() + count_ja_blank_char() end def count_word() split_to_word().size end def count_valid_word() count_latin_valid_word() + count_ja_valid_word() end def count_line() # this is common to all encodings. split_to_line.size end def count_empty_line() split_to_line.collect{|line| line if /^(?:#{eol_char})|^$/m.match line }.compact.size end if ruby_m17n? # for Ruby-1.9 def encoding() String.new(self).encoding.to_s end def encoding=(cs) force_encoding(cs) if self end def CharString.guess_encoding(string) if string string.encoding.to_s else nil end end def split_to_byte() encode("ASCII-8BIT").scan(/./nm) end def split_to_char() if eol_char # sometimes string has no end-of-line char encode('UTF-8').scan(Regexp.new("(?:#{eol_char})|(?:.)", Regexp::MULTILINE) ).map{|e| e.encode(self.encoding)} else # it seems that no EOL module was extended... encode('UTF-8').scan(Regexp.new("(?:.)", Regexp::MULTILINE) ).map{|e| e.encode(self.encoding)} end end def count_latin_graph_char() encode('UTF-8').scan(Regexp.new("[#{Encodings['UTF-8']::GRAPH}]", Regexp::MULTILINE) ).size end def count_ja_graph_char() encode('UTF-8').scan(Regexp.new("[#{Encodings['UTF-8']::JA_GRAPH}]", Regexp::MULTILINE) ).size end def count_latin_blank_char() encode('UTF-8').scan(Regexp.new("[#{Encodings['UTF-8']::BLANK}]", Regexp::MULTILINE) ).size end def count_ja_blank_char() encode('UTF-8').scan(Regexp.new("[#{Encodings['UTF-8']::JA_BLANK}]", Regexp::MULTILINE) ).size end def split_to_word() encode('UTF-8').scan(Regexp.new(Encodings['UTF-8']::WORD_REGEXP_SRC, Regexp::MULTILINE) ).map{|e| e.encode(self.encoding)} end def count_latin_word() split_to_word.collect{|word| word if Regexp.new("[#{Encodings['UTF-8']::PRINT}]", Regexp::MULTILINE).match word.encode('UTF-8') }.compact.size end def count_ja_word() split_to_word.collect{|word| word if Regexp.new("[#{Encodings['UTF-8']::JA_PRINT}]", Regexp::MULTILINE).match word.encode('UTF-8') }.compact.size end def count_latin_valid_word() split_to_word.collect{|word| word if Regexp.new("[#{Encodings['UTF-8']::ALNUM}]", Regexp::MULTILINE).match word.encode('UTF-8') }.compact.size end def count_ja_valid_word() split_to_word.collect{|word| word if Regexp.new("[#{Encodings['UTF-8']::JA_GRAPH}]", Regexp::MULTILINE).match word.encode('UTF-8') }.compact.size end def split_to_line() raise "EOLChars[eol] is #{EOLChars[eol].inspect}: eol not specified or auto-detection failed." unless EOLChars[eol] if defined? eol_char encode('UTF-8').scan(Regexp.new(".*?#{eol_char}|.+", Regexp::MULTILINE) ).map{|e| e.encode(self.encoding)} else encode('UTF-8').scan(Regexp.new(".+", Regexp::MULTILINE) ).map{|e| e.encode(self.encoding)} end end def count_graph_line() split_to_line.collect{|line| line if Regexp.new("[#{Encodings['UTF-8']::GRAPH}" + "#{Encodings['UTF-8']::JA_GRAPH}]", Regexp::MULTILINE).match line.encode('UTF-8') }.compact.size end def count_blank_line() split_to_line.collect{|line| line if Regexp.new("^[#{Encodings['UTF-8']::BLANK}" + "#{Encodings['UTF-8']::JA_BLANK}]+(?:#{eol_char})?", Regexp::MULTILINE).match line.encode('UTF-8') }.compact.size end # load encoding modules require 'docdiff/encoding/en_ascii' require 'docdiff/encoding/ja_eucjp' require 'docdiff/encoding/ja_sjis' require 'docdiff/encoding/ja_utf8' else # for Ruby-1.8 require 'iconv' def encoding() @encoding # if @encoding # @encoding # else # @encoding = CharString.guess_encoding(self) # # raise "encoding is not set.\n" # end end def encoding=(cs) @encoding = cs extend Encodings[@encoding] # ; p "Hey, I extended #{Encodings[@encoding]}!" end # returns nil, 'US-ASCII', 'JIS', 'EUC-JP', 'Shift_JIS', 'UTF-8', or 'UNKNOWN' def CharString.guess_encoding(string) return nil if string == nil result_using_pureruby = CharString.guess_encoding_using_pureruby(string) result_using_iconv = CharString.guess_encoding_using_iconv(string) if result_using_pureruby == result_using_iconv result_using_pureruby else "UNKNOWN" end end # returns nil, 'US-ASCII', 'JIS', 'EUC-JP', 'Shift_JIS', 'UTF-8', or 'UNKNOWN' def CharString.guess_encoding_using_pureruby(string) return nil if string == nil ascii_pat = '[\x00-\x7f]' jis_pat = ['(?:(?:\x1b\x28\x42)', '|(?:\x1b\x28\x4a)', '|(?:\x1b\x28\x49)', '|(?:\x1b\x24\x40)', '|(?:\x1b\x24\x42)', '|(?:\x1b\x24\x44))'].join eucjp_pat = ['(?:(?:[\x00-\x1f\x7f])', '|(?:[\x20-\x7e])', '|(?:\x8e[\xa1-\xdf])', '|(?:[\xa1-\xfe][\xa1-\xfe])', '|(?:\x8f[\xa1-\xfe][\xa1-\xfe]))'].join sjis_pat = ['(?:(?:[\x00-\x1f\x7f])', '|(?:[\x20-\x7e])', '|(?:[\xa1-\xdf])', '|(?:[\x81-\x9f][\x40-\x7e])', '|(?:[\xe0-\xef][\x80-\xfc]))'].join utf8_pat = ['(?:(?:[\x00-\x7f])', '|(?:[\xc0-\xdf][\x80-\xbf])', '|(?:[\xe0-\xef][\x80-\xbf][\x80-\xbf])', '|(?:[\xf0-\xf7][\x80-\xbf][\x80-\xbf][\x80-\xbf]))'].join ascii_match_length = string.scan(/#{ascii_pat}/on).join.length jis_escseq_count = string.scan(/#{jis_pat}/on).size eucjp_match_length = string.scan(/#{eucjp_pat}/no).join.length sjis_match_length = string.scan(/#{sjis_pat}/no).join.length utf8_match_length = string.scan(/#{utf8_pat}/no).join.length case when 0 < jis_escseq_count # JIS escape sequense found guessed_encoding = 'JIS' when ascii_match_length == string.length # every char is ASCII (but not JIS) guessed_encoding = 'US-ASCII' else case when eucjp_match_length < (string.length / 2) && sjis_match_length < (string.length / 2) && utf8_match_length < (string.length / 2) guessed_encoding = 'UNKNOWN' # either encoding did not match long enough when (eucjp_match_length < utf8_match_length) && (sjis_match_length < utf8_match_length) guessed_encoding = 'UTF-8' when (eucjp_match_length < sjis_match_length) && (utf8_match_length < sjis_match_length) guessed_encoding = 'Shift_JIS' when (sjis_match_length < eucjp_match_length) && (utf8_match_length < eucjp_match_length) guessed_encoding = 'EUC-JP' else guessed_encoding = 'UNKNOWN' # cannot guess at all end end return guessed_encoding end def CharString.guess_encoding_using_iconv(string) valid_as_utf8 = CharString.valid_as("utf-8", string) valid_as_sjis = CharString.valid_as("cp932", string) # not sjis, but cp932 valid_as_jis = CharString.valid_as("iso-2022-jp", string) valid_as_eucjp = CharString.valid_as("eucjp", string) valid_as_ascii = CharString.valid_as("ascii", string) invalid_as_utf8 = CharString.invalid_as("utf-8", string) invalid_as_sjis = CharString.invalid_as("cp932", string) # not sjis, but cp932 invalid_as_jis = CharString.invalid_as("iso-2022-jp", string) invalid_as_eucjp = CharString.invalid_as("eucjp", string) invalid_as_ascii = CharString.invalid_as("ascii", string) case when string == nil nil when valid_as_ascii "US-ASCII" when valid_as_jis # Iconv sometimes recognizes JIS for ASCII, ignoring JIS escape sequence. "JIS" when valid_as_eucjp "EUC-JP" when valid_as_sjis && invalid_as_utf8 && invalid_as_eucjp && invalid_as_jis "Shift_JIS" when valid_as_utf8 && invalid_as_sjis && invalid_as_eucjp && invalid_as_jis "UTF-8" else "UNKNOWN" end end def CharString.valid_as(encoding_name, string) begin Iconv.iconv(encoding_name, encoding_name, string) rescue Iconv::IllegalSequence, Iconv::InvalidCharacter, Iconv::OutOfRange return false else return true end end def CharString.invalid_as(encoding_name, string) if CharString.valid_as(encoding_name, string) false else true end end def split_to_byte() scan(/./nm) end def split_to_char() raise "Encodings[encoding] is #{Encodings[encoding].inspect}: encoding not specified or auto-detection failed." unless Encodings[encoding] # raise "EOLChars[eol] is #{EOLChars[eol].inspect}: eol not specified or auto-detection failed." unless EOLChars[eol] if eol_char # sometimes string has no end-of-line char scan(Regexp.new("(?:#{eol_char})|(?:.)", Regexp::MULTILINE, encoding.sub(/ASCII/i, 'none')) ) else # it seems that no EOL module was extended... scan(Regexp.new("(?:.)", Regexp::MULTILINE, encoding.sub(/ASCII/i, 'none')) ) end end def count_latin_graph_char() raise "Encodings[encoding] is #{Encodings[encoding].inspect}: encoding not specified or auto-detection failed." unless Encodings[encoding] # raise "EOLChars[eol] is #{EOLChars[eol].inspect}: eol not specified or auto-detection failed." unless EOLChars[eol] scan(Regexp.new("[#{Encodings[encoding]::GRAPH}]", Regexp::MULTILINE, encoding.sub(/ASCII/i, 'none')) ).size end def count_ja_graph_char() raise "Encodings[encoding] is #{Encodings[encoding].inspect}: encoding not specified or auto-detection failed." unless Encodings[encoding] # raise "EOLChars[eol] is #{EOLChars[eol].inspect}: eol not specified or auto-detection failed." unless EOLChars[eol] scan(Regexp.new("[#{Encodings[encoding]::JA_GRAPH}]", Regexp::MULTILINE, encoding.sub(/ASCII/i, 'none')) ).size end def count_latin_blank_char() scan(Regexp.new("[#{Encodings[encoding]::BLANK}]", Regexp::MULTILINE, encoding.sub(/ASCII/i, 'none')) ).size end def count_ja_blank_char() scan(Regexp.new("[#{Encodings[encoding]::JA_BLANK}]", Regexp::MULTILINE, encoding.sub(/ASCII/i, 'none')) ).size end def split_to_word() raise "Encodings[encoding] is #{Encodings[encoding].inspect}: encoding not specified or auto-detection failed." unless Encodings[encoding] # raise "EOLChars[eol] is #{EOLChars[eol].inspect}: eol not specified or auto-detection failed." unless EOLChars[eol] scan(Regexp.new(Encodings[encoding]::WORD_REGEXP_SRC, Regexp::MULTILINE, encoding.sub(/ASCII/i, 'none')) ) end def count_latin_word() split_to_word.collect{|word| word if Regexp.new("[#{Encodings[encoding]::PRINT}]", Regexp::MULTILINE, encoding.sub(/ASCII/i, 'none')).match word }.compact.size end def count_ja_word() split_to_word.collect{|word| word if Regexp.new("[#{Encodings[encoding]::JA_PRINT}]", Regexp::MULTILINE, encoding.sub(/ASCII/i, 'none')).match word }.compact.size end def count_latin_valid_word() split_to_word.collect{|word| word if Regexp.new("[#{Encodings[encoding]::ALNUM}]", Regexp::MULTILINE, encoding.sub(/ASCII/i, 'none')).match word }.compact.size end def count_ja_valid_word() split_to_word.collect{|word| word if Regexp.new("[#{Encodings[encoding]::JA_GRAPH}]", Regexp::MULTILINE, encoding.sub(/ASCII/i, 'none')).match word }.compact.size end def split_to_line() # scan(Regexp.new(".*?#{eol_char}|.+", # Regexp::MULTILINE, # encoding.sub(/ASCII/i, 'none')) # ) raise "Encodings[encoding] is #{Encodings[encoding].inspect}: encoding not specified or auto-detection failed." unless Encodings[encoding] raise "EOLChars[eol] is #{EOLChars[eol].inspect}: eol not specified or auto-detection failed." unless EOLChars[eol] if defined? eol_char scan(Regexp.new(".*?#{eol_char}|.+", Regexp::MULTILINE, encoding.sub(/ASCII/i, 'none')) ) else scan(Regexp.new(".+", Regexp::MULTILINE, encoding.sub(/ASCII/i, 'none')) ) end end def count_graph_line() split_to_line.collect{|line| line if Regexp.new("[#{Encodings[encoding]::GRAPH}" + "#{Encodings[encoding]::JA_GRAPH}]", Regexp::MULTILINE, encoding.sub(/ASCII/, 'none')).match line }.compact.size end def count_blank_line() split_to_line.collect{|line| line if Regexp.new("^[#{Encodings[encoding]::BLANK}" + "#{Encodings[encoding]::JA_BLANK}]+(?:#{eol_char})?", Regexp::MULTILINE, encoding.sub(/ASCII/, 'none')).match line }.compact.size end # load encoding modules require 'docdiff/encoding/en_ascii' require 'docdiff/encoding/ja_eucjp' require 'docdiff/encoding/ja_sjis' require 'docdiff/encoding/ja_utf8' end # end ruby_m17n? alias to_bytes split_to_byte alias to_chars split_to_char alias to_words split_to_word alias to_lines split_to_line module CR EOL = 'CR' def eol_char() "\r" end CharString.register_eol(self) end module LF EOL = 'LF' def eol_char() "\n" end CharString.register_eol(self) end module CRLF EOL = 'CRLF' def eol_char() "\r\n" end CharString.register_eol(self) end module NoEOL EOL = 'NONE' def eol_char() nil end CharString.register_eol(self) end end # module CharString end # class DocDiff # class String # include CharString # end docdiff-0.5.0+git20160313/lib/docdiff/diff.rb000066400000000000000000000111011263141227400201060ustar00rootroot00000000000000=begin = Diff --- Diff.new(seq_a, seq_b) --- Diff#ses([algorithm=:speculative]) --- Diff#lcs([algorithm=:speculative]) Available algorithms are follows. * :shortestpath * :contours * :speculative = Diff::EditScript --- Diff::EditScript.new --- Diff::EditScript#del(seq_or_len_a) --- Diff::EditScript#add(seq_or_len_b) --- Diff::EditScript#common(seq_or_len_a[, seq_or_len_b]) --- Diff::EditScript#commonsubsequence --- Diff::EditScript#count_a --- Diff::EditScript#count_b --- Diff::EditScript#additions --- Diff::EditScript#deletions --- Diff::EditScript#each {|mark, a, b| ...} --- Diff::EditScript#apply(arr) --- Diff::EditScript.parse_rcsdiff(input) --- Diff::EditScript#rcsdiff([out='']) = Diff::Subsequence --- Diff::Subsequence.new --- Diff::Subsequence.add(i, j[, len=1]) --- Diff::Subsequence#length --- Diff::Subsequence#each {|i, j, len| ...} =end require 'docdiff/diff/editscript' require 'docdiff/diff/subsequence' require 'docdiff/diff/shortestpath' require 'docdiff/diff/contours' require 'docdiff/diff/speculative' =begin Data class reduces input for diff and convert alphabet to Integer. It reduces input by removing common prefix, suffix and unique elements. So, reduced input has following properties: * First element is different. * Last element is different. * Any elemnt in A is also exist in B. * Any elemnt in B is also exist in A. =end class DocDiff class Diff def initialize(a, b) @original_a = a @original_b = b count_a = {} count_a.default = 0 a.each {|e| count_a[e] += 1} count_b = {} count_b.default = 0 b.each {|e| count_b[e] += 1} beg_a = 0 end_a = a.length beg_b = 0 end_b = b.length @prefix_lcs = [] @suffix_lcs = [] flag = true while flag flag = false while beg_a < end_a && beg_b < end_b && a[beg_a].eql?(b[beg_b]) @prefix_lcs << [beg_a, beg_b] count_a[a[beg_a]] -= 1 count_b[b[beg_b]] -= 1 beg_a += 1 beg_b += 1 flag = true end while beg_a < end_a && beg_b < end_b && a[end_a - 1].eql?(b[end_b - 1]) @suffix_lcs << [end_a - 1, end_b - 1] count_a[a[end_a - 1]] -= 1 count_b[b[end_b - 1]] -= 1 end_a -= 1 end_b -= 1 flag = true end while beg_a < end_a && count_b[a[beg_a]] == 0 count_a[a[beg_a]] -= 1 beg_a += 1 flag = true end while beg_b < end_b && count_a[b[beg_b]] == 0 count_b[b[beg_b]] -= 1 beg_b += 1 flag = true end while beg_a < end_a && count_b[a[end_a - 1]] == 0 count_a[a[end_a - 1]] -= 1 end_a -= 1 flag = true end while beg_b < end_b && count_a[b[end_b - 1]] == 0 count_b[b[end_b - 1]] -= 1 end_b -= 1 flag = true end end @alphabet = Alphabet.new @a = [] @revert_index_a = [] (beg_a...end_a).each {|i| if count_b[a[i]] != 0 @a << @alphabet.add(a[i]) @revert_index_a << i end } @b = [] @revert_index_b = [] (beg_b...end_b).each {|i| if count_a[b[i]] != 0 @b << @alphabet.add(b[i]) @revert_index_b << i end } end def Diff.algorithm(algorithm) case algorithm when :shortestpath return ShortestPath when :contours return Contours when :speculative return Speculative else raise ArgumentError.new("unknown diff algorithm: #{algorithm}") end end def lcs(algorithm=:speculative) # longest common subsequence klass = Diff.algorithm(algorithm) reduced_lcs = klass.new(@a, @b).lcs lcs = Subsequence.new @prefix_lcs.each {|i, j| lcs.add i, j} reduced_lcs.each {|i, j, l| l.times {|k| lcs.add @revert_index_a[i+k], @revert_index_b[j+k] } } @suffix_lcs.reverse_each {|i, j| lcs.add i, j} return lcs end def ses(algorithm=nil) # shortest edit script algorithm ||= :speculative lcs = lcs(algorithm) ses = EditScript.new i0 = j0 = 0 lcs.each {|i, j, l| ses.del @original_a[i0, i - i0] if i0 < i ses.add @original_b[j0, j - j0] if j0 < j ses.common @original_a[i, l], @original_b[j, l] i0 = i + l j0 = j + l } i = @original_a.length j = @original_b.length ses.del @original_a[i0, i - i0] if i0 < i ses.add @original_b[j0, j - j0] if j0 < j return ses end class Alphabet def initialize @hash = {} end def add(v) if @hash.include? v return @hash[v] else return @hash[v] = @hash.size end end class NoSymbol < StandardError end def index(v) return @hash.fetch {raise NoSymbol.new(v.to_s)} end def size return @hash.size end end end end # class DocDiff docdiff-0.5.0+git20160313/lib/docdiff/diff/000077500000000000000000000000001263141227400175675ustar00rootroot00000000000000docdiff-0.5.0+git20160313/lib/docdiff/diff/contours.rb000066400000000000000000000236471263141227400220040ustar00rootroot00000000000000=begin == Contours Contours is based on the algorithm which is presented by Claus Rick. I made two optimizations (for long LCS): * When a midpoint of LCS is found, adjacent matches on same diagonal is checked. They are also part of LCS. If LCS is long, they may exist and even long. * Search method for next contour uses divide and conquer. * Search region is rectangle: (This is forward contour case.) (min{i|(i,j) in dominants}, min{j|(i,j) in dominants}) to (end_a, end_b). * In search region (i0,j0) to (i1,j1), For each dominant match (i,j) in Ck and the region, (i+1,j+1) is checked first. If LCS is long it is match frequently. If it is match, it's a match in Ck+1 and it divides search region: (i0,j) to (i+1,end_b) (i,j0) to (end_a,j+1) * For each divided region, dominants is searchd line by line: topmost row or leftmost column. Longer one is selected. If no dominant match is found in the line, search region is reduced with only the line. If a dominant match is found in the line, search region is reduced with the line and rectangle farer than the match. == References [Claus2000] Claus Rick, Simple and Fast Linear Space Computation of Longest Common Subsequences, Information Processing Letters, Vol. 75/6, 275 - 281, Elsevier (2000) [Claus1995] Claus Rick, A New Flexible Algorithm for the Longest Common Subsequence Problem, Proceedings of the 6th Symposium on Combinatorial Pattern Matching (CPM'95), Lecture Notes in Computer Science, Vol. 937, 340 - 351, Springer Verlag (1995) Also in Nordic Journal of Computing (NJC), Vol. 2, No. 4, Winter 1995, 444 - 461. http://web.informatik.uni-bonn.de/IV/Mitarbeiter/rick/lcs.dvi.Z =end class DocDiff class Diff class Contours def initialize(a, b) @a = a @b = b @closest_a = Closest.new(@a) @closest_b = Closest.new(@b) end def lcs(lcs=Subsequence.new, beg_a=0, beg_b=0, end_a=@a.length, end_b=@b.length, len=nil) #p [:lcs, beg_a, beg_b, end_a, end_b] found, len, mid_a, mid_b = midpoint(beg_a, beg_b, end_a, end_b, len) return lcs unless found len1 = len2 = len / 2 if len & 1 == 0 len2 -= 1 end l = 1 while beg_a < mid_a && beg_b < mid_b && @a[mid_a-1] == @b[mid_b-1] len1 -= 1 mid_a -= 1 mid_b -= 1 l += 1 end while mid_a+l < end_a && mid_b+l < end_b && @a[mid_a+l] == @b[mid_b+l] len2 -= 1 l += 1 end lcs(lcs, beg_a, beg_b, mid_a, mid_b, len1) lcs.add(mid_a, mid_b, l) lcs(lcs, mid_a + l, mid_b + l, end_a, end_b, len2) return lcs end def midpoint(beg_a, beg_b, end_a, end_b, len) return false, 0, nil, nil if len == 0 fc = newForwardContour(beg_a, beg_b, end_a, end_b) return false, 0, nil, nil if fc.empty? bc = newBackwardContour(beg_a, beg_b, end_a, end_b) midpoints = nil l = 1 while true crossed = contourCrossed(fc, bc) if crossed midpoints = fc break end l += 1 fc = nextForwardContour(fc, end_a, end_b) crossed = contourCrossed(fc, bc) if crossed midpoints = bc break end l += 1 bc = nextBackwardContour(bc, beg_a, beg_b) end # select a dominant match which is closest to diagonal. m = midpoints[0] (1...midpoints.length).each {|m1| m = m1 if m[0] < m1[0] && m[1] < m1[1] } return [true, l, *m] end def newForwardContour(beg_a, beg_b, end_a, end_b) return nextForwardContour([[beg_a-1,beg_b-1]], end_a, end_b) end def nextForwardContour(fc0, end_a, end_b) next_dominants = [] topright_dominant = 0 bottomleft_dominant = fc0.length - 1 fc0.each_index {|k| i, j = fc0[k] if i+1 < end_a && j+1 < end_b && @a[i+1] == @b[j+1] if topright_dominant <= k - 1 nextForwardContour1(fc0, topright_dominant, k - 1, i+1, end_b, next_dominants) end next_dominants << [i+1, j+1] end_b = j+1 topright_dominant = k + 1 end } if topright_dominant <= bottomleft_dominant nextForwardContour1(fc0, topright_dominant, bottomleft_dominant, end_a, end_b, next_dominants) end return next_dominants end def nextForwardContour1(fc0, topright_dominant, bottomleft_dominant, end_a, end_b, next_dominants_topright) beg_a = fc0[topright_dominant][0] + 1 beg_b = fc0[bottomleft_dominant][1] + 1 next_dominants_bottomleft = [] while beg_a < end_a && beg_b < end_b if end_a - beg_a < end_b - beg_b # search top row: [beg_a, beg_b] to [beg_a, end_b-1] inclusive if topright_dominant + 1 < fc0.length && fc0[topright_dominant + 1][0] < beg_a topright_dominant += 1 end search_start_b = fc0[topright_dominant][1] # search top row: [beg_a, search_start_b+1] to [beg_a, end_b-1] inclusive j = @closest_b.next(@a[beg_a], search_start_b) if j < end_b # new dominant found. # it means that the rectangle [beg_a, j] to [end_a-1, end_b-1] is not required to search any more. next_dominants_topright << [beg_a, j] end_b = j end beg_a += 1 else # search left column: [beg_a, beg_b] to [end_a-1, beg_b] if 0 <= bottomleft_dominant - 1 && fc0[bottomleft_dominant - 1][1] < beg_b bottomleft_dominant -= 1 end search_start_a = fc0[bottomleft_dominant][0] # search left column: [search_start_a, beg_b] to [end_a-1, beg_b] i = @closest_a.next(@b[beg_b], search_start_a) if i < end_a # new dominant found. # if means that the rectangle [i, beg_b] to [end_a-1, end_b-1] is not required to search any more. next_dominants_bottomleft << [i, beg_b] end_a = i end beg_b += 1 end end next_dominants_bottomleft.reverse! next_dominants_topright.concat next_dominants_bottomleft end def newBackwardContour(beg_a, beg_b, end_a, end_b) return nextBackwardContour([[end_a,end_b]], beg_a, beg_b) end def nextBackwardContour(bc0, beg_a, beg_b) next_dominants = [] topright_dominant = 0 bottomleft_dominant = bc0.length - 1 bc0.each_index {|k| i, j = bc0[k] if beg_a <= i-1 && beg_b <= j-1 && @a[i-1] == @b[j-1] if topright_dominant <= k - 1 nextBackwardContour1(bc0, topright_dominant, k - 1, beg_a, j, next_dominants) end next_dominants << [i-1, j-1] beg_a = i topright_dominant = k + 1 end } if topright_dominant <= bottomleft_dominant nextBackwardContour1(bc0, topright_dominant, bottomleft_dominant, beg_a, beg_b, next_dominants) end return next_dominants end def nextBackwardContour1(bc0, topright_dominant, bottomleft_dominant, beg_a, beg_b, next_dominants_topright) end_a = bc0[bottomleft_dominant][0] end_b = bc0[topright_dominant][1] next_dominants_bottomleft = [] while beg_a < end_a && beg_b < end_b if end_a - beg_a < end_b - beg_b # search bottom row: [end_a-1, end_b-1] from [end_a-1, beg_b] if 0 <= bottomleft_dominant - 1 && end_a - 1 < bc0[bottomleft_dominant - 1][0] bottomleft_dominant -= 1 end search_end_b = bc0[bottomleft_dominant][1] # search bottom row: [end_a-1, search_end_b-1] from [end_a-1, beg_b] j = @closest_b.prev(@a[end_a-1], search_end_b) if beg_b <= j # new dominant found. # it means that the rectangle [beg_a, beg_b] to [end_a-1, j] is not required to search any more. next_dominants_bottomleft << [end_a-1, j] beg_b = j + 1 end end_a -= 1 else # search right column: [end_a-1, end_b-1] to [beg_a, end_b-1] if topright_dominant + 1 < bc0.length && end_b - 1 < bc0[topright_dominant + 1][1] topright_dominant += 1 end search_end_a = bc0[topright_dominant][0] # search right column: [search_end_a-1, end_b-1] to [beg_a, end_b-1] i = @closest_a.prev(@b[end_b-1], search_end_a) if beg_a <= i # new dominant found. # if means that the rectangle [beg_a, beg_b] to [i, end_b-1] is not required to search any more. next_dominants_topright << [i, end_b-1] beg_a = i + 1 end end_b -= 1 end end next_dominants_bottomleft.reverse! next_dominants_topright.concat next_dominants_bottomleft end def contourCrossed(fc, bc) #p [:contourCrossed1Beg, fc, bc] new_fc, new_bc = contourCrossed1(fc, bc) #p [:contourCrossed1End, new_fc, new_bc] if new_fc.empty? && new_bc.empty? return true end fc.replace new_fc bc.replace new_bc return false end def contourCrossed1(fc, bc) new_fc = [] new_bc = [] fc_k = 0 bc_k = 0 bc_j = bc[0][1] fc_j = fc[0][1] fc_j = bc_j if fc_j < bc_j fc_j += 1 while fc_k < fc.length || bc_k < bc.length if bc_k < bc.length && (!(fc_k < fc.length) || bc[bc_k][0] <= fc[fc_k][0]) if fc_j < bc[bc_k][1] new_bc << bc[bc_k] end bc_k += 1 bc_j = bc_k < bc.length ? bc[bc_k][1] : 0 end if fc_k < fc.length && (!(bc_k < bc.length) || fc[fc_k][0] < bc[bc_k][0]) if fc[fc_k][1] < bc_j new_fc << fc[fc_k] end fc_j = fc[fc_k][1] fc_k += 1 end end return new_fc, new_bc end class Closest def initialize(arr) @n = arr.length + 1 @table = Array.new arr.each_index {|i| s = arr[i] @table[s] = [-1] unless @table[s] @table[s] << i } @table.each_index {|s| @table[s] = [-1] unless @table[s] @table[s] << @n } end def next(s, i) t = @table[s] if t.length < 10 t.each {|j| return j if i < j} return @n end lower = -1 upper = t.length while lower + 1 != upper mid = (lower + upper) / 2 if t[mid] <= i lower = mid else upper = mid end end b = lower + 1 if b < t.length return t[b] else return @n end end def prev(s, i) t = @table[s] if t.length < 10 t.reverse_each {|j| return j if j < i} return -1 end lower = -1 upper = t.length while lower + 1 != upper mid = (lower + upper) / 2 if t[mid] < i lower = mid else upper = mid end end if 0 < upper return t[upper - 1] else return -1 end end end end end end # class DocDiff docdiff-0.5.0+git20160313/lib/docdiff/diff/editscript.rb000066400000000000000000000063131263141227400222710ustar00rootroot00000000000000require 'docdiff/diff/rcsdiff' require 'docdiff/diff/unidiff' class DocDiff class Diff class EditScript def initialize @chunk_common = nil @chunk_add = [] @chunk_del = [] @list = [] @list << @chunk_del @list << @chunk_add @cs = Subsequence.new @count_a = 0 @count_b = 0 @additions = 0 @deletions = 0 end attr_reader :count_a, :additions attr_reader :count_b, :deletions def commonsubsequence return @cs end def del(seq_or_len) unless @chunk_del @chunk_add = [] @chunk_del = [] @chunk_common = nil @list << @chunk_del @list << @chunk_add end if Array === seq_or_len len = seq_or_len.length mark = :del_elt else len = seq_or_len mark = :del_num end if !@chunk_del.empty? && @chunk_del.last[0] == mark @chunk_del.last[1] += seq_or_len else @chunk_del << [mark, seq_or_len, nil] end @count_a += len @deletions += len end def add(seq_or_len) unless @chunk_add @chunk_add = [] @chunk_del = [] @chunk_common = nil @list << @chunk_del @list << @chunk_add end if Array === seq_or_len len = seq_or_len.length mark = :add_elt else len = seq_or_len mark = :add_num end if !@chunk_add.empty? && @chunk_add.last[0] == mark @chunk_add.last[2] += seq_or_len else @chunk_add << [mark, nil, seq_or_len] end @count_b += len @additions += len end def common(seq_or_len_a, seq_or_len_b=seq_or_len_a) unless @chunk_common @list.pop @list.pop @list << @chunk_del unless @chunk_del.empty? @list << @chunk_add unless @chunk_add.empty? @chunk_add = nil @chunk_del = nil @chunk_common = [] @list << @chunk_common end len_a = Array === seq_or_len_a ? seq_or_len_a.length : seq_or_len_a len_b = Array === seq_or_len_b ? seq_or_len_b.length : seq_or_len_b raise ArgumentError.new("length not equal: #{len_a} != #{len_b}") if len_a != len_b len = len_a mark = ((Array === seq_or_len_a) ? (Array === seq_or_len_b ? :common_elt_elt : :common_elt_num) : (Array === seq_or_len_b ? :common_num_elt : :common_num_num)) if !@chunk_common.empty? && @chunk_common.last[0] == mark @chunk_common.last[1] += seq_or_len_a @chunk_common.last[2] += seq_or_len_b else @chunk_common << [mark, seq_or_len_a, seq_or_len_b] end @cs.add @count_a, @count_b, len @count_a += len @count_b += len end def each @list.each {|chunk| chunk.each {|mark_del_add| yield mark_del_add } } end def apply(src) l = 0 dst = [] each {|mark, del, add| case mark when :add_elt dst.concat add when :add_num raise ArgumentError.new("additionnal lines are not known.") when :common_elt_elt dst.concat add l += del.length when :common_elt_num dst.concat src[l, del] l += del when :common_num_elt dst.concat add l += add when :common_num_num dst.concat src[l, del] l += del when :del_elt l += del.length when :del_num l += del end } dst.concat src[l..-1] return dst end end end end # class DocDiff docdiff-0.5.0+git20160313/lib/docdiff/diff/rcsdiff.rb000066400000000000000000000042151263141227400215360ustar00rootroot00000000000000class DocDiff class Diff def Diff.rcsdiff(a, b) al = [] a.each_line {|l| al << l} bl = [] b.each_line {|l| bl << l} return Diff.new(al, bl).ses.rcsdiff end class EditScript def EditScript.parse_rcsdiff(input) ses = EditScript.new l = 1 scan_rcsdiff(input) {|mark, beg, len, lines| if mark == :del ses.common beg - l if l < beg ses.del len l = beg + len else ses.add lines end } return ses end def EditScript.scan_rcsdiff(input) state = :command beg = len = nil adds = nil input.each_line("\n") {|line| case state when :command case line when /\Aa(\d+)\s+(\d+)/ beg = $1.to_i len = $2.to_i adds = [] state = :add when /\Ad(\d+)\s+(\d+)/ beg = $1.to_i len = $2.to_i yield :del, beg, len, nil state = :command else raise InvalidRCSDiffFormat.new(line) end when :add adds << line if adds.length == len yield :add, beg, len, adds adds = nil state = :command end else raise StandardError.new("unknown state") end } end def rcsdiff(out='') state = :lines l = 1 each {|mark, del, add| case mark when :add_elt out << "a#{l - 1} #{add.length}\n" add.each {|line| case state when :lines case line when /\A.*\n\z/ when /\A.*\z/ state = :after_last_line else raise ArgumentError.new("additional element is not line") end when :after_last_line raise ArgumentError.new("additional elements after last incomplete line") end out << line } when :add_num raise ArgumentError.new("additionnal lines are not known.") when :common_elt_elt l += del.length when :common_elt_num l += add when :common_num_elt l += del when :common_num_num l += del when :del_elt del = del.length out << "d#{l} #{del}\n" l += del when :del_num out << "d#{l} #{del}\n" l += del end } return out end class InvalidRCSDiffFormat < StandardError end end end end # class DocDiff docdiff-0.5.0+git20160313/lib/docdiff/diff/shortestpath.rb000066400000000000000000000044201263141227400226440ustar00rootroot00000000000000=begin Diff::ShortestPath uses the algorithm described in following paper. [Wu1990] Sun Wu, Udi Manber, Gene Myers and Webb Miller, An O(NP) Sequence Comparison Algorithm, Information Processing Letters 35, 1990, 317-323 =end class DocDiff class Diff class ShortestPath def initialize(a, b) if a.length > b.length @a = b @b = a @exchanged = true else @a = a @b = b @exchanged = false end @m = @a.length @n = @b.length end def lcs(lcs=Subsequence.new) d = @n - @m fp = Array.new(@n+1+@m+1+1, -1) fp_base = -(@m+1) path = Array.new(fp.length) p = -1 begin p += 1 (-p).upto(d-1) {|k| a = fp[fp_base+k-1]+1 b = fp[fp_base+k+1] if a < b y = fp[fp_base+k] = snake(k, b) path[fp_base+k] = path[fp_base+k+1] path[fp_base+k] = [y - k, y, y - b, path[fp_base+k]] if b < y else y = fp[fp_base+k] = snake(k, a) path[fp_base+k] = path[fp_base+k-1] path[fp_base+k] = [y - k, y, y - a, path[fp_base+k]] if a < y end } (d+p).downto(d+1) {|k| a = fp[fp_base+k-1]+1 b = fp[fp_base+k+1] if a < b y = fp[fp_base+k] = snake(k, b) path[fp_base+k] = path[fp_base+k+1] path[fp_base+k] = [y - k, y, y - b, path[fp_base+k]] if b < y else y = fp[fp_base+k] = snake(k, a) path[fp_base+k] = path[fp_base+k-1] path[fp_base+k] = [y - k, y, y - a, path[fp_base+k]] if a < y end } a = fp[fp_base+d-1]+1 b = fp[fp_base+d+1] if a < b y = fp[fp_base+d] = snake(d, b) path[fp_base+d] = path[fp_base+d+1] path[fp_base+d] = [y - d, y, y - b, path[fp_base+d]] if b < y else y = fp[fp_base+d] = snake(d, a) path[fp_base+d] = path[fp_base+d-1] path[fp_base+d] = [y - d, y, y - a, path[fp_base+d]] if a < y end end until fp[fp_base+d] == @n shortest_path = path[fp_base+d] list = [] while shortest_path x, y, l, shortest_path = shortest_path list << [x - l, y - l, l] end if @exchanged list.collect {|xyl| tmp = xyl[0]; xyl[0] = xyl[1]; xyl[1] = tmp} end list.reverse_each {|xyl| lcs.add(*xyl)} return lcs end def snake(k, y) x = y - k while x < @m && y < @n && @a[x] == @b[y] x += 1 y += 1 end return y end end end end # class DocDiff docdiff-0.5.0+git20160313/lib/docdiff/diff/speculative.rb000066400000000000000000000017521263141227400224450ustar00rootroot00000000000000require 'docdiff/diff/shortestpath' require 'docdiff/diff/contours' require 'thread' class DocDiff class Diff class Speculative def initialize(a, b) @a = a @b = b end def lcs # Try speculative execution. result = nil tg = ThreadGroup.new m = Mutex.new # Since ShortestPath is faster than Contours if two sequences are very similar, # try it first. tg.add(Thread.new { #print "ShortestPath start.\n" result = ShortestPath.new(@a, @b).lcs m.synchronize {tg.list.each {|t| t.kill if t != Thread.current}} #print "ShortestPath win.\n" }) # start Contours unless ShortestPath is already ended with first quantum, tg.add(Thread.new { #print "Contours start.\n" result = Contours.new(@a, @b).lcs m.synchronize {tg.list.each {|t| t.kill if t != Thread.current}} #print "Contours win.\n" }) unless tg.list.empty? tg.list.each {|t| t.join} return result end end end end # class DocDiff docdiff-0.5.0+git20160313/lib/docdiff/diff/subsequence.rb000066400000000000000000000013041263141227400224340ustar00rootroot00000000000000class DocDiff class Diff class Subsequence def initialize @list = [] end def add(i, j, len=1) raise ArgumentError.new("non-positive length: #{len}") if len <= 0 if @list.empty? @list << [i, j, len] return end i0, j0, len0 = @list.last if i0 + len0 == i && j0 + len0 == j @list.last[2] += len return end if i0 + len0 > i || j0 + len0 > j raise ArgumentError.new("additional common sequence overlapped.") end @list << [i, j, len] end def each(&block) @list.each(&block) end def length len = 0 each {|i, j, l| len += l} return len end end end end # class DocDiff docdiff-0.5.0+git20160313/lib/docdiff/diff/unidiff.rb000066400000000000000000000070421263141227400215430ustar00rootroot00000000000000class DocDiff class Diff def Diff.unidiff(a, b, algorithm=nil) al = [] a.each_line {|l| al << l} bl = [] b.each_line {|l| bl << l} return Diff.new(al, bl).ses(algorithm).unidiff end class EditScript def unidiff_hunk_header(l1, ll1, l2, ll2) l1 = 0 if ll1 == 0 l2 = 0 if ll2 == 0 result = "@@ -#{l1}" result << ",#{ll1}" if ll1 != 1 result << " +#{l2}" result << ",#{ll2}" if ll2 != 1 result << " @@\n" end def unidiff(out='', context_lines=3) state = :common l1 = l2 = 1 hunk = [] hunk_l1 = hunk_l2 = 1 hunk_tail = 0 each {|mark, del, add| case mark when :add_elt unless hunk hunk = [] hunk_l1 = l1 hunk_l2 = l2 end add.each {|line| hunk << '+' + line} hunk[-1] += "\n\\ No newline at end of file\n" if /\n\z/ !~ hunk[-1] l2 += add.length hunk_tail = 0 when :add_num raise ArgumentError.new("additionnal lines are not known.") when :common_elt_elt if hunk if hunk_tail + add.length <= context_lines * 2 add.each {|line| hunk << ' ' + line} hunk[-1] += "\n\\ No newline at end of file\n" if /\n\z/ !~ hunk[-1] l1 += add.length l2 += add.length hunk_tail += add.length else i = 0 if hunk_tail != hunk.length while hunk_tail < context_lines hunk << ' ' + add[i] l1 += 1 l2 += 1 hunk_tail += 1 i += 1 end hunk[-1] += "\n\\ No newline at end of file\n" if /\n\z/ !~ hunk[-1] out << unidiff_hunk_header(hunk_l1, l1 - hunk_l1, hunk_l2, l2 - hunk_l1) h = hunk.length - (hunk_tail - context_lines) (0...h).each {|j| out << hunk[j]} hunk[0, h] = [] end l1 += add.length - i l2 += add.length - i hunk_l1 = l1 - context_lines hunk_l2 = l2 - context_lines hunk = add[-context_lines..-1].collect {|line| ' ' + line} hunk[-1] += "\n\\ No newline at end of file\n" if /\n\z/ !~ hunk[-1] hunk_tail = context_lines end else hunk_l1 = l1 hunk_l2 = l2 l1 += add.length l2 += add.length if context_lines <= add.length hunk = add[-context_lines..-1].collect {|line| ' ' + line} else hunk = add.collect {|line| ' ' + line} end hunk[-1] += "\n\\ No newline at end of file\n" if /\n\z/ !~ hunk[-1] hunk_tail = hunk.length end when :common_elt_num raise ArgumentError.new("deleted lines are not known.") when :common_num_elt raise ArgumentError.new("additional lines are not known.") when :common_num_num raise ArgumentError.new("deleted and additional lines are not known.") when :del_elt if hunk_tail == hunk.length && context_lines < hunk_tail i = hunk_tail - context_lines hunk[0, i] = [] hunk_l1 += i hunk_l2 += i end del.each {|line| hunk << '-' + line} hunk[-1] += "\n\\ No newline at end of file\n" if /\n\z/ !~ hunk[-1] l1 += del.length hunk_tail = 0 when :del_num raise ArgumentError.new("deleted lines are not known.") end } if hunk_tail != hunk.length if context_lines < hunk_tail i = hunk_tail - context_lines hunk[-i..-1] = [] l1 -= i l2 -= i end out << unidiff_hunk_header(hunk_l1, l1 - hunk_l1, hunk_l2, l2 - hunk_l1) hunk.each {|line| out << line} end return out end end end end # class DocDiff docdiff-0.5.0+git20160313/lib/docdiff/difference.rb000066400000000000000000000047721263141227400213100ustar00rootroot00000000000000# Difference class for DocDiff # 2003-03-24 .. # Hisashi MORITA require 'docdiff/diff' class DocDiff class Difference < Array # @resolution = nil # char, word, phrase, sentence, line, paragraph.. # @codeset = '' # @eol_char = "\n" # @source = 'source' # @target = 'target' # attr_accessor :resolution, :codeset, :eol_char, :source, :target def initialize(array1 = nil, array2 = nil) if (array1 == nil) && (array2 == nil) return [] end diff = Diff.new(array1, array2) @raw_list = [] diff.ses.each{|block| # Diff::EditScript does not have each_with_index() @raw_list << block } combine_del_add_to_change!() end def combine_del_add_to_change!() @raw_list.each_with_index{|block, i| case block.first when :common_elt_elt if i == 0 # first block self << block else # in-between or the last block if @raw_list[i - 1].first == :del_elt # previous block was del self << @raw_list[i - 1] self << block else # previous block was add self << block end end when :del_elt if i == (@raw_list.size - 1) # last block self << block else # first block or in-between # do nothing, let the next block to decide what to do end when :add_elt if i == 0 # first block self << block else # in-between or the last block if @raw_list[i - 1].first == :del_elt # previous block was del deleted = @raw_list[i - 1][1] added = @raw_list[i][2] self << [:change_elt, deleted, added] else # previous block was common self << block end end else raise "the first element of the block #{i} is invalid: (#{block.first})\n" end } end attr_accessor :raw_list def former_only() elms = self.dup.delete_if{|e| e[0] == :add_elt} elms.collect!{|e| if e[0] == :change_elt [e[0], e[1], nil] else e end } return elms end def latter_only() elms = self.dup.delete_if{|e| e[0] == :del_elt} elms.collect!{|e| if e[0] == :change_elt [e[0], nil, e[2]] else e end } return elms end end # class Difference end # class DocDiff docdiff-0.5.0+git20160313/lib/docdiff/document.rb000066400000000000000000000047141263141227400210300ustar00rootroot00000000000000# Document class, a part of DocDiff # 2004-01-14.. Hisashi MORITA require 'docdiff/charstring' class EncodingDetectionFailure < Exception end class EOLDetectionFailure < Exception end class DocDiff class Document def initialize(str, enc = nil, e = nil) @body = str @body.extend CharString if enc @body.encoding = enc elsif !@body.encoding guessed_encoding = CharString.guess_encoding(str) if guessed_encoding == "UNKNOWN" raise EncodingDetectionFailure, "encoding not specified, and auto detection failed." # @body.encoding = 'ASCII' # default to ASCII <= BAD! else @body.encoding = guessed_encoding end end if e @body.eol = e else guessed_eol = CharString.guess_eol(str) if guessed_eol == "UNKNOWN" raise EOLDetectionFailure, "eol not specified, and auto detection failed." # @body.eol = 'LF' # default to LF else @body.eol = guessed_eol end end end def encoding() @body.encoding end def encoding=(cs) @body.encoding = cs end def eol() @body.eol end def eol=(eolstr) @body.eol = eolstr end def split_to_line() @body.split_to_line end def split_to_word() @body.split_to_word end def split_to_char() @body.split_to_char end def split_to_byte() @body.split_to_byte end def count_line() @body.count_line end def count_blank_line() @body.count_blank_line end def count_empty_line() @body.count_empty_line end def count_graph_line() @body.count_graph_line end def count_word() @body.count_word end def count_latin_word() @body.count_latin_word end def count_ja_word() @body.count_ja_word end def count_valid_word() @body.count_valid_word end def count_latin_valid_word() @body.count_latin_valid_word end def count_ja_valid_word() @body.count_ja_valid_word end def count_char() @body.count_char end def count_blank_char() @body.count_blank_char end def count_graph_char() @body.count_graph_char end def count_latin_blank_char() @body.count_latin_blank_char end def count_latin_graph_char() @body.count_latin_graph_char end def count_ja_blank_char() @body.count_ja_blank_char end def count_ja_graph_char() @body.count_ja_graph_char end def count_byte() @body.count_byte end def eol_char() @body.eol_char end end # class Document end # class DocDiff docdiff-0.5.0+git20160313/lib/docdiff/encoding/000077500000000000000000000000001263141227400204455ustar00rootroot00000000000000docdiff-0.5.0+git20160313/lib/docdiff/encoding/en_ascii.rb000066400000000000000000000100471263141227400225460ustar00rootroot00000000000000# English ASCII encoding module for CharString # 2003- Hisashi MORITA class DocDiff module CharString module ASCII Encoding = "US-ASCII" CNTRL = "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09" \ "\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13" \ "\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d" \ "\x1e\x1f\x7f" SPACE = "\x09\x0a\x0b\x0c\x0d\x20" BLANK = "\x09\x20" DIGIT = "\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39" ALPHA = "\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a" \ "\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54" \ "\x55\x56\x57\x58\x59\x5a\x61\x62\x63\x64" \ "\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e" \ "\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78" \ "\x79\x7a" ALNUM = "\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39" \ "\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a" \ "\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54" \ "\x55\x56\x57\x58\x59\x5a\x61\x62\x63\x64" \ "\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e" \ "\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78" \ "\x79\x7a" PUNCT = "\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a" \ "\x2b\x2c\x2d\x2e\x2f\x3a\x3b\x3c\x3d\x3e" \ "\x3f\x40\x5b\x5c\x5d\x5e\x5f\x60\x7b\x7c" \ "\x7d\x7e" LOWER = "\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a" \ "\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74" \ "\x75\x76\x77\x78\x79\x7a" UPPER = "\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a" \ "\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54" \ "\x55\x56\x57\x58\x59\x5a" PRINT = "\x20\x21\x22\x23\x24\x25\x26\x27\x28\x29" \ "\x2a\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33" \ "\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d" \ "\x3e\x3f\x40\x41\x42\x43\x44\x45\x46\x47" \ "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51" \ "\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x5b" \ "\x5c\x5d\x5e\x5f\x60\x61\x62\x63\x64\x65" \ "\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" \ "\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79" \ "\x7a\x7b\x7c\x7d\x7e" GRAPH = "\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a" \ "\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33\x34" \ "\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e" \ "\x3f\x40\x41\x42\x43\x44\x45\x46\x47\x48" \ "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52" \ "\x53\x54\x55\x56\x57\x58\x59\x5a\x5b\x5c" \ "\x5d\x5e\x5f\x60\x61\x62\x63\x64\x65\x66" \ "\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" \ "\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a" \ "\x7b\x7c\x7d\x7e" XDIGIT = "\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39" \ "\x41\x42\x43\x44\x45\x46\x61\x62\x63\x64" \ "\x65\x66" JA_BLANK = "" # kludge... JA_GRAPH = "" # kludge... PUNCT.replace(Regexp.quote(PUNCT)) # kludge to avoid warning "character class has `[' without escape" PRINT.replace(Regexp.quote(PRINT)) # kludge to avoid warning "character class has `[' without escape" GRAPH.replace(Regexp.quote(GRAPH)) # kludge to avoid warning "character class has `[' without escape" WORD_REGEXP_SRC = ["(?:[#{GRAPH}]+[#{BLANK}]?)", "|(?:[#{SPACE}]+)", "|(?:.+?)"].join # override default method, as ASCII has no Japanese in it def count_ja_graph_char() 0 end # override default method, as ASCII has no Japanese in it def count_ja_blank_char() 0 end # override default method, as ASCII has no Japanese in it def count_ja_word() 0 end # override default method, as ASCII has no Japanese in it def count_ja_valid_word() 0 end CharString.register_encoding(self) end # module ASCII end # module CharString end # class DocDiff docdiff-0.5.0+git20160313/lib/docdiff/encoding/ja_eucjp.rb000066400000000000000000000323351263141227400225600ustar00rootroot00000000000000# Japanese EUC-JP encoding module for CharString # 2003- Hisashi MORITA class DocDiff module CharString module EUC_JP Encoding = "EUC-JP" # character table based on: # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/JIS0208.TXT CNTRL = "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09" \ "\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13" \ "\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d" \ "\x1e\x1f\x7f" SPACE = "\x09\x0a\x0b\x0c\x0d\x20" BLANK = "\x09\x20" DIGIT = "\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39" ALPHA = "\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a" \ "\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54" \ "\x55\x56\x57\x58\x59\x5a\x61\x62\x63\x64" \ "\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e" \ "\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78" \ "\x79\x7a" ALNUM = "\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39" \ "\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a" \ "\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54" \ "\x55\x56\x57\x58\x59\x5a\x61\x62\x63\x64" \ "\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e" \ "\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78" \ "\x79\x7a" PUNCT = "\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a" \ "\x2b\x2c\x2d\x2e\x2f\x3a\x3b\x3c\x3d\x3e" \ "\x3f\x40\x5b\x5c\x5d\x5e\x5f\x60\x7b\x7c" \ "\x7d\x7e" LOWER = "\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a" \ "\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74" \ "\x75\x76\x77\x78\x79\x7a" UPPER = "\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a" \ "\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54" \ "\x55\x56\x57\x58\x59\x5a" PRINT = "\x20\x21\x22\x23\x24\x25\x26\x27\x28\x29" \ "\x2a\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33" \ "\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d" \ "\x3e\x3f\x40\x41\x42\x43\x44\x45\x46\x47" \ "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51" \ "\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x5b" \ "\x5c\x5d\x5e\x5f\x60\x61\x62\x63\x64\x65" \ "\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" \ "\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79" \ "\x7a\x7b\x7c\x7d\x7e" GRAPH = "\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a" \ "\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33\x34" \ "\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e" \ "\x3f\x40\x41\x42\x43\x44\x45\x46\x47\x48" \ "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52" \ "\x53\x54\x55\x56\x57\x58\x59\x5a\x5b\x5c" \ "\x5d\x5e\x5f\x60\x61\x62\x63\x64\x65\x66" \ "\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" \ "\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a" \ "\x7b\x7c\x7d\x7e" XDIGIT = "\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39" \ "\x41\x42\x43\x44\x45\x46\x61\x62\x63\x64" \ "\x65\x66" JA_SPACE = "\xa1\xa1" JA_BLANK = "\xa1\xa1" JA_ALNUM = "\xa3\xb0\xa3\xb1\xa3\xb2\xa3\xb3\xa3\xb4" \ "\xa3\xb5\xa3\xb6\xa3\xb7\xa3\xb8\xa3\xb9" \ "\xa3\xc1\xa3\xc2\xa3\xc3\xa3\xc4\xa3\xc5" \ "\xa3\xc6\xa3\xc7\xa3\xc8\xa3\xc9\xa3\xca" \ "\xa3\xcb\xa3\xcc\xa3\xcd\xa3\xce\xa3\xcf" \ "\xa3\xd0\xa3\xd1\xa3\xd2\xa3\xd3\xa3\xd4" \ "\xa3\xd5\xa3\xd6\xa3\xd7\xa3\xd8\xa3\xd9" \ "\xa3\xda\xa3\xe1\xa3\xe2\xa3\xe3\xa3\xe4" \ "\xa3\xe5\xa3\xe6\xa3\xe7\xa3\xe8\xa3\xe9" \ "\xa3\xea\xa3\xeb\xa3\xec\xa3\xed\xa3\xee" \ "\xa3\xef\xa3\xf0\xa3\xf1\xa3\xf2\xa3\xf3" \ "\xa3\xf4\xa3\xf5\xa3\xf6\xa3\xf7\xa3\xf8" \ "\xa3\xf9\xa3\xfa" JA_PUNCT = "\xa1\xa2\xa1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"\xdf\xa1-\xdf\xfe" \ "\xe0\xa1-\xe0\xfe" \ "\xe1\xa1-\xe1\xfe" \ "\xe2\xa1-\xe2\xfe" \ "\xe3\xa1-\xe3\xfe" \ "\xe4\xa1-\xe4\xfe" \ "\xe5\xa1-\xe5\xfe" \ "\xe6\xa1-\xe6\xfe" \ "\xe7\xa1-\xe7\xfe" \ "\xe8\xa1-\xe8\xfe" \ "\xe9\xa1-\xe9\xfe" \ "\xea\xa1-\xea\xfe" \ "\xeb\xa1-\xeb\xfe" \ "\xec\xa1-\xec\xfe" \ "\xed\xa1-\xed\xfe" \ "\xee\xa1-\xee\xfe" \ "\xef\xa1-\xef\xfe" \ "\xf0\xa1-\xf0\xfe" \ "\xf1\xa1-\xf1\xfe" \ "\xf2\xa1-\xf2\xfe" \ "\xf3\xa1-\xf3\xfe" \ "\xf4\xa1-\xf4\xa6" KANJI_EX = KANJI + "\xa1\xb9" # + noma JA_GRAPH = JA_ALNUM + JA_PUNCT + HIRA + KATA + KANJI JA_PRINT = JA_GRAPH + JA_BLANK PUNCT.replace(Regexp.quote(PUNCT)) # kludge to avoid warning "character class has `[' without escape" PRINT.replace(Regexp.quote(PRINT)) # kludge to avoid warning "character class has `[' without escape" GRAPH.replace(Regexp.quote(GRAPH)) # kludge to avoid warning "character class has `[' without escape" WORD_REGEXP_SRC = ["(?:[#{GRAPH}]+[#{BLANK}]?)", "|(?:[#{SPACE}]+)", "|(?:[#{KANJI_EX}]+[#{HIRA}]+)", "|(?:[#{KATA_EX}]+[#{HIRA}]+)", "|(?:[#{KANJI_EX}]+)", "|(?:[#{KATA_EX}]+)", "|(?:[#{HIRA_EX}]+)", "|(?:.+?)"].join CharString.register_encoding(self) end # module EUCJP end # module CharString end # class DocDiff docdiff-0.5.0+git20160313/lib/docdiff/encoding/ja_sjis.rb000066400000000000000000000321501263141227400224150ustar00rootroot00000000000000# Japanese Shift_JIS encoding module for CharString # 2003- Hisashi MORITA class DocDiff module CharString module Shift_JIS Encoding = "Shift_JIS" # character table based on: # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/JIS0208.TXT CNTRL = "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09" \ "\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13" \ "\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d" \ "\x1e\x1f\x7f" SPACE = "\x09\x0a\x0b\x0c\x0d\x20" BLANK = "\x09\x20" DIGIT = "\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39" ALPHA = "\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a" \ "\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54" \ "\x55\x56\x57\x58\x59\x5a\x61\x62\x63\x64" \ "\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e" \ "\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78" \ "\x79\x7a" ALNUM = "\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39" \ "\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a" \ "\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54" \ "\x55\x56\x57\x58\x59\x5a\x61\x62\x63\x64" \ "\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e" \ "\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78" \ "\x79\x7a" PUNCT = "\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a" \ "\x2b\x2c\x2d\x2e\x2f\x3a\x3b\x3c\x3d\x3e" \ "\x3f\x40\x5b\x5c\x5d\x5e\x5f\x60\x7b\x7c" \ "\x7d\x7e" LOWER = "\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a" \ "\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74" \ "\x75\x76\x77\x78\x79\x7a" UPPER = "\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a" \ "\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54" \ "\x55\x56\x57\x58\x59\x5a" PRINT = "\x20\x21\x22\x23\x24\x25\x26\x27\x28\x29" \ "\x2a\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33" \ "\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d" \ "\x3e\x3f\x40\x41\x42\x43\x44\x45\x46\x47" \ "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51" \ "\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x5b" \ "\x5c\x5d\x5e\x5f\x60\x61\x62\x63\x64\x65" \ "\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" \ "\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79" \ "\x7a\x7b\x7c\x7d\x7e" GRAPH = "\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a" \ "\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33\x34" \ "\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e" \ "\x3f\x40\x41\x42\x43\x44\x45\x46\x47\x48" \ "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52" \ "\x53\x54\x55\x56\x57\x58\x59\x5a\x5b\x5c" \ "\x5d\x5e\x5f\x60\x61\x62\x63\x64\x65\x66" \ "\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" \ "\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a" \ "\x7b\x7c\x7d\x7e" XDIGIT = "\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39" \ "\x41\x42\x43\x44\x45\x46\x61\x62\x63\x64" \ "\x65\x66" JA_SPACE = "\x81\x40" JA_BLANK = "\x81\x40" JA_ALNUM = "\x82\x4f\x82\x50\x82\x51\x82\x52\x82\x53" \ "\x82\x54\x82\x55\x82\x56\x82\x57\x82\x58" \ "\x82\x60\x82\x61\x82\x62\x82\x63\x82\x64" \ "\x82\x65\x82\x66\x82\x67\x82\x68\x82\x69" \ "\x82\x6a\x82\x6b\x82\x6c\x82\x6d\x82\x6e" \ "\x82\x6f\x82\x70\x82\x71\x82\x72\x82\x73" \ "\x82\x74\x82\x75\x82\x76\x82\x77\x82\x78" \ "\x82\x79\x82\x81\x82\x82\x82\x83\x82\x84" \ "\x82\x85\x82\x86\x82\x87\x82\x88\x82\x89" \ "\x82\x8a\x82\x8b\x82\x8c\x82\x8d\x82\x8e" \ "\x82\x8f\x82\x90\x82\x91\x82\x92\x82\x93" \ "\x82\x94\x82\x95\x82\x96\x82\x97\x82\x98" \ "\x82\x99\x82\x9a" JA_PUNCT = "\x81\x41\x81\x42\x81\x43\x81\x44\x81\x45\x81\x46" \ "\x81\x47\x81\x48\x81\x49\x81\x4a\x81\x4b\x81\x4c" \ "\x81\x4d\x81\x4e\x81\x4f\x81\x50\x81\x51\x81\x52" \ "\x81\x53\x81\x54\x81\x55\x81\x56\x81\x57\x81\x58" \ "\x81\x59\x81\x5a\x81\x5b\x81\x5c\x81\x5d\x81\x5e" \ "\x81\x5f\x81\x60\x81\x61\x81\x62\x81\x63\x81\x64" \ "\x81\x65\x81\x66\x81\x67\x81\x68\x81\x69\x81\x6a" \ "\x81\x6b\x81\x6c\x81\x6d\x81\x6e\x81\x6f\x81\x70" \ "\x81\x71\x81\x72\x81\x73\x81\x74\x81\x75\x81\x76" \ "\x81\x77\x81\x78\x81\x79\x81\x7a\x81\x7b\x81\x7c" \ "\x81\x7d\x81\x7e\x81\x80\x81\x81\x81\x82\x81\x83" \ "\x81\x84\x81\x85\x81\x86\x81\x87\x81\x88\x81\x89" \ "\x81\x8a\x81\x8b\x81\x8c\x81\x8d\x81\x8e\x81\x8f" \ "\x81\x90\x81\x91\x81\x92\x81\x93\x81\x94\x81\x95" \ "\x81\x96\x81\x97\x81\x98\x81\x99\x81\x9a\x81\x9b" \ "\x81\x9c\x81\x9d\x81\x9e\x81\x9f\x81\xa0\x81\xa1" \ "\x81\xa2\x81\xa3\x81\xa4\x81\xa5\x81\xa6\x81\xa7" \ "\x81\xa8\x81\xa9\x81\xaa\x81\xab\x81\xac\x81\xb8" \ "\x81\xb9\x81\xba\x81\xbb\x81\xbc\x81\xbd\x81\xbe" \ "\x81\xbf\x81\xc8\x81\xc9\x81\xca\x81\xcb\x81\xcc" \ "\x81\xcd\x81\xce\x81\xda\x81\xdb\x81\xdc\x81\xdd" \ "\x81\xde\x81\xdf\x81\xe0\x81\xe1\x81\xe2\x81\xe3" \ "\x81\xe4\x81\xe5\x81\xe6\x81\xe7\x81\xe8\x81\xf0" \ "\x81\xf1\x81\xf2\x81\xf3\x81\xf4\x81\xf5\x81\xf6" \ "\x81\xf7\x81\xfc\x83\x9f\x83\xa0\x83\xa1\x83\xa2" \ "\x83\xa3\x83\xa4\x83\xa5\x83\xa6\x83\xa7\x83\xa8" \ "\x83\xa9\x83\xaa\x83\xab\x83\xac\x83\xad\x83\xae" \ "\x83\xaf\x83\xb0\x83\xb1\x83\xb2\x83\xb3\x83\xb4" \ "\x83\xb5\x83\xb6\x83\xbf\x83\xc0\x83\xc1\x83\xc2" \ "\x83\xc3\x83\xc4\x83\xc5\x83\xc6\x83\xc7\x83\xc8" \ "\x83\xc9\x83\xca\x83\xcb\x83\xcc\x83\xcd\x83\xce" \ "\x83\xcf\x83\xd0\x83\xd1\x83\xd2\x83\xd3\x83\xd4" \ "\x83\xd5\x83\xd6\x84\x40\x84\x41\x84\x42\x84\x43" \ "\x84\x44\x84\x45\x84\x46\x84\x47\x84\x48\x84\x49" \ "\x84\x4a\x84\x4b\x84\x4c\x84\x4d\x84\x4e\x84\x4f" \ "\x84\x50\x84\x51\x84\x52\x84\x53\x84\x54\x84\x55" \ "\x84\x56\x84\x57\x84\x58\x84\x59\x84\x5a\x84\x5b" \ "\x84\x5c\x84\x5d\x84\x5e\x84\x5f\x84\x60\x84\x70" \ "\x84\x71\x84\x72\x84\x73\x84\x74\x84\x75\x84\x76" \ "\x84\x77\x84\x78\x84\x79\x84\x7a\x84\x7b\x84\x7c" \ "\x84\x7d\x84\x7e\x84\x80\x84\x81\x84\x82\x84\x83" \ "\x84\x84\x84\x85\x84\x86\x84\x87\x84\x88\x84\x89" \ "\x84\x8a\x84\x8b\x84\x8c\x84\x8d\x84\x8e\x84\x8f" \ "\x84\x90\x84\x91\x84\x9f\x84\xa0\x84\xa1\x84\xa2" \ "\x84\xa3\x84\xa4\x84\xa5\x84\xa6\x84\xa7\x84\xa8" \ "\x84\xa9\x84\xaa\x84\xab\x84\xac\x84\xad\x84\xae" \ "\x84\xaf\x84\xb0\x84\xb1\x84\xb2\x84\xb3\x84\xb4" \ "\x84\xb5\x84\xb6\x84\xb7\x84\xb8\x84\xb9\x84\xba" \ "\x84\xbb\x84\xbc\x84\xbd\x84\xbe" HIRA = "\x82\x9f\x82\xa0\x82\xa1\x82\xa2\x82\xa3" \ "\x82\xa4\x82\xa5\x82\xa6\x82\xa7\x82\xa8" \ "\x82\xa9\x82\xaa\x82\xab\x82\xac\x82\xad" \ "\x82\xae\x82\xaf\x82\xb0\x82\xb1\x82\xb2" \ "\x82\xb3\x82\xb4\x82\xb5\x82\xb6\x82\xb7" \ "\x82\xb8\x82\xb9\x82\xba\x82\xbb\x82\xbc" \ "\x82\xbd\x82\xbe\x82\xbf\x82\xc0\x82\xc1" \ "\x82\xc2\x82\xc3\x82\xc4\x82\xc5\x82\xc6" \ "\x82\xc7\x82\xc8\x82\xc9\x82\xca\x82\xcb" \ "\x82\xcc\x82\xcd\x82\xce\x82\xcf\x82\xd0" \ "\x82\xd1\x82\xd2\x82\xd3\x82\xd4\x82\xd5" \ "\x82\xd6\x82\xd7\x82\xd8\x82\xd9\x82\xda" \ "\x82\xdb\x82\xdc\x82\xdd\x82\xde\x82\xdf" \ "\x82\xe0\x82\xe1\x82\xe2\x82\xe3\x82\xe4" \ "\x82\xe5\x82\xe6\x82\xe7\x82\xe8\x82\xe9" \ "\x82\xea\x82\xeb\x82\xec\x82\xed\x82\xee" \ "\x82\xef\x82\xf0\x82\xf1" # [\x82\xf1-\x82\xf1] HIRA_EX = HIRA + "\x81\x5b" + "\x81\x52\x81\x53" # add onbiki and kanagaeshi(hira) KATA = "\x83\x40\x83\x41\x83\x42\x83\x43\x83\x44" \ "\x83\x45\x83\x46\x83\x47\x83\x48\x83\x49" \ "\x83\x4a\x83\x4b\x83\x4c\x83\x4d\x83\x4e" \ "\x83\x4f\x83\x50\x83\x51\x83\x52\x83\x53" \ "\x83\x54\x83\x55\x83\x56\x83\x57\x83\x58" \ "\x83\x59\x83\x5a\x83\x5b\x83\x5c\x83\x5d" \ "\x83\x5e\x83\x5f\x83\x60\x83\x61\x83\x62" \ "\x83\x63\x83\x64\x83\x65\x83\x66\x83\x67" \ "\x83\x68\x83\x69\x83\x6a\x83\x6b\x83\x6c" \ "\x83\x6d\x83\x6e\x83\x6f\x83\x70\x83\x71" \ "\x83\x72\x83\x73\x83\x74\x83\x75\x83\x76" \ "\x83\x77\x83\x78\x83\x79\x83\x7a\x83\x7b" \ "\x83\x7c\x83\x7d\x83\x7e\x83\x80\x83\x81" \ "\x83\x82\x83\x83\x83\x84\x83\x85\x83\x86" \ "\x83\x87\x83\x88\x83\x89\x83\x8a\x83\x8b" \ "\x83\x8c\x83\x8d\x83\x8e\x83\x8f\x83\x90" \ "\x83\x91\x83\x92\x83\x93\x83\x94\x83\x95" \ "\x83\x96" # [\x83\x40-\x83\x7e\x83\x80-\x83\x96] # Note that \x83\x7f is excluded. KATA_EX = KATA + "\x81\x5b" + "\x81\x54\x81\x55" # add onbiki and kanagaeshi(kata) KANJI = "\x88\x9f-\x88\xfc" \ "\x89\x40-\x89\x9e" \ "\x89\x9f-\x89\xfc" \ "\x8a\x40-\x8a\x9e" \ "\x8a\x9f-\x8a\xfc" \ "\x8b\x40-\x8b\x9e" \ "\x8b\x9f-\x8b\xfc" \ "\x8c\x40-\x8c\x9e" \ "\x8c\x9f-\x8c\xfc" \ "\x8d\x40-\x8d\x9e" \ "\x8d\x9f-\x8d\xfc" \ "\x8e\x40-\x8e\x9e" \ "\x8e\x9f-\x8e\xfc" \ "\x8f\x40-\x8f\x9e" \ "\x8f\x9f-\x8f\xfc" \ "\x90\x40-\x90\x9e" \ "\x90\x9f-\x90\xfc" \ "\x91\x40-\x91\x9e" \ "\x91\x9f-\x91\xfc" \ "\x92\x40-\x92\x9e" \ "\x92\x9f-\x92\xfc" \ "\x93\x40-\x93\x9e" \ "\x93\x9f-\x93\xfc" \ "\x94\x40-\x94\x9e" \ "\x94\x9f-\x94\xfc" \ "\x95\x40-\x95\x9e" \ "\x95\x9f-\x95\xfc" \ "\x96\x40-\x96\x9e" \ "\x96\x9f-\x96\xfc" \ "\x97\x40-\x97\x9e" \ "\x97\x9f-\x97\xfc" \ "\x98\x40-\x98\x72" \ "\x98\x9f-\x98\xfc" \ "\x99\x40-\x99\x9e" \ "\x99\x9f-\x99\xfc" \ "\x9a\x40-\x9a\x9e" \ "\x9a\x9f-\x9a\xfc" \ "\x9b\x40-\x9b\x9e" \ "\x9b\x9f-\x9b\xfc" \ "\x9c\x40-\x9c\x9e" \ "\x9c\x9f-\x9c\xfc" \ "\x9d\x40-\x9d\x9e" \ "\x9d\x9f-\x9d\xfc" \ "\x9e\x40-\x9e\x9e" \ "\x9e\x9f-\x9e\xfc" \ "\x9f\x40-\x9f\x9e" \ "\x9f\x9f-\x9f\xfc" \ "\xe0\x40-\xe0\x9e" \ "\xe0\x9f-\xe0\xfc" \ "\xe1\x40-\xe1\x9e" \ "\xe1\x9f-\xe1\xfc" \ "\xe2\x40-\xe2\x9e" \ "\xe2\x9f-\xe2\xfc" \ "\xe3\x40-\xe3\x9e" \ "\xe3\x9f-\xe3\xfc" \ "\xe4\x40-\xe4\x9e" \ "\xe4\x9f-\xe4\xfc" \ "\xe5\x40-\xe5\x9e" \ "\xe5\x9f-\xe5\xfc" \ "\xe6\x40-\xe6\x9e" \ "\xe6\x9f-\xe6\xfc" \ "\xe7\x40-\xe7\x9e" \ "\xe7\x9f-\xe7\xfc" \ "\xe8\x40-\xe8\x9e" \ "\xe8\x9f-\xe8\xfc" \ "\xe9\x40-\xe9\x9e" \ "\xe9\x9f-\xe9\xfc" \ "\xea\x40-\xea\x9e" \ "\xea\x9f-\xea\xa4" KANJI_EX = KANJI + "\x81\x58" # + noma JA_GRAPH = JA_ALNUM + JA_PUNCT + HIRA + KATA + KANJI JA_PRINT = JA_GRAPH + JA_BLANK PUNCT.replace(Regexp.quote(PUNCT)) # kludge to avoid warning "character class has `[' without escape" PRINT.replace(Regexp.quote(PRINT)) # kludge to avoid warning "character class has `[' without escape" GRAPH.replace(Regexp.quote(GRAPH)) # kludge to avoid warning "character class has `[' without escape" WORD_REGEXP_SRC = ["(?:[#{GRAPH}]+[#{BLANK}]?)", "|(?:[#{SPACE}]+)", "|(?:[#{KANJI_EX}]+[#{HIRA}]+)", "|(?:[#{KATA_EX}]+[#{HIRA}]+)", "|(?:[#{KANJI_EX}]+)", "|(?:[#{KATA_EX}]+)", "|(?:[#{HIRA_EX}]+)", "|(?:.+?)"].join CharString.register_encoding(self) end # module SJIS end # module CharString end # class DocDiff docdiff-0.5.0+git20160313/lib/docdiff/encoding/ja_utf8.rb000066400000000000000000007044061263141227400223450ustar00rootroot00000000000000# -*- coding: utf-8; -*- # Japanese UTF-8 encoding module for CharString # 2003- Hisashi MORITA class DocDiff module CharString module UTF8 Encoding = "UTF-8" # character table based on: # ftp://ftp.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/JIS/JIS0208.TXT CNTRL = "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09" \ "\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13" \ "\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d" \ "\x1e\x1f\x7f" SPACE = "\x09\x0a\x0b\x0c\x0d\x20" BLANK = "\x09\x20" DIGIT = "\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39" ALPHA = "\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a" \ "\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54" \ "\x55\x56\x57\x58\x59\x5a\x61\x62\x63\x64" \ "\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e" \ "\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78" \ "\x79\x7a" ALNUM = "\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39" \ "\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a" \ "\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54" \ "\x55\x56\x57\x58\x59\x5a\x61\x62\x63\x64" \ "\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e" \ "\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78" \ "\x79\x7a" PUNCT = "\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a" \ "\x2b\x2c\x2d\x2e\x2f\x3a\x3b\x3c\x3d\x3e" \ "\x3f\x40\x5b\x5c\x5d\x5e\x5f\x60\x7b\x7c" \ "\x7d\x7e" LOWER = "\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a" \ "\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74" \ "\x75\x76\x77\x78\x79\x7a" UPPER = "\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a" \ "\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54" \ "\x55\x56\x57\x58\x59\x5a" PRINT = "\x20\x21\x22\x23\x24\x25\x26\x27\x28\x29" \ "\x2a\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33" \ "\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d" \ "\x3e\x3f\x40\x41\x42\x43\x44\x45\x46\x47" \ "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51" \ "\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x5b" \ "\x5c\x5d\x5e\x5f\x60\x61\x62\x63\x64\x65" \ "\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" \ "\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79" \ "\x7a\x7b\x7c\x7d\x7e" GRAPH = "\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a" \ "\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33\x34" \ "\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e" \ "\x3f\x40\x41\x42\x43\x44\x45\x46\x47\x48" \ "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52" \ "\x53\x54\x55\x56\x57\x58\x59\x5a\x5b\x5c" \ "\x5d\x5e\x5f\x60\x61\x62\x63\x64\x65\x66" \ "\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" \ "\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a" \ "\x7b\x7c\x7d\x7e" XDIGIT = "\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39" \ "\x41\x42\x43\x44\x45\x46\x61\x62\x63\x64" \ "\x65\x66" JA_SPACE = "\xe3\x80\x80" JA_BLANK = "\xe3\x80\x80" JA_ALNUM = "\xef\xbc\x90" \ "\xef\xbc\x91" \ "\xef\xbc\x92" \ "\xef\xbc\x93" \ "\xef\xbc\x94" \ "\xef\xbc\x95" \ "\xef\xbc\x96" \ "\xef\xbc\x97" \ "\xef\xbc\x98" \ "\xef\xbc\x99" \ "\xef\xbc\xa1" \ "\xef\xbc\xa2" \ "\xef\xbc\xa3" \ "\xef\xbc\xa4" \ "\xef\xbc\xa5" \ "\xef\xbc\xa6" \ "\xef\xbc\xa7" \ "\xef\xbc\xa8" \ "\xef\xbc\xa9" \ "\xef\xbc\xaa" \ "\xef\xbc\xab" \ "\xef\xbc\xac" \ "\xef\xbc\xad" \ "\xef\xbc\xae" \ "\xef\xbc\xaf" \ "\xef\xbc\xb0" \ "\xef\xbc\xb1" \ "\xef\xbc\xb2" \ "\xef\xbc\xb3" \ "\xef\xbc\xb4" \ "\xef\xbc\xb5" \ "\xef\xbc\xb6" \ "\xef\xbc\xb7" \ "\xef\xbc\xb8" \ "\xef\xbc\xb9" \ "\xef\xbc\xba" \ "\xef\xbd\x81" \ "\xef\xbd\x82" \ "\xef\xbd\x83" \ "\xef\xbd\x84" \ "\xef\xbd\x85" \ "\xef\xbd\x86" \ "\xef\xbd\x87" \ "\xef\xbd\x88" \ "\xef\xbd\x89" \ "\xef\xbd\x8a" \ "\xef\xbd\x8b" \ "\xef\xbd\x8c" \ "\xef\xbd\x8d" \ "\xef\xbd\x8e" \ "\xef\xbd\x8f" \ "\xef\xbd\x90" \ "\xef\xbd\x91" \ "\xef\xbd\x92" \ "\xef\xbd\x93" \ "\xef\xbd\x94" \ "\xef\xbd\x95" \ "\xef\xbd\x96" \ "\xef\xbd\x97" \ "\xef\xbd\x98" \ "\xef\xbd\x99" \ "\xef\xbd\x9a" JA_PUNCT = "\xe3\x80\x81" \ "\xe3\x80\x82" \ "\xef\xbc\x8c" \ "\xef\xbc\x8e" \ "\xe3\x83\xbb" \ "\xef\xbc\x9a" \ "\xef\xbc\x9b" \ "\xef\xbc\x9f" \ "\xef\xbc\x81" \ "\xe3\x82\x9b" \ "\xe3\x82\x9c" \ "\xc2\xb4" \ "\xef\xbd\x80" \ "\xc2\xa8" \ "\xef\xbc\xbe" \ "\xef\xbf\xa3" \ "\xef\xbc\xbf" \ "\xe3\x83\xbd" \ "\xe3\x83\xbe" \ "\xe3\x82\x9d" \ "\xe3\x82\x9e" \ "\xe3\x80\x83" \ "\xe4\xbb\x9d" \ "\xe3\x80\x85" \ "\xe3\x80\x86" \ "\xe3\x80\x87" \ "\xe3\x83\xbc" \ "\xe2\x80\x95" \ "\xe2\x80\x90" \ "\xef\xbc\x8f" \ "\x5c" \ "\xe3\x80\x9c" \ "\xe2\x80\x96" \ "\xef\xbd\x9c" \ "\xe2\x80\xa6" \ "\xe2\x80\xa5" \ "\xe2\x80\x98" \ "\xe2\x80\x99" \ "\xe2\x80\x9c" \ "\xe2\x80\x9d" \ "\xef\xbc\x88" \ "\xef\xbc\x89" \ "\xe3\x80\x94" \ "\xe3\x80\x95" \ "\xef\xbc\xbb" \ "\xef\xbc\xbd" \ "\xef\xbd\x9b" \ "\xef\xbd\x9d" \ "\xe3\x80\x88" \ "\xe3\x80\x89" \ "\xe3\x80\x8a" \ "\xe3\x80\x8b" \ "\xe3\x80\x8c" \ "\xe3\x80\x8d" \ "\xe3\x80\x8e" \ "\xe3\x80\x8f" \ "\xe3\x80\x90" \ "\xe3\x80\x91" \ "\xef\xbc\x8b" \ "\xe2\x88\x92" \ "\xc2\xb1" \ "\xc3\x97" \ "\xc3\xb7" \ "\xef\xbc\x9d" \ "\xe2\x89\xa0" \ "\xef\xbc\x9c" \ "\xef\xbc\x9e" \ "\xe2\x89\xa6" \ "\xe2\x89\xa7" \ "\xe2\x88\x9e" \ "\xe2\x88\xb4" \ "\xe2\x99\x82" \ "\xe2\x99\x80" \ "\xc2\xb0" \ "\xe2\x80\xb2" \ "\xe2\x80\xb3" \ "\xe2\x84\x83" \ "\xef\xbf\xa5" \ "\xef\xbc\x84" \ "\xc2\xa2" \ "\xc2\xa3" \ "\xef\xbc\x85" \ "\xef\xbc\x83" \ "\xef\xbc\x86" \ "\xef\xbc\x8a" \ "\xef\xbc\xa0" \ "\xc2\xa7" \ "\xe2\x98\x86" \ "\xe2\x98\x85" \ "\xe2\x97\x8b" \ "\xe2\x97\x8f" \ "\xe2\x97\x8e" \ "\xe2\x97\x87" \ "\xe2\x97\x86" \ "\xe2\x96\xa1" \ "\xe2\x96\xa0" \ "\xe2\x96\xb3" \ "\xe2\x96\xb2" \ "\xe2\x96\xbd" \ "\xe2\x96\xbc" \ "\xe2\x80\xbb" \ "\xe3\x80\x92" \ "\xe2\x86\x92" \ "\xe2\x86\x90" \ "\xe2\x86\x91" \ "\xe2\x86\x93" \ "\xe3\x80\x93" \ "\xe2\x88\x88" \ "\xe2\x88\x8b" \ "\xe2\x8a\x86" \ "\xe2\x8a\x87" \ "\xe2\x8a\x82" \ "\xe2\x8a\x83" \ "\xe2\x88\xaa" \ "\xe2\x88\xa9" \ "\xe2\x88\xa7" \ "\xe2\x88\xa8" \ "\xc2\xac" \ "\xe2\x87\x92" \ "\xe2\x87\x94" \ "\xe2\x88\x80" \ "\xe2\x88\x83" \ "\xe2\x88\xa0" \ "\xe2\x8a\xa5" \ "\xe2\x8c\x92" \ "\xe2\x88\x82" \ "\xe2\x88\x87" \ "\xe2\x89\xa1" \ "\xe2\x89\x92" \ "\xe2\x89\xaa" \ "\xe2\x89\xab" \ "\xe2\x88\x9a" \ "\xe2\x88\xbd" \ "\xe2\x88\x9d" \ "\xe2\x88\xb5" \ "\xe2\x88\xab" \ "\xe2\x88\xac" \ "\xe2\x84\xab" \ "\xe2\x80\xb0" \ "\xe2\x99\xaf" \ "\xe2\x99\xad" \ "\xe2\x99\xaa" \ "\xe2\x80\xa0" \ "\xe2\x80\xa1" \ "\xc2\xb6" \ "\xe2\x97\xaf" \ "\xce\x91" \ "\xce\x92" \ "\xce\x93" \ "\xce\x94" \ "\xce\x95" \ "\xce\x96" \ "\xce\x97" \ "\xce\x98" \ "\xce\x99" \ "\xce\x9a" \ "\xce\x9b" \ "\xce\x9c" \ "\xce\x9d" \ "\xce\x9e" \ "\xce\x9f" \ "\xce\xa0" \ "\xce\xa1" \ "\xce\xa3" \ "\xce\xa4" \ "\xce\xa5" \ "\xce\xa6" \ "\xce\xa7" \ "\xce\xa8" \ "\xce\xa9" \ "\xce\xb1" \ "\xce\xb2" \ "\xce\xb3" \ "\xce\xb4" \ "\xce\xb5" \ "\xce\xb6" \ "\xce\xb7" \ "\xce\xb8" \ "\xce\xb9" \ "\xce\xba" \ "\xce\xbb" \ "\xce\xbc" \ "\xce\xbd" \ "\xce\xbe" \ "\xce\xbf" \ "\xcf\x80" \ "\xcf\x81" \ "\xcf\x83" \ "\xcf\x84" \ "\xcf\x85" \ "\xcf\x86" \ "\xcf\x87" \ "\xcf\x88" \ "\xcf\x89" \ "\xd0\x90" \ "\xd0\x91" \ "\xd0\x92" \ "\xd0\x93" \ "\xd0\x94" \ "\xd0\x95" \ "\xd0\x81" \ "\xd0\x96" \ "\xd0\x97" \ "\xd0\x98" \ "\xd0\x99" \ "\xd0\x9a" \ "\xd0\x9b" \ "\xd0\x9c" \ "\xd0\x9d" \ "\xd0\x9e" \ "\xd0\x9f" \ "\xd0\xa0" \ "\xd0\xa1" \ "\xd0\xa2" \ "\xd0\xa3" \ "\xd0\xa4" \ "\xd0\xa5" \ "\xd0\xa6" \ "\xd0\xa7" \ "\xd0\xa8" \ "\xd0\xa9" \ "\xd0\xaa" \ "\xd0\xab" \ "\xd0\xac" \ "\xd0\xad" \ "\xd0\xae" \ "\xd0\xaf" \ "\xd0\xb0" \ "\xd0\xb1" \ "\xd0\xb2" \ "\xd0\xb3" \ "\xd0\xb4" \ "\xd0\xb5" \ "\xd1\x91" \ "\xd0\xb6" \ "\xd0\xb7" \ "\xd0\xb8" \ "\xd0\xb9" \ "\xd0\xba" \ "\xd0\xbb" \ "\xd0\xbc" \ "\xd0\xbd" \ "\xd0\xbe" \ "\xd0\xbf" \ "\xd1\x80" \ "\xd1\x81" \ "\xd1\x82" \ "\xd1\x83" \ "\xd1\x84" \ "\xd1\x85" \ "\xd1\x86" \ "\xd1\x87" \ "\xd1\x88" \ "\xd1\x89" \ "\xd1\x8a" \ "\xd1\x8b" \ "\xd1\x8c" \ "\xd1\x8d" \ "\xd1\x8e" \ "\xd1\x8f" \ "\xe2\x94\x80" \ "\xe2\x94\x82" \ "\xe2\x94\x8c" \ "\xe2\x94\x90" \ "\xe2\x94\x98" \ "\xe2\x94\x94" \ "\xe2\x94\x9c" \ "\xe2\x94\xac" \ "\xe2\x94\xa4" \ "\xe2\x94\xb4" \ "\xe2\x94\xbc" \ "\xe2\x94\x81" \ "\xe2\x94\x83" \ "\xe2\x94\x8f" \ "\xe2\x94\x93" \ "\xe2\x94\x9b" \ "\xe2\x94\x97" \ "\xe2\x94\xa3" \ "\xe2\x94\xb3" \ "\xe2\x94\xab" \ "\xe2\x94\xbb" \ "\xe2\x95\x8b" \ "\xe2\x94\xa0" \ "\xe2\x94\xaf" \ "\xe2\x94\xa8" \ "\xe2\x94\xb7" \ "\xe2\x94\xbf" \ "\xe2\x94\x9d" \ "\xe2\x94\xb0" \ "\xe2\x94\xa5" \ "\xe2\x94\xb8" \ "\xe2\x95\x82" HIRA = "\xe3\x81\x81" \ "\xe3\x81\x82" \ "\xe3\x81\x83" \ "\xe3\x81\x84" \ "\xe3\x81\x85" \ "\xe3\x81\x86" \ "\xe3\x81\x87" \ "\xe3\x81\x88" \ "\xe3\x81\x89" \ "\xe3\x81\x8a" \ "\xe3\x81\x8b" \ "\xe3\x81\x8c" \ "\xe3\x81\x8d" \ "\xe3\x81\x8e" \ "\xe3\x81\x8f" \ "\xe3\x81\x90" \ "\xe3\x81\x91" \ "\xe3\x81\x92" \ "\xe3\x81\x93" \ "\xe3\x81\x94" \ "\xe3\x81\x95" \ "\xe3\x81\x96" \ "\xe3\x81\x97" \ "\xe3\x81\x98" \ "\xe3\x81\x99" \ "\xe3\x81\x9a" \ "\xe3\x81\x9b" \ "\xe3\x81\x9c" \ "\xe3\x81\x9d" \ "\xe3\x81\x9e" \ "\xe3\x81\x9f" \ "\xe3\x81\xa0" \ "\xe3\x81\xa1" \ "\xe3\x81\xa2" \ "\xe3\x81\xa3" \ "\xe3\x81\xa4" \ "\xe3\x81\xa5" \ "\xe3\x81\xa6" \ "\xe3\x81\xa7" \ "\xe3\x81\xa8" \ "\xe3\x81\xa9" \ "\xe3\x81\xaa" \ "\xe3\x81\xab" \ "\xe3\x81\xac" \ "\xe3\x81\xad" \ "\xe3\x81\xae" \ "\xe3\x81\xaf" \ "\xe3\x81\xb0" \ "\xe3\x81\xb1" \ "\xe3\x81\xb2" \ "\xe3\x81\xb3" \ "\xe3\x81\xb4" \ "\xe3\x81\xb5" \ "\xe3\x81\xb6" \ "\xe3\x81\xb7" \ "\xe3\x81\xb8" \ "\xe3\x81\xb9" \ "\xe3\x81\xba" \ "\xe3\x81\xbb" \ "\xe3\x81\xbc" \ "\xe3\x81\xbd" \ "\xe3\x81\xbe" \ "\xe3\x81\xbf" \ "\xe3\x82\x80" \ "\xe3\x82\x81" \ "\xe3\x82\x82" \ "\xe3\x82\x83" \ "\xe3\x82\x84" \ "\xe3\x82\x85" \ "\xe3\x82\x86" \ "\xe3\x82\x87" \ "\xe3\x82\x88" \ "\xe3\x82\x89" \ "\xe3\x82\x8a" \ "\xe3\x82\x8b" \ "\xe3\x82\x8c" \ "\xe3\x82\x8d" \ "\xe3\x82\x8e" \ "\xe3\x82\x8f" \ "\xe3\x82\x90" \ "\xe3\x82\x91" \ "\xe3\x82\x92" \ "\xe3\x82\x93" HIRA_EX = HIRA + "\xe3\x83\xbc" + "\xe3\x83\xbd\xe3\x83\xbe" # add onbiki and kanagaeshi(hira) KATA = "\xe3\x82\xa1" \ "\xe3\x82\xa2" \ "\xe3\x82\xa3" \ "\xe3\x82\xa4" \ "\xe3\x82\xa5" \ "\xe3\x82\xa6" \ "\xe3\x82\xa7" \ "\xe3\x82\xa8" \ "\xe3\x82\xa9" \ "\xe3\x82\xaa" \ "\xe3\x82\xab" \ "\xe3\x82\xac" \ "\xe3\x82\xad" \ "\xe3\x82\xae" \ "\xe3\x82\xaf" \ "\xe3\x82\xb0" \ "\xe3\x82\xb1" \ "\xe3\x82\xb2" \ "\xe3\x82\xb3" \ "\xe3\x82\xb4" \ "\xe3\x82\xb5" \ "\xe3\x82\xb6" \ "\xe3\x82\xb7" \ "\xe3\x82\xb8" \ "\xe3\x82\xb9" \ "\xe3\x82\xba" \ "\xe3\x82\xbb" \ "\xe3\x82\xbc" \ "\xe3\x82\xbd" \ "\xe3\x82\xbe" \ "\xe3\x82\xbf" \ "\xe3\x83\x80" \ "\xe3\x83\x81" \ "\xe3\x83\x82" \ "\xe3\x83\x83" \ "\xe3\x83\x84" \ "\xe3\x83\x85" \ "\xe3\x83\x86" \ "\xe3\x83\x87" \ "\xe3\x83\x88" \ "\xe3\x83\x89" \ "\xe3\x83\x8a" \ "\xe3\x83\x8b" \ "\xe3\x83\x8c" \ "\xe3\x83\x8d" \ "\xe3\x83\x8e" \ "\xe3\x83\x8f" \ "\xe3\x83\x90" \ "\xe3\x83\x91" \ "\xe3\x83\x92" \ "\xe3\x83\x93" \ "\xe3\x83\x94" \ "\xe3\x83\x95" \ "\xe3\x83\x96" \ "\xe3\x83\x97" \ "\xe3\x83\x98" \ "\xe3\x83\x99" \ "\xe3\x83\x9a" \ "\xe3\x83\x9b" \ "\xe3\x83\x9c" \ "\xe3\x83\x9d" \ "\xe3\x83\x9e" \ "\xe3\x83\x9f" \ "\xe3\x83\xa0" \ "\xe3\x83\xa1" \ "\xe3\x83\xa2" \ "\xe3\x83\xa3" \ "\xe3\x83\xa4" \ "\xe3\x83\xa5" \ "\xe3\x83\xa6" \ "\xe3\x83\xa7" \ "\xe3\x83\xa8" \ "\xe3\x83\xa9" \ "\xe3\x83\xaa" \ "\xe3\x83\xab" \ "\xe3\x83\xac" \ "\xe3\x83\xad" \ "\xe3\x83\xae" \ "\xe3\x83\xaf" \ "\xe3\x83\xb0" \ "\xe3\x83\xb1" \ "\xe3\x83\xb2" \ "\xe3\x83\xb3" \ "\xe3\x83\xb4" \ "\xe3\x83\xb5" \ "\xe3\x83\xb6" KATA_EX = KATA + "\xe3\x83\xbc" + "\xe3\x82\x9d\xe3\x82\x9e"# add onbiki and kanagaeshi(kata) KANJI = "\xe4\xba\x9c" \ "\xe5\x94\x96" \ "\xe5\xa8\x83" \ "\xe9\x98\xbf" \ "\xe5\x93\x80" \ "\xe6\x84\x9b" \ "\xe6\x8c\xa8" \ "\xe5\xa7\xb6" \ "\xe9\x80\xa2" \ "\xe8\x91\xb5" \ "\xe8\x8c\x9c" \ "\xe7\xa9\x90" \ "\xe6\x82\xaa" \ "\xe6\x8f\xa1" \ "\xe6\xb8\xa5" \ "\xe6\x97\xad" \ "\xe8\x91\xa6" \ "\xe8\x8a\xa6" \ "\xe9\xaf\xb5" \ "\xe6\xa2\x93" \ "\xe5\x9c\xa7" \ "\xe6\x96\xa1" \ "\xe6\x89\xb1" \ "\xe5\xae\x9b" \ "\xe5\xa7\x90" \ "\xe8\x99\xbb" \ "\xe9\xa3\xb4" \ "\xe7\xb5\xa2" \ "\xe7\xb6\xbe" \ "\xe9\xae\x8e" \ "\xe6\x88\x96" \ "\xe7\xb2\x9f" \ "\xe8\xa2\xb7" \ "\xe5\xae\x89" \ "\xe5\xba\xb5" \ "\xe6\x8c\x89" \ "\xe6\x9a\x97" \ "\xe6\xa1\x88" \ "\xe9\x97\x87" \ "\xe9\x9e\x8d" \ "\xe6\x9d\x8f" \ "\xe4\xbb\xa5" \ "\xe4\xbc\x8a" \ "\xe4\xbd\x8d" \ "\xe4\xbe\x9d" \ "\xe5\x81\x89" \ "\xe5\x9b\xb2" \ "\xe5\xa4\xb7" \ "\xe5\xa7\x94" \ "\xe5\xa8\x81" \ "\xe5\xb0\x89" \ "\xe6\x83\x9f" \ "\xe6\x84\x8f" \ "\xe6\x85\xb0" \ "\xe6\x98\x93" \ "\xe6\xa4\x85" \ "\xe7\x82\xba" \ "\xe7\x95\x8f" \ "\xe7\x95\xb0" \ "\xe7\xa7\xbb" \ "\xe7\xb6\xad" \ "\xe7\xb7\xaf" \ "\xe8\x83\x83" \ "\xe8\x90\x8e" \ "\xe8\xa1\xa3" \ "\xe8\xac\x82" \ "\xe9\x81\x95" \ "\xe9\x81\xba" \ "\xe5\x8c\xbb" \ "\xe4\xba\x95" \ "\xe4\xba\xa5" \ "\xe5\x9f\x9f" \ "\xe8\x82\xb2" \ "\xe9\x83\x81" \ "\xe7\xa3\xaf" \ "\xe4\xb8\x80" \ "\xe5\xa3\xb1" \ "\xe6\xba\xa2" \ "\xe9\x80\xb8" \ "\xe7\xa8\xb2" \ "\xe8\x8c\xa8" \ "\xe8\x8a\x8b" \ "\xe9\xb0\xaf" \ "\xe5\x85\x81" \ "\xe5\x8d\xb0" \ "\xe5\x92\xbd" \ "\xe5\x93\xa1" \ "\xe5\x9b\xa0" \ "\xe5\xa7\xbb" \ "\xe5\xbc\x95" \ "\xe9\xa3\xb2" \ "\xe6\xb7\xab" \ "\xe8\x83\xa4" \ "\xe8\x94\xad" \ "\xe9\x99\xa2" \ "\xe9\x99\xb0" \ "\xe9\x9a\xa0" \ "\xe9\x9f\xbb" \ "\xe5\x90\x8b" \ "\xe5\x8f\xb3" \ "\xe5\xae\x87" \ "\xe7\x83\x8f" \ "\xe7\xbe\xbd" \ "\xe8\xbf\x82" \ "\xe9\x9b\xa8" \ "\xe5\x8d\xaf" \ "\xe9\xb5\x9c" \ "\xe7\xaa\xba" \ "\xe4\xb8\x91" \ "\xe7\xa2\x93" \ "\xe8\x87\xbc" \ "\xe6\xb8\xa6" \ "\xe5\x98\x98" \ "\xe5\x94\x84" \ "\xe6\xac\x9d" \ "\xe8\x94\x9a" \ "\xe9\xb0\xbb" \ "\xe5\xa7\xa5" \ "\xe5\x8e\xa9" \ "\xe6\xb5\xa6" \ "\xe7\x93\x9c" \ "\xe9\x96\x8f" \ "\xe5\x99\x82" \ "\xe4\xba\x91" \ "\xe9\x81\x8b" \ "\xe9\x9b\xb2" \ "\xe8\x8d\x8f" \ "\xe9\xa4\x8c" \ "\xe5\x8f\xa1" \ "\xe5\x96\xb6" \ "\xe5\xac\xb0" \ "\xe5\xbd\xb1" \ "\xe6\x98\xa0" \ "\xe6\x9b\xb3" \ "\xe6\xa0\x84" \ "\xe6\xb0\xb8" \ "\xe6\xb3\xb3" \ "\xe6\xb4\xa9" \ "\xe7\x91\x9b" \ "\xe7\x9b\x88" \ "\xe7\xa9\x8e" \ "\xe9\xa0\xb4" \ "\xe8\x8b\xb1" \ "\xe8\xa1\x9b" \ "\xe8\xa9\xa0" \ "\xe9\x8b\xad" \ "\xe6\xb6\xb2" \ "\xe7\x96\xab" \ "\xe7\x9b\x8a" \ "\xe9\xa7\x85" \ "\xe6\x82\xa6" \ "\xe8\xac\x81" \ "\xe8\xb6\x8a" \ "\xe9\x96\xb2" \ "\xe6\xa6\x8e" \ "\xe5\x8e\xad" \ "\xe5\x86\x86" \ "\xe5\x9c\x92" \ "\xe5\xa0\xb0" \ "\xe5\xa5\x84" \ "\xe5\xae\xb4" \ "\xe5\xbb\xb6" \ "\xe6\x80\xa8" \ "\xe6\x8e\xa9" \ "\xe6\x8f\xb4" \ "\xe6\xb2\xbf" \ "\xe6\xbc\x94" \ "\xe7\x82\x8e" \ "\xe7\x84\x94" \ "\xe7\x85\x99" \ "\xe7\x87\x95" \ "\xe7\x8c\xbf" \ "\xe7\xb8\x81" \ "\xe8\x89\xb6" \ "\xe8\x8b\x91" \ "\xe8\x96\x97" \ "\xe9\x81\xa0" \ "\xe9\x89\x9b" \ "\xe9\xb4\x9b" \ "\xe5\xa1\xa9" \ "\xe6\x96\xbc" \ "\xe6\xb1\x9a" \ "\xe7\x94\xa5" \ "\xe5\x87\xb9" \ "\xe5\xa4\xae" \ "\xe5\xa5\xa5" \ "\xe5\xbe\x80" \ "\xe5\xbf\x9c" \ "\xe6\x8a\xbc" \ "\xe6\x97\xba" \ "\xe6\xa8\xaa" \ "\xe6\xac\xa7" \ "\xe6\xae\xb4" \ "\xe7\x8e\x8b" \ "\xe7\xbf\x81" \ "\xe8\xa5\x96" \ "\xe9\xb4\xac" \ "\xe9\xb4\x8e" \ "\xe9\xbb\x84" \ "\xe5\xb2\xa1" \ "\xe6\xb2\x96" \ "\xe8\x8d\xbb" \ "\xe5\x84\x84" \ "\xe5\xb1\x8b" \ "\xe6\x86\xb6" \ "\xe8\x87\x86" \ "\xe6\xa1\xb6" \ "\xe7\x89\xa1" \ "\xe4\xb9\x99" \ "\xe4\xbf\xba" \ "\xe5\x8d\xb8" \ "\xe6\x81\xa9" \ "\xe6\xb8\xa9" \ "\xe7\xa9\x8f" \ "\xe9\x9f\xb3" \ "\xe4\xb8\x8b" \ "\xe5\x8c\x96" \ "\xe4\xbb\xae" \ "\xe4\xbd\x95" \ "\xe4\xbc\xbd" \ "\xe4\xbe\xa1" \ "\xe4\xbd\xb3" \ "\xe5\x8a\xa0" \ "\xe5\x8f\xaf" \ "\xe5\x98\x89" \ "\xe5\xa4\x8f" \ "\xe5\xab\x81" \ "\xe5\xae\xb6" \ "\xe5\xaf\xa1" \ "\xe7\xa7\x91" \ "\xe6\x9a\x87" \ "\xe6\x9e\x9c" \ "\xe6\x9e\xb6" \ "\xe6\xad\x8c" \ "\xe6\xb2\xb3" \ "\xe7\x81\xab" \ "\xe7\x8f\x82" \ "\xe7\xa6\x8d" \ "\xe7\xa6\xbe" \ "\xe7\xa8\xbc" \ "\xe7\xae\x87" \ "\xe8\x8a\xb1" \ "\xe8\x8b\x9b" \ "\xe8\x8c\x84" \ "\xe8\x8d\xb7" \ "\xe8\x8f\xaf" \ "\xe8\x8f\x93" \ "\xe8\x9d\xa6" \ "\xe8\xaa\xb2" \ "\xe5\x98\xa9" \ "\xe8\xb2\xa8" \ "\xe8\xbf\xa6" \ "\xe9\x81\x8e" \ "\xe9\x9c\x9e" \ "\xe8\x9a\x8a" \ "\xe4\xbf\x84" \ "\xe5\xb3\xa8" \ "\xe6\x88\x91" \ "\xe7\x89\x99" \ "\xe7\x94\xbb" \ "\xe8\x87\xa5" \ "\xe8\x8a\xbd" \ "\xe8\x9b\xbe" \ "\xe8\xb3\x80" \ "\xe9\x9b\x85" \ "\xe9\xa4\x93" \ "\xe9\xa7\x95" \ "\xe4\xbb\x8b" \ "\xe4\xbc\x9a" \ "\xe8\xa7\xa3" \ "\xe5\x9b\x9e" \ "\xe5\xa1\x8a" \ "\xe5\xa3\x8a" \ "\xe5\xbb\xbb" \ "\xe5\xbf\xab" \ "\xe6\x80\xaa" \ "\xe6\x82\x94" \ "\xe6\x81\xa2" \ "\xe6\x87\x90" \ "\xe6\x88\x92" \ "\xe6\x8b\x90" \ "\xe6\x94\xb9" \ "\xe9\xad\x81" \ "\xe6\x99\xa6" \ "\xe6\xa2\xb0" \ "\xe6\xb5\xb7" \ "\xe7\x81\xb0" \ "\xe7\x95\x8c" \ "\xe7\x9a\x86" \ "\xe7\xb5\xb5" \ "\xe8\x8a\xa5" \ "\xe8\x9f\xb9" \ "\xe9\x96\x8b" \ "\xe9\x9a\x8e" \ "\xe8\xb2\x9d" \ "\xe5\x87\xb1" \ "\xe5\x8a\xbe" \ "\xe5\xa4\x96" \ "\xe5\x92\xb3" \ "\xe5\xae\xb3" \ "\xe5\xb4\x96" \ "\xe6\x85\xa8" \ "\xe6\xa6\x82" \ "\xe6\xb6\xaf" \ "\xe7\xa2\x8d" \ "\xe8\x93\x8b" \ "\xe8\xa1\x97" \ "\xe8\xa9\xb2" \ "\xe9\x8e\xa7" \ "\xe9\xaa\xb8" \ "\xe6\xb5\xac" \ "\xe9\xa6\xa8" \ "\xe8\x9b\x99" \ "\xe5\x9e\xa3" \ "\xe6\x9f\xbf" \ "\xe8\x9b\x8e" \ "\xe9\x88\x8e" \ "\xe5\x8a\x83" \ "\xe5\x9a\x87" \ "\xe5\x90\x84" \ "\xe5\xbb\x93" \ "\xe6\x8b\xa1" \ "\xe6\x92\xb9" \ "\xe6\xa0\xbc" \ "\xe6\xa0\xb8" \ "\xe6\xae\xbb" \ "\xe7\x8d\xb2" \ "\xe7\xa2\xba" \ "\xe7\xa9\xab" \ "\xe8\xa6\x9a" \ "\xe8\xa7\x92" \ "\xe8\xb5\xab" \ "\xe8\xbc\x83" \ "\xe9\x83\xad" \ "\xe9\x96\xa3" \ "\xe9\x9a\x94" \ "\xe9\x9d\xa9" \ "\xe5\xad\xa6" \ "\xe5\xb2\xb3" \ "\xe6\xa5\xbd" \ "\xe9\xa1\x8d" \ "\xe9\xa1\x8e" \ "\xe6\x8e\x9b" \ "\xe7\xac\xa0" \ "\xe6\xa8\xab" \ "\xe6\xa9\xbf" \ "\xe6\xa2\xb6" \ "\xe9\xb0\x8d" \ "\xe6\xbd\x9f" \ "\xe5\x89\xb2" \ "\xe5\x96\x9d" \ "\xe6\x81\xb0" \ "\xe6\x8b\xac" \ "\xe6\xb4\xbb" \ "\xe6\xb8\x87" \ "\xe6\xbb\x91" \ "\xe8\x91\x9b" \ "\xe8\xa4\x90" \ "\xe8\xbd\x84" \ "\xe4\xb8\x94" \ "\xe9\xb0\xb9" \ "\xe5\x8f\xb6" \ "\xe6\xa4\x9b" \ "\xe6\xa8\xba" \ "\xe9\x9e\x84" \ "\xe6\xa0\xaa" \ "\xe5\x85\x9c" \ "\xe7\xab\x83" \ "\xe8\x92\xb2" \ "\xe9\x87\x9c" \ "\xe9\x8e\x8c" \ "\xe5\x99\x9b" \ "\xe9\xb4\xa8" \ "\xe6\xa0\xa2" \ "\xe8\x8c\x85" \ "\xe8\x90\xb1" \ "\xe7\xb2\xa5" \ "\xe5\x88\x88" \ "\xe8\x8b\x85" \ "\xe7\x93\xa6" \ "\xe4\xb9\xbe" \ "\xe4\xbe\x83" \ "\xe5\x86\xa0" \ "\xe5\xaf\x92" \ "\xe5\x88\x8a" \ "\xe5\x8b\x98" \ "\xe5\x8b\xa7" \ "\xe5\xb7\xbb" \ "\xe5\x96\x9a" \ "\xe5\xa0\xaa" \ "\xe5\xa7\xa6" \ "\xe5\xae\x8c" \ "\xe5\xae\x98" \ "\xe5\xaf\x9b" \ "\xe5\xb9\xb2" \ "\xe5\xb9\xb9" \ "\xe6\x82\xa3" \ "\xe6\x84\x9f" \ "\xe6\x85\xa3" \ "\xe6\x86\xbe" \ "\xe6\x8f\x9b" \ "\xe6\x95\xa2" \ "\xe6\x9f\x91" \ "\xe6\xa1\x93" \ "\xe6\xa3\xba" \ "\xe6\xac\xbe" \ "\xe6\xad\x93" \ "\xe6\xb1\x97" \ "\xe6\xbc\xa2" \ "\xe6\xbe\x97" \ "\xe6\xbd\x85" \ "\xe7\x92\xb0" \ "\xe7\x94\x98" \ "\xe7\x9b\xa3" \ "\xe7\x9c\x8b" \ "\xe7\xab\xbf" \ "\xe7\xae\xa1" \ "\xe7\xb0\xa1" \ "\xe7\xb7\xa9" \ "\xe7\xbc\xb6" \ "\xe7\xbf\xb0" \ "\xe8\x82\x9d" \ "\xe8\x89\xa6" \ "\xe8\x8e\x9e" \ "\xe8\xa6\xb3" \ "\xe8\xab\x8c" \ "\xe8\xb2\xab" \ "\xe9\x82\x84" \ "\xe9\x91\x91" \ "\xe9\x96\x93" \ "\xe9\x96\x91" \ "\xe9\x96\xa2" \ "\xe9\x99\xa5" \ "\xe9\x9f\x93" \ "\xe9\xa4\xa8" \ "\xe8\x88\x98" \ "\xe4\xb8\xb8" \ "\xe5\x90\xab" \ "\xe5\xb2\xb8" \ "\xe5\xb7\x8c" \ "\xe7\x8e\xa9" \ "\xe7\x99\x8c" \ "\xe7\x9c\xbc" \ "\xe5\xb2\xa9" \ "\xe7\xbf\xab" \ "\xe8\xb4\x8b" \ "\xe9\x9b\x81" \ "\xe9\xa0\x91" \ "\xe9\xa1\x94" \ "\xe9\xa1\x98" \ "\xe4\xbc\x81" \ "\xe4\xbc\x8e" \ "\xe5\x8d\xb1" \ "\xe5\x96\x9c" \ "\xe5\x99\xa8" \ "\xe5\x9f\xba" \ "\xe5\xa5\x87" \ "\xe5\xac\x89" \ "\xe5\xaf\x84" \ "\xe5\xb2\x90" \ "\xe5\xb8\x8c" \ "\xe5\xb9\xbe" \ "\xe5\xbf\x8c" \ "\xe6\x8f\xae" \ "\xe6\x9c\xba" \ "\xe6\x97\x97" \ "\xe6\x97\xa2" \ "\xe6\x9c\x9f" \ "\xe6\xa3\x8b" \ "\xe6\xa3\x84" \ "\xe6\xa9\x9f" \ "\xe5\xb8\xb0" \ "\xe6\xaf\x85" \ "\xe6\xb0\x97" \ "\xe6\xb1\xbd" \ "\xe7\x95\xbf" \ "\xe7\xa5\x88" \ "\xe5\xad\xa3" \ "\xe7\xa8\x80" \ "\xe7\xb4\x80" \ "\xe5\xbe\xbd" \ "\xe8\xa6\x8f" \ "\xe8\xa8\x98" \ "\xe8\xb2\xb4" \ "\xe8\xb5\xb7" \ "\xe8\xbb\x8c" \ "\xe8\xbc\x9d" \ "\xe9\xa3\xa2" \ "\xe9\xa8\x8e" \ "\xe9\xac\xbc" \ "\xe4\xba\x80" \ "\xe5\x81\xbd" \ "\xe5\x84\x80" \ "\xe5\xa6\x93" \ "\xe5\xae\x9c" \ "\xe6\x88\xaf" \ "\xe6\x8a\x80" \ "\xe6\x93\xac" \ "\xe6\xac\xba" \ "\xe7\x8a\xa0" \ "\xe7\x96\x91" \ "\xe7\xa5\x87" \ "\xe7\xbe\xa9" \ "\xe8\x9f\xbb" \ "\xe8\xaa\xbc" \ "\xe8\xad\xb0" \ "\xe6\x8e\xac" \ "\xe8\x8f\x8a" \ "\xe9\x9e\xa0" \ "\xe5\x90\x89" \ "\xe5\x90\x83" \ "\xe5\x96\xab" \ "\xe6\xa1\x94" \ "\xe6\xa9\x98" \ "\xe8\xa9\xb0" \ "\xe7\xa0\xa7" \ "\xe6\x9d\xb5" \ "\xe9\xbb\x8d" \ "\xe5\x8d\xb4" \ "\xe5\xae\xa2" \ "\xe8\x84\x9a" \ "\xe8\x99\x90" \ "\xe9\x80\x86" \ "\xe4\xb8\x98" \ "\xe4\xb9\x85" \ "\xe4\xbb\x87" \ "\xe4\xbc\x91" \ "\xe5\x8f\x8a" \ "\xe5\x90\xb8" \ "\xe5\xae\xae" \ "\xe5\xbc\x93" \ "\xe6\x80\xa5" \ "\xe6\x95\x91" \ "\xe6\x9c\xbd" \ "\xe6\xb1\x82" \ "\xe6\xb1\xb2" \ "\xe6\xb3\xa3" \ "\xe7\x81\xb8" \ "\xe7\x90\x83" \ "\xe7\xa9\xb6" \ "\xe7\xaa\xae" \ "\xe7\xac\x88" \ "\xe7\xb4\x9a" \ "\xe7\xb3\xbe" \ "\xe7\xb5\xa6" \ "\xe6\x97\xa7" \ "\xe7\x89\x9b" \ "\xe5\x8e\xbb" \ "\xe5\xb1\x85" \ "\xe5\xb7\xa8" \ "\xe6\x8b\x92" \ "\xe6\x8b\xa0" \ "\xe6\x8c\x99" \ "\xe6\xb8\xa0" \ "\xe8\x99\x9a" \ "\xe8\xa8\xb1" \ "\xe8\xb7\x9d" \ "\xe9\x8b\xb8" \ "\xe6\xbc\x81" \ "\xe7\xa6\xa6" \ "\xe9\xad\x9a" \ "\xe4\xba\xa8" \ "\xe4\xba\xab" \ "\xe4\xba\xac" \ "\xe4\xbe\x9b" \ "\xe4\xbe\xa0" \ "\xe5\x83\x91" \ "\xe5\x85\x87" \ "\xe7\xab\xb6" \ "\xe5\x85\xb1" \ "\xe5\x87\xb6" \ "\xe5\x8d\x94" \ "\xe5\x8c\xa1" \ "\xe5\x8d\xbf" \ "\xe5\x8f\xab" \ "\xe5\x96\xac" \ "\xe5\xa2\x83" \ "\xe5\xb3\xa1" \ "\xe5\xbc\xb7" \ "\xe5\xbd\x8a" \ "\xe6\x80\xaf" \ "\xe6\x81\x90" \ "\xe6\x81\xad" \ "\xe6\x8c\x9f" \ "\xe6\x95\x99" \ "\xe6\xa9\x8b" \ "\xe6\xb3\x81" \ "\xe7\x8b\x82" \ "\xe7\x8b\xad" \ "\xe7\x9f\xaf" \ "\xe8\x83\xb8" \ "\xe8\x84\x85" \ "\xe8\x88\x88" \ "\xe8\x95\x8e" \ "\xe9\x83\xb7" \ "\xe9\x8f\xa1" \ "\xe9\x9f\xbf" \ "\xe9\xa5\x97" \ "\xe9\xa9\x9a" \ "\xe4\xbb\xb0" \ "\xe5\x87\x9d" \ "\xe5\xb0\xad" \ "\xe6\x9a\x81" \ "\xe6\xa5\xad" \ "\xe5\xb1\x80" \ "\xe6\x9b\xb2" \ "\xe6\xa5\xb5" \ "\xe7\x8e\x89" \ "\xe6\xa1\x90" \ "\xe7\xb2\x81" \ "\xe5\x83\x85" \ "\xe5\x8b\xa4" \ "\xe5\x9d\x87" \ "\xe5\xb7\xbe" \ "\xe9\x8c\xa6" \ "\xe6\x96\xa4" \ "\xe6\xac\xa3" \ "\xe6\xac\xbd" \ "\xe7\x90\xb4" \ "\xe7\xa6\x81" \ "\xe7\xa6\xbd" \ "\xe7\xad\x8b" \ "\xe7\xb7\x8a" \ "\xe8\x8a\xb9" \ "\xe8\x8f\x8c" \ "\xe8\xa1\xbf" \ "\xe8\xa5\x9f" \ "\xe8\xac\xb9" \ "\xe8\xbf\x91" \ "\xe9\x87\x91" \ "\xe5\x90\x9f" \ "\xe9\x8a\x80" \ "\xe4\xb9\x9d" \ "\xe5\x80\xb6" \ "\xe5\x8f\xa5" \ "\xe5\x8c\xba" \ "\xe7\x8b\x97" \ "\xe7\x8e\x96" \ "\xe7\x9f\xa9" \ "\xe8\x8b\xa6" \ "\xe8\xba\xaf" \ "\xe9\xa7\x86" \ "\xe9\xa7\x88" \ "\xe9\xa7\x92" \ "\xe5\x85\xb7" \ "\xe6\x84\x9a" \ "\xe8\x99\x9e" \ "\xe5\x96\xb0" \ "\xe7\xa9\xba" \ "\xe5\x81\xb6" \ "\xe5\xaf\x93" \ "\xe9\x81\x87" \ "\xe9\x9a\x85" \ "\xe4\xb8\xb2" \ "\xe6\xab\x9b" \ "\xe9\x87\xa7" \ "\xe5\xb1\x91" \ "\xe5\xb1\x88" \ "\xe6\x8e\x98" \ "\xe7\xaa\x9f" \ "\xe6\xb2\x93" \ "\xe9\x9d\xb4" \ "\xe8\xbd\xa1" \ "\xe7\xaa\xaa" \ "\xe7\x86\x8a" \ "\xe9\x9a\x88" \ "\xe7\xb2\x82" \ "\xe6\xa0\x97" \ "\xe7\xb9\xb0" \ "\xe6\xa1\x91" \ "\xe9\x8d\xac" \ "\xe5\x8b\xb2" \ "\xe5\x90\x9b" \ "\xe8\x96\xab" \ "\xe8\xa8\x93" \ "\xe7\xbe\xa4" \ "\xe8\xbb\x8d" \ "\xe9\x83\xa1" \ "\xe5\x8d\xa6" \ "\xe8\xa2\x88" \ "\xe7\xa5\x81" \ "\xe4\xbf\x82" \ "\xe5\x82\xbe" \ "\xe5\x88\x91" \ "\xe5\x85\x84" \ "\xe5\x95\x93" \ "\xe5\x9c\xad" \ "\xe7\x8f\xaa" \ "\xe5\x9e\x8b" \ "\xe5\xa5\x91" \ "\xe5\xbd\xa2" \ "\xe5\xbe\x84" \ "\xe6\x81\xb5" \ "\xe6\x85\xb6" \ "\xe6\x85\xa7" \ "\xe6\x86\xa9" \ "\xe6\x8e\xb2" \ "\xe6\x90\xba" \ "\xe6\x95\xac" \ "\xe6\x99\xaf" \ "\xe6\xa1\x82" \ "\xe6\xb8\x93" \ "\xe7\x95\xa6" \ "\xe7\xa8\xbd" \ "\xe7\xb3\xbb" \ "\xe7\xb5\x8c" \ "\xe7\xb6\x99" \ "\xe7\xb9\x8b" \ "\xe7\xbd\xab" \ "\xe8\x8c\x8e" \ "\xe8\x8d\x8a" \ "\xe8\x9b\x8d" \ "\xe8\xa8\x88" \ "\xe8\xa9\xa3" \ "\xe8\xad\xa6" \ "\xe8\xbb\xbd" \ "\xe9\xa0\x9a" \ "\xe9\xb6\x8f" \ "\xe8\x8a\xb8" \ "\xe8\xbf\x8e" \ "\xe9\xaf\xa8" \ "\xe5\x8a\x87" \ "\xe6\x88\x9f" \ "\xe6\x92\x83" \ "\xe6\xbf\x80" \ "\xe9\x9a\x99" \ "\xe6\xa1\x81" \ "\xe5\x82\x91" \ "\xe6\xac\xa0" \ "\xe6\xb1\xba" \ "\xe6\xbd\x94" \ "\xe7\xa9\xb4" \ "\xe7\xb5\x90" \ "\xe8\xa1\x80" \ "\xe8\xa8\xa3" \ "\xe6\x9c\x88" \ "\xe4\xbb\xb6" \ "\xe5\x80\xb9" \ "\xe5\x80\xa6" \ "\xe5\x81\xa5" \ "\xe5\x85\xbc" \ "\xe5\x88\xb8" \ "\xe5\x89\xa3" \ "\xe5\x96\xa7" \ "\xe5\x9c\x8f" \ "\xe5\xa0\x85" \ "\xe5\xab\x8c" \ "\xe5\xbb\xba" \ "\xe6\x86\xb2" \ "\xe6\x87\xb8" \ "\xe6\x8b\xb3" \ "\xe6\x8d\xb2" \ "\xe6\xa4\x9c" \ "\xe6\xa8\xa9" \ "\xe7\x89\xbd" \ "\xe7\x8a\xac" \ "\xe7\x8c\xae" \ "\xe7\xa0\x94" \ "\xe7\xa1\xaf" \ "\xe7\xb5\xb9" \ "\xe7\x9c\x8c" \ "\xe8\x82\xa9" \ "\xe8\xa6\x8b" \ "\xe8\xac\x99" \ "\xe8\xb3\xa2" \ "\xe8\xbb\x92" \ "\xe9\x81\xa3" \ "\xe9\x8d\xb5" \ "\xe9\x99\xba" \ "\xe9\xa1\x95" \ "\xe9\xa8\x93" \ "\xe9\xb9\xb8" \ "\xe5\x85\x83" \ "\xe5\x8e\x9f" \ "\xe5\x8e\xb3" \ "\xe5\xb9\xbb" \ "\xe5\xbc\xa6" \ "\xe6\xb8\x9b" \ "\xe6\xba\x90" \ "\xe7\x8e\x84" \ "\xe7\x8f\xbe" \ "\xe7\xb5\x83" \ "\xe8\x88\xb7" \ "\xe8\xa8\x80" \ "\xe8\xab\xba" \ "\xe9\x99\x90" \ "\xe4\xb9\x8e" \ "\xe5\x80\x8b" \ "\xe5\x8f\xa4" \ "\xe5\x91\xbc" \ "\xe5\x9b\xba" \ "\xe5\xa7\x91" \ "\xe5\xad\xa4" \ "\xe5\xb7\xb1" \ "\xe5\xba\xab" \ "\xe5\xbc\xa7" \ "\xe6\x88\xb8" \ "\xe6\x95\x85" \ "\xe6\x9e\xaf" \ "\xe6\xb9\x96" \ "\xe7\x8b\x90" \ "\xe7\xb3\x8a" \ "\xe8\xa2\xb4" \ "\xe8\x82\xa1" \ "\xe8\x83\xa1" \ "\xe8\x8f\xb0" \ "\xe8\x99\x8e" \ "\xe8\xaa\x87" \ "\xe8\xb7\xa8" \ "\xe9\x88\xb7" \ "\xe9\x9b\x87" \ "\xe9\xa1\xa7" \ "\xe9\xbc\x93" \ "\xe4\xba\x94" \ "\xe4\xba\x92" \ "\xe4\xbc\x8d" \ "\xe5\x8d\x88" \ "\xe5\x91\x89" \ "\xe5\x90\xbe" \ "\xe5\xa8\xaf" \ "\xe5\xbe\x8c" \ "\xe5\xbe\xa1" \ "\xe6\x82\x9f" \ "\xe6\xa2\xa7" \ "\xe6\xaa\x8e" \ "\xe7\x91\x9a" \ "\xe7\xa2\x81" \ "\xe8\xaa\x9e" \ "\xe8\xaa\xa4" \ "\xe8\xad\xb7" \ "\xe9\x86\x90" \ "\xe4\xb9\x9e" \ "\xe9\xaf\x89" \ "\xe4\xba\xa4" \ "\xe4\xbd\xbc" \ "\xe4\xbe\xaf" \ "\xe5\x80\x99" \ "\xe5\x80\x96" \ "\xe5\x85\x89" \ "\xe5\x85\xac" \ "\xe5\x8a\x9f" \ "\xe5\x8a\xb9" \ "\xe5\x8b\xbe" \ "\xe5\x8e\x9a" \ "\xe5\x8f\xa3" \ "\xe5\x90\x91" \ "\xe5\x90\x8e" \ "\xe5\x96\x89" \ "\xe5\x9d\x91" \ "\xe5\x9e\xa2" \ "\xe5\xa5\xbd" \ "\xe5\xad\x94" \ "\xe5\xad\x9d" \ "\xe5\xae\x8f" \ "\xe5\xb7\xa5" \ "\xe5\xb7\xa7" \ "\xe5\xb7\xb7" \ "\xe5\xb9\xb8" \ "\xe5\xba\x83" \ "\xe5\xba\x9a" \ "\xe5\xba\xb7" \ "\xe5\xbc\x98" \ "\xe6\x81\x92" \ "\xe6\x85\x8c" \ "\xe6\x8a\x97" \ "\xe6\x8b\x98" \ "\xe6\x8e\xa7" \ "\xe6\x94\xbb" \ "\xe6\x98\x82" \ "\xe6\x99\x83" \ "\xe6\x9b\xb4" \ "\xe6\x9d\xad" \ "\xe6\xa0\xa1" \ "\xe6\xa2\x97" \ "\xe6\xa7\x8b" \ "\xe6\xb1\x9f" \ "\xe6\xb4\xaa" \ "\xe6\xb5\xa9" \ "\xe6\xb8\xaf" \ "\xe6\xba\x9d" \ "\xe7\x94\xb2" \ "\xe7\x9a\x87" \ "\xe7\xa1\xac" \ "\xe7\xa8\xbf" \ "\xe7\xb3\xa0" \ "\xe7\xb4\x85" \ "\xe7\xb4\x98" \ "\xe7\xb5\x9e" \ "\xe7\xb6\xb1" \ "\xe8\x80\x95" \ "\xe8\x80\x83" \ "\xe8\x82\xaf" \ "\xe8\x82\xb1" \ "\xe8\x85\x94" \ "\xe8\x86\x8f" \ "\xe8\x88\xaa" \ "\xe8\x8d\x92" \ "\xe8\xa1\x8c" \ "\xe8\xa1\xa1" \ "\xe8\xac\x9b" \ "\xe8\xb2\xa2" \ "\xe8\xb3\xbc" \ "\xe9\x83\x8a" \ "\xe9\x85\xb5" \ "\xe9\x89\xb1" \ "\xe7\xa0\xbf" \ "\xe9\x8b\xbc" \ "\xe9\x96\xa4" \ "\xe9\x99\x8d" \ "\xe9\xa0\x85" \ "\xe9\xa6\x99" \ "\xe9\xab\x98" \ "\xe9\xb4\xbb" \ "\xe5\x89\x9b" \ "\xe5\x8a\xab" \ "\xe5\x8f\xb7" \ "\xe5\x90\x88" \ "\xe5\xa3\x95" \ "\xe6\x8b\xb7" \ "\xe6\xbf\xa0" \ "\xe8\xb1\xaa" \ "\xe8\xbd\x9f" \ "\xe9\xba\xb9" \ "\xe5\x85\x8b" \ "\xe5\x88\xbb" \ "\xe5\x91\x8a" \ "\xe5\x9b\xbd" \ "\xe7\xa9\x80" \ "\xe9\x85\xb7" \ "\xe9\xb5\xa0" \ "\xe9\xbb\x92" \ "\xe7\x8d\x84" \ "\xe6\xbc\x89" \ "\xe8\x85\xb0" \ "\xe7\x94\x91" \ "\xe5\xbf\xbd" \ "\xe6\x83\x9a" \ "\xe9\xaa\xa8" \ "\xe7\x8b\x9b" \ "\xe8\xbe\xbc" \ "\xe6\xad\xa4" \ "\xe9\xa0\x83" \ "\xe4\xbb\x8a" \ "\xe5\x9b\xb0" \ "\xe5\x9d\xa4" \ "\xe5\xa2\xbe" \ "\xe5\xa9\x9a" \ "\xe6\x81\xa8" \ "\xe6\x87\x87" \ "\xe6\x98\x8f" \ "\xe6\x98\x86" \ "\xe6\xa0\xb9" \ "\xe6\xa2\xb1" \ "\xe6\xb7\xb7" \ "\xe7\x97\x95" \ "\xe7\xb4\xba" \ "\xe8\x89\xae" \ "\xe9\xad\x82" \ "\xe4\xba\x9b" \ "\xe4\xbd\x90" \ "\xe5\x8f\x89" \ "\xe5\x94\x86" \ "\xe5\xb5\xaf" \ "\xe5\xb7\xa6" \ "\xe5\xb7\xae" \ "\xe6\x9f\xbb" \ "\xe6\xb2\x99" \ "\xe7\x91\xb3" \ "\xe7\xa0\x82" \ "\xe8\xa9\x90" \ "\xe9\x8e\x96" \ "\xe8\xa3\x9f" \ "\xe5\x9d\x90" \ "\xe5\xba\xa7" \ "\xe6\x8c\xab" \ "\xe5\x82\xb5" \ "\xe5\x82\xac" \ "\xe5\x86\x8d" \ "\xe6\x9c\x80" \ "\xe5\x93\x89" \ "\xe5\xa1\x9e" \ "\xe5\xa6\xbb" \ "\xe5\xae\xb0" \ "\xe5\xbd\xa9" \ "\xe6\x89\x8d" \ "\xe6\x8e\xa1" \ "\xe6\xa0\xbd" \ "\xe6\xad\xb3" \ "\xe6\xb8\x88" \ "\xe7\x81\xbd" \ "\xe9\x87\x87" \ "\xe7\x8a\x80" \ "\xe7\xa0\x95" \ "\xe7\xa0\xa6" \ "\xe7\xa5\xad" \ "\xe6\x96\x8e" \ "\xe7\xb4\xb0" \ "\xe8\x8f\x9c" \ "\xe8\xa3\x81" \ "\xe8\xbc\x89" \ "\xe9\x9a\x9b" \ "\xe5\x89\xa4" \ "\xe5\x9c\xa8" \ "\xe6\x9d\x90" \ "\xe7\xbd\xaa" \ "\xe8\xb2\xa1" \ "\xe5\x86\xb4" \ "\xe5\x9d\x82" \ "\xe9\x98\xaa" \ "\xe5\xa0\xba" \ "\xe6\xa6\x8a" \ "\xe8\x82\xb4" \ "\xe5\x92\xb2" \ "\xe5\xb4\x8e" \ "\xe5\x9f\xbc" \ "\xe7\xa2\x95" \ "\xe9\xb7\xba" \ "\xe4\xbd\x9c" \ "\xe5\x89\x8a" \ "\xe5\x92\x8b" \ "\xe6\x90\xbe" \ "\xe6\x98\xa8" \ "\xe6\x9c\x94" \ "\xe6\x9f\xb5" \ "\xe7\xaa\x84" \ "\xe7\xad\x96" \ "\xe7\xb4\xa2" \ "\xe9\x8c\xaf" \ "\xe6\xa1\x9c" \ "\xe9\xae\xad" \ "\xe7\xac\xb9" \ "\xe5\x8c\x99" \ "\xe5\x86\x8a" \ "\xe5\x88\xb7" \ "\xe5\xaf\x9f" \ "\xe6\x8b\xb6" \ "\xe6\x92\xae" \ "\xe6\x93\xa6" \ "\xe6\x9c\xad" \ "\xe6\xae\xba" \ "\xe8\x96\xa9" \ "\xe9\x9b\x91" \ "\xe7\x9a\x90" \ "\xe9\xaf\x96" \ "\xe6\x8d\x8c" \ "\xe9\x8c\x86" \ "\xe9\xae\xab" \ "\xe7\x9a\xbf" \ "\xe6\x99\x92" \ "\xe4\xb8\x89" \ "\xe5\x82\x98" \ "\xe5\x8f\x82" \ "\xe5\xb1\xb1" \ "\xe6\x83\xa8" \ "\xe6\x92\x92" \ "\xe6\x95\xa3" \ "\xe6\xa1\x9f" \ "\xe7\x87\xa6" \ "\xe7\x8f\x8a" \ "\xe7\x94\xa3" \ "\xe7\xae\x97" \ "\xe7\xba\x82" \ "\xe8\x9a\x95" \ "\xe8\xae\x83" \ "\xe8\xb3\x9b" \ "\xe9\x85\xb8" \ "\xe9\xa4\x90" \ "\xe6\x96\xac" \ "\xe6\x9a\xab" \ "\xe6\xae\x8b" \ "\xe4\xbb\x95" \ "\xe4\xbb\x94" \ "\xe4\xbc\xba" \ "\xe4\xbd\xbf" \ "\xe5\x88\xba" \ "\xe5\x8f\xb8" \ "\xe5\x8f\xb2" \ "\xe5\x97\xa3" \ "\xe5\x9b\x9b" \ "\xe5\xa3\xab" \ "\xe5\xa7\x8b" \ "\xe5\xa7\x89" \ "\xe5\xa7\xbf" \ "\xe5\xad\x90" \ "\xe5\xb1\x8d" \ "\xe5\xb8\x82" \ "\xe5\xb8\xab" \ "\xe5\xbf\x97" \ "\xe6\x80\x9d" \ "\xe6\x8c\x87" \ "\xe6\x94\xaf" \ "\xe5\xad\x9c" \ "\xe6\x96\xaf" \ "\xe6\x96\xbd" \ "\xe6\x97\xa8" \ "\xe6\x9e\x9d" \ "\xe6\xad\xa2" \ "\xe6\xad\xbb" \ "\xe6\xb0\x8f" \ "\xe7\x8d\x85" \ "\xe7\xa5\x89" \ "\xe7\xa7\x81" \ "\xe7\xb3\xb8" \ "\xe7\xb4\x99" \ "\xe7\xb4\xab" \ "\xe8\x82\xa2" \ "\xe8\x84\x82" \ "\xe8\x87\xb3" \ "\xe8\xa6\x96" \ "\xe8\xa9\x9e" \ "\xe8\xa9\xa9" \ "\xe8\xa9\xa6" \ "\xe8\xaa\x8c" \ "\xe8\xab\xae" \ "\xe8\xb3\x87" \ "\xe8\xb3\x9c" \ "\xe9\x9b\x8c" \ "\xe9\xa3\xbc" \ "\xe6\xad\xaf" \ "\xe4\xba\x8b" \ "\xe4\xbc\xbc" \ "\xe4\xbe\x8d" \ "\xe5\x85\x90" \ "\xe5\xad\x97" \ "\xe5\xaf\xba" \ "\xe6\x85\x88" \ "\xe6\x8c\x81" \ "\xe6\x99\x82" \ "\xe6\xac\xa1" \ "\xe6\xbb\x8b" \ "\xe6\xb2\xbb" \ "\xe7\x88\xbe" \ "\xe7\x92\xbd" \ "\xe7\x97\x94" \ "\xe7\xa3\x81" \ "\xe7\xa4\xba" \ "\xe8\x80\x8c" \ "\xe8\x80\xb3" \ "\xe8\x87\xaa" \ "\xe8\x92\x94" \ "\xe8\xbe\x9e" \ "\xe6\xb1\x90" \ "\xe9\xb9\xbf" \ "\xe5\xbc\x8f" \ "\xe8\xad\x98" \ "\xe9\xb4\xab" \ "\xe7\xab\xba" \ "\xe8\xbb\xb8" \ "\xe5\xae\x8d" \ "\xe9\x9b\xab" \ "\xe4\xb8\x83" \ "\xe5\x8f\xb1" \ "\xe5\x9f\xb7" \ "\xe5\xa4\xb1" \ "\xe5\xab\x89" \ "\xe5\xae\xa4" \ "\xe6\x82\x89" \ "\xe6\xb9\xbf" \ "\xe6\xbc\x86" \ "\xe7\x96\xbe" \ "\xe8\xb3\xaa" \ "\xe5\xae\x9f" \ "\xe8\x94\x80" \ "\xe7\xaf\xa0" \ "\xe5\x81\xb2" \ "\xe6\x9f\xb4" \ "\xe8\x8a\x9d" \ "\xe5\xb1\xa1" \ "\xe8\x95\x8a" \ "\xe7\xb8\x9e" \ "\xe8\x88\x8e" \ "\xe5\x86\x99" \ "\xe5\xb0\x84" \ "\xe6\x8d\xa8" \ "\xe8\xb5\xa6" \ "\xe6\x96\x9c" \ "\xe7\x85\xae" \ "\xe7\xa4\xbe" \ "\xe7\xb4\x97" \ "\xe8\x80\x85" \ "\xe8\xac\x9d" \ "\xe8\xbb\x8a" \ "\xe9\x81\xae" \ "\xe8\x9b\x87" \ "\xe9\x82\xaa" \ "\xe5\x80\x9f" \ "\xe5\x8b\xba" \ "\xe5\xb0\xba" \ "\xe6\x9d\x93" \ "\xe7\x81\xbc" \ "\xe7\x88\xb5" \ "\xe9\x85\x8c" \ "\xe9\x87\x88" \ "\xe9\x8c\xab" \ "\xe8\x8b\xa5" \ "\xe5\xaf\x82" \ "\xe5\xbc\xb1" \ "\xe6\x83\xb9" \ "\xe4\xb8\xbb" \ "\xe5\x8f\x96" \ "\xe5\xae\x88" \ "\xe6\x89\x8b" \ "\xe6\x9c\xb1" \ "\xe6\xae\x8a" \ "\xe7\x8b\xa9" \ "\xe7\x8f\xa0" \ "\xe7\xa8\xae" \ "\xe8\x85\xab" \ "\xe8\xb6\xa3" \ "\xe9\x85\x92" \ "\xe9\xa6\x96" \ "\xe5\x84\x92" \ "\xe5\x8f\x97" \ "\xe5\x91\xaa" \ "\xe5\xaf\xbf" \ "\xe6\x8e\x88" \ "\xe6\xa8\xb9" \ "\xe7\xb6\xac" \ "\xe9\x9c\x80" \ "\xe5\x9b\x9a" \ "\xe5\x8f\x8e" \ "\xe5\x91\xa8" \ "\xe5\xae\x97" \ "\xe5\xb0\xb1" \ "\xe5\xb7\x9e" \ "\xe4\xbf\xae" \ "\xe6\x84\x81" \ "\xe6\x8b\xbe" \ "\xe6\xb4\xb2" \ "\xe7\xa7\x80" \ "\xe7\xa7\x8b" \ "\xe7\xb5\x82" \ "\xe7\xb9\x8d" \ "\xe7\xbf\x92" \ "\xe8\x87\xad" \ "\xe8\x88\x9f" \ "\xe8\x92\x90" \ "\xe8\xa1\x86" \ "\xe8\xa5\xb2" \ "\xe8\xae\x90" \ "\xe8\xb9\xb4" \ "\xe8\xbc\xaf" \ "\xe9\x80\xb1" \ "\xe9\x85\x8b" \ "\xe9\x85\xac" \ "\xe9\x9b\x86" \ "\xe9\x86\x9c" \ "\xe4\xbb\x80" \ "\xe4\xbd\x8f" \ "\xe5\x85\x85" \ "\xe5\x8d\x81" \ "\xe5\xbe\x93" \ "\xe6\x88\x8e" \ "\xe6\x9f\x94" \ "\xe6\xb1\x81" \ "\xe6\xb8\x8b" \ "\xe7\x8d\xa3" \ "\xe7\xb8\xa6" \ "\xe9\x87\x8d" \ "\xe9\x8a\x83" \ "\xe5\x8f\x94" \ "\xe5\xa4\x99" \ "\xe5\xae\xbf" \ "\xe6\xb7\x91" \ "\xe7\xa5\x9d" \ "\xe7\xb8\xae" \ "\xe7\xb2\x9b" \ "\xe5\xa1\xbe" \ "\xe7\x86\x9f" \ "\xe5\x87\xba" \ "\xe8\xa1\x93" \ "\xe8\xbf\xb0" \ "\xe4\xbf\x8a" \ "\xe5\xb3\xbb" \ "\xe6\x98\xa5" \ "\xe7\x9e\xac" \ "\xe7\xab\xa3" \ "\xe8\x88\x9c" \ "\xe9\xa7\xbf" \ "\xe5\x87\x86" \ "\xe5\xbe\xaa" \ "\xe6\x97\xac" \ "\xe6\xa5\xaf" \ "\xe6\xae\x89" \ "\xe6\xb7\xb3" \ "\xe6\xba\x96" \ "\xe6\xbd\xa4" \ "\xe7\x9b\xbe" \ "\xe7\xb4\x94" \ "\xe5\xb7\xa1" \ "\xe9\x81\xb5" \ "\xe9\x86\x87" \ "\xe9\xa0\x86" \ "\xe5\x87\xa6" \ "\xe5\x88\x9d" \ "\xe6\x89\x80" \ "\xe6\x9a\x91" \ "\xe6\x9b\x99" \ "\xe6\xb8\x9a" \ "\xe5\xba\xb6" \ "\xe7\xb7\x92" \ "\xe7\xbd\xb2" \ "\xe6\x9b\xb8" \ "\xe8\x96\xaf" \ "\xe8\x97\xb7" \ "\xe8\xab\xb8" \ "\xe5\x8a\xa9" \ "\xe5\x8f\x99" \ "\xe5\xa5\xb3" \ "\xe5\xba\x8f" \ "\xe5\xbe\x90" \ "\xe6\x81\x95" \ "\xe9\x8b\xa4" \ "\xe9\x99\xa4" \ "\xe5\x82\xb7" \ "\xe5\x84\x9f" \ "\xe5\x8b\x9d" \ "\xe5\x8c\xa0" \ "\xe5\x8d\x87" \ "\xe5\x8f\xac" \ "\xe5\x93\xa8" \ "\xe5\x95\x86" \ "\xe5\x94\xb1" \ "\xe5\x98\x97" \ "\xe5\xa5\xa8" \ "\xe5\xa6\xbe" \ "\xe5\xa8\xbc" \ "\xe5\xae\xb5" \ "\xe5\xb0\x86" \ "\xe5\xb0\x8f" \ "\xe5\xb0\x91" \ "\xe5\xb0\x9a" \ "\xe5\xba\x84" \ "\xe5\xba\x8a" \ "\xe5\xbb\xa0" \ "\xe5\xbd\xb0" \ "\xe6\x89\xbf" \ "\xe6\x8a\x84" \ "\xe6\x8b\x9b" \ "\xe6\x8e\x8c" \ "\xe6\x8d\xb7" \ "\xe6\x98\x87" \ "\xe6\x98\x8c" \ "\xe6\x98\xad" \ "\xe6\x99\xb6" \ "\xe6\x9d\xbe" \ "\xe6\xa2\xa2" \ "\xe6\xa8\x9f" \ "\xe6\xa8\xb5" \ "\xe6\xb2\xbc" \ "\xe6\xb6\x88" \ "\xe6\xb8\x89" \ "\xe6\xb9\x98" \ "\xe7\x84\xbc" \ "\xe7\x84\xa6" \ "\xe7\x85\xa7" \ "\xe7\x97\x87" \ "\xe7\x9c\x81" \ "\xe7\xa1\x9d" \ "\xe7\xa4\x81" \ "\xe7\xa5\xa5" \ "\xe7\xa7\xb0" \ "\xe7\xab\xa0" \ "\xe7\xac\x91" \ "\xe7\xb2\xa7" \ "\xe7\xb4\xb9" \ "\xe8\x82\x96" \ "\xe8\x8f\x96" \ "\xe8\x92\x8b" \ "\xe8\x95\x89" \ "\xe8\xa1\x9d" \ "\xe8\xa3\xb3" \ "\xe8\xa8\x9f" \ "\xe8\xa8\xbc" \ "\xe8\xa9\x94" \ "\xe8\xa9\xb3" \ "\xe8\xb1\xa1" \ "\xe8\xb3\x9e" \ "\xe9\x86\xa4" \ "\xe9\x89\xa6" \ "\xe9\x8d\xbe" \ "\xe9\x90\x98" \ "\xe9\x9a\x9c" \ "\xe9\x9e\x98" \ "\xe4\xb8\x8a" \ "\xe4\xb8\x88" \ "\xe4\xb8\x9e" \ "\xe4\xb9\x97" \ "\xe5\x86\x97" \ "\xe5\x89\xb0" \ "\xe5\x9f\x8e" \ "\xe5\xa0\xb4" \ "\xe5\xa3\x8c" \ "\xe5\xac\xa2" \ "\xe5\xb8\xb8" \ "\xe6\x83\x85" \ "\xe6\x93\xbe" \ "\xe6\x9d\xa1" \ "\xe6\x9d\x96" \ "\xe6\xb5\x84" \ "\xe7\x8a\xb6" \ "\xe7\x95\xb3" \ "\xe7\xa9\xa3" \ "\xe8\x92\xb8" \ "\xe8\xad\xb2" \ "\xe9\x86\xb8" \ "\xe9\x8c\xa0" \ "\xe5\x98\xb1" \ "\xe5\x9f\xb4" \ "\xe9\xa3\xbe" \ "\xe6\x8b\xad" \ "\xe6\xa4\x8d" \ "\xe6\xae\x96" \ "\xe7\x87\xad" \ "\xe7\xb9\x94" \ "\xe8\x81\xb7" \ "\xe8\x89\xb2" \ "\xe8\xa7\xa6" \ "\xe9\xa3\x9f" \ "\xe8\x9d\x95" \ "\xe8\xbe\xb1" \ "\xe5\xb0\xbb" \ "\xe4\xbc\xb8" \ "\xe4\xbf\xa1" \ "\xe4\xbe\xb5" \ "\xe5\x94\x87" \ "\xe5\xa8\xa0" \ "\xe5\xaf\x9d" \ "\xe5\xaf\xa9" \ "\xe5\xbf\x83" \ "\xe6\x85\x8e" \ "\xe6\x8c\xaf" \ "\xe6\x96\xb0" \ "\xe6\x99\x8b" \ "\xe6\xa3\xae" \ "\xe6\xa6\x9b" \ "\xe6\xb5\xb8" \ "\xe6\xb7\xb1" \ "\xe7\x94\xb3" \ "\xe7\x96\xb9" \ "\xe7\x9c\x9f" \ "\xe7\xa5\x9e" \ "\xe7\xa7\xa6" \ "\xe7\xb4\xb3" \ "\xe8\x87\xa3" \ "\xe8\x8a\xaf" \ "\xe8\x96\xaa" \ "\xe8\xa6\xaa" \ "\xe8\xa8\xba" \ "\xe8\xba\xab" \ "\xe8\xbe\x9b" \ "\xe9\x80\xb2" \ "\xe9\x87\x9d" \ "\xe9\x9c\x87" \ "\xe4\xba\xba" \ "\xe4\xbb\x81" \ "\xe5\x88\x83" \ "\xe5\xa1\xb5" \ "\xe5\xa3\xac" \ "\xe5\xb0\x8b" \ "\xe7\x94\x9a" \ "\xe5\xb0\xbd" \ "\xe8\x85\x8e" \ "\xe8\xa8\x8a" \ "\xe8\xbf\x85" \ "\xe9\x99\xa3" \ "\xe9\x9d\xad" \ "\xe7\xac\xa5" \ "\xe8\xab\x8f" \ "\xe9\xa0\x88" \ "\xe9\x85\xa2" \ "\xe5\x9b\xb3" \ "\xe5\x8e\xa8" \ "\xe9\x80\x97" \ "\xe5\x90\xb9" \ "\xe5\x9e\x82" \ "\xe5\xb8\xa5" \ "\xe6\x8e\xa8" \ "\xe6\xb0\xb4" \ "\xe7\x82\x8a" \ "\xe7\x9d\xa1" \ "\xe7\xb2\x8b" \ "\xe7\xbf\xa0" \ "\xe8\xa1\xb0" \ "\xe9\x81\x82" \ "\xe9\x85\x94" \ "\xe9\x8c\x90" \ "\xe9\x8c\x98" \ "\xe9\x9a\x8f" \ "\xe7\x91\x9e" \ "\xe9\xab\x84" \ "\xe5\xb4\x87" \ "\xe5\xb5\xa9" \ "\xe6\x95\xb0" \ "\xe6\x9e\xa2" \ "\xe8\xb6\xa8" \ "\xe9\x9b\x9b" \ "\xe6\x8d\xae" \ "\xe6\x9d\x89" \ "\xe6\xa4\x99" \ "\xe8\x8f\x85" \ "\xe9\xa0\x97" \ "\xe9\x9b\x80" \ "\xe8\xa3\xbe" \ "\xe6\xbe\x84" \ "\xe6\x91\xba" \ "\xe5\xaf\xb8" \ "\xe4\xb8\x96" \ "\xe7\x80\xac" \ "\xe7\x95\x9d" \ "\xe6\x98\xaf" \ "\xe5\x87\x84" \ "\xe5\x88\xb6" \ "\xe5\x8b\xa2" \ "\xe5\xa7\x93" \ "\xe5\xbe\x81" \ "\xe6\x80\xa7" \ "\xe6\x88\x90" \ "\xe6\x94\xbf" \ "\xe6\x95\xb4" \ "\xe6\x98\x9f" \ "\xe6\x99\xb4" \ "\xe6\xa3\xb2" \ "\xe6\xa0\x96" \ "\xe6\xad\xa3" \ "\xe6\xb8\x85" \ "\xe7\x89\xb2" \ "\xe7\x94\x9f" \ "\xe7\x9b\x9b" \ "\xe7\xb2\xbe" \ "\xe8\x81\x96" \ "\xe5\xa3\xb0" \ "\xe8\xa3\xbd" \ "\xe8\xa5\xbf" \ "\xe8\xaa\xa0" \ "\xe8\xaa\x93" \ "\xe8\xab\x8b" \ "\xe9\x80\x9d" \ "\xe9\x86\x92" \ "\xe9\x9d\x92" \ "\xe9\x9d\x99" \ "\xe6\x96\x89" \ "\xe7\xa8\x8e" \ "\xe8\x84\x86" \ "\xe9\x9a\xbb" \ "\xe5\xb8\xad" \ "\xe6\x83\x9c" \ "\xe6\x88\x9a" \ "\xe6\x96\xa5" \ "\xe6\x98\x94" \ "\xe6\x9e\x90" \ "\xe7\x9f\xb3" \ "\xe7\xa9\x8d" \ "\xe7\xb1\x8d" \ "\xe7\xb8\xbe" \ "\xe8\x84\x8a" \ "\xe8\xb2\xac" \ "\xe8\xb5\xa4" \ "\xe8\xb7\xa1" \ "\xe8\xb9\x9f" \ "\xe7\xa2\xa9" \ "\xe5\x88\x87" \ "\xe6\x8b\x99" \ "\xe6\x8e\xa5" \ "\xe6\x91\x82" \ "\xe6\x8a\x98" \ "\xe8\xa8\xad" \ "\xe7\xaa\x83" \ "\xe7\xaf\x80" \ "\xe8\xaa\xac" \ "\xe9\x9b\xaa" \ "\xe7\xb5\xb6" \ "\xe8\x88\x8c" \ "\xe8\x9d\x89" \ "\xe4\xbb\x99" \ "\xe5\x85\x88" \ "\xe5\x8d\x83" \ "\xe5\x8d\xa0" \ "\xe5\xae\xa3" \ "\xe5\xb0\x82" \ "\xe5\xb0\x96" \ "\xe5\xb7\x9d" \ "\xe6\x88\xa6" \ "\xe6\x89\x87" \ "\xe6\x92\xb0" \ "\xe6\xa0\x93" \ "\xe6\xa0\xb4" \ "\xe6\xb3\x89" \ "\xe6\xb5\x85" \ "\xe6\xb4\x97" \ "\xe6\x9f\x93" \ "\xe6\xbd\x9c" \ "\xe7\x85\x8e" \ "\xe7\x85\xbd" \ "\xe6\x97\x8b" \ "\xe7\xa9\xbf" \ "\xe7\xae\xad" \ "\xe7\xb7\x9a" \ "\xe7\xb9\x8a" \ "\xe7\xbe\xa8" \ "\xe8\x85\xba" \ "\xe8\x88\x9b" \ "\xe8\x88\xb9" \ "\xe8\x96\xa6" \ "\xe8\xa9\xae" \ "\xe8\xb3\x8e" \ "\xe8\xb7\xb5" \ "\xe9\x81\xb8" \ "\xe9\x81\xb7" \ "\xe9\x8a\xad" \ "\xe9\x8a\x91" \ "\xe9\x96\x83" \ "\xe9\xae\xae" \ "\xe5\x89\x8d" \ "\xe5\x96\x84" \ "\xe6\xbc\xb8" \ "\xe7\x84\xb6" \ "\xe5\x85\xa8" \ "\xe7\xa6\x85" \ "\xe7\xb9\x95" \ "\xe8\x86\xb3" \ "\xe7\xb3\x8e" \ "\xe5\x99\x8c" \ "\xe5\xa1\x91" \ "\xe5\xb2\xa8" \ "\xe6\x8e\xaa" \ "\xe6\x9b\xbe" \ "\xe6\x9b\xbd" \ "\xe6\xa5\x9a" \ "\xe7\x8b\x99" \ "\xe7\x96\x8f" \ "\xe7\x96\x8e" \ "\xe7\xa4\x8e" \ "\xe7\xa5\x96" \ "\xe7\xa7\x9f" \ "\xe7\xb2\x97" \ "\xe7\xb4\xa0" \ "\xe7\xb5\x84" \ "\xe8\x98\x87" \ "\xe8\xa8\xb4" \ "\xe9\x98\xbb" \ "\xe9\x81\xa1" \ "\xe9\xbc\xa0" \ "\xe5\x83\xa7" \ "\xe5\x89\xb5" \ "\xe5\x8f\x8c" \ "\xe5\x8f\xa2" \ "\xe5\x80\x89" \ "\xe5\x96\xaa" \ "\xe5\xa3\xae" \ "\xe5\xa5\x8f" \ "\xe7\x88\xbd" \ "\xe5\xae\x8b" \ "\xe5\xb1\xa4" \ "\xe5\x8c\x9d" \ "\xe6\x83\xa3" \ "\xe6\x83\xb3" \ "\xe6\x8d\x9c" \ "\xe6\x8e\x83" \ "\xe6\x8c\xbf" \ "\xe6\x8e\xbb" \ "\xe6\x93\x8d" \ "\xe6\x97\xa9" \ "\xe6\x9b\xb9" \ "\xe5\xb7\xa3" \ "\xe6\xa7\x8d" \ "\xe6\xa7\xbd" \ "\xe6\xbc\x95" \ "\xe7\x87\xa5" \ "\xe4\xba\x89" \ "\xe7\x97\xa9" \ "\xe7\x9b\xb8" \ "\xe7\xaa\x93" \ "\xe7\xb3\x9f" \ "\xe7\xb7\x8f" \ "\xe7\xb6\x9c" \ "\xe8\x81\xa1" \ "\xe8\x8d\x89" \ "\xe8\x8d\x98" \ "\xe8\x91\xac" \ "\xe8\x92\xbc" \ "\xe8\x97\xbb" \ "\xe8\xa3\x85" \ "\xe8\xb5\xb0" \ "\xe9\x80\x81" \ "\xe9\x81\xad" \ "\xe9\x8e\x97" \ "\xe9\x9c\x9c" \ "\xe9\xa8\x92" \ "\xe5\x83\x8f" \ "\xe5\xa2\x97" \ "\xe6\x86\x8e" \ "\xe8\x87\x93" \ "\xe8\x94\xb5" \ "\xe8\xb4\x88" \ "\xe9\x80\xa0" \ "\xe4\xbf\x83" \ "\xe5\x81\xb4" \ "\xe5\x89\x87" \ "\xe5\x8d\xb3" \ "\xe6\x81\xaf" \ "\xe6\x8d\x89" \ "\xe6\x9d\x9f" \ "\xe6\xb8\xac" \ "\xe8\xb6\xb3" \ "\xe9\x80\x9f" \ "\xe4\xbf\x97" \ "\xe5\xb1\x9e" \ "\xe8\xb3\x8a" \ "\xe6\x97\x8f" \ "\xe7\xb6\x9a" \ "\xe5\x8d\x92" \ "\xe8\xa2\x96" \ "\xe5\x85\xb6" \ "\xe6\x8f\x83" \ "\xe5\xad\x98" \ "\xe5\xad\xab" \ "\xe5\xb0\x8a" \ "\xe6\x90\x8d" \ "\xe6\x9d\x91" \ "\xe9\x81\x9c" \ "\xe4\xbb\x96" \ "\xe5\xa4\x9a" \ "\xe5\xa4\xaa" \ "\xe6\xb1\xb0" \ "\xe8\xa9\x91" \ "\xe5\x94\xbe" \ "\xe5\xa0\x95" \ "\xe5\xa6\xa5" \ "\xe6\x83\xb0" \ "\xe6\x89\x93" \ "\xe6\x9f\x81" \ "\xe8\x88\xb5" \ "\xe6\xa5\x95" \ "\xe9\x99\x80" \ "\xe9\xa7\x84" \ "\xe9\xa8\xa8" \ "\xe4\xbd\x93" \ "\xe5\xa0\x86" \ "\xe5\xaf\xbe" \ "\xe8\x80\x90" \ "\xe5\xb2\xb1" \ "\xe5\xb8\xaf" \ "\xe5\xbe\x85" \ "\xe6\x80\xa0" \ "\xe6\x85\x8b" \ "\xe6\x88\xb4" \ "\xe6\x9b\xbf" \ "\xe6\xb3\xb0" \ "\xe6\xbb\x9e" \ "\xe8\x83\x8e" \ "\xe8\x85\xbf" \ "\xe8\x8b\x94" \ "\xe8\xa2\x8b" \ "\xe8\xb2\xb8" \ "\xe9\x80\x80" \ "\xe9\x80\xae" \ "\xe9\x9a\x8a" \ "\xe9\xbb\x9b" \ "\xe9\xaf\x9b" \ "\xe4\xbb\xa3" \ "\xe5\x8f\xb0" \ "\xe5\xa4\xa7" \ "\xe7\xac\xac" \ "\xe9\x86\x8d" \ "\xe9\xa1\x8c" \ "\xe9\xb7\xb9" \ "\xe6\xbb\x9d" \ "\xe7\x80\xa7" \ "\xe5\x8d\x93" \ "\xe5\x95\x84" \ "\xe5\xae\x85" \ "\xe6\x89\x98" \ "\xe6\x8a\x9e" \ "\xe6\x8b\x93" \ "\xe6\xb2\xa2" \ "\xe6\xbf\xaf" \ "\xe7\x90\xa2" \ "\xe8\xa8\x97" \ "\xe9\x90\xb8" \ "\xe6\xbf\x81" \ "\xe8\xab\xbe" \ "\xe8\x8c\xb8" \ "\xe5\x87\xa7" \ "\xe8\x9b\xb8" \ "\xe5\x8f\xaa" \ "\xe5\x8f\xa9" \ "\xe4\xbd\x86" \ "\xe9\x81\x94" \ "\xe8\xbe\xb0" \ "\xe5\xa5\xaa" \ "\xe8\x84\xb1" \ "\xe5\xb7\xbd" \ "\xe7\xab\xaa" \ "\xe8\xbe\xbf" \ "\xe6\xa3\x9a" \ "\xe8\xb0\xb7" \ "\xe7\x8b\xb8" \ "\xe9\xb1\x88" \ "\xe6\xa8\xbd" \ "\xe8\xaa\xb0" \ "\xe4\xb8\xb9" \ "\xe5\x8d\x98" \ "\xe5\x98\x86" \ "\xe5\x9d\xa6" \ "\xe6\x8b\x85" \ "\xe6\x8e\xa2" \ "\xe6\x97\xa6" \ "\xe6\xad\x8e" \ "\xe6\xb7\xa1" \ "\xe6\xb9\x9b" \ "\xe7\x82\xad" \ "\xe7\x9f\xad" \ "\xe7\xab\xaf" \ "\xe7\xae\xaa" \ "\xe7\xb6\xbb" \ "\xe8\x80\xbd" \ "\xe8\x83\x86" \ "\xe8\x9b\x8b" \ "\xe8\xaa\x95" \ "\xe9\x8d\x9b" \ "\xe5\x9b\xa3" \ "\xe5\xa3\x87" \ "\xe5\xbc\xbe" \ "\xe6\x96\xad" \ "\xe6\x9a\x96" \ "\xe6\xaa\x80" \ "\xe6\xae\xb5" \ "\xe7\x94\xb7" \ "\xe8\xab\x87" \ "\xe5\x80\xa4" \ "\xe7\x9f\xa5" \ "\xe5\x9c\xb0" \ "\xe5\xbc\x9b" \ "\xe6\x81\xa5" \ "\xe6\x99\xba" \ "\xe6\xb1\xa0" \ "\xe7\x97\xb4" \ "\xe7\xa8\x9a" \ "\xe7\xbd\xae" \ "\xe8\x87\xb4" \ "\xe8\x9c\x98" \ "\xe9\x81\x85" \ "\xe9\xa6\xb3" \ "\xe7\xaf\x89" \ "\xe7\x95\x9c" \ "\xe7\xab\xb9" \ "\xe7\xad\x91" \ "\xe8\x93\x84" \ "\xe9\x80\x90" \ "\xe7\xa7\xa9" \ "\xe7\xaa\x92" \ "\xe8\x8c\xb6" \ "\xe5\xab\xa1" \ "\xe7\x9d\x80" \ "\xe4\xb8\xad" \ "\xe4\xbb\xb2" \ "\xe5\xae\x99" \ "\xe5\xbf\xa0" \ "\xe6\x8a\xbd" \ "\xe6\x98\xbc" \ "\xe6\x9f\xb1" \ "\xe6\xb3\xa8" \ "\xe8\x99\xab" \ "\xe8\xa1\xb7" \ "\xe8\xa8\xbb" \ "\xe9\x85\x8e" \ "\xe9\x8b\xb3" \ "\xe9\xa7\x90" \ "\xe6\xa8\x97" \ "\xe7\x80\xa6" \ "\xe7\x8c\xaa" \ "\xe8\x8b\xa7" \ "\xe8\x91\x97" \ "\xe8\xb2\xaf" \ "\xe4\xb8\x81" \ "\xe5\x85\x86" \ "\xe5\x87\x8b" \ "\xe5\x96\x8b" \ "\xe5\xaf\xb5" \ "\xe5\xb8\x96" \ "\xe5\xb8\xb3" \ "\xe5\xba\x81" \ "\xe5\xbc\x94" \ "\xe5\xbc\xb5" \ "\xe5\xbd\xab" \ "\xe5\xbe\xb4" \ "\xe6\x87\xb2" \ "\xe6\x8c\x91" \ "\xe6\x9a\xa2" \ "\xe6\x9c\x9d" \ "\xe6\xbd\xae" \ "\xe7\x89\x92" \ "\xe7\x94\xba" \ "\xe7\x9c\xba" \ "\xe8\x81\xb4" \ "\xe8\x84\xb9" \ "\xe8\x85\xb8" \ "\xe8\x9d\xb6" \ "\xe8\xaa\xbf" \ "\xe8\xab\x9c" \ "\xe8\xb6\x85" \ "\xe8\xb7\xb3" \ "\xe9\x8a\x9a" \ "\xe9\x95\xb7" \ "\xe9\xa0\x82" \ "\xe9\xb3\xa5" \ "\xe5\x8b\x85" \ "\xe6\x8d\x97" \ "\xe7\x9b\xb4" \ "\xe6\x9c\x95" \ "\xe6\xb2\x88" \ "\xe7\x8f\x8d" \ "\xe8\xb3\x83" \ "\xe9\x8e\xae" \ "\xe9\x99\xb3" \ "\xe6\xb4\xa5" \ "\xe5\xa2\x9c" \ "\xe6\xa4\x8e" \ "\xe6\xa7\x8c" \ "\xe8\xbf\xbd" \ "\xe9\x8e\x9a" \ "\xe7\x97\x9b" \ "\xe9\x80\x9a" \ "\xe5\xa1\x9a" \ "\xe6\xa0\x82" \ "\xe6\x8e\xb4" \ "\xe6\xa7\xbb" \ "\xe4\xbd\x83" \ "\xe6\xbc\xac" \ "\xe6\x9f\x98" \ "\xe8\xbe\xbb" \ "\xe8\x94\xa6" \ "\xe7\xb6\xb4" \ "\xe9\x8d\x94" \ "\xe6\xa4\xbf" \ "\xe6\xbd\xb0" \ "\xe5\x9d\xaa" \ "\xe5\xa3\xb7" \ "\xe5\xac\xac" \ "\xe7\xb4\xac" \ "\xe7\x88\xaa" \ "\xe5\x90\x8a" \ "\xe9\x87\xa3" \ "\xe9\xb6\xb4" \ "\xe4\xba\xad" \ "\xe4\xbd\x8e" \ "\xe5\x81\x9c" \ "\xe5\x81\xb5" \ "\xe5\x89\x83" \ "\xe8\xb2\x9e" \ "\xe5\x91\x88" \ "\xe5\xa0\xa4" \ "\xe5\xae\x9a" \ "\xe5\xb8\x9d" \ "\xe5\xba\x95" \ "\xe5\xba\xad" \ "\xe5\xbb\xb7" \ "\xe5\xbc\x9f" \ "\xe6\x82\x8c" \ "\xe6\x8a\xb5" \ "\xe6\x8c\xba" \ "\xe6\x8f\x90" \ "\xe6\xa2\xaf" \ "\xe6\xb1\x80" \ "\xe7\xa2\x87" \ "\xe7\xa6\x8e" \ "\xe7\xa8\x8b" \ "\xe7\xb7\xa0" \ "\xe8\x89\x87" \ "\xe8\xa8\x82" \ "\xe8\xab\xa6" \ "\xe8\xb9\x84" \ "\xe9\x80\x93" \ "\xe9\x82\xb8" \ "\xe9\x84\xad" \ "\xe9\x87\x98" \ "\xe9\xbc\x8e" \ "\xe6\xb3\xa5" \ "\xe6\x91\x98" \ "\xe6\x93\xa2" \ "\xe6\x95\xb5" \ "\xe6\xbb\xb4" \ "\xe7\x9a\x84" \ "\xe7\xac\x9b" \ "\xe9\x81\xa9" \ "\xe9\x8f\x91" \ "\xe6\xba\xba" \ "\xe5\x93\xb2" \ "\xe5\xbe\xb9" \ "\xe6\x92\xa4" \ "\xe8\xbd\x8d" \ "\xe8\xbf\xad" \ "\xe9\x89\x84" \ "\xe5\x85\xb8" \ "\xe5\xa1\xab" \ "\xe5\xa4\xa9" \ "\xe5\xb1\x95" \ "\xe5\xba\x97" \ "\xe6\xb7\xbb" \ "\xe7\xba\x8f" \ "\xe7\x94\x9c" \ "\xe8\xb2\xbc" \ "\xe8\xbb\xa2" \ "\xe9\xa1\x9b" \ "\xe7\x82\xb9" \ "\xe4\xbc\x9d" \ "\xe6\xae\xbf" \ "\xe6\xbe\xb1" \ "\xe7\x94\xb0" \ "\xe9\x9b\xbb" \ "\xe5\x85\x8e" \ "\xe5\x90\x90" \ "\xe5\xa0\xb5" \ "\xe5\xa1\x97" \ "\xe5\xa6\xac" \ "\xe5\xb1\xa0" \ "\xe5\xbe\x92" \ "\xe6\x96\x97" \ "\xe6\x9d\x9c" \ "\xe6\xb8\xa1" \ "\xe7\x99\xbb" \ "\xe8\x8f\x9f" \ "\xe8\xb3\xad" \ "\xe9\x80\x94" \ "\xe9\x83\xbd" \ "\xe9\x8d\x8d" \ "\xe7\xa0\xa5" \ "\xe7\xa0\xba" \ "\xe5\x8a\xaa" \ "\xe5\xba\xa6" \ "\xe5\x9c\x9f" \ "\xe5\xa5\xb4" \ "\xe6\x80\x92" \ "\xe5\x80\x92" \ "\xe5\x85\x9a" \ "\xe5\x86\xac" \ "\xe5\x87\x8d" \ "\xe5\x88\x80" \ "\xe5\x94\x90" \ "\xe5\xa1\x94" \ "\xe5\xa1\x98" \ "\xe5\xa5\x97" \ "\xe5\xae\x95" \ "\xe5\xb3\xb6" \ "\xe5\xb6\x8b" \ "\xe6\x82\xbc" \ "\xe6\x8a\x95" \ "\xe6\x90\xad" \ "\xe6\x9d\xb1" \ "\xe6\xa1\x83" \ "\xe6\xa2\xbc" \ "\xe6\xa3\x9f" \ "\xe7\x9b\x97" \ "\xe6\xb7\x98" \ "\xe6\xb9\xaf" \ "\xe6\xb6\x9b" \ "\xe7\x81\xaf" \ "\xe7\x87\x88" \ "\xe5\xbd\x93" \ "\xe7\x97\x98" \ "\xe7\xa5\xb7" \ "\xe7\xad\x89" \ "\xe7\xad\x94" \ "\xe7\xad\x92" \ "\xe7\xb3\x96" \ "\xe7\xb5\xb1" \ "\xe5\x88\xb0" \ "\xe8\x91\xa3" \ "\xe8\x95\xa9" \ "\xe8\x97\xa4" \ "\xe8\xa8\x8e" \ "\xe8\xac\x84" \ "\xe8\xb1\x86" \ "\xe8\xb8\x8f" \ "\xe9\x80\x83" \ "\xe9\x80\x8f" \ "\xe9\x90\x99" \ "\xe9\x99\xb6" \ "\xe9\xa0\xad" \ "\xe9\xa8\xb0" \ "\xe9\x97\x98" \ "\xe5\x83\x8d" \ "\xe5\x8b\x95" \ "\xe5\x90\x8c" \ "\xe5\xa0\x82" \ "\xe5\xb0\x8e" \ "\xe6\x86\xa7" \ "\xe6\x92\x9e" \ "\xe6\xb4\x9e" \ "\xe7\x9e\xb3" \ "\xe7\xab\xa5" \ "\xe8\x83\xb4" \ "\xe8\x90\x84" \ "\xe9\x81\x93" \ "\xe9\x8a\x85" \ "\xe5\xb3\xa0" \ "\xe9\xb4\x87" \ "\xe5\x8c\xbf" \ "\xe5\xbe\x97" \ "\xe5\xbe\xb3" \ "\xe6\xb6\x9c" \ "\xe7\x89\xb9" \ "\xe7\x9d\xa3" \ "\xe7\xa6\xbf" \ "\xe7\xaf\xa4" \ "\xe6\xaf\x92" \ "\xe7\x8b\xac" \ "\xe8\xaa\xad" \ "\xe6\xa0\x83" \ "\xe6\xa9\xa1" \ "\xe5\x87\xb8" \ "\xe7\xaa\x81" \ "\xe6\xa4\xb4" \ "\xe5\xb1\x8a" \ "\xe9\xb3\xb6" \ "\xe8\x8b\xab" \ "\xe5\xaf\x85" \ "\xe9\x85\x89" \ "\xe7\x80\x9e" \ "\xe5\x99\xb8" \ "\xe5\xb1\xaf" \ "\xe6\x83\x87" \ "\xe6\x95\xa6" \ "\xe6\xb2\x8c" \ "\xe8\xb1\x9a" \ "\xe9\x81\x81" \ "\xe9\xa0\x93" \ "\xe5\x91\x91" \ "\xe6\x9b\x87" \ "\xe9\x88\x8d" \ "\xe5\xa5\x88" \ "\xe9\x82\xa3" \ "\xe5\x86\x85" \ "\xe4\xb9\x8d" \ "\xe5\x87\xaa" \ "\xe8\x96\x99" \ "\xe8\xac\x8e" \ "\xe7\x81\x98" \ "\xe6\x8d\xba" \ "\xe9\x8d\x8b" \ "\xe6\xa5\xa2" \ "\xe9\xa6\xb4" \ "\xe7\xb8\x84" \ "\xe7\x95\xb7" \ "\xe5\x8d\x97" \ "\xe6\xa5\xa0" \ "\xe8\xbb\x9f" \ "\xe9\x9b\xa3" \ "\xe6\xb1\x9d" \ "\xe4\xba\x8c" \ "\xe5\xb0\xbc" \ "\xe5\xbc\x90" \ "\xe8\xbf\xa9" \ "\xe5\x8c\x82" \ "\xe8\xb3\x91" \ "\xe8\x82\x89" \ "\xe8\x99\xb9" \ "\xe5\xbb\xbf" \ "\xe6\x97\xa5" \ "\xe4\xb9\xb3" \ "\xe5\x85\xa5" \ "\xe5\xa6\x82" \ "\xe5\xb0\xbf" \ "\xe9\x9f\xae" \ "\xe4\xbb\xbb" \ "\xe5\xa6\x8a" \ "\xe5\xbf\x8d" \ "\xe8\xaa\x8d" \ "\xe6\xbf\xa1" \ "\xe7\xa6\xb0" \ "\xe7\xa5\xa2" \ "\xe5\xaf\xa7" \ "\xe8\x91\xb1" \ "\xe7\x8c\xab" \ "\xe7\x86\xb1" \ "\xe5\xb9\xb4" \ "\xe5\xbf\xb5" \ "\xe6\x8d\xbb" \ "\xe6\x92\x9a" \ "\xe7\x87\x83" \ "\xe7\xb2\x98" \ "\xe4\xb9\x83" \ "\xe5\xbb\xbc" \ "\xe4\xb9\x8b" \ "\xe5\x9f\x9c" \ "\xe5\x9a\xa2" \ "\xe6\x82\xa9" \ "\xe6\xbf\x83" \ "\xe7\xb4\x8d" \ "\xe8\x83\xbd" \ "\xe8\x84\xb3" \ "\xe8\x86\xbf" \ "\xe8\xbe\xb2" \ "\xe8\xa6\x97" \ "\xe8\x9a\xa4" \ "\xe5\xb7\xb4" \ "\xe6\x8a\x8a" \ "\xe6\x92\xad" \ "\xe8\xa6\x87" \ "\xe6\x9d\xb7" \ "\xe6\xb3\xa2" \ "\xe6\xb4\xbe" \ "\xe7\x90\xb6" \ "\xe7\xa0\xb4" \ "\xe5\xa9\x86" \ "\xe7\xbd\xb5" \ "\xe8\x8a\xad" \ "\xe9\xa6\xac" \ "\xe4\xbf\xb3" \ "\xe5\xbb\x83" \ "\xe6\x8b\x9d" \ "\xe6\x8e\x92" \ "\xe6\x95\x97" \ "\xe6\x9d\xaf" \ "\xe7\x9b\x83" \ "\xe7\x89\x8c" \ "\xe8\x83\x8c" \ "\xe8\x82\xba" \ "\xe8\xbc\xa9" \ "\xe9\x85\x8d" \ "\xe5\x80\x8d" \ "\xe5\x9f\xb9" \ "\xe5\xaa\x92" \ "\xe6\xa2\x85" \ "\xe6\xa5\xb3" \ "\xe7\x85\xa4" \ "\xe7\x8b\xbd" \ "\xe8\xb2\xb7" \ "\xe5\xa3\xb2" \ "\xe8\xb3\xa0" \ "\xe9\x99\xaa" \ "\xe9\x80\x99" \ "\xe8\x9d\xbf" \ "\xe7\xa7\xa4" \ "\xe7\x9f\xa7" \ "\xe8\x90\xa9" \ "\xe4\xbc\xaf" \ "\xe5\x89\xa5" \ "\xe5\x8d\x9a" \ "\xe6\x8b\x8d" \ "\xe6\x9f\x8f" \ "\xe6\xb3\x8a" \ "\xe7\x99\xbd" \ "\xe7\xae\x94" \ "\xe7\xb2\x95" \ "\xe8\x88\xb6" \ "\xe8\x96\x84" \ "\xe8\xbf\xab" \ "\xe6\x9b\x9d" \ "\xe6\xbc\xa0" \ "\xe7\x88\x86" \ "\xe7\xb8\x9b" \ "\xe8\x8e\xab" \ "\xe9\xa7\x81" \ "\xe9\xba\xa6" \ "\xe5\x87\xbd" \ "\xe7\xae\xb1" \ "\xe7\xa1\xb2" \ "\xe7\xae\xb8" \ "\xe8\x82\x87" \ "\xe7\xad\x88" \ "\xe6\xab\xa8" \ "\xe5\xb9\xa1" \ "\xe8\x82\x8c" \ "\xe7\x95\x91" \ "\xe7\x95\xa0" \ "\xe5\x85\xab" \ "\xe9\x89\xa2" \ "\xe6\xba\x8c" \ "\xe7\x99\xba" \ "\xe9\x86\x97" \ "\xe9\xab\xaa" \ "\xe4\xbc\x90" \ "\xe7\xbd\xb0" \ "\xe6\x8a\x9c" \ "\xe7\xad\x8f" \ "\xe9\x96\xa5" \ "\xe9\xb3\xa9" \ "\xe5\x99\xba" \ "\xe5\xa1\x99" \ "\xe8\x9b\xa4" \ "\xe9\x9a\xbc" \ "\xe4\xbc\xb4" \ "\xe5\x88\xa4" \ "\xe5\x8d\x8a" \ "\xe5\x8f\x8d" \ "\xe5\x8f\x9b" \ "\xe5\xb8\x86" \ "\xe6\x90\xac" \ "\xe6\x96\x91" \ "\xe6\x9d\xbf" \ "\xe6\xb0\xbe" \ "\xe6\xb1\x8e" \ "\xe7\x89\x88" \ "\xe7\x8a\xaf" \ "\xe7\x8f\xad" \ "\xe7\x95\x94" \ "\xe7\xb9\x81" \ "\xe8\x88\xac" \ "\xe8\x97\xa9" \ "\xe8\xb2\xa9" \ "\xe7\xaf\x84" \ "\xe9\x87\x86" \ "\xe7\x85\xa9" \ "\xe9\xa0\x92" \ "\xe9\xa3\xaf" \ "\xe6\x8c\xbd" \ "\xe6\x99\xa9" \ "\xe7\x95\xaa" \ "\xe7\x9b\xa4" \ "\xe7\xa3\x90" \ "\xe8\x95\x83" \ "\xe8\x9b\xae" \ "\xe5\x8c\xaa" \ "\xe5\x8d\x91" \ "\xe5\x90\xa6" \ "\xe5\xa6\x83" \ "\xe5\xba\x87" \ "\xe5\xbd\xbc" \ "\xe6\x82\xb2" \ "\xe6\x89\x89" \ "\xe6\x89\xb9" \ "\xe6\x8a\xab" \ "\xe6\x96\x90" \ "\xe6\xaf\x94" \ "\xe6\xb3\x8c" \ "\xe7\x96\xb2" \ "\xe7\x9a\xae" \ "\xe7\xa2\x91" \ "\xe7\xa7\x98" \ "\xe7\xb7\x8b" \ "\xe7\xbd\xb7" \ "\xe8\x82\xa5" \ "\xe8\xa2\xab" \ "\xe8\xaa\xb9" \ "\xe8\xb2\xbb" \ "\xe9\x81\xbf" \ "\xe9\x9d\x9e" \ "\xe9\xa3\x9b" \ "\xe6\xa8\x8b" \ "\xe7\xb0\xb8" \ "\xe5\x82\x99" \ "\xe5\xb0\xbe" \ "\xe5\xbe\xae" \ "\xe6\x9e\x87" \ "\xe6\xaf\x98" \ "\xe7\x90\xb5" \ "\xe7\x9c\x89" \ "\xe7\xbe\x8e" \ "\xe9\xbc\xbb" \ "\xe6\x9f\x8a" \ "\xe7\xa8\x97" \ "\xe5\x8c\xb9" \ "\xe7\x96\x8b" \ "\xe9\xab\xad" \ "\xe5\xbd\xa6" \ "\xe8\x86\x9d" \ "\xe8\x8f\xb1" \ "\xe8\x82\x98" \ "\xe5\xbc\xbc" \ "\xe5\xbf\x85" \ "\xe7\x95\xa2" \ "\xe7\xad\x86" \ "\xe9\x80\xbc" \ "\xe6\xa1\xa7" \ "\xe5\xa7\xab" \ "\xe5\xaa\x9b" \ "\xe7\xb4\x90" \ "\xe7\x99\xbe" \ "\xe8\xac\xac" \ "\xe4\xbf\xb5" \ "\xe5\xbd\xaa" \ "\xe6\xa8\x99" \ "\xe6\xb0\xb7" \ "\xe6\xbc\x82" \ "\xe7\x93\xa2" \ "\xe7\xa5\xa8" \ "\xe8\xa1\xa8" \ "\xe8\xa9\x95" \ "\xe8\xb1\xb9" \ "\xe5\xbb\x9f" \ "\xe6\x8f\x8f" \ "\xe7\x97\x85" \ "\xe7\xa7\x92" \ "\xe8\x8b\x97" \ "\xe9\x8c\xa8" \ "\xe9\x8b\xb2" \ "\xe8\x92\x9c" \ "\xe8\x9b\xad" \ "\xe9\xb0\xad" \ "\xe5\x93\x81" \ "\xe5\xbd\xac" \ "\xe6\x96\x8c" \ "\xe6\xb5\x9c" \ "\xe7\x80\x95" \ "\xe8\xb2\xa7" \ "\xe8\xb3\x93" \ "\xe9\xa0\xbb" \ "\xe6\x95\x8f" \ "\xe7\x93\xb6" \ "\xe4\xb8\x8d" \ "\xe4\xbb\x98" \ "\xe5\x9f\xa0" \ "\xe5\xa4\xab" \ "\xe5\xa9\xa6" \ "\xe5\xaf\x8c" \ "\xe5\x86\xa8" \ "\xe5\xb8\x83" \ "\xe5\xba\x9c" \ "\xe6\x80\x96" \ "\xe6\x89\xb6" \ "\xe6\x95\xb7" \ "\xe6\x96\xa7" \ "\xe6\x99\xae" \ "\xe6\xb5\xae" \ "\xe7\x88\xb6" \ "\xe7\xac\xa6" \ "\xe8\x85\x90" \ "\xe8\x86\x9a" \ "\xe8\x8a\x99" \ "\xe8\xad\x9c" \ "\xe8\xb2\xa0" \ "\xe8\xb3\xa6" \ "\xe8\xb5\xb4" \ "\xe9\x98\x9c" \ "\xe9\x99\x84" \ "\xe4\xbe\xae" \ "\xe6\x92\xab" \ "\xe6\xad\xa6" \ "\xe8\x88\x9e" \ "\xe8\x91\xa1" \ "\xe8\x95\xaa" \ "\xe9\x83\xa8" \ "\xe5\xb0\x81" \ "\xe6\xa5\x93" \ "\xe9\xa2\xa8" \ "\xe8\x91\xba" \ "\xe8\x95\x97" \ "\xe4\xbc\x8f" \ "\xe5\x89\xaf" \ "\xe5\xbe\xa9" \ "\xe5\xb9\x85" \ "\xe6\x9c\x8d" \ "\xe7\xa6\x8f" \ "\xe8\x85\xb9" \ "\xe8\xa4\x87" \ "\xe8\xa6\x86" \ "\xe6\xb7\xb5" \ "\xe5\xbc\x97" \ "\xe6\x89\x95" \ "\xe6\xb2\xb8" \ "\xe4\xbb\x8f" \ "\xe7\x89\xa9" \ "\xe9\xae\x92" \ "\xe5\x88\x86" \ "\xe5\x90\xbb" \ "\xe5\x99\xb4" \ "\xe5\xa2\xb3" \ "\xe6\x86\xa4" \ "\xe6\x89\xae" \ "\xe7\x84\x9a" \ "\xe5\xa5\xae" \ "\xe7\xb2\x89" \ "\xe7\xb3\x9e" \ "\xe7\xb4\x9b" \ "\xe9\x9b\xb0" \ "\xe6\x96\x87" \ "\xe8\x81\x9e" \ "\xe4\xb8\x99" \ "\xe4\xbd\xb5" \ "\xe5\x85\xb5" \ "\xe5\xa1\x80" \ "\xe5\xb9\xa3" \ "\xe5\xb9\xb3" \ "\xe5\xbc\x8a" \ "\xe6\x9f\x84" \ "\xe4\xb8\xa6" \ "\xe8\x94\xbd" \ "\xe9\x96\x89" \ "\xe9\x99\x9b" \ "\xe7\xb1\xb3" \ "\xe9\xa0\x81" \ "\xe5\x83\xbb" \ "\xe5\xa3\x81" \ "\xe7\x99\x96" \ "\xe7\xa2\xa7" \ "\xe5\x88\xa5" \ "\xe7\x9e\xa5" \ "\xe8\x94\x91" \ "\xe7\xae\x86" \ "\xe5\x81\x8f" \ "\xe5\xa4\x89" \ "\xe7\x89\x87" \ "\xe7\xaf\x87" \ "\xe7\xb7\xa8" \ "\xe8\xbe\xba" \ "\xe8\xbf\x94" \ "\xe9\x81\x8d" \ "\xe4\xbe\xbf" \ "\xe5\x8b\x89" \ "\xe5\xa8\xa9" \ "\xe5\xbc\x81" \ "\xe9\x9e\xad" \ "\xe4\xbf\x9d" \ "\xe8\x88\x97" \ "\xe9\x8b\xaa" \ "\xe5\x9c\x83" \ "\xe6\x8d\x95" \ "\xe6\xad\xa9" \ "\xe7\x94\xab" \ "\xe8\xa3\x9c" \ "\xe8\xbc\x94" \ "\xe7\xa9\x82" \ "\xe5\x8b\x9f" \ "\xe5\xa2\x93" \ "\xe6\x85\x95" \ "\xe6\x88\x8a" \ "\xe6\x9a\xae" \ "\xe6\xaf\x8d" \ "\xe7\xb0\xbf" \ "\xe8\x8f\xa9" \ "\xe5\x80\xa3" \ "\xe4\xbf\xb8" \ "\xe5\x8c\x85" \ "\xe5\x91\x86" \ "\xe5\xa0\xb1" \ "\xe5\xa5\x89" \ "\xe5\xae\x9d" \ "\xe5\xb3\xb0" \ "\xe5\xb3\xaf" \ "\xe5\xb4\xa9" \ "\xe5\xba\x96" \ "\xe6\x8a\xb1" \ "\xe6\x8d\xa7" \ "\xe6\x94\xbe" \ "\xe6\x96\xb9" \ "\xe6\x9c\x8b" \ "\xe6\xb3\x95" \ "\xe6\xb3\xa1" \ "\xe7\x83\xb9" \ "\xe7\xa0\xb2" \ "\xe7\xb8\xab" \ "\xe8\x83\x9e" \ "\xe8\x8a\xb3" \ "\xe8\x90\x8c" \ "\xe8\x93\xac" \ "\xe8\x9c\x82" \ "\xe8\xa4\x92" \ "\xe8\xa8\xaa" \ "\xe8\xb1\x8a" \ "\xe9\x82\xa6" \ "\xe9\x8b\x92" \ "\xe9\xa3\xbd" \ "\xe9\xb3\xb3" \ "\xe9\xb5\xac" \ "\xe4\xb9\x8f" \ "\xe4\xba\xa1" \ "\xe5\x82\x8d" \ "\xe5\x89\x96" \ "\xe5\x9d\x8a" \ "\xe5\xa6\xa8" \ "\xe5\xb8\xbd" \ "\xe5\xbf\x98" \ "\xe5\xbf\x99" \ "\xe6\x88\xbf" \ "\xe6\x9a\xb4" \ "\xe6\x9c\x9b" \ "\xe6\x9f\x90" \ "\xe6\xa3\x92" \ "\xe5\x86\x92" \ "\xe7\xb4\xa1" \ "\xe8\x82\xaa" \ "\xe8\x86\xa8" \ "\xe8\xac\x80" \ "\xe8\xb2\x8c" \ "\xe8\xb2\xbf" \ "\xe9\x89\xbe" \ "\xe9\x98\xb2" \ "\xe5\x90\xa0" \ "\xe9\xa0\xac" \ "\xe5\x8c\x97" \ "\xe5\x83\x95" \ "\xe5\x8d\x9c" \ "\xe5\xa2\xa8" \ "\xe6\x92\xb2" \ "\xe6\x9c\xb4" \ "\xe7\x89\xa7" \ "\xe7\x9d\xa6" \ "\xe7\xa9\x86" \ "\xe9\x87\xa6" \ "\xe5\x8b\x83" \ "\xe6\xb2\xa1" \ "\xe6\xae\x86" \ "\xe5\xa0\x80" \ "\xe5\xb9\x8c" \ "\xe5\xa5\x94" \ "\xe6\x9c\xac" \ "\xe7\xbf\xbb" \ "\xe5\x87\xa1" \ "\xe7\x9b\x86" \ "\xe6\x91\xa9" \ "\xe7\xa3\xa8" \ "\xe9\xad\x94" \ "\xe9\xba\xbb" \ "\xe5\x9f\x8b" \ "\xe5\xa6\xb9" \ "\xe6\x98\xa7" \ "\xe6\x9e\x9a" \ "\xe6\xaf\x8e" \ "\xe5\x93\xa9" \ "\xe6\xa7\x99" \ "\xe5\xb9\x95" \ "\xe8\x86\x9c" \ "\xe6\x9e\x95" \ "\xe9\xae\xaa" \ "\xe6\x9f\xbe" \ "\xe9\xb1\x92" \ "\xe6\xa1\x9d" \ "\xe4\xba\xa6" \ "\xe4\xbf\xa3" \ "\xe5\x8f\x88" \ "\xe6\x8a\xb9" \ "\xe6\x9c\xab" \ "\xe6\xb2\xab" \ "\xe8\xbf\x84" \ "\xe4\xbe\xad" \ "\xe7\xb9\xad" \ "\xe9\xba\xbf" \ "\xe4\xb8\x87" \ "\xe6\x85\xa2" \ "\xe6\xba\x80" \ "\xe6\xbc\xab" \ "\xe8\x94\x93" \ "\xe5\x91\xb3" \ "\xe6\x9c\xaa" \ "\xe9\xad\x85" \ "\xe5\xb7\xb3" \ "\xe7\xae\x95" \ "\xe5\xb2\xac" \ "\xe5\xaf\x86" \ "\xe8\x9c\x9c" \ "\xe6\xb9\x8a" \ "\xe8\x93\x91" \ "\xe7\xa8\x94" \ "\xe8\x84\x88" \ "\xe5\xa6\x99" \ "\xe7\xb2\x8d" \ "\xe6\xb0\x91" \ "\xe7\x9c\xa0" \ "\xe5\x8b\x99" \ "\xe5\xa4\xa2" \ "\xe7\x84\xa1" \ "\xe7\x89\x9f" \ "\xe7\x9f\x9b" \ "\xe9\x9c\xa7" \ "\xe9\xb5\xa1" \ "\xe6\xa4\x8b" \ "\xe5\xa9\xbf" \ "\xe5\xa8\x98" \ "\xe5\x86\xa5" \ "\xe5\x90\x8d" \ "\xe5\x91\xbd" \ "\xe6\x98\x8e" \ "\xe7\x9b\x9f" \ "\xe8\xbf\xb7" \ "\xe9\x8a\x98" \ "\xe9\xb3\xb4" \ "\xe5\xa7\xaa" \ "\xe7\x89\x9d" \ "\xe6\xbb\x85" \ "\xe5\x85\x8d" \ "\xe6\xa3\x89" \ "\xe7\xb6\xbf" \ "\xe7\xb7\xac" \ "\xe9\x9d\xa2" \ "\xe9\xba\xba" \ "\xe6\x91\xb8" \ "\xe6\xa8\xa1" \ "\xe8\x8c\x82" \ "\xe5\xa6\x84" \ "\xe5\xad\x9f" \ "\xe6\xaf\x9b" \ "\xe7\x8c\x9b" \ "\xe7\x9b\xb2" \ "\xe7\xb6\xb2" \ "\xe8\x80\x97" \ "\xe8\x92\x99" \ "\xe5\x84\xb2" \ "\xe6\x9c\xa8" \ "\xe9\xbb\x99" \ "\xe7\x9b\xae" \ "\xe6\x9d\xa2" \ "\xe5\x8b\xbf" \ "\xe9\xa4\x85" \ "\xe5\xb0\xa4" \ "\xe6\x88\xbb" \ "\xe7\xb1\xbe" \ "\xe8\xb2\xb0" \ "\xe5\x95\x8f" \ "\xe6\x82\xb6" \ "\xe7\xb4\x8b" \ "\xe9\x96\x80" \ "\xe5\x8c\x81" \ "\xe4\xb9\x9f" \ "\xe5\x86\xb6" \ "\xe5\xa4\x9c" \ "\xe7\x88\xba" \ "\xe8\x80\xb6" \ "\xe9\x87\x8e" \ "\xe5\xbc\xa5" \ "\xe7\x9f\xa2" \ "\xe5\x8e\x84" \ "\xe5\xbd\xb9" \ "\xe7\xb4\x84" \ "\xe8\x96\xac" \ "\xe8\xa8\xb3" \ "\xe8\xba\x8d" \ "\xe9\x9d\x96" \ "\xe6\x9f\xb3" \ "\xe8\x96\xae" \ "\xe9\x91\x93" \ "\xe6\x84\x89" \ "\xe6\x84\x88" \ "\xe6\xb2\xb9" \ "\xe7\x99\x92" \ "\xe8\xab\xad" \ "\xe8\xbc\xb8" \ "\xe5\x94\xaf" \ "\xe4\xbd\x91" \ "\xe5\x84\xaa" \ "\xe5\x8b\x87" \ "\xe5\x8f\x8b" \ "\xe5\xae\xa5" \ "\xe5\xb9\xbd" \ "\xe6\x82\xa0" \ "\xe6\x86\x82" \ "\xe6\x8f\x96" \ "\xe6\x9c\x89" \ "\xe6\x9f\x9a" \ "\xe6\xb9\xa7" \ "\xe6\xb6\x8c" \ "\xe7\x8c\xb6" \ "\xe7\x8c\xb7" \ "\xe7\x94\xb1" \ "\xe7\xa5\x90" \ "\xe8\xa3\x95" \ "\xe8\xaa\x98" \ "\xe9\x81\x8a" \ "\xe9\x82\x91" \ "\xe9\x83\xb5" \ "\xe9\x9b\x84" \ "\xe8\x9e\x8d" \ "\xe5\xa4\x95" \ "\xe4\xba\x88" \ "\xe4\xbd\x99" \ "\xe4\xb8\x8e" \ "\xe8\xaa\x89" \ "\xe8\xbc\xbf" \ "\xe9\xa0\x90" \ "\xe5\x82\xad" \ "\xe5\xb9\xbc" \ "\xe5\xa6\x96" \ "\xe5\xae\xb9" \ "\xe5\xba\xb8" \ "\xe6\x8f\x9a" \ "\xe6\x8f\xba" \ "\xe6\x93\x81" \ "\xe6\x9b\x9c" \ "\xe6\xa5\x8a" \ "\xe6\xa7\x98" \ "\xe6\xb4\x8b" \ "\xe6\xba\xb6" \ "\xe7\x86\x94" \ "\xe7\x94\xa8" \ "\xe7\xaa\xaf" \ "\xe7\xbe\x8a" \ "\xe8\x80\x80" \ "\xe8\x91\x89" \ "\xe8\x93\x89" \ "\xe8\xa6\x81" \ "\xe8\xac\xa1" \ "\xe8\xb8\x8a" \ "\xe9\x81\xa5" \ "\xe9\x99\xbd" \ "\xe9\xa4\x8a" \ "\xe6\x85\xbe" \ "\xe6\x8a\x91" \ "\xe6\xac\xb2" \ "\xe6\xb2\x83" \ "\xe6\xb5\xb4" \ "\xe7\xbf\x8c" \ "\xe7\xbf\xbc" \ "\xe6\xb7\x80" \ "\xe7\xbe\x85" \ "\xe8\x9e\xba" \ "\xe8\xa3\xb8" \ "\xe6\x9d\xa5" \ "\xe8\x8e\xb1" \ "\xe9\xa0\xbc" \ "\xe9\x9b\xb7" \ "\xe6\xb4\x9b" \ "\xe7\xb5\xa1" \ "\xe8\x90\xbd" \ "\xe9\x85\xaa" \ "\xe4\xb9\xb1" \ "\xe5\x8d\xb5" \ "\xe5\xb5\x90" \ "\xe6\xac\x84" \ "\xe6\xbf\xab" \ "\xe8\x97\x8d" \ "\xe8\x98\xad" \ "\xe8\xa6\xa7" \ "\xe5\x88\xa9" \ "\xe5\x90\x8f" \ "\xe5\xb1\xa5" \ "\xe6\x9d\x8e" \ "\xe6\xa2\xa8" \ "\xe7\x90\x86" \ "\xe7\x92\x83" \ "\xe7\x97\xa2" \ "\xe8\xa3\x8f" \ "\xe8\xa3\xa1" \ "\xe9\x87\x8c" \ "\xe9\x9b\xa2" \ "\xe9\x99\xb8" \ "\xe5\xbe\x8b" \ "\xe7\x8e\x87" \ "\xe7\xab\x8b" \ "\xe8\x91\x8e" \ "\xe6\x8e\xa0" \ "\xe7\x95\xa5" \ "\xe5\x8a\x89" \ "\xe6\xb5\x81" \ "\xe6\xba\x9c" \ "\xe7\x90\x89" \ "\xe7\x95\x99" \ "\xe7\xa1\xab" \ "\xe7\xb2\x92" \ "\xe9\x9a\x86" \ "\xe7\xab\x9c" \ "\xe9\xbe\x8d" \ "\xe4\xbe\xb6" \ "\xe6\x85\xae" \ "\xe6\x97\x85" \ "\xe8\x99\x9c" \ "\xe4\xba\x86" \ "\xe4\xba\xae" \ "\xe5\x83\x9a" \ "\xe4\xb8\xa1" \ "\xe5\x87\x8c" \ "\xe5\xaf\xae" \ "\xe6\x96\x99" \ "\xe6\xa2\x81" \ "\xe6\xb6\xbc" \ "\xe7\x8c\x9f" \ "\xe7\x99\x82" \ "\xe7\x9e\xad" \ "\xe7\xa8\x9c" \ "\xe7\xb3\xa7" \ "\xe8\x89\xaf" \ "\xe8\xab\x92" \ "\xe9\x81\xbc" \ "\xe9\x87\x8f" \ "\xe9\x99\xb5" \ "\xe9\xa0\x98" \ "\xe5\x8a\x9b" \ "\xe7\xb7\x91" \ "\xe5\x80\xab" \ "\xe5\x8e\x98" \ "\xe6\x9e\x97" \ "\xe6\xb7\x8b" \ "\xe7\x87\x90" \ "\xe7\x90\xb3" \ "\xe8\x87\xa8" \ "\xe8\xbc\xaa" \ "\xe9\x9a\xa3" \ "\xe9\xb1\x97" \ "\xe9\xba\x9f" \ "\xe7\x91\xa0" \ "\xe5\xa1\x81" \ "\xe6\xb6\x99" \ "\xe7\xb4\xaf" \ "\xe9\xa1\x9e" \ "\xe4\xbb\xa4" \ "\xe4\xbc\xb6" \ "\xe4\xbe\x8b" \ "\xe5\x86\xb7" \ "\xe5\x8a\xb1" \ "\xe5\xb6\xba" \ "\xe6\x80\x9c" \ "\xe7\x8e\xb2" \ "\xe7\xa4\xbc" \ "\xe8\x8b\x93" \ "\xe9\x88\xb4" \ "\xe9\x9a\xb7" \ "\xe9\x9b\xb6" \ "\xe9\x9c\x8a" \ "\xe9\xba\x97" \ "\xe9\xbd\xa2" \ "\xe6\x9a\xa6" \ "\xe6\xad\xb4" \ "\xe5\x88\x97" \ "\xe5\x8a\xa3" \ "\xe7\x83\x88" \ "\xe8\xa3\x82" \ "\xe5\xbb\x89" \ "\xe6\x81\x8b" \ "\xe6\x86\x90" \ "\xe6\xbc\xa3" \ "\xe7\x85\x89" \ "\xe7\xb0\xbe" \ "\xe7\xb7\xb4" \ "\xe8\x81\xaf" \ "\xe8\x93\xae" \ "\xe9\x80\xa3" \ "\xe9\x8c\xac" \ "\xe5\x91\x82" \ "\xe9\xad\xaf" \ "\xe6\xab\x93" \ "\xe7\x82\x89" \ "\xe8\xb3\x82" \ "\xe8\xb7\xaf" \ "\xe9\x9c\xb2" \ "\xe5\x8a\xb4" \ "\xe5\xa9\x81" \ "\xe5\xbb\x8a" \ "\xe5\xbc\x84" \ "\xe6\x9c\x97" \ "\xe6\xa5\xbc" \ "\xe6\xa6\x94" \ "\xe6\xb5\xaa" \ "\xe6\xbc\x8f" \ "\xe7\x89\xa2" \ "\xe7\x8b\xbc" \ "\xe7\xaf\xad" \ "\xe8\x80\x81" \ "\xe8\x81\xbe" \ "\xe8\x9d\x8b" \ "\xe9\x83\x8e" \ "\xe5\x85\xad" \ "\xe9\xba\x93" \ "\xe7\xa6\x84" \ "\xe8\x82\x8b" \ "\xe9\x8c\xb2" \ "\xe8\xab\x96" \ "\xe5\x80\xad" \ "\xe5\x92\x8c" \ "\xe8\xa9\xb1" \ "\xe6\xad\xaa" \ "\xe8\xb3\x84" \ "\xe8\x84\x87" \ "\xe6\x83\x91" \ "\xe6\x9e\xa0" \ "\xe9\xb7\xb2" \ "\xe4\xba\x99" \ "\xe4\xba\x98" \ "\xe9\xb0\x90" \ "\xe8\xa9\xab" \ "\xe8\x97\x81" \ "\xe8\x95\xa8" \ "\xe6\xa4\x80" \ "\xe6\xb9\xbe" \ "\xe7\xa2\x97" \ "\xe8\x85\x95" \ "\xe5\xbc\x8c" \ "\xe4\xb8\x90" \ "\xe4\xb8\x95" \ "\xe4\xb8\xaa" \ "\xe4\xb8\xb1" \ "\xe4\xb8\xb6" \ "\xe4\xb8\xbc" \ "\xe4\xb8\xbf" \ "\xe4\xb9\x82" \ "\xe4\xb9\x96" \ "\xe4\xb9\x98" \ "\xe4\xba\x82" \ "\xe4\xba\x85" \ "\xe8\xb1\xab" \ "\xe4\xba\x8a" \ "\xe8\x88\x92" \ "\xe5\xbc\x8d" \ "\xe4\xba\x8e" \ "\xe4\xba\x9e" \ "\xe4\xba\x9f" \ "\xe4\xba\xa0" \ "\xe4\xba\xa2" \ "\xe4\xba\xb0" \ "\xe4\xba\xb3" \ "\xe4\xba\xb6" \ "\xe4\xbb\x8e" \ "\xe4\xbb\x8d" \ "\xe4\xbb\x84" \ "\xe4\xbb\x86" \ "\xe4\xbb\x82" \ "\xe4\xbb\x97" \ "\xe4\xbb\x9e" \ "\xe4\xbb\xad" \ "\xe4\xbb\x9f" \ "\xe4\xbb\xb7" \ "\xe4\xbc\x89" \ "\xe4\xbd\x9a" \ "\xe4\xbc\xb0" \ "\xe4\xbd\x9b" \ "\xe4\xbd\x9d" \ "\xe4\xbd\x97" \ "\xe4\xbd\x87" \ "\xe4\xbd\xb6" \ "\xe4\xbe\x88" \ "\xe4\xbe\x8f" \ "\xe4\xbe\x98" \ "\xe4\xbd\xbb" \ "\xe4\xbd\xa9" \ "\xe4\xbd\xb0" \ "\xe4\xbe\x91" \ "\xe4\xbd\xaf" \ "\xe4\xbe\x86" \ "\xe4\xbe\x96" \ "\xe5\x84\x98" \ "\xe4\xbf\x94" \ "\xe4\xbf\x9f" \ "\xe4\xbf\x8e" \ "\xe4\xbf\x98" \ "\xe4\xbf\x9b" \ "\xe4\xbf\x91" \ "\xe4\xbf\x9a" \ "\xe4\xbf\x90" \ "\xe4\xbf\xa4" \ "\xe4\xbf\xa5" \ "\xe5\x80\x9a" \ "\xe5\x80\xa8" \ "\xe5\x80\x94" \ "\xe5\x80\xaa" \ "\xe5\x80\xa5" \ "\xe5\x80\x85" \ "\xe4\xbc\x9c" \ "\xe4\xbf\xb6" \ "\xe5\x80\xa1" \ "\xe5\x80\xa9" \ "\xe5\x80\xac" \ "\xe4\xbf\xbe" \ "\xe4\xbf\xaf" \ "\xe5\x80\x91" \ "\xe5\x80\x86" \ "\xe5\x81\x83" \ "\xe5\x81\x87" \ "\xe6\x9c\x83" \ "\xe5\x81\x95" \ "\xe5\x81\x90" \ "\xe5\x81\x88" \ "\xe5\x81\x9a" \ "\xe5\x81\x96" \ "\xe5\x81\xac" \ "\xe5\x81\xb8" \ "\xe5\x82\x80" \ "\xe5\x82\x9a" \ "\xe5\x82\x85" \ "\xe5\x82\xb4" \ "\xe5\x82\xb2" \ "\xe5\x83\x89" \ "\xe5\x83\x8a" \ "\xe5\x82\xb3" \ "\xe5\x83\x82" \ "\xe5\x83\x96" \ "\xe5\x83\x9e" \ "\xe5\x83\xa5" \ "\xe5\x83\xad" \ "\xe5\x83\xa3" \ "\xe5\x83\xae" \ "\xe5\x83\xb9" \ "\xe5\x83\xb5" \ "\xe5\x84\x89" \ "\xe5\x84\x81" \ "\xe5\x84\x82" \ "\xe5\x84\x96" \ "\xe5\x84\x95" \ "\xe5\x84\x94" \ "\xe5\x84\x9a" \ "\xe5\x84\xa1" \ "\xe5\x84\xba" \ "\xe5\x84\xb7" \ "\xe5\x84\xbc" \ "\xe5\x84\xbb" \ "\xe5\x84\xbf" \ "\xe5\x85\x80" \ "\xe5\x85\x92" \ "\xe5\x85\x8c" \ "\xe5\x85\x94" \ "\xe5\x85\xa2" \ "\xe7\xab\xb8" \ "\xe5\x85\xa9" \ "\xe5\x85\xaa" \ "\xe5\x85\xae" \ "\xe5\x86\x80" \ "\xe5\x86\x82" \ "\xe5\x9b\x98" \ "\xe5\x86\x8c" \ "\xe5\x86\x89" \ "\xe5\x86\x8f" \ "\xe5\x86\x91" \ "\xe5\x86\x93" \ "\xe5\x86\x95" \ "\xe5\x86\x96" \ "\xe5\x86\xa4" \ "\xe5\x86\xa6" \ "\xe5\x86\xa2" \ "\xe5\x86\xa9" \ "\xe5\x86\xaa" \ "\xe5\x86\xab" \ "\xe5\x86\xb3" \ "\xe5\x86\xb1" \ "\xe5\x86\xb2" \ "\xe5\x86\xb0" \ "\xe5\x86\xb5" \ "\xe5\x86\xbd" \ "\xe5\x87\x85" \ "\xe5\x87\x89" \ "\xe5\x87\x9b" \ "\xe5\x87\xa0" \ "\xe8\x99\x95" \ "\xe5\x87\xa9" \ "\xe5\x87\xad" \ "\xe5\x87\xb0" \ "\xe5\x87\xb5" \ "\xe5\x87\xbe" \ "\xe5\x88\x84" \ "\xe5\x88\x8b" \ "\xe5\x88\x94" \ "\xe5\x88\x8e" \ "\xe5\x88\xa7" \ "\xe5\x88\xaa" \ "\xe5\x88\xae" \ "\xe5\x88\xb3" \ "\xe5\x88\xb9" \ "\xe5\x89\x8f" \ "\xe5\x89\x84" \ "\xe5\x89\x8b" \ "\xe5\x89\x8c" \ "\xe5\x89\x9e" \ "\xe5\x89\x94" \ "\xe5\x89\xaa" \ "\xe5\x89\xb4" \ "\xe5\x89\xa9" \ "\xe5\x89\xb3" \ "\xe5\x89\xbf" \ "\xe5\x89\xbd" \ "\xe5\x8a\x8d" \ "\xe5\x8a\x94" \ "\xe5\x8a\x92" \ "\xe5\x89\xb1" \ "\xe5\x8a\x88" \ "\xe5\x8a\x91" \ "\xe8\xbe\xa8" \ "\xe8\xbe\xa7" \ "\xe5\x8a\xac" \ "\xe5\x8a\xad" \ "\xe5\x8a\xbc" \ "\xe5\x8a\xb5" \ "\xe5\x8b\x81" \ "\xe5\x8b\x8d" \ "\xe5\x8b\x97" \ "\xe5\x8b\x9e" \ "\xe5\x8b\xa3" \ "\xe5\x8b\xa6" \ "\xe9\xa3\xad" \ "\xe5\x8b\xa0" \ "\xe5\x8b\xb3" \ "\xe5\x8b\xb5" \ "\xe5\x8b\xb8" \ "\xe5\x8b\xb9" \ "\xe5\x8c\x86" \ "\xe5\x8c\x88" \ "\xe7\x94\xb8" \ "\xe5\x8c\x8d" \ "\xe5\x8c\x90" \ "\xe5\x8c\x8f" \ "\xe5\x8c\x95" \ "\xe5\x8c\x9a" \ "\xe5\x8c\xa3" \ "\xe5\x8c\xaf" \ "\xe5\x8c\xb1" \ "\xe5\x8c\xb3" \ "\xe5\x8c\xb8" \ "\xe5\x8d\x80" \ "\xe5\x8d\x86" \ "\xe5\x8d\x85" \ "\xe4\xb8\x97" \ "\xe5\x8d\x89" \ "\xe5\x8d\x8d" \ "\xe5\x87\x96" \ "\xe5\x8d\x9e" \ "\xe5\x8d\xa9" \ "\xe5\x8d\xae" \ "\xe5\xa4\x98" \ "\xe5\x8d\xbb" \ "\xe5\x8d\xb7" \ "\xe5\x8e\x82" \ "\xe5\x8e\x96" \ "\xe5\x8e\xa0" \ "\xe5\x8e\xa6" \ "\xe5\x8e\xa5" \ "\xe5\x8e\xae" \ "\xe5\x8e\xb0" \ "\xe5\x8e\xb6" \ "\xe5\x8f\x83" \ "\xe7\xb0\x92" \ "\xe9\x9b\x99" \ "\xe5\x8f\x9f" \ "\xe6\x9b\xbc" \ "\xe7\x87\xae" \ "\xe5\x8f\xae" \ "\xe5\x8f\xa8" \ "\xe5\x8f\xad" \ "\xe5\x8f\xba" \ "\xe5\x90\x81" \ "\xe5\x90\xbd" \ "\xe5\x91\x80" \ "\xe5\x90\xac" \ "\xe5\x90\xad" \ "\xe5\x90\xbc" \ "\xe5\x90\xae" \ "\xe5\x90\xb6" \ "\xe5\x90\xa9" \ "\xe5\x90\x9d" \ "\xe5\x91\x8e" \ "\xe5\x92\x8f" \ "\xe5\x91\xb5" \ "\xe5\x92\x8e" \ "\xe5\x91\x9f" \ "\xe5\x91\xb1" \ "\xe5\x91\xb7" \ "\xe5\x91\xb0" \ "\xe5\x92\x92" \ "\xe5\x91\xbb" \ "\xe5\x92\x80" \ "\xe5\x91\xb6" \ "\xe5\x92\x84" \ "\xe5\x92\x90" \ "\xe5\x92\x86" \ "\xe5\x93\x87" \ "\xe5\x92\xa2" \ "\xe5\x92\xb8" \ "\xe5\x92\xa5" \ "\xe5\x92\xac" \ "\xe5\x93\x84" \ "\xe5\x93\x88" \ "\xe5\x92\xa8" \ "\xe5\x92\xab" \ "\xe5\x93\x82" \ "\xe5\x92\xa4" \ "\xe5\x92\xbe" \ "\xe5\x92\xbc" \ "\xe5\x93\x98" \ "\xe5\x93\xa5" \ "\xe5\x93\xa6" \ "\xe5\x94\x8f" \ "\xe5\x94\x94" \ "\xe5\x93\xbd" \ "\xe5\x93\xae" \ "\xe5\x93\xad" \ "\xe5\x93\xba" \ "\xe5\x93\xa2" \ "\xe5\x94\xb9" \ "\xe5\x95\x80" \ "\xe5\x95\xa3" \ "\xe5\x95\x8c" \ "\xe5\x94\xae" \ "\xe5\x95\x9c" \ "\xe5\x95\x85" \ "\xe5\x95\x96" \ "\xe5\x95\x97" \ "\xe5\x94\xb8" \ "\xe5\x94\xb3" \ "\xe5\x95\x9d" \ "\xe5\x96\x99" \ "\xe5\x96\x80" \ "\xe5\x92\xaf" \ "\xe5\x96\x8a" \ "\xe5\x96\x9f" \ "\xe5\x95\xbb" \ "\xe5\x95\xbe" \ "\xe5\x96\x98" \ "\xe5\x96\x9e" \ "\xe5\x96\xae" \ "\xe5\x95\xbc" \ "\xe5\x96\x83" \ "\xe5\x96\xa9" \ "\xe5\x96\x87" \ "\xe5\x96\xa8" \ "\xe5\x97\x9a" \ "\xe5\x97\x85" \ "\xe5\x97\x9f" \ "\xe5\x97\x84" \ "\xe5\x97\x9c" \ "\xe5\x97\xa4" \ "\xe5\x97\x94" \ "\xe5\x98\x94" \ "\xe5\x97\xb7" \ "\xe5\x98\x96" \ "\xe5\x97\xbe" \ "\xe5\x97\xbd" \ "\xe5\x98\x9b" \ "\xe5\x97\xb9" \ "\xe5\x99\x8e" \ "\xe5\x99\x90" \ "\xe7\x87\x9f" \ "\xe5\x98\xb4" \ "\xe5\x98\xb6" \ "\xe5\x98\xb2" \ "\xe5\x98\xb8" \ "\xe5\x99\xab" \ "\xe5\x99\xa4" \ "\xe5\x98\xaf" \ "\xe5\x99\xac" \ "\xe5\x99\xaa" \ "\xe5\x9a\x86" \ "\xe5\x9a\x80" \ "\xe5\x9a\x8a" \ "\xe5\x9a\xa0" \ "\xe5\x9a\x94" \ "\xe5\x9a\x8f" \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89" \ "\xe5\xa8\x9a" \ "\xe5\xa9\x80" \ "\xe5\xa9\xac" \ "\xe5\xa9\x89" \ "\xe5\xa8\xb5" \ "\xe5\xa8\xb6" \ "\xe5\xa9\xa2" \ "\xe5\xa9\xaa" \ "\xe5\xaa\x9a" \ "\xe5\xaa\xbc" \ "\xe5\xaa\xbe" \ "\xe5\xab\x8b" \ "\xe5\xab\x82" \ "\xe5\xaa\xbd" \ "\xe5\xab\xa3" \ "\xe5\xab\x97" \ "\xe5\xab\xa6" \ "\xe5\xab\xa9" \ "\xe5\xab\x96" \ "\xe5\xab\xba" \ "\xe5\xab\xbb" \ "\xe5\xac\x8c" \ "\xe5\xac\x8b" \ "\xe5\xac\x96" \ "\xe5\xac\xb2" \ "\xe5\xab\x90" \ "\xe5\xac\xaa" \ "\xe5\xac\xb6" \ "\xe5\xac\xbe" \ "\xe5\xad\x83" \ "\xe5\xad\x85" \ "\xe5\xad\x80" \ "\xe5\xad\x91" \ "\xe5\xad\x95" \ "\xe5\xad\x9a" \ "\xe5\xad\x9b" \ "\xe5\xad\xa5" \ "\xe5\xad\xa9" \ "\xe5\xad\xb0" \ "\xe5\xad\xb3" \ "\xe5\xad\xb5" \ "\xe5\xad\xb8" \ "\xe6\x96\x88" \ "\xe5\xad\xba" \ "\xe5\xae\x80" \ "\xe5\xae\x83" \ "\xe5\xae\xa6" \ "\xe5\xae\xb8" \ "\xe5\xaf\x83" \ "\xe5\xaf\x87" \ "\xe5\xaf\x89" \ "\xe5\xaf\x94" \ "\xe5\xaf\x90" \ "\xe5\xaf\xa4" \ "\xe5\xaf\xa6" \ "\xe5\xaf\xa2" \ "\xe5\xaf\x9e" \ "\xe5\xaf\xa5" \ "\xe5\xaf\xab" \ "\xe5\xaf\xb0" \ "\xe5\xaf\xb6" \ "\xe5\xaf\xb3" \ "\xe5\xb0\x85" \ "\xe5\xb0\x87" \ "\xe5\xb0\x88" \ "\xe5\xb0\x8d" \ "\xe5\xb0\x93" \ "\xe5\xb0\xa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xbd\x8e" \ "\xe5\xbc\xaf" \ "\xe5\xbd\x91" \ "\xe5\xbd\x96" \ "\xe5\xbd\x97" \ "\xe5\xbd\x99" \ "\xe5\xbd\xa1" \ "\xe5\xbd\xad" \ "\xe5\xbd\xb3" \ "\xe5\xbd\xb7" \ "\xe5\xbe\x83" \ "\xe5\xbe\x82" \ "\xe5\xbd\xbf" \ "\xe5\xbe\x8a" \ "\xe5\xbe\x88" \ "\xe5\xbe\x91" \ "\xe5\xbe\x87" \ "\xe5\xbe\x9e" \ "\xe5\xbe\x99" \ "\xe5\xbe\x98" \ "\xe5\xbe\xa0" \ "\xe5\xbe\xa8" \ "\xe5\xbe\xad" \ "\xe5\xbe\xbc" \ "\xe5\xbf\x96" \ "\xe5\xbf\xbb" \ "\xe5\xbf\xa4" \ "\xe5\xbf\xb8" \ "\xe5\xbf\xb1" \ "\xe5\xbf\x9d" \ "\xe6\x82\xb3" \ "\xe5\xbf\xbf" \ "\xe6\x80\xa1" \ "\xe6\x81\xa0" \ "\xe6\x80\x99" \ "\xe6\x80\x90" \ "\xe6\x80\xa9" \ "\xe6\x80\x8e" \ "\xe6\x80\xb1" \ "\xe6\x80\x9b" \ "\xe6\x80\x95" \ "\xe6\x80\xab" \ "\xe6\x80\xa6" \ "\xe6\x80\x8f" \ "\xe6\x80\xba" \ "\xe6\x81\x9a" \ "\xe6\x81\x81" \ "\xe6\x81\xaa" \ "\xe6\x81\xb7" \ "\xe6\x81\x9f" \ "\xe6\x81\x8a" \ "\xe6\x81\x86" \ "\xe6\x81\x8d" \ "\xe6\x81\xa3" \ "\xe6\x81\x83" \ "\xe6\x81\xa4" \ "\xe6\x81\x82" \ "\xe6\x81\xac" \ "\xe6\x81\xab" \ "\xe6\x81\x99" \ "\xe6\x82\x81" \ "\xe6\x82\x8d" \ "\xe6\x83\xa7" \ "\xe6\x82\x83" \ "\xe6\x82\x9a" \ "\xe6\x82\x84" \ "\xe6\x82\x9b" \ "\xe6\x82\x96" \ "\xe6\x82\x97" \ "\xe6\x82\x92" \ "\xe6\x82\xa7" \ "\xe6\x82\x8b" \ "\xe6\x83\xa1" \ "\xe6\x82\xb8" \ "\xe6\x83\xa0" \ "\xe6\x83\x93" \ "\xe6\x82\xb4" \ "\xe5\xbf\xb0" \ "\xe6\x82\xbd" \ "\xe6\x83\x86" \ "\xe6\x82\xb5" \ "\xe6\x83\x98" \ "\xe6\x85\x8d" \ "\xe6\x84\x95" \ "\xe6\x84\x86" \ "\xe6\x83\xb6" \ "\xe6\x83\xb7" \ "\xe6\x84\x80" \ "\xe6\x83\xb4" \ "\xe6\x83\xba" \ "\xe6\x84\x83" \ "\xe6\x84\xa1" \ "\xe6\x83\xbb" \ "\xe6\x83\xb1" \ "\xe6\x84\x8d" \ "\xe6\x84\x8e" \ "\xe6\x85\x87" \ "\xe6\x84\xbe" \ "\xe6\x84\xa8" \ "\xe6\x84\xa7" \ "\xe6\x85\x8a" \ "\xe6\x84\xbf" \ "\xe6\x84\xbc" \ "\xe6\x84\xac" \ "\xe6\x84\xb4" \ "\xe6\x84\xbd" \ "\xe6\x85\x82" \ "\xe6\x85\x84" \ "\xe6\x85\xb3" \ "\xe6\x85\xb7" \ "\xe6\x85\x98" \ "\xe6\x85\x99" \ "\xe6\x85\x9a" \ "\xe6\x85\xab" \ "\xe6\x85\xb4" \ "\xe6\x85\xaf" \ "\xe6\x85\xa5" \ "\xe6\x85\xb1" \ "\xe6\x85\x9f" \ "\xe6\x85\x9d" \ "\xe6\x85\x93" \ "\xe6\x85\xb5" \ "\xe6\x86\x99" \ "\xe6\x86\x96" \ "\xe6\x86\x87" \ "\xe6\x86\xac" \ "\xe6\x86\x94" \ "\xe6\x86\x9a" \ "\xe6\x86\x8a" \ "\xe6\x86\x91" \ "\xe6\x86\xab" \ "\xe6\x86\xae" \ "\xe6\x87\x8c" \ "\xe6\x87\x8a" \ "\xe6\x87\x89" \ "\xe6\x87\xb7" \ "\xe6\x87\x88" \ "\xe6\x87\x83" \ "\xe6\x87\x86" \ "\xe6\x86\xba" \ "\xe6\x87\x8b" \ "\xe7\xbd\xb9" \ "\xe6\x87\x8d" \ "\xe6\x87\xa6" \ "\xe6\x87\xa3" \ "\xe6\x87\xb6" \ "\xe6\x87\xba" \ "\xe6\x87\xb4" \ "\xe6\x87\xbf" \ "\xe6\x87\xbd" \ "\xe6\x87\xbc" \ "\xe6\x87\xbe" \ "\xe6\x88\x80" \ "\xe6\x88\x88" \ "\xe6\x88\x89" \ "\xe6\x88\x8d" \ "\xe6\x88\x8c" \ "\xe6\x88\x94" \ "\xe6\x88\x9b" \ "\xe6\x88\x9e" \ "\xe6\x88\xa1" \ "\xe6\x88\xaa" \ "\xe6\x88\xae" \ "\xe6\x88\xb0" \ "\xe6\x88\xb2" \ "\xe6\x88\xb3" \ "\xe6\x89\x81" \ "\xe6\x89\x8e" \ "\xe6\x89\x9e" \ "\xe6\x89\xa3" \ "\xe6\x89\x9b" \ "\xe6\x89\xa0" \ "\xe6\x89\xa8" \ "\xe6\x89\xbc" \ "\xe6\x8a\x82" \ "\xe6\x8a\x89" \ "\xe6\x89\xbe" \ "\xe6\x8a\x92" \ "\xe6\x8a\x93" \ "\xe6\x8a\x96" \ "\xe6\x8b\x94" \ "\xe6\x8a\x83" \ "\xe6\x8a\x94" \ "\xe6\x8b\x97" \ "\xe6\x8b\x91" \ "\xe6\x8a\xbb" \ "\xe6\x8b\x8f" \ "\xe6\x8b\xbf" \ "\xe6\x8b\x86" \ "\xe6\x93\x94" \ "\xe6\x8b\x88" \ "\xe6\x8b\x9c" \ "\xe6\x8b\x8c" \ "\xe6\x8b\x8a" \ "\xe6\x8b\x82" \ "\xe6\x8b\x87" \ "\xe6\x8a\x9b" \ "\xe6\x8b\x89" \ "\xe6\x8c\x8c" \ "\xe6\x8b\xae" \ "\xe6\x8b\xb1" \ "\xe6\x8c\xa7" \ "\xe6\x8c\x82" \ "\xe6\x8c\x88" \ "\xe6\x8b\xaf" \ "\xe6\x8b\xb5" \ "\xe6\x8d\x90" \ "\xe6\x8c\xbe" \ "\xe6\x8d\x8d" \ "\xe6\x90\x9c" \ "\xe6\x8d\x8f" \ "\xe6\x8e\x96" \ "\xe6\x8e\x8e" \ "\xe6\x8e\x80" \ "\xe6\x8e\xab" \ "\xe6\x8d\xb6" \ "\xe6\x8e\xa3" \ "\xe6\x8e\x8f" \ "\xe6\x8e\x89" \ "\xe6\x8e\x9f" \ "\xe6\x8e\xb5" \ "\xe6\x8d\xab" \ "\xe6\x8d\xa9" \ "\xe6\x8e\xbe" \ "\xe6\x8f\xa9" \ "\xe6\x8f\x80" \ "\xe6\x8f\x86" \ "\xe6\x8f\xa3" \ "\xe6\x8f\x89" \ "\xe6\x8f\x92" \ "\xe6\x8f\xb6" \ "\xe6\x8f\x84" \ "\xe6\x90\x96" \ "\xe6\x90\xb4" \ "\xe6\x90\x86" \ "\xe6\x90\x93" \ "\xe6\x90\xa6" \ "\xe6\x90\xb6" \ "\xe6\x94\x9d" \ "\xe6\x90\x97" \ "\xe6\x90\xa8" \ "\xe6\x90\x8f" \ "\xe6\x91\xa7" \ "\xe6\x91\xaf" \ "\xe6\x91\xb6" \ "\xe6\x91\x8e" \ "\xe6\x94\xaa" \ "\xe6\x92\x95" \ "\xe6\x92\x93" \ "\xe6\x92\xa5" \ "\xe6\x92\xa9" \ "\xe6\x92\x88" \ "\xe6\x92\xbc" \ "\xe6\x93\x9a" \ "\xe6\x93\x92" \ "\xe6\x93\x85" \ "\xe6\x93\x87" \ "\xe6\x92\xbb" \ "\xe6\x93\x98" \ "\xe6\x93\x82" \ "\xe6\x93\xb1" \ "\xe6\x93\xa7" \ "\xe8\x88\x89" \ "\xe6\x93\xa0" \ "\xe6\x93\xa1" \ "\xe6\x8a\xac" \ "\xe6\x93\xa3" \ "\xe6\x93\xaf" \ "\xe6\x94\xac" \ "\xe6\x93\xb6" \ "\xe6\x93\xb4" \ "\xe6\x93\xb2" \ "\xe6\x93\xba" \ "\xe6\x94\x80" \ "\xe6\x93\xbd" \ "\xe6\x94\x98" \ "\xe6\x94\x9c" \ "\xe6\x94\x85" \ "\xe6\x94\xa4" \ "\xe6\x94\xa3" \ "\xe6\x94\xab" \ "\xe6\x94\xb4" \ "\xe6\x94\xb5" \ "\xe6\x94\xb7" \ "\xe6\x94\xb6" \ "\xe6\x94\xb8" \ "\xe7\x95\x8b" \ "\xe6\x95\x88" \ "\xe6\x95\x96" \ "\xe6\x95\x95" \ "\xe6\x95\x8d" \ "\xe6\x95\x98" \ "\xe6\x95\x9e" \ "\xe6\x95\x9d" \ "\xe6\x95\xb2" \ "\xe6\x95\xb8" \ "\xe6\x96\x82" \ "\xe6\x96\x83" \ "\xe8\xae\x8a" \ "\xe6\x96\x9b" \ "\xe6\x96\x9f" \ "\xe6\x96\xab" \ "\xe6\x96\xb7" \ "\xe6\x97\x83" \ "\xe6\x97\x86" \ "\xe6\x97\x81" \ "\xe6\x97\x84" \ "\xe6\x97\x8c" \ "\xe6\x97\x92" \ "\xe6\x97\x9b" \ "\xe6\x97\x99" \ "\xe6\x97\xa0" \ "\xe6\x97\xa1" \ "\xe6\x97\xb1" \ "\xe6\x9d\xb2" \ "\xe6\x98\x8a" \ "\xe6\x98\x83" \ "\xe6\x97\xbb" \ "\xe6\x9d\xb3" \ "\xe6\x98\xb5" \ "\xe6\x98\xb6" \ "\xe6\x98\xb4" \ "\xe6\x98\x9c" \ "\xe6\x99\x8f" \ "\xe6\x99\x84" \ "\xe6\x99\x89" \ "\xe6\x99\x81" \ "\xe6\x99\x9e" \ "\xe6\x99\x9d" \ "\xe6\x99\xa4" \ "\xe6\x99\xa7" \ "\xe6\x99\xa8" \ "\xe6\x99\x9f" \ "\xe6\x99\xa2" \ "\xe6\x99\xb0" \ "\xe6\x9a\x83" \ "\xe6\x9a\x88" \ "\xe6\x9a\x8e" \ "\xe6\x9a\x89" \ "\xe6\x9a\x84" \ "\xe6\x9a\x98" \ "\xe6\x9a\x9d" \ "\xe6\x9b\x81" \ "\xe6\x9a\xb9" \ "\xe6\x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b8" \ "\xe6\xaa\xb3" \ "\xe6\xaa\xac" \ "\xe6\xab\x9e" \ "\xe6\xab\x91" \ "\xe6\xab\x9f" \ "\xe6\xaa\xaa" \ "\xe6\xab\x9a" \ "\xe6\xab\xaa" \ "\xe6\xab\xbb" \ "\xe6\xac\x85" \ "\xe8\x98\x96" \ "\xe6\xab\xba" \ "\xe6\xac\x92" \ "\xe6\xac\x96" \ "\xe9\xac\xb1" \ "\xe6\xac\x9f" \ "\xe6\xac\xb8" \ "\xe6\xac\xb7" \ "\xe7\x9b\x9c" \ "\xe6\xac\xb9" \ "\xe9\xa3\xae" \ "\xe6\xad\x87" \ "\xe6\xad\x83" \ "\xe6\xad\x89" \ "\xe6\xad\x90" \ "\xe6\xad\x99" \ "\xe6\xad\x94" \ "\xe6\xad\x9b" \ "\xe6\xad\x9f" \ "\xe6\xad\xa1" \ "\xe6\xad\xb8" \ "\xe6\xad\xb9" \ "\xe6\xad\xbf" \ "\xe6\xae\x80" \ "\xe6\xae\x84" \ "\xe6\xae\x83" \ "\xe6\xae\x8d" \ "\xe6\xae\x98" \ "\xe6\xae\x95" \ "\xe6\xae\x9e" \ "\xe6\xae\xa4" \ "\xe6\xae\xaa" \ "\xe6\xae\xab" \ "\xe6\xae\xaf" \ "\xe6\xae\xb2" \ "\xe6\xae\xb1" \ "\xe6\xae\xb3" \ "\xe6\xae\xb7" \ "\xe6\xae\xbc" \ "\xe6\xaf\x86" \ "\xe6\xaf\x8b" \ "\xe6\xaf\x93" \ "\xe6\xaf\x9f" \ "\xe6\xaf\xac" \ "\xe6\xaf\xab" \ "\xe6\xaf\xb3" \ "\xe6\xaf\xaf" \ "\xe9\xba\xbe" \ "\xe6\xb0\x88" \ "\xe6\xb0\x93" \ "\xe6\xb0\x94" \ "\xe6\xb0\x9b" \ "\xe6\xb0\xa4" \ "\xe6\xb0\xa3" \ "\xe6\xb1\x9e" \ "\xe6\xb1\x95" \ "\xe6\xb1\xa2" \ "\xe6\xb1\xaa" \ "\xe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"\xe6\xb8\xad" \ "\xe6\xb9\xae" \ "\xe6\xb8\xae" \ "\xe6\xb8\x99" \ "\xe6\xb9\xb2" \ "\xe6\xb9\x9f" \ "\xe6\xb8\xbe" \ "\xe6\xb8\xa3" \ "\xe6\xb9\xab" \ "\xe6\xb8\xab" \ "\xe6\xb9\xb6" \ "\xe6\xb9\x8d" \ "\xe6\xb8\x9f" \ "\xe6\xb9\x83" \ "\xe6\xb8\xba" \ "\xe6\xb9\x8e" \ "\xe6\xb8\xa4" \ "\xe6\xbb\xbf" \ "\xe6\xb8\x9d" \ "\xe6\xb8\xb8" \ "\xe6\xba\x82" \ "\xe6\xba\xaa" \ "\xe6\xba\x98" \ "\xe6\xbb\x89" \ "\xe6\xba\xb7" \ "\xe6\xbb\x93" \ "\xe6\xba\xbd" \ "\xe6\xba\xaf" \ "\xe6\xbb\x84" \ "\xe6\xba\xb2" \ "\xe6\xbb\x94" \ "\xe6\xbb\x95" \ "\xe6\xba\x8f" \ "\xe6\xba\xa5" \ "\xe6\xbb\x82" \ "\xe6\xba\x9f" \ "\xe6\xbd\x81" \ "\xe6\xbc\x91" \ "\xe7\x81\x8c" \ "\xe6\xbb\xac" \ "\xe6\xbb\xb8" \ "\xe6\xbb\xbe" \ "\xe6\xbc\xbf" \ "\xe6\xbb\xb2" \ "\xe6\xbc\xb1" \ "\xe6\xbb\xaf" \ "\xe6\xbc\xb2" \ "\xe6\xbb\x8c" \ "\xe6\xbc\xbe" \ "\xe6\xbc\x93" \ "\xe6\xbb\xb7" \ "\xe6\xbe\x86" \ "\xe6\xbd\xba" \ "\xe6\xbd\xb8" \ "\xe6\xbe\x81" \ "\xe6\xbe\x80" \ "\xe6\xbd\xaf" \ "\xe6\xbd\x9b" \ "\xe6\xbf\xb3" \ "\xe6\xbd\xad" \ "\xe6\xbe\x82" \ "\xe6\xbd\xbc" \ "\xe6\xbd\x98" \ "\xe6\xbe\x8e" \ "\xe6\xbe\x91" \ "\xe6\xbf\x82" \ "\xe6\xbd\xa6" \ "\xe6\xbe\xb3" \ "\xe6\xbe\xa3" \ "\xe6\xbe\xa1" \ "\xe6\xbe\xa4" \ "\xe6\xbe\xb9" \ "\xe6\xbf\x86" \ "\xe6\xbe\xaa" \ "\xe6\xbf\x9f" \ "\xe6\xbf\x95" \ "\xe6\xbf\xac" \ "\xe6\xbf\x94" \ "\xe6\xbf\x98" \ "\xe6\xbf\xb1" \ "\xe6\xbf\xae" \ "\xe6\xbf\x9b" \ "\xe7\x80\x89" \ "\xe7\x80\x8b" \ "\xe6\xbf\xba" \ "\xe7\x80\x91" \ "\xe7\x80\x81" \ "\xe7\x80\x8f" \ "\xe6\xbf\xbe" \ "\xe7\x80\x9b" \ "\xe7\x80\x9a" \ "\xe6\xbd\xb4" \ "\xe7\x80\x9d" \ "\xe7\x80\x98" \ "\xe7\x80\x9f" \ "\xe7\x80\xb0" \ "\xe7\x80\xbe" \ "\xe7\x80\xb2" \ "\xe7\x81\x91" \ "\xe7\x81\xa3" \ "\xe7\x82\x99" \ "\xe7\x82\x92" \ "\xe7\x82\xaf" \ "\xe7\x83\xb1" \ "\xe7\x82\xac" \ "\xe7\x82\xb8" \ "\xe7\x82\xb3" \ "\xe7\x82\xae" \ "\xe7\x83\x9f" \ "\xe7\x83\x8b" \ "\xe7\x83\x9d" \ "\xe7\x83\x99" \ "\xe7\x84\x89" \ "\xe7\x83\xbd" \ "\xe7\x84\x9c" \ "\xe7\x84\x99" \ "\xe7\x85\xa5" \ "\xe7\x85\x95" \ "\xe7\x86\x88" \ "\xe7\x85\xa6" \ "\xe7\x85\xa2" \ "\xe7\x85\x8c" \ "\xe7\x85\x96" \ "\xe7\x85\xac" \ "\xe7\x86\x8f" \ "\xe7\x87\xbb" \ "\xe7\x86\x84" \ "\xe7\x86\x95" \ "\xe7\x86\xa8" \ "\xe7\x86\xac" \ "\xe7\x87\x97" \ "\xe7\x86\xb9" \ "\xe7\x86\xbe" \ "\xe7\x87\x92" \ "\xe7\x87\x89" \ "\xe7\x87\x94" \ "\xe7\x87\x8e" \ "\xe7\x87\xa0" \ "\xe7\x87\xac" \ "\xe7\x87\xa7" \ "\xe7\x87\xb5" \ "\xe7\x87\xbc" \ "\xe7\x87\xb9" \ "\xe7\x87\xbf" \ "\xe7\x88\x8d" \ "\xe7\x88\x90" \ "\xe7\x88\x9b" \ "\xe7\x88\xa8" \ "\xe7\x88\xad" \ "\xe7\x88\xac" \ "\xe7\x88\xb0" \ "\xe7\x88\xb2" \ "\xe7\x88\xbb" \ "\xe7\x88\xbc" \ "\xe7\x88\xbf" \ "\xe7\x89\x80" \ "\xe7\x89\x86" \ "\xe7\x89\x8b" \ "\xe7\x89\x98" \ "\xe7\x89\xb4" \ "\xe7\x89\xbe" \ "\xe7\x8a\x82" \ "\xe7\x8a\x81" \ "\xe7\x8a\x87" \ "\xe7\x8a\x92" \ "\xe7\x8a\x96" \ "\xe7\x8a\xa2" \ "\xe7\x8a\xa7" \ "\xe7\x8a\xb9" \ "\xe7\x8a\xb2" \ "\xe7\x8b\x83" \ "\xe7\x8b\x86" \ "\xe7\x8b\x84" \ "\xe7\x8b\x8e" \ "\xe7\x8b\x92" \ "\xe7\x8b\xa2" \ "\xe7\x8b\xa0" \ "\xe7\x8b\xa1" \ "\xe7\x8b\xb9" \ "\xe7\x8b\xb7" \ "\xe5\x80\x8f" \ "\xe7\x8c\x97" \ "\xe7\x8c\x8a" \ "\xe7\x8c\x9c" \ "\xe7\x8c\x96" \ "\xe7\x8c\x9d" \ "\xe7\x8c\xb4" \ "\xe7\x8c\xaf" \ "\xe7\x8c\xa9" \ "\xe7\x8c\xa5" \ "\xe7\x8c\xbe" \ "\xe7\x8d\x8e" \ "\xe7\x8d\x8f" \ "\xe9\xbb\x98" \ "\xe7\x8d\x97" \ "\xe7\x8d\xaa" \ "\xe7\x8d\xa8" \ "\xe7\x8d\xb0" \ "\xe7\x8d\xb8" \ "\xe7\x8d\xb5" \ "\xe7\x8d\xbb" \ "\xe7\x8d\xba" \ "\xe7\x8f\x88" \ "\xe7\x8e\xb3" \ "\xe7\x8f\x8e" \ "\xe7\x8e\xbb" \ "\xe7\x8f\x80" \ "\xe7\x8f\xa5" \ "\xe7\x8f\xae" \ "\xe7\x8f\x9e" \ "\xe7\x92\xa2" \ "\xe7\x90\x85" \ "\xe7\x91\xaf" \ "\xe7\x90\xa5" \ "\xe7\x8f\xb8" \ "\xe7\x90\xb2" \ "\xe7\x90\xba" \ "\xe7\x91\x95" \ "\xe7\x90\xbf" \ "\xe7\x91\x9f" \ "\xe7\x91\x99" \ "\xe7\x91\x81" \ "\xe7\x91\x9c" \ "\xe7\x91\xa9" \ "\xe7\x91\xb0" \ "\xe7\x91\xa3" \ "\xe7\x91\xaa" \ "\xe7\x91\xb6" \ "\xe7\x91\xbe" \ "\xe7\x92\x8b" \ "\xe7\x92\x9e" \ "\xe7\x92\xa7" \ "\xe7\x93\x8a" \ "\xe7\x93\x8f" \ "\xe7\x93\x94" \ "\xe7\x8f\xb1" \ "\xe7\x93\xa0" \ "\xe7\x93\xa3" \ "\xe7\x93\xa7" \ "\xe7\x93\xa9" \ "\xe7\x93\xae" \ "\xe7\x93\xb2" \ "\xe7\x93\xb0" \ "\xe7\x93\xb1" \ "\xe7\x93\xb8" \ "\xe7\x93\xb7" \ "\xe7\x94\x84" \ "\xe7\x94\x83" \ "\xe7\x94\x85" \ "\xe7\x94\x8c" \ "\xe7\x94\x8e" \ "\xe7\x94\x8d" \ "\xe7\x94\x95" \ "\xe7\x94\x93" \ "\xe7\x94\x9e" \ "\xe7\x94\xa6" \ "\xe7\x94\xac" \ "\xe7\x94\xbc" \ "\xe7\x95\x84" \ "\xe7\x95\x8d" \ "\xe7\x95\x8a" \ "\xe7\x95\x89" \ "\xe7\x95\x9b" \ "\xe7\x95\x86" \ "\xe7\x95\x9a" \ "\xe7\x95\xa9" \ "\xe7\x95\xa4" \ "\xe7\x95\xa7" \ "\xe7\x95\xab" \ "\xe7\x95\xad" \ "\xe7\x95\xb8" \ "\xe7\x95\xb6" \ "\xe7\x96\x86" \ "\xe7\x96\x87" \ "\xe7\x95\xb4" \ "\xe7\x96\x8a" \ "\xe7\x96\x89" \ "\xe7\x96\x82" \ "\xe7\x96\x94" \ "\xe7\x96\x9a" \ "\xe7\x96\x9d" \ "\xe7\x96\xa5" \ "\xe7\x96\xa3" \ "\xe7\x97\x82" \ "\xe7\x96\xb3" \ "\xe7\x97\x83" \ "\xe7\x96\xb5" \ "\xe7\x96\xbd" \ "\xe7\x96\xb8" \ "\xe7\x96\xbc" \ "\xe7\x96\xb1" \ "\xe7\x97\x8d" \ "\xe7\x97\x8a" \ "\xe7\x97\x92" \ "\xe7\x97\x99" \ "\xe7\x97\xa3" \ "\xe7\x97\x9e" \ "\xe7\x97\xbe" \ "\xe7\x97\xbf" \ "\xe7\x97\xbc" \ "\xe7\x98\x81" \ "\xe7\x97\xb0" \ "\xe7\x97\xba" \ "\xe7\x97\xb2" \ "\xe7\x97\xb3" \ "\xe7\x98\x8b" \ "\xe7\x98\x8d" \ "\xe7\x98\x89" \ "\xe7\x98\x9f" \ "\xe7\x98\xa7" \ "\xe7\x98\xa0" \ "\xe7\x98\xa1" \ "\xe7\x98\xa2" \ "\xe7\x98\xa4" \ "\xe7\x98\xb4" \ "\xe7\x98\xb0" \ "\xe7\x98\xbb" \ "\xe7\x99\x87" \ "\xe7\x99\x88" \ "\xe7\x99\x86" \ "\xe7\x99\x9c" \ "\xe7\x99\x98" \ "\xe7\x99\xa1" \ "\xe7\x99\xa2" \ "\xe7\x99\xa8" \ "\xe7\x99\xa9" \ "\xe7\x99\xaa" \ "\xe7\x99\xa7" \ "\xe7\x99\xac" \ "\xe7\x99\xb0" \ "\xe7\x99\xb2" \ "\xe7\x99\xb6" \ "\xe7\x99\xb8" \ "\xe7\x99\xbc" \ "\xe7\x9a\x80" \ "\xe7\x9a\x83" \ "\xe7\x9a\x88" \ "\xe7\x9a\x8b" \ "\xe7\x9a\x8e" \ "\xe7\x9a\x96" \ "\xe7\x9a\x93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x89" \ "\xe7\xa9\xa1" \ "\xe7\xa9\xa2" \ "\xe7\xa9\xa9" \ "\xe9\xbe\x9d" \ "\xe7\xa9\xb0" \ "\xe7\xa9\xb9" \ "\xe7\xa9\xbd" \ "\xe7\xaa\x88" \ "\xe7\xaa\x97" \ "\xe7\xaa\x95" \ "\xe7\xaa\x98" \ "\xe7\xaa\x96" \ "\xe7\xaa\xa9" \ "\xe7\xab\x88" \ "\xe7\xaa\xb0" \ "\xe7\xaa\xb6" \ "\xe7\xab\x85" \ "\xe7\xab\x84" \ "\xe7\xaa\xbf" \ "\xe9\x82\x83" \ "\xe7\xab\x87" \ "\xe7\xab\x8a" \ "\xe7\xab\x8d" \ "\xe7\xab\x8f" \ "\xe7\xab\x95" \ "\xe7\xab\x93" \ "\xe7\xab\x99" \ "\xe7\xab\x9a" \ "\xe7\xab\x9d" \ "\xe7\xab\xa1" \ "\xe7\xab\xa2" \ "\xe7\xab\xa6" \ "\xe7\xab\xad" \ "\xe7\xab\xb0" \ "\xe7\xac\x82" \ "\xe7\xac\x8f" \ "\xe7\xac\x8a" \ "\xe7\xac\x86" \ "\xe7\xac\xb3" \ "\xe7\xac\x98" \ "\xe7\xac\x99" \ "\xe7\xac\x9e" \ "\xe7\xac\xb5" \ "\xe7\xac\xa8" \ "\xe7\xac\xb6" \ "\xe7\xad\x90" \ "\xe7\xad\xba" \ "\xe7\xac\x84" \ "\xe7\xad\x8d" \ "\xe7\xac\x8b" \ "\xe7\xad\x8c" \ "\xe7\xad\x85" \ "\xe7\xad\xb5" \ "\xe7\xad\xa5" \ "\xe7\xad\xb4" \ "\xe7\xad\xa7" \ "\xe7\xad\xb0" \ "\xe7\xad\xb1" \ "\xe7\xad\xac" \ "\xe7\xad\xae" \ "\xe7\xae\x9d" \ "\xe7\xae\x98" \ "\xe7\xae\x9f" \ "\xe7\xae\x8d" \ "\xe7\xae\x9c" \ "\xe7\xae\x9a" \ "\xe7\xae\x8b" \ "\xe7\xae\x92" \ "\xe7\xae\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" \ "\xe7\xb8\xb9" \ "\xe7\xb9\x83" \ "\xe7\xb8\xb7" \ "\xe7\xb8\xb2" \ "\xe7\xb8\xba" \ "\xe7\xb9\xa7" \ "\xe7\xb9\x9d" \ "\xe7\xb9\x96" \ "\xe7\xb9\x9e" \ "\xe7\xb9\x99" \ "\xe7\xb9\x9a" \ "\xe7\xb9\xb9" \ "\xe7\xb9\xaa" \ "\xe7\xb9\xa9" \ "\xe7\xb9\xbc" \ "\xe7\xb9\xbb" \ "\xe7\xba\x83" \ "\xe7\xb7\x95" \ "\xe7\xb9\xbd" \ "\xe8\xbe\xae" \ "\xe7\xb9\xbf" \ "\xe7\xba\x88" \ "\xe7\xba\x89" \ "\xe7\xba\x8c" \ "\xe7\xba\x92" \ "\xe7\xba\x90" \ "\xe7\xba\x93" \ "\xe7\xba\x94" \ "\xe7\xba\x96" \ "\xe7\xba\x8e" \ "\xe7\xba\x9b" \ "\xe7\xba\x9c" \ "\xe7\xbc\xb8" \ "\xe7\xbc\xba" \ "\xe7\xbd\x85" \ "\xe7\xbd\x8c" \ "\xe7\xbd\x8d" \ "\xe7\xbd\x8e" \ "\xe7\xbd\x90" \ "\xe7\xbd\x91" \ "\xe7\xbd\x95" \ "\xe7\xbd\x94" \ "\xe7\xbd\x98" \ "\xe7\xbd\x9f" \ "\xe7\xbd\xa0" \ "\xe7\xbd\xa8" \ "\xe7\xbd\xa9" \ "\xe7\xbd\xa7" \ "\xe7\xbd\xb8" \ "\xe7\xbe\x82" \ "\xe7\xbe\x86" \ "\xe7\xbe\x83" \ "\xe7\xbe\x88" \ "\xe7\xbe\x87" \ "\xe7\xbe\x8c" \ "\xe7\xbe\x94" \ "\xe7\xbe\x9e" \ "\xe7\xbe\x9d" \ "\xe7\xbe\x9a" \ "\xe7\xbe\xa3" \ "\xe7\xbe\xaf" \ "\xe7\xbe\xb2" \ "\xe7\xbe\xb9" \ "\xe7\xbe\xae" \ "\xe7\xbe\xb6" \ "\xe7\xbe\xb8" \ "\xe8\xad\xb1" \ "\xe7\xbf\x85" \ "\xe7\xbf\x86" \ "\xe7\xbf\x8a" \ "\xe7\xbf\x95" \ "\xe7\xbf\x94" \ "\xe7\xbf\xa1" \ "\xe7\xbf\xa6" \ "\xe7\xbf\xa9" \ "\xe7\xbf\xb3" \ "\xe7\xbf\xb9" \ "\xe9\xa3\x9c" \ "\xe8\x80\x86" \ "\xe8\x80\x84" \ "\xe8\x80\x8b" \ "\xe8\x80\x92" \ "\xe8\x80\x98" \ "\xe8\x80\x99" \ "\xe8\x80\x9c" \ "\xe8\x80\xa1" \ "\xe8\x80\xa8" \ "\xe8\x80\xbf" \ "\xe8\x80\xbb" \ "\xe8\x81\x8a" \ "\xe8\x81\x86" \ "\xe8\x81\x92" \ "\xe8\x81\x98" \ "\xe8\x81\x9a" \ "\xe8\x81\x9f" \ "\xe8\x81\xa2" \ "\xe8\x81\xa8" \ "\xe8\x81\xb3" \ "\xe8\x81\xb2" \ "\xe8\x81\xb0" \ "\xe8\x81\xb6" \ "\xe8\x81\xb9" \ "\xe8\x81\xbd" \ "\xe8\x81\xbf" \ "\xe8\x82\x84" \ "\xe8\x82\x86" \ "\xe8\x82\x85" \ "\xe8\x82\x9b" \ "\xe8\x82\x93" \ "\xe8\x82\x9a" \ "\xe8\x82\xad" \ "\xe5\x86\x90" \ "\xe8\x82\xac" \ "\xe8\x83\x9b" \ "\xe8\x83\xa5" \ "\xe8\x83\x99" \ "\xe8\x83\x9d" \ "\xe8\x83\x84" \ "\xe8\x83\x9a" \ "\xe8\x83\x96" \ "\xe8\x84\x89" \ "\xe8\x83\xaf" \ "\xe8\x83\xb1" \ "\xe8\x84\x9b" \ "\xe8\x84\xa9" \ "\xe8\x84\xa3" \ "\xe8\x84\xaf" \ "\xe8\x85\x8b" \ "\xe9\x9a\x8b" \ "\xe8\x85\x86" \ "\xe8\x84\xbe" \ "\xe8\x85\x93" \ "\xe8\x85\x91" \ "\xe8\x83\xbc" \ "\xe8\x85\xb1" \ "\xe8\x85\xae" \ "\xe8\x85\xa5" \ "\xe8\x85\xa6" \ "\xe8\x85\xb4" \ "\xe8\x86\x83" \ "\xe8\x86\x88" \ "\xe8\x86\x8a" \ "\xe8\x86\x80" \ "\xe8\x86\x82" \ "\xe8\x86\xa0" \ "\xe8\x86\x95" \ "\xe8\x86\xa4" \ "\xe8\x86\xa3" \ "\xe8\x85\x9f" \ "\xe8\x86\x93" \ "\xe8\x86\xa9" \ "\xe8\x86\xb0" \ "\xe8\x86\xb5" \ "\xe8\x86\xbe" \ "\xe8\x86\xb8" \ "\xe8\x86\xbd" \ "\xe8\x87\x80" \ "\xe8\x87\x82" \ "\xe8\x86\xba" \ "\xe8\x87\x89" \ "\xe8\x87\x8d" \ "\xe8\x87\x91" \ "\xe8\x87\x99" \ "\xe8\x87\x98" \ "\xe8\x87\x88" \ "\xe8\x87\x9a" \ "\xe8\x87\x9f" \ "\xe8\x87\xa0" \ "\xe8\x87\xa7" \ "\xe8\x87\xba" \ "\xe8\x87\xbb" \ "\xe8\x87\xbe" \ "\xe8\x88\x81" \ "\xe8\x88\x82" \ "\xe8\x88\x85" \ "\xe8\x88\x87" \ "\xe8\x88\x8a" \ "\xe8\x88\x8d" \ "\xe8\x88\x90" \ "\xe8\x88\x96" \ "\xe8\x88\xa9" \ "\xe8\x88\xab" \ "\xe8\x88\xb8" \ "\xe8\x88\xb3" \ "\xe8\x89\x80" \ "\xe8\x89\x99" \ "\xe8\x89\x98" \ "\xe8\x89\x9d" \ "\xe8\x89\x9a" \ "\xe8\x89\x9f" \ "\xe8\x89\xa4" \ "\xe8\x89\xa2" \ "\xe8\x89\xa8" \ "\xe8\x89\xaa" \ "\xe8\x89\xab" \ "\xe8\x88\xae" \ "\xe8\x89\xb1" \ "\xe8\x89\xb7" \ "\xe8\x89\xb8" \ "\xe8\x89\xbe" \ "\xe8\x8a\x8d" \ "\xe8\x8a\x92" \ "\xe8\x8a\xab" \ "\xe8\x8a\x9f" \ "\xe8\x8a\xbb" \ "\xe8\x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xbb" \ "\xe8\x91\xad" \ "\xe8\x90\xaa" \ "\xe8\x90\xbc" \ "\xe8\x95\x9a" \ "\xe8\x92\x84" \ "\xe8\x91\xb7" \ "\xe8\x91\xab" \ "\xe8\x92\xad" \ "\xe8\x91\xae" \ "\xe8\x92\x82" \ "\xe8\x91\xa9" \ "\xe8\x91\x86" \ "\xe8\x90\xac" \ "\xe8\x91\xaf" \ "\xe8\x91\xb9" \ "\xe8\x90\xb5" \ "\xe8\x93\x8a" \ "\xe8\x91\xa2" \ "\xe8\x92\xb9" \ "\xe8\x92\xbf" \ "\xe8\x92\x9f" \ "\xe8\x93\x99" \ "\xe8\x93\x8d" \ "\xe8\x92\xbb" \ "\xe8\x93\x9a" \ "\xe8\x93\x90" \ "\xe8\x93\x81" \ "\xe8\x93\x86" \ "\xe8\x93\x96" \ "\xe8\x92\xa1" \ "\xe8\x94\xa1" \ "\xe8\x93\xbf" \ "\xe8\x93\xb4" \ "\xe8\x94\x97" \ "\xe8\x94\x98" \ "\xe8\x94\xac" \ "\xe8\x94\x9f" \ "\xe8\x94\x95" \ "\xe8\x94\x94" \ "\xe8\x93\xbc" \ "\xe8\x95\x80" \ "\xe8\x95\xa3" \ "\xe8\x95\x98" \ "\xe8\x95\x88" \ "\xe8\x95\x81" \ "\xe8\x98\x82" \ "\xe8\x95\x8b" \ "\xe8\x95\x95" \ "\xe8\x96\x80" \ "\xe8\x96\xa4" \ "\xe8\x96\x88" \ "\xe8\x96\x91" \ "\xe8\x96\x8a" \ "\xe8\x96\xa8" \ "\xe8\x95\xad" \ "\xe8\x96\x94" \ "\xe8\x96\x9b" \ "\xe8\x97\xaa" \ "\xe8\x96\x87" \ "\xe8\x96\x9c" \ "\xe8\x95\xb7" \ "\xe8\x95\xbe" \ "\xe8\x96\x90" \ "\xe8\x97\x89" \ "\xe8\x96\xba" \ "\xe8\x97\x8f" \ "\xe8\x96\xb9" \ "\xe8\x97\x90" \ "\xe8\x97\x95" \ "\xe8\x97\x9d" \ "\xe8\x97\xa5" \ "\xe8\x97\x9c" \ "\xe8\x97\xb9" \ "\xe8\x98\x8a" \ "\xe8\x98\x93" \ "\xe8\x98\x8b" \ "\xe8\x97\xbe" \ "\xe8\x97\xba" \ "\xe8\x98\x86" \ "\xe8\x98\xa2" \ "\xe8\x98\x9a" \ "\xe8\x98\xb0" \ "\xe8\x98\xbf" \ "\xe8\x99\x8d" \ "\xe4\xb9\x95" \ "\xe8\x99\x94" \ "\xe8\x99\x9f" \ "\xe8\x99\xa7" \ "\xe8\x99\xb1" \ "\xe8\x9a\x93" \ "\xe8\x9a\xa3" \ "\xe8\x9a\xa9" \ "\xe8\x9a\xaa" \ "\xe8\x9a\x8b" \ "\xe8\x9a\x8c" \ "\xe8\x9a\xb6" \ "\xe8\x9a\xaf" \ "\xe8\x9b\x84" \ "\xe8\x9b\x86" \ "\xe8\x9a\xb0" \ "\xe8\x9b\x89" \ "\xe8\xa0\xa3" \ "\xe8\x9a\xab" \ "\xe8\x9b\x94" \ "\xe8\x9b\x9e" \ "\xe8\x9b\xa9" \ "\xe8\x9b\xac" \ "\xe8\x9b\x9f" \ "\xe8\x9b\x9b" \ "\xe8\x9b\xaf" \ "\xe8\x9c\x92" \ "\xe8\x9c\x86" \ "\xe8\x9c\x88" \ "\xe8\x9c\x80" \ "\xe8\x9c\x83" \ "\xe8\x9b\xbb" \ "\xe8\x9c\x91" \ "\xe8\x9c\x89" \ "\xe8\x9c\x8d" \ "\xe8\x9b\xb9" \ "\xe8\x9c\x8a" \ "\xe8\x9c\xb4" \ "\xe8\x9c\xbf" \ "\xe8\x9c\xb7" \ "\xe8\x9c\xbb" \ "\xe8\x9c\xa5" \ "\xe8\x9c\xa9" \ "\xe8\x9c\x9a" \ "\xe8\x9d\xa0" \ "\xe8\x9d\x9f" \ "\xe8\x9d\xb8" \ "\xe8\x9d\x8c" \ "\xe8\x9d\x8e" \ "\xe8\x9d\xb4" \ "\xe8\x9d\x97" \ "\xe8\x9d\xa8" \ "\xe8\x9d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a5" \ "\xe8\xa8\xb6" \ "\xe8\xa9\x81" \ "\xe8\xa9\x9b" \ "\xe8\xa9\x92" \ "\xe8\xa9\x86" \ "\xe8\xa9\x88" \ "\xe8\xa9\xbc" \ "\xe8\xa9\xad" \ "\xe8\xa9\xac" \ "\xe8\xa9\xa2" \ "\xe8\xaa\x85" \ "\xe8\xaa\x82" \ "\xe8\xaa\x84" \ "\xe8\xaa\xa8" \ "\xe8\xaa\xa1" \ "\xe8\xaa\x91" \ "\xe8\xaa\xa5" \ "\xe8\xaa\xa6" \ "\xe8\xaa\x9a" \ "\xe8\xaa\xa3" \ "\xe8\xab\x84" \ "\xe8\xab\x8d" \ "\xe8\xab\x82" \ "\xe8\xab\x9a" \ "\xe8\xab\xab" \ "\xe8\xab\xb3" \ "\xe8\xab\xa7" \ "\xe8\xab\xa4" \ "\xe8\xab\xb1" \ "\xe8\xac\x94" \ "\xe8\xab\xa0" \ "\xe8\xab\xa2" \ "\xe8\xab\xb7" \ "\xe8\xab\x9e" \ "\xe8\xab\x9b" \ "\xe8\xac\x8c" \ "\xe8\xac\x87" \ "\xe8\xac\x9a" \ "\xe8\xab\xa1" \ "\xe8\xac\x96" \ "\xe8\xac\x90" \ "\xe8\xac\x97" \ "\xe8\xac\xa0" \ "\xe8\xac\xb3" \ "\xe9\x9e\xab" \ "\xe8\xac\xa6" \ "\xe8\xac\xab" \ "\xe8\xac\xbe" \ "\xe8\xac\xa8" \ "\xe8\xad\x81" \ "\xe8\xad\x8c" \ "\xe8\xad\x8f" \ "\xe8\xad\x8e" \ "\xe8\xad\x89" \ "\xe8\xad\x96" \ "\xe8\xad\x9b" \ "\xe8\xad\x9a" \ "\xe8\xad\xab" \ "\xe8\xad\x9f" \ "\xe8\xad\xac" \ "\xe8\xad\xaf" \ "\xe8\xad\xb4" \ "\xe8\xad\xbd" \ "\xe8\xae\x80" \ "\xe8\xae\x8c" \ "\xe8\xae\x8e" \ "\xe8\xae\x92" \ "\xe8\xae\x93" \ "\xe8\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x8b" \ "\xe8\xb7\xaa" \ "\xe8\xb7\xab" \ "\xe8\xb7\x9f" \ "\xe8\xb7\xa3" \ "\xe8\xb7\xbc" \ "\xe8\xb8\x88" \ "\xe8\xb8\x89" \ "\xe8\xb7\xbf" \ "\xe8\xb8\x9d" \ "\xe8\xb8\x9e" \ "\xe8\xb8\x90" \ "\xe8\xb8\x9f" \ "\xe8\xb9\x82" \ "\xe8\xb8\xb5" \ "\xe8\xb8\xb0" \ "\xe8\xb8\xb4" \ "\xe8\xb9\x8a" \ "\xe8\xb9\x87" \ "\xe8\xb9\x89" \ "\xe8\xb9\x8c" \ "\xe8\xb9\x90" \ "\xe8\xb9\x88" \ "\xe8\xb9\x99" \ "\xe8\xb9\xa4" \ "\xe8\xb9\xa0" \ "\xe8\xb8\xaa" \ "\xe8\xb9\xa3" \ "\xe8\xb9\x95" \ "\xe8\xb9\xb6" \ "\xe8\xb9\xb2" \ "\xe8\xb9\xbc" \ "\xe8\xba\x81" \ "\xe8\xba\x87" \ "\xe8\xba\x85" \ "\xe8\xba\x84" \ "\xe8\xba\x8b" \ "\xe8\xba\x8a" \ "\xe8\xba\x93" \ "\xe8\xba\x91" \ "\xe8\xba\x94" \ "\xe8\xba\x99" \ "\xe8\xba\xaa" \ "\xe8\xba\xa1" \ "\xe8\xba\xac" \ "\xe8\xba\xb0" \ "\xe8\xbb\x86" \ "\xe8\xba\xb1" \ "\xe8\xba\xbe" \ "\xe8\xbb\x85" \ "\xe8\xbb\x88" \ "\xe8\xbb\x8b" \ "\xe8\xbb\x9b" \ "\xe8\xbb\xa3" \ "\xe8\xbb\xbc" \ "\xe8\xbb\xbb" \ "\xe8\xbb\xab" \ "\xe8\xbb\xbe" \ "\xe8\xbc\x8a" \ "\xe8\xbc\x85" \ "\xe8\xbc\x95" \ "\xe8\xbc\x92" \ "\xe8\xbc\x99" \ "\xe8\xbc\x93" \ "\xe8\xbc\x9c" \ "\xe8\xbc\x9f" \ "\xe8\xbc\x9b" \ "\xe8\xbc\x8c" \ "\xe8\xbc\xa6" \ "\xe8\xbc\xb3" \ "\xe8\xbc\xbb" \ "\xe8\xbc\xb9" \ "\xe8\xbd\x85" \ "\xe8\xbd\x82" \ "\xe8\xbc\xbe" \ "\xe8\xbd\x8c" \ "\xe8\xbd\x89" \ "\xe8\xbd\x86" \ "\xe8\xbd\x8e" \ "\xe8\xbd\x97" \ "\xe8\xbd\x9c" \ "\xe8\xbd\xa2" \ "\xe8\xbd\xa3" \ "\xe8\xbd\xa4" \ "\xe8\xbe\x9c" \ "\xe8\xbe\x9f" \ "\xe8\xbe\xa3" \ "\xe8\xbe\xad" \ "\xe8\xbe\xaf" \ "\xe8\xbe\xb7" \ "\xe8\xbf\x9a" \ "\xe8\xbf\xa5" \ "\xe8\xbf\xa2" \ "\xe8\xbf\xaa" \ "\xe8\xbf\xaf" \ "\xe9\x82\x87" \ "\xe8\xbf\xb4" \ "\xe9\x80\x85" \ "\xe8\xbf\xb9" \ "\xe8\xbf\xba" \ "\xe9\x80\x91" \ "\xe9\x80\x95" \ "\xe9\x80\xa1" \ "\xe9\x80\x8d" \ "\xe9\x80\x9e" \ "\xe9\x80\x96" \ "\xe9\x80\x8b" \ "\xe9\x80\xa7" \ "\xe9\x80\xb6" \ "\xe9\x80\xb5" \ "\xe9\x80\xb9" \ "\xe8\xbf\xb8" \ "\xe9\x81\x8f" \ "\xe9\x81\x90" \ "\xe9\x81\x91" \ "\xe9\x81\x92" \ "\xe9\x80\x8e" \ "\xe9\x81\x89" \ "\xe9\x80\xbe" \ "\xe9\x81\x96" \ "\xe9\x81\x98" \ "\xe9\x81\x9e" \ "\xe9\x81\xa8" \ "\xe9\x81\xaf" \ "\xe9\x81\xb6" \ "\xe9\x9a\xa8" \ "\xe9\x81\xb2" \ "\xe9\x82\x82" \ "\xe9\x81\xbd" \ "\xe9\x82\x81" \ "\xe9\x82\x80" \ "\xe9\x82\x8a" \ "\xe9\x82\x89" \ "\xe9\x82\x8f" \ "\xe9\x82\xa8" \ "\xe9\x82\xaf" \ "\xe9\x82\xb1" \ "\xe9\x82\xb5" \ "\xe9\x83\xa2" \ "\xe9\x83\xa4" \ "\xe6\x89\x88" \ "\xe9\x83\x9b" \ "\xe9\x84\x82" \ "\xe9\x84\x92" \ "\xe9\x84\x99" \ "\xe9\x84\xb2" \ "\xe9\x84\xb0" \ "\xe9\x85\x8a" \ "\xe9\x85\x96" \ "\xe9\x85\x98" \ "\xe9\x85\xa3" \ "\xe9\x85\xa5" \ "\xe9\x85\xa9" \ "\xe9\x85\xb3" \ "\xe9\x85\xb2" \ "\xe9\x86\x8b" \ "\xe9\x86\x89" \ "\xe9\x86\x82" \ "\xe9\x86\xa2" \ "\xe9\x86\xab" \ "\xe9\x86\xaf" \ "\xe9\x86\xaa" \ "\xe9\x86\xb5" \ "\xe9\x86\xb4" \ "\xe9\x86\xba" \ "\xe9\x87\x80" \ "\xe9\x87\x81" \ "\xe9\x87\x89" \ "\xe9\x87\x8b" \ "\xe9\x87\x90" \ "\xe9\x87\x96" \ "\xe9\x87\x9f" \ "\xe9\x87\xa1" \ "\xe9\x87\x9b" \ "\xe9\x87\xbc" \ "\xe9\x87\xb5" \ "\xe9\x87\xb6" \ "\xe9\x88\x9e" \ "\xe9\x87\xbf" \ "\xe9\x88\x94" \ "\xe9\x88\xac" \ "\xe9\x88\x95" \ "\xe9\x88\x91" \ "\xe9\x89\x9e" \ "\xe9\x89\x97" \ "\xe9\x89\x85" \ "\xe9\x89\x89" \ "\xe9\x89\xa4" \ "\xe9\x89\x88" \ "\xe9\x8a\x95" \ "\xe9\x88\xbf" \ "\xe9\x89\x8b" \ "\xe9\x89\x90" \ "\xe9\x8a\x9c" \ "\xe9\x8a\x96" \ "\xe9\x8a\x93" \ "\xe9\x8a\x9b" \ "\xe9\x89\x9a" \ "\xe9\x8b\x8f" \ "\xe9\x8a\xb9" \ "\xe9\x8a\xb7" \ "\xe9\x8b\xa9" \ "\xe9\x8c\x8f" \ "\xe9\x8b\xba" \ "\xe9\x8d\x84" \ "\xe9\x8c\xae" \ "\xe9\x8c\x99" \ "\xe9\x8c\xa2" \ "\xe9\x8c\x9a" \ "\xe9\x8c\xa3" \ "\xe9\x8c\xba" \ "\xe9\x8c\xb5" \ "\xe9\x8c\xbb" \ "\xe9\x8d\x9c" \ "\xe9\x8d\xa0" \ "\xe9\x8d\xbc" \ "\xe9\x8d\xae" \ "\xe9\x8d\x96" \ "\xe9\x8e\xb0" \ "\xe9\x8e\xac" \ "\xe9\x8e\xad" \ "\xe9\x8e\x94" \ "\xe9\x8e\xb9" \ "\xe9\x8f\x96" \ "\xe9\x8f\x97" \ "\xe9\x8f\xa8" \ "\xe9\x8f\xa5" \ "\xe9\x8f\x98" \ "\xe9\x8f\x83" \ "\xe9\x8f\x9d" \ "\xe9\x8f\x90" \ "\xe9\x8f\x88" \ "\xe9\x8f\xa4" \ "\xe9\x90\x9a" \ "\xe9\x90\x94" \ "\xe9\x90\x93" \ "\xe9\x90\x83" \ "\xe9\x90\x87" \ "\xe9\x90\x90" \ "\xe9\x90\xb6" \ "\xe9\x90\xab" \ "\xe9\x90\xb5" \ "\xe9\x90\xa1" \ "\xe9\x90\xba" \ "\xe9\x91\x81" \ "\xe9\x91\x92" \ "\xe9\x91\x84" \ "\xe9\x91\x9b" \ "\xe9\x91\xa0" \ "\xe9\x91\xa2" \ "\xe9\x91\x9e" \ "\xe9\x91\xaa" \ "\xe9\x88\xa9" \ "\xe9\x91\xb0" \ "\xe9\x91\xb5" \ "\xe9\x91\xb7" \ "\xe9\x91\xbd" \ "\xe9\x91\x9a" \ "\xe9\x91\xbc" \ "\xe9\x91\xbe" \ "\xe9\x92\x81" \ "\xe9\x91\xbf" \ "\xe9\x96\x82" \ "\xe9\x96\x87" \ "\xe9\x96\x8a" \ "\xe9\x96\x94" \ "\xe9\x96\x96" \ "\xe9\x96\x98" \ "\xe9\x96\x99" \ "\xe9\x96\xa0" \ "\xe9\x96\xa8" \ "\xe9\x96\xa7" \ "\xe9\x96\xad" \ "\xe9\x96\xbc" \ "\xe9\x96\xbb" \ "\xe9\x96\xb9" \ "\xe9\x96\xbe" \ "\xe9\x97\x8a" \ "\xe6\xbf\xb6" \ "\xe9\x97\x83" \ "\xe9\x97\x8d" \ "\xe9\x97\x8c" \ "\xe9\x97\x95" \ "\xe9\x97\x94" \ "\xe9\x97\x96" \ "\xe9\x97\x9c" \ "\xe9\x97\xa1" \ "\xe9\x97\xa5" \ "\xe9\x97\xa2" \ "\xe9\x98\xa1" \ "\xe9\x98\xa8" \ "\xe9\x98\xae" \ "\xe9\x98\xaf" \ "\xe9\x99\x82" \ "\xe9\x99\x8c" \ "\xe9\x99\x8f" \ "\xe9\x99\x8b" \ "\xe9\x99\xb7" \ "\xe9\x99\x9c" \ "\xe9\x99\x9e" \ "\xe9\x99\x9d" \ "\xe9\x99\x9f" \ "\xe9\x99\xa6" \ "\xe9\x99\xb2" \ "\xe9\x99\xac" \ "\xe9\x9a\x8d" \ "\xe9\x9a\x98" \ "\xe9\x9a\x95" \ "\xe9\x9a\x97" \ "\xe9\x9a\xaa" \ "\xe9\x9a\xa7" \ "\xe9\x9a\xb1" \ "\xe9\x9a\xb2" \ "\xe9\x9a\xb0" \ "\xe9\x9a\xb4" \ "\xe9\x9a\xb6" \ "\xe9\x9a\xb8" \ "\xe9\x9a\xb9" \ "\xe9\x9b\x8e" \ "\xe9\x9b\x8b" \ "\xe9\x9b\x89" \ "\xe9\x9b\x8d" \ "\xe8\xa5\x8d" \ "\xe9\x9b\x9c" \ "\xe9\x9c\x8d" \ "\xe9\x9b\x95" \ "\xe9\x9b\xb9" \ "\xe9\x9c\x84" \ "\xe9\x9c\x86" \ "\xe9\x9c\x88" \ "\xe9\x9c\x93" \ "\xe9\x9c\x8e" \ "\xe9\x9c\x91" \ "\xe9\x9c\x8f" \ "\xe9\x9c\x96" \ "\xe9\x9c\x99" \ "\xe9\x9c\xa4" \ "\xe9\x9c\xaa" \ "\xe9\x9c\xb0" \ "\xe9\x9c\xb9" \ "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xbc" \ "\xe9\xab\x80" \ "\xe9\xab\x8f" \ "\xe9\xab\x91" \ "\xe9\xab\x93" \ "\xe9\xab\x94" \ "\xe9\xab\x9e" \ "\xe9\xab\x9f" \ "\xe9\xab\xa2" \ "\xe9\xab\xa3" \ "\xe9\xab\xa6" \ "\xe9\xab\xaf" \ "\xe9\xab\xab" \ "\xe9\xab\xae" \ "\xe9\xab\xb4" \ "\xe9\xab\xb1" \ "\xe9\xab\xb7" \ "\xe9\xab\xbb" \ "\xe9\xac\x86" \ "\xe9\xac\x98" \ "\xe9\xac\x9a" \ "\xe9\xac\x9f" \ "\xe9\xac\xa2" \ "\xe9\xac\xa3" \ "\xe9\xac\xa5" \ "\xe9\xac\xa7" \ "\xe9\xac\xa8" \ "\xe9\xac\xa9" \ "\xe9\xac\xaa" \ "\xe9\xac\xae" \ "\xe9\xac\xaf" \ "\xe9\xac\xb2" \ "\xe9\xad\x84" \ "\xe9\xad\x83" \ "\xe9\xad\x8f" \ "\xe9\xad\x8d" \ "\xe9\xad\x8e" \ "\xe9\xad\x91" \ "\xe9\xad\x98" \ "\xe9\xad\xb4" \ "\xe9\xae\x93" \ "\xe9\xae\x83" \ "\xe9\xae\x91" \ "\xe9\xae\x96" \ "\xe9\xae\x97" \ "\xe9\xae\x9f" \ "\xe9\xae\xa0" \ "\xe9\xae\xa8" \ "\xe9\xae\xb4" \ "\xe9\xaf\x80" \ "\xe9\xaf\x8a" \ "\xe9\xae\xb9" \ "\xe9\xaf\x86" \ "\xe9\xaf\x8f" \ "\xe9\xaf\x91" \ "\xe9\xaf\x92" \ "\xe9\xaf\xa3" \ "\xe9\xaf\xa2" \ "\xe9\xaf\xa4" \ "\xe9\xaf\x94" \ "\xe9\xaf\xa1" \ "\xe9\xb0\xba" \ "\xe9\xaf\xb2" \ "\xe9\xaf\xb1" \ "\xe9\xaf\xb0" \ "\xe9\xb0\x95" \ "\xe9\xb0\x94" \ "\xe9\xb0\x89" \ "\xe9\xb0\x93" \ "\xe9\x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\xbd\xb6" \ "\xe9\xbe\x95" \ "\xe9\xbe\x9c" \ "\xe9\xbe\xa0" \ "\xe5\xa0\xaf" \ "\xe6\xa7\x87" \ "\xe9\x81\x99" \ "\xe7\x91\xa4" \ "\xe5\x87\x9c" \ "\xe7\x86\x99" KANJI_EX = KANJI + "\xe3\x80\x85" # + noma JA_GRAPH = JA_ALNUM + JA_PUNCT + HIRA + KATA + KANJI JA_PRINT = JA_GRAPH + JA_BLANK PUNCT.replace(Regexp.quote(PUNCT)) # kludge to avoid warning "character class has `[' without escape" PRINT.replace(Regexp.quote(PRINT)) # kludge to avoid warning "character class has `[' without escape" GRAPH.replace(Regexp.quote(GRAPH)) # kludge to avoid warning "character class has `[' without escape" JA_PRINT.replace(Regexp.quote(JA_PRINT)) # kludge to avoid warning "character class has `[' without escape" JA_GRAPH.replace(Regexp.quote(JA_GRAPH)) # kludge to avoid warning "character class has `[' without escape" WORD_REGEXP_SRC = ["(?:[#{GRAPH}]+[#{BLANK}]?)", "|(?:[#{SPACE}]+)", "|(?:[#{KANJI_EX}]+[#{HIRA}]+)", "|(?:[#{KATA_EX}]+[#{HIRA}]+)", "|(?:[#{KANJI_EX}]+)", "|(?:[#{KATA_EX}]+)", "|(?:[#{HIRA_EX}]+)", "|(?:.+?)"].join CharString.register_encoding(self) end # module UTF8 end # module CharString end # class DocDiff docdiff-0.5.0+git20160313/lib/docdiff/version.rb000066400000000000000000000000471263141227400206720ustar00rootroot00000000000000module Docdiff VERSION = "0.5.0" end docdiff-0.5.0+git20160313/lib/docdiff/view.rb000066400000000000000000000434231263141227400201640ustar00rootroot00000000000000#!/usr/bin/ruby class String def scan_lines(eol) case eol when nil then scan(/\A.*\Z/m) when "CR" then scan(/.*?\r|[^\r]+\Z/m) when "LF" then scan(/.*?\n|[^\n]+\Z/m) when "CRLF" then scan(/.*?\r\n|.+\Z/m) else raise "#{eol} is not supported.\n" end end def scan_eols(eol) case eol when nil then [] when "CR" then scan(/\r/m) when "LF" then scan(/\n/m) when "CRLF" then scan(/\r\n/m) else raise "#{eol} is not supported.\n" end end end class DocDiff class View # EOL_CHARS_PAT = Regexp.new(/\r\n|\r(?!\n)|(?:\A|[^\r])\n/m) def initialize(difference, encoding, eol) @difference = difference @encoding = encoding @eol = eol @eol_char = {'CR'=>"\r", 'LF'=>"\n", 'CRLF'=>"\r\n"}[@eol] # if CharString::EOLChars[@eol] # @eol_char = CharString::EOLChars[@eol].eol_char # else # @eol_char = nil # end end def difference_whole() @difference end def difference_digest() # end def escape_inside(str, tags) str.gsub(tags[:inside_escape_pat]){|m| tags[:inside_escape_dic][m]} end def escape_outside(str, tags) str.gsub(tags[:outside_escape_pat]){|m| tags[:outside_escape_dic][m]} end def apply_style(tags, headfoot = true) result = [] @difference.each{|block| operation = block.first if block_given? src = yield((block[1] || []).join) tgt = yield((block[1] || []).join) else src = (block[1] || []).join tgt = (block[2] || []).join end case operation when :common_elt_elt result << (tags[:start_common] + escape_outside(src, tags) + tags[:end_common]) when :change_elt result << (tags[:start_before_change] + escape_inside(src, tags) + tags[:end_before_change] + tags[:start_after_change] + escape_inside(tgt, tags) + tags[:end_after_change]) when :del_elt result << (tags[:start_del] + escape_inside(src, tags) + tags[:end_del]) when :add_elt result << (tags[:start_add] + escape_inside(tgt, tags) + tags[:end_add]) else raise "invalid attribute: #{block.first}\n" end } if headfoot == true result = tags[:header] + result + tags[:footer] end result.delete_if{|elem|elem==''} end def encname_for_regexp(encname) def ruby_m17n? "".respond_to?(:force_encoding) end if ruby_m17n? # in 1.9.x, encoding names are deprecated except for N (ASCII-8BIT (binary)) nil else # in 1.8.x, U|E|S|N are accepted encname.sub(/US-ASCII/i, 'none') end end CONTEXT_PRE_LENGTH = 32 CONTEXT_POST_LENGTH = 32 def apply_style_digest(tags, headfoot = true) cxt_pre_pat = Regexp.new('.{0,'+"#{CONTEXT_PRE_LENGTH}"+'}\Z', Regexp::MULTILINE, encname_for_regexp(@encoding)) cxt_post_pat = Regexp.new('\A.{0,'+"#{CONTEXT_POST_LENGTH}"+'}', Regexp::MULTILINE, encname_for_regexp(@encoding)) display = (tags and tags[:display]) || 'inline' result = [] d1l = doc1_line_number = 1 d2l = doc2_line_number = 1 @difference.each_with_index{|entry, i| if block_given? src = yield((entry[1] || []).join) tgt = yield((entry[1] || []).join) else src = (entry[1] || []).join tgt = (entry[2] || []).join end cxt_pre = if i == 0 "" # no pre context for the first entry else (@difference[i-1][1] || []).join.scan(cxt_pre_pat).join end cxt_post = if (i + 1) == @difference.size "" # no post context for the last entry else (@difference[i+1][1] || []).join.scan(cxt_post_pat).join end # elements for an entry e_head = Proc.new {|pos_str| tags[:start_entry] + tags[:start_position] + pos_str + tags[:end_position]} e_cxt_pre = tags[:start_prefix] + escape_outside(cxt_pre, tags) + tags[:end_prefix] e_src = escape_inside(src, tags) e_chg = tags[:start_before_change] + escape_inside(src, tags) + tags[:end_before_change] + tags[:start_after_change] + escape_inside(tgt, tags) + tags[:end_after_change] e_chgdel = tags[:start_before_change] + escape_inside(src, tags) + tags[:end_before_change] e_chgadd = tags[:start_after_change] + escape_inside(tgt, tags) + tags[:end_after_change] e_del = tags[:start_del] + escape_outside(src, tags) + tags[:end_del] e_add = tags[:start_add] + escape_outside(tgt, tags) + tags[:end_add] e_cxt_post = tags[:start_postfix] + escape_outside(cxt_post, tags) + tags[:end_postfix] e_foot = tags[:end_entry] + (@eol_char||"") span1 = source_lines_involved = src.scan_lines(@eol).size span2 = target_lines_involved = tgt.scan_lines(@eol).size pos_str = "" case operation = entry.first when :common_elt_elt # skipping common part when :change_elt pos_str = "#{d1l}" + "#{if span1 > 1 then '-'+(d1l + span1 - 1).to_s; end}" + ",#{d2l}" + "#{if span2 > 1 then '-'+(d2l + span2 - 1).to_s; end}" case display when 'inline' result << (e_head.call(pos_str) + e_cxt_pre + e_chg + e_cxt_post + e_foot) when 'multi' result << (e_head.call(pos_str) + e_cxt_pre + e_chgdel + e_cxt_post + e_cxt_pre + e_chgadd + e_cxt_post + e_foot) else raise "Unsupported display type: #{display}" end when :del_elt pos_str = "#{d1l}" + "#{if span1 > 1 then '-'+(d1l + span1 - 1).to_s; end}" + ",(#{d2l})" case display when 'inline' result << (e_head.call(pos_str) + e_cxt_pre + e_del + e_cxt_post + e_foot) when 'multi' result << (e_head.call(pos_str) + e_cxt_pre + e_src + e_cxt_post + e_cxt_pre + e_del + e_cxt_post + e_foot) else raise "Unsupported display type: #{display}" end when :add_elt pos_str = "(#{d1l})" + ",#{d2l}" + "#{if span2 > 1 then '-'+(d2l + span2 - 1).to_s; end}" case display when 'inline' result << (e_head.call(pos_str) + e_cxt_pre + e_add + e_cxt_post + e_foot) when 'multi' result << (e_head.call(pos_str) + e_cxt_pre + e_src + e_cxt_post + e_cxt_pre + e_add + e_cxt_post + e_foot) else raise "Unsupported display type: #{display}" end else raise "invalid attribute: #{block.first}\n" end d1l += src.scan_eols(@eol).size d2l += tgt.scan_eols(@eol).size } result.unshift(tags[:start_digest_body]) result.push(tags[:end_digest_body]) result = tags[:header] + result + tags[:footer] if headfoot == true result.delete_if{|elem| elem == ''} end def source_lines() if @source_lines == nil @source_lines = @difference.collect{|entry| entry[1]}.join.scan_lines(@eol) end @source_lines end def target_lines() if @target_lines == nil @target_lines = @difference.collect{|entry| entry[2]}.join.scan_lines(@eol) end @target_lines end # tty (terminal) def tty_header() [] end def tty_footer() [] end TTYEscapeDic = {'ThisRandomString' => 'ThisRandomString'} TTYEscapePat = /(\r\n|#{TTYEscapeDic.keys.collect{|k|Regexp.quote(k)}.join('|')})/m def tty_tags() {:outside_escape_dic => TTYEscapeDic, :outside_escape_pat => TTYEscapePat, :inside_escape_dic => TTYEscapeDic, :inside_escape_pat => TTYEscapePat, :start_digest_body => "----#{@eol_char||''}", :end_digest_body => '', :start_entry => '', :end_entry => "----", :start_position => '', :end_position => "#{@eol_char||''}", :start_prefix => '', :end_prefix => '', :start_postfix => '', :end_postfix => "#{@eol_char||''}", :header => tty_header(), :footer => tty_footer(), :start_common => '', :end_common => '', :start_del => "\033[7;4;31m", # Inverted, Underlined, Red :end_del => "\033[0m", :start_add => "\033[7;1;34m", # Inverted, Bold, Blue :end_add => "\033[0m", :start_before_change => "\033[7;4;33m", # Inverted, Underlined, Yellow :end_before_change => "\033[0m", :start_after_change => "\033[7;1;32m", # Inverted, Bold, Green :end_after_change => "\033[0m"} end def to_tty(overriding_opts = nil, headfoot = true) # color escape sequence tags = tty_tags() tags.update(overriding_opts) if overriding_opts apply_style(tags, headfoot) end def to_tty_digest(overriding_opts = nil, headfoot = true) tags = tty_tags tags.update(overriding_opts) if overriding_opts apply_style_digest(tags, headfoot) end # HTML (XHTML) def html_header() ["#{@eol_char||''}", "#{@eol_char||''}", "#{@eol_char||''}", "#{@eol_char||''}", "Difference#{@eol_char||''}", "#{@eol_char||''}", "
#{@eol_char||''}"] end def html_footer() [(@eol_char||"") + '
' + (@eol_char||"")] end HTMLEscapeDic = {'<'=>'<', '>'=>'>', '&'=>'&', ' '=>'  ', "\r\n" => "
\r\n", "\r" => "
\r", "\n" => "
\n"} HTMLEscapePat = /(\r\n|#{HTMLEscapeDic.keys.collect{|k|Regexp.quote(k)}.join('|')})/m def html_tags() {:outside_escape_dic => HTMLEscapeDic, :outside_escape_pat => HTMLEscapePat, :inside_escape_dic => HTMLEscapeDic, :inside_escape_pat => HTMLEscapePat, :start_digest_body => '
    ', :end_digest_body => '
', :start_entry => '
  • ', :end_entry => '
  • ', :start_position => '

    ', :end_position => '

    ', :start_prefix => '

    ', :end_prefix => '', :start_postfix => '', :end_postfix => '

    ', :header => html_header(), :footer => html_footer(), :start_common => '', :end_common => '', :start_del => '', :end_del => '', :start_add => '', :end_add => '', :start_before_change => '', :end_before_change => '', :start_after_change => '', :end_after_change => ''} end def to_html(overriding_opts = nil, headfoot = true) tags = html_tags() tags.update(overriding_opts) if overriding_opts apply_style(tags, headfoot) end def to_html_digest(overriding_opts = nil, headfoot = true) tags = html_tags() tags.update(overriding_opts) if overriding_opts apply_style_digest(tags, headfoot) end # Manued def manued_header() ["defparentheses [ ]" + (@eol_char||"\n"), "defdelete /" + (@eol_char||"\n"), "defswap |" + (@eol_char||"\n"), "defcomment ;" + (@eol_char||"\n"), "defescape ~" + (@eol_char||"\n"), "deforder newer-last" + (@eol_char||"\n"), "defversion 0.9.5" + (@eol_char||"\n")] end def manued_footer() [] end ManuedInsideEscapeDic = {'~'=>'~~', '/'=>'~/', '['=>'~[', ']'=>'~]', ';'=>'~;'} ManuedInsideEscapePat = /(#{ManuedInsideEscapeDic.keys.collect{|k|Regexp.quote(k)}.join('|')})/m ManuedOutsideEscapeDic = {'~'=>'~~', '['=>'~['} ManuedOutsideEscapePat = /(#{ManuedOutsideEscapeDic.keys.collect{|k|Regexp.quote(k)}.join('|')})/m def manued_tags() {:inside_escape_dic => ManuedInsideEscapeDic, :inside_escape_pat => ManuedInsideEscapePat, :outside_escape_dic => ManuedOutsideEscapeDic, :outside_escape_pat => ManuedOutsideEscapePat, :start_digest_body => "----#{@eol_char||''}", :end_digest_body => '', :start_entry => '', :end_entry => "----", :start_position => '', :end_position => "#{@eol_char||''}", :start_prefix => '', :end_prefix => '', :start_postfix => '', :end_postfix => "#{@eol_char||''}", :header => manued_header(), :footer => manued_footer(), :start_common => '', :end_common => '', :start_del => '[', :end_del => '/]', :start_add => '[/', :end_add => ']', :start_before_change => '[', :end_before_change => '/', :start_after_change => '', :end_after_change => ']' } end def to_manued(overriding_opts = nil, headfoot = true) # [ / ; ] tags = manued_tags() tags.update(overriding_opts) if overriding_opts apply_style(tags, headfoot) end def to_manued_digest(overriding_opts = nil, headfoot = true) # [ / ; ] tags = manued_tags() # manued specific kludge: change should be [a/b] in inline, [a/][/b] in multi display = (overriding_opts and overriding_opts[:display]) || 'inline' if display == 'multi' tags.update({:end_before_change => '/]', :start_after_change => '[/'}) end tags.update(overriding_opts) if overriding_opts apply_style_digest(tags, headfoot) end # wdiff-like def wdiff_header() [] end def wdiff_footer() [] end WDIFFEscapeDic = {'ThisRandomString' => 'ThisRandomString'} WDIFFEscapePat = /(\r\n|#{WDIFFEscapeDic.keys.collect{|k|Regexp.quote(k)}.join('|')})/m def wdiff_tags() {:outside_escape_dic => WDIFFEscapeDic, :outside_escape_pat => WDIFFEscapePat, :inside_escape_dic => WDIFFEscapeDic, :inside_escape_pat => WDIFFEscapePat, :start_digest_body => "----#{@eol_char||''}", :end_digest_body => '', :start_entry => '', :end_entry => "----", :start_position => '', :end_position => "#{@eol_char||''}", :start_prefix => '', :end_prefix => '', :start_postfix => '', :end_postfix => "#{@eol_char||''}", :header => wdiff_header(), :footer => wdiff_footer(), :start_common => '', :end_common => '', :start_del => '[-', :end_del => '-]', :start_add => '{+', :end_add => '+}', :start_before_change => '[-', :end_before_change => '-]', :start_after_change => '{+', :end_after_change => '+}'} end def to_wdiff(overriding_opts = nil, headfoot = true) tags = wdiff_tags() tags.update(overriding_opts) if overriding_opts apply_style(tags) end def to_wdiff_digest(overriding_opts = nil, headfoot = true) tags = wdiff_tags() tags.update(overriding_opts) if overriding_opts apply_style_digest(tags, headfoot) end # user defined markup def user_header(); []; end def user_footer(); []; end UserEscapeDic = {'ThisRandomString' => 'ThisRandomString'} UserEscapePat = /(\r\n|#{UserEscapeDic.keys.collect{|k|Regexp.quote(k)}.join('|')})/m def user_tags() {:outside_escape_dic => UserEscapeDic, :outside_escape_pat => UserEscapePat, :inside_escape_dic => UserEscapeDic, :inside_escape_pat => UserEscapePat, :start_digest_body => '', :end_digest_body => '', :start_entry => '', :end_entry => '', :start_position => '', :end_position => ' ', :start_prefix => '', :end_prefix => '', :start_postfix => '', :end_postfix => '', :header => user_header(), :footer => user_footer(), :start_common => '', :end_common => '', :start_del => '', :end_del => '', :start_add => '', :end_add => '', :start_before_change => '', :end_before_change => '', :start_after_change => '', :end_after_change => ''} end def to_user(overriding_opts = nil, headfoot = true) tags = user_tags() tags.update(overriding_opts) if overriding_opts apply_style(tags, headfoot) end def to_user_digest(overriding_opts = nil, headfoot = true) tags = user_tags() tags.update(overriding_opts) if overriding_opts apply_style_digest(tags, headfoot) end def to_debug() end end end # class DocDiff docdiff-0.5.0+git20160313/lib/viewdiff.rb000066400000000000000000000240051263141227400174120ustar00rootroot00000000000000#!/usr/bin/ruby # 2005-08-29..xx-xx-xx Hisashi Morita require 'docdiff/difference' require 'docdiff/document' require 'docdiff/view' require 'docdiff/charstring' require "tempfile" # $KCODE="e" class String def to_lines scan(Regexp.new("(?:.*(?:\r\n|\r|\n|\z))", Regexp::MULTILINE)) end end class DocDiff def scan_text_for_diffs(src) eol = "(?:\r\n|\n|\r)" pats = { :classic => "(?:[0-9]+(?:,[0-9]+)?[dac][0-9]+(?:,[0-9]+)?#{eol}.+?(?=^[^-<>0-9 ]))", :context => "(?:^\\*{3} .+?#{eol}--- .+?#{eol}.+?(?=^[^-+! *]|\\z))", :unified => "(?:^--- .+?#{eol}^\\+{3} .+?#{eol}.+?(?=^[^-+ @]|\\z))" } src.scan(/(?:#{pats.values.join("|")})|(?:.*?#{eol}+)/m) end class DiffFile < Array def initialize(src) src.extend(CharString) src.encoding = CharString.guess_encoding(src) src.eol = CharString.guess_eol(src) @src = src end attr_accessor :src def guess_diff_type(text) case when (/^[<>] /m).match(text) then return "classic" when (/^[-+!] /m).match(text) then return "context" when (/^[-+]/m).match(text) then return "unified" else return "unknown" end end def anatomize case guess_diff_type(@src) when "classic" then return anatomize_classic(@src) when "context" then return anatomize_context(@src) when "unified" then return anatomize_unified(@src) else raise "unsupported diff format: \n#{src.inspect}" end end end module ClassicDiff def eol "(?:\r\n|\n|\r)" end def noeol "(?:[^\r\n])" end def hunk_header "(?:[0-9]+(?:,[0-9]+)?[dac][0-9]+(?:,[0-9]+)?#{eol})" end def del "(?:^< ?#{noeol}*?#{eol})" end def sep "(?:^---#{eol})" end def add "(?:^> ?#{noeol}*?#{eol})" end def change "(?:#{del}+#{sep}#{add}+)" end def misc "(?:.*?(?:#{eol}|\z))" end def hunk "(?:#{hunk_header}(?:#{change}|#{del}+|#{add}+))" end def elements "(?:#{hunk}|#{misc})" end end def anatomize_classic(src) self.extend ClassicDiff diffed = [] src_encoding = CharString.guess_encoding(src) src_eol = CharString.guess_eol(src) src.scan(Regexp.new(elements, Regexp::MULTILINE)){|m| case when /\A[0-9]/.match(m) then # hunk diffed.concat(anatomize_classic_hunk(m, src_encoding, src_eol)) else # not hunk diffed.concat(Difference.new(m.split(/^/), m.split(/^/))) end } return diffed end def anatomize_classic_hunk(a_hunk, src_encoding, src_eol) self.extend ClassicDiff diffed = [] a_hunk.scan(/(#{hunk_header})(#{change}|#{del}+|#{add}+)/){|n| head, body = [$1, $2].collect{|e| e.extend(CharString) e.encoding, e.eol = src_encoding, src_eol e } diffed.concat(Difference.new(head.to_words, head.to_words)) case when /d/.match(head) # del diffed.concat(Difference.new(body.to_words, [])) when /a/.match(head) # add diffed.concat(Difference.new([], body.to_words)) when /c/.match(head) # change (need tweak) former, latter = body.split(/#{sep}/).collect{|e| e.extend(CharString) e.encoding, e.eol = src_encoding, src_eol e } d = Difference.new(former.to_words, latter.to_words) diffed_former = d.former_only diffed_latter = d.latter_only sepstr = /#{sep}/.match(body).to_s.extend(CharString) sepstr.encoding, sepstr.eol = src_encoding, src_eol sepelm = Difference.new(sepstr.to_words, sepstr.to_words) diffed.concat(diffed_former + sepelm + diffed_latter) else raise "invalid hunk header: #{head}" end } return diffed end module ContextDiff def eol "(?:\r\n|\n|\r|\\z)" end def noneol "(?:[^\r\n])" end def hunk_header "(?:\\*+#{eol})" end def hunk_subheader_former "(?:^\\*+ [0-9]+,[0-9]+ \\*+#{eol})" end def hunk_subheader_latter "(?:^-+ [0-9]+,[0-9]+ -+#{eol})" end def del "(?:^- #{noneol}*?#{eol})" end def add "(?:^\\+ #{noneol}*?#{eol})" end def change "(?:^! #{noneol}*?#{eol})" end def misc "(?:^[^-+!*]+?#{eol}+?)" end def any "(?:#{del}+|#{add}+|#{change}+|#{misc}+)" end def file_header "(?:[-\\*]{3} #{noneol}+?#{eol})" end def elements "(?:#{file_header}|#{hunk_header}#{hunk_subheader_former}#{any}*?#{hunk_subheader_latter}#{any}+|#{misc}|#{noneol}+#{eol})" end end def anatomize_context(src) self.extend ContextDiff diffed = [] src_encoding = CharString.guess_encoding(src) src_eol = CharString.guess_eol(src) src.scan(/#{elements}/m){|m| case when /\A\*{10,}#{eol}^\*{3} /.match(m) then # hunk diffed.concat(anatomize_context_hunk(m, src_encoding, src_eol)) else # not hunk m.extend(CharString) m.encoding, m.eol = src_encoding, src_eol diffed.concat(Difference.new(m.to_words, m.to_words)) end } return diffed end def anatomize_context_hunk(a_hunk, src_encoding, src_eol) self.extend ContextDiff diffed = [] h, sh_f, body_f, sh_l, body_l = nil a_hunk.scan(/(#{hunk_header})(#{hunk_subheader_former})(.*?)(#{hunk_subheader_latter})(.*?)\z/m){|m| h, sh_f, body_f, sh_l, body_l = m[0..4].collect{|he| if he he.extend(CharString) he.encoding, he.eol = src_encoding, src_eol end he } } diffed_former, diffed_latter = anatomize_context_hunk_scanbodies(body_f, body_l, src_encoding, src_eol) diffed.concat(Difference.new(h.to_words, h.to_words) + Difference.new(sh_f.to_words, sh_f.to_words) + diffed_former + Difference.new(sh_l.to_words, sh_l.to_words) + diffed_latter) return diffed end def anatomize_context_hunk_scanbodies(body_f, body_l, src_encoding, src_eol) body_f = '' if body_f.nil? body_l = '' if body_l.nil? self.extend ContextDiff changes_org = [[], []] changes_org[0], changes_org[1] = [body_f, body_l].collect{|b| b.scan(/#{change}+/).collect{|ch| if ch ch.extend(CharString) ch.encoding, ch.eol = src_encoding, src_eol end ch } } changes = changes_org.dup diffed = [[], []] [body_f, body_l].each_with_index{|half, i| changes[0], changes[1] = changes_org[0].dup, changes_org[1].dup half.scan(/(#{del}+)|(#{add}+)|(#{change}+)|(#{misc}+)/m){|elm| elm_d, elm_a, elm_c, elm_cmn = elm[0..3] [elm_d, elm_a, elm_c, elm_cmn].collect{|e| if e e.extend(CharString) e.encoding, e.eol = src_encoding, src_eol end e } case when elm_d then d = Difference.new(elm_d.to_words, []) when elm_a then d = Difference.new([], elm_a.to_words) when elm_c then d = Difference.new(changes[0].shift.to_words, changes[1].shift.to_words) case i when 0 then d = d.former_only when 1 then d = d.latter_only else raise end when elm_cmn then d = Difference.new(elm_cmn.to_words, elm_cmn.to_words) else raise "bummers!" end diffed[i].concat(d) } # end half.scan } # end each_with_index return diffed end module UnifiedDiff def eol "(?:\r\n|\n|\r|\z)" end def noneol "(?:[^\r\n])" end def hunk_header "(?:@@ #{noneol}+#{eol})" end def del "(?:^-#{noneol}*?#{eol})" end def add "(?:^\\+#{noneol}*?#{eol})" end def change "(?:#{del}+#{add}+)" end def common "(?:^ #{noneol}*?#{eol})" end def misc "(?:^[^-+]+?#{eol}+?)" end def any "(?:#{del}+|#{add}+|#{change}+|#{common}+|#{misc}+)" end def file_header "(?:^[^-+@ ]#{noneol}+#{eol}(?:^[-+]{3} #{noneol}+#{eol}){2})" end def elements "(?:#{file_header}|#{hunk_header}#{any}+?|#{misc}|#{noneol}+#{eol})" end end def anatomize_unified(src) self.extend UnifiedDiff diffed = [] src_encoding = CharString.guess_encoding(src) src_eol = CharString.guess_eol(src) src.scan(/#{elements}/m){|m| case when /\A@@ /.match(m) then # hunk diffed.concat(anatomize_unified_hunk(m.to_s, src_encoding, src_eol)) else # not hunk m.extend(CharString) m.encoding, m.eol = src_encoding, src_eol diffed.concat(Difference.new(m.to_words, m.to_words)) end } return diffed end def anatomize_unified_hunk(a_hunk, src_encoding, src_eol) self.extend UnifiedDiff diffed = [] a_hunk.scan(/(#{hunk_header})(#{any}+#{eol}?)/m){|m| head, body = m[0], m[1] [head, body].collect{|e| e.extend(CharString) e.encoding, e.eol = src_encoding, src_eol } diffed.concat(Difference.new(head.to_words, head.to_words)) body.scan(/(#{del}+)(#{add}+)|(#{del}+#{eol}?)|(#{add}+)|(#{common}+#{eol}?)|(.*#{eol}?)/m){|m| cf, cl, d, a, cmn, msc = m[0..5] [cf, cl, d, a, cmn, msc].collect{|e| e.extend(CharString) e.encoding, e.eol = src_encoding, src_eol } case when (cf and cl) then Difference.new(cf.to_words, cl.to_words).each{|e| case e.first when :change_elt then diffed << [:change_elt, e[1], nil] diffed << [:change_elt, nil, e[2]] when :del_elt then diffed << [:change_elt, e[1], nil] when :add_elt then diffed << [:change_elt, nil, e[2]] when :common_elt_elt then diffed << e else raise "bummers! (#{e.inspect})" end } when d then diffed.concat(Difference.new(d.to_words, [])) when a then diffed.concat(Difference.new([], a.to_words)) when cmn then diffed.concat(Difference.new(cmn.to_words, cmn.to_words)) when msc then diffed.concat(Difference.new(msc.to_words, msc.to_words)) else raise "bummers! (#{m.inspect})" end } } return diffed end end # class DocDiff if $0 == __FILE__ src = ARGF.read enc, eol = DocDiff::CharString.guess_encoding(src), DocDiff::CharString.guess_eol(src) DocDiff.new.scan_text_for_diffs(src).each{|fragment| if DocDiff::DiffFile.new('').guess_diff_type(fragment) == "unknown" print fragment else diff = DocDiff::DiffFile.new(fragment).anatomize print DocDiff::View.new(diff, enc, eol).to_tty end } end docdiff-0.5.0+git20160313/readme.html000066400000000000000000001014501263141227400166370ustar00rootroot00000000000000 DocDiff Readme

    DocDiff Readme

    2000-12-09..2011-02-23 Hisashi MORITA


    Table of Contents 目次


    News ニュース

    • 0.5.0 (2011-08-12)
      • Gemify. Now you can download docdiff via rubygems.org.
      • Fix failing test on ruby1.9.2-p290.
    • 0.4.0 (2011-02-23)
      • Compatible with Ruby 1.9 (thanks to Kazuhiko).
    • 0.3.4 (2007-12-10)
      • Increased context length in digest mode from 16 to 32.
      • Added --display=inline|multi option. With inline, things before change and things after change are displayed inline. With multi, they are displayed in separate blocks. Default is inline.
      • Added --iso8859x option as an alias to --encoding=ASCII, so that users notice DocDiff can handle text in ISO-8859-* encoding.
    • 0.3.3 (2006-02-03)
      • Fixed arg test so that we can compare non-normal files, such as device files and named pipes (thanks to Shugo Maeda).
      • Added DocDiff Web UI sample (experimental).
      • Fixed HTML output to produce valid XHTML (thanks to Hiroshi OHKUBO). Note that CSS in HTML output is slightly changed.
      • Replaced underscores(_) in CSS class names to hyphens(-) so that older UAs can understand them (thanks to Kazuhiro NISHIYAMA).
    • 0.3.2 (2005-01-03)
      • Readme is multilingualized (added partial Japanese translation). Try switching CSS between en and ja. Monolingual files are also available (readme.en.html, readme.ja.html).
      • Outputs better error messages when it failed to auto-detect the encoding and/or eol, though the accuracy is the same.
      • Switched revision control system from CVS to Subversion.
    • 0.3.1 (2004-08-29)
      • Added -L (--label) option place holder in order to be used as external diff program from Subversion.
    • 0.3.0 (2004-05-29)
      • Re-designed and re-written from scratch.
      • Supports multiple encodings (ASCII, EUC-JP, Shift_JIS, UTF-8) and multiple eols (CR, LF, CRLF).
      • Supports more output formats (tty, HTML, Manued, wdiff-like, user-defined markup text).
      • Supports configuration files (/etc/docdiff/docdiff.conf, ~/etc/docdiff/docdiff.conf (or ~/.docdiff/docdiff.conf)).
      • Introduced digest (summary) mode.
      • Approximately 200% faster than older versions, thanks to akr's diff library.
      • Better documentation and help message.
      • License changed from Ruby's to modified BSD style.
      • Pure Ruby. Does not require external diff program such as GNU diff, or morphological analyzer such as ChaSen.
      • Runs on both Unix and Windows (tested on Debian GNU/Linux and Cygwin)
      • Unit tests introduced to decrease bugs and to encourage faster development.
      • Makefile introduced.
    • 0.1.8 (2003-12-14)
      • Displays warning when --bymorpheme is specified but ChaSen is not available (patch by Akira YAMADA: Debian bug #192258).
      • Supports system-wide configuration file (if ~/.chasenrc.docdiff does not exist, reads /etc/docdiff/chasenrc) (patch by Akira YAMADA: Debian bug #192261).
    • 0.1.7 (2003-11-21)
      • HTML output retains spaces (&nbsp; patch by Akira YAMADA).
      • Manued output is added. Use --manued command line option to get result in Manued-like format.
      • Fixed .chasenrc.docdiff to be compatible with the latest ChaSen, so that it does not cause error.
      • Alphabet words in the output may look ugly, since ChaSen does not keep spaces between alphabetical words recently.
      • Other minor bug fixes and code cleanup.
    • 0.2.0b2 (2001-08-31)
      • Code cleanup.
    • 0.2.0b1 (2001-08-31)
      • A bit faster than 0.1.x, using file cache.
      • A bit cleaner code.
    • 0.1.6 (2001-05-16)
      • Increased diff option number from 100000 to 1000000 in order to support 900KB+ text files.
    • 0.1.5 (2001-01-17)
      • Erased useless old code which were already commented out.
      • Added documentation. (Updated README, more comments)
      • First public release. Registered to RAA.
    • 0.1.4 (2001-01-16)
      • Output is like <tag>ab</tag>, instead of ugly <tag>a</tag><tag>b</tag> (thanks again to Masatoshi Seki for suggestion).
      • Fixed hidden bug ('puts' was used to output result).
      • Some code clean-up, though still hairy enough.
    • 0.1.3 (2001-01-09)
      • Tested with Ruby 1.6.2.
      • Fixed "meth(a,b,)" bug (thanks to Masatoshi Seki).
      • Switched development platform from Windows to Linux, but it should work fine on Windows too, except for ChaSen stuff.
    • 0.1.2 (2000-12-28)
      • Mostly bug fix.
    • 0.1.1 (2000-12-25)
      • Bug fix and some cleanup.
      • Quotes some of HTML special characters (<>&) when output in HTML.
      • Added support for tty output using escape sequence.
    • 0.1.0 (2000-12-19)
      • ChaSen works fine now.
      • GetOptLong was introduced to support command line options.
    • 0.1.0a1 (2000-12-16)
      • Added ChaSen support. Japanese word by word comparison requires ChaSen.
      • Converted scripts from Shift_JIS/CRLF to EUC-JP/LF.
    • 0.0.2 (2000-12-10)
      • Rewritten to use class.
    • 0.0.1 (2000-12-09)
      • First version. Proof-of-concept.
      • Supports ASCII, EUC-JP, LF only.
      • Supports HTML output only.
      • Requires GNU diff.
      • Distributed under the same license as Ruby's

    See the ChangeLog for detail.

    Todo 予定

    • Incorporate ignore space patch.
    • Better auto-recognition of encodings and eols.
    • Make CSS and tty escape sequence customizable in config files.
    • Better multilingualization using Ruby 1.9 feature.
    • Write "DocPatch".

    Description 簡単な説明

    Compares two text files by word, by character, or by line

    2つのテキストファイルを単語ごと、文字ごと、あるいは行ごとに比較する

    Summary 概要

    DocDiff compares two text files and shows the difference. It can compare files word by word, character by character, or line by line. It has several output formats such as HTML, tty, Manued, or user-defined markup.

    DocDiffは2つのテキストファイルを比較してその違いを表示します。単語ごと、文字ごと、そして行ごとにファイルを比較できます。結果を出力する形式は、HTML, tty(文字端末向けのエスケープシーケンス), Manued(真鵺道という校正用のマークアップ形式)などが用意されており、ユーザ定義のタグを使うこともできます。

    It supports several encodings and end-of-line characters, including ASCII (and other single byte encodings such as ISO-8859-*), UTF-8, EUC-JP, Shift_JIS, CR, LF, and CRLF.

    次のエンコーディング(文字コード)と行末コード(改行文字)をサポートしています: ASCII(およびISO-8859-*などのシングルバイトエンコーディング), UTF-8, EUC-JP, Shift_JIS、そしてCR, LF, CRLF.


    Requirement 必要なもの

    • Ruby
      (Note that you may need additional ruby library such as iconv, if your OS's Ruby package does not include those.)
    • Ruby
      (注意: あなたが使っているOS向けのRubyパッケージがiconvなどのライブラリを含んでいない場合は、別途それらを手に入れる必要があるかもしれません。)

    Installation インストール方法

    Note that you need appropriate permission for proper installation (you may have to have a root/administrator privilege).

    注意: 正しくインストールするためには適切なファイルアクセス権限が必要です(管理者権限が必要な場合があります)。

    1. Place docdiff/ directory and its contents to ruby library directory, so that ruby interpreter can load them.
      (e.g.

      # cp -r docdiff /usr/lib/ruby/1.9.1

      )
    2. Place docdiff.rb in command binary directory.
      (e.g.

      # cp docdiff.rb /usr/bin/

      )
      (Optional) You may want to rename it to docdiff.
      (e.g.

      # mv /usr/bin/docdiff.rb /usr/bin/docdiff

      )
      (Optional) When invoked as chardiff or worddiff, docdiff runs with resolution set to char or word, respectively.
      (e.g.

      # ln -s /usr/bin/docdiff.rb /usr/bin/chardiff.rb
      # ln -s /usr/bin/docdiff.rb /usr/bin/worddiff.rb

      )
    3. Set appropriate permission.
      (e.g.

      # chmod +x /usr/bin/docdiff.rb

      )
    4. (Optional) If you want site-wide configuration file, place docdiff.conf.example as /etc/docdiff/docdiff.conf and edit it.
      (e.g.

      # cp docdiff.conf.example /etc/docdiff.conf
      # $EDITOR /etc/docdiff.conf

      )
    5. (Optional) If you want per-user configuration file, place docdiff.conf.example as ~/etc/docdiff/docdiff.conf and edit it.
      (e.g.

      % cp docdiff.conf.example ~/etc/docdiff.conf
      % $EDITOR ~/etc/docdiff.conf

      )
    1. docdiff/ディレクトリとその内容をrubyのライブラリを格納するディレクトリに配置して、Rubyインタプリタがdocdiffライブラリをロードできるようにする。
      (e.g.

      # cp -r docdiff /usr/lib/ruby/1.9.1

      )
    2. docdiff.rbをコマンドを格納するディレクトリに配置する。
      (e.g.

      # cp docdiff.rb /usr/bin/

      )
      ここで必要に応じてファイル名をdocdiffのように変更してもよい。
      (e.g.

      # mv /usr/bin/docdiff.rb /usr/bin/docdiff

      )
    3. 適切なパーミッションを設定する。
      (e.g.

      # chmod +x /usr/bin/docdiff.rb

      )
    4. (オプション) もしサイトの全ユーザに適用される設定ファイルが必要なら、docdiff.conf.example/etc/docdiff/docdiff.confとして配置し、編集する。
      (e.g.

      # cp docdiff.conf.example /etc/docdiff.conf
      # $EDITOR /etc/docdiff.conf

      )
    5. (オプション) もしユーザごとの設定ファイルが必要なら、docdiff.conf.example~/etc/docdiff/docdiff.confとして配置し、編集する。
      (e.g.

      % cp docdiff.conf.example ~/etc/docdiff.conf
      % $EDITOR ~/etc/docdiff.conf

      )

    Usage 使い方

    Synopsis 概要

    docdiff [options] oldfile newfile
    e.g. % docdiff old.txt new.txt > diff.html

    See the help message for detail (docdiff --help).

    詳しくはヘルプメッセージを参照してください(docdiff --help)。

    Example

    % cat sample/01.en.ascii.lf
    Hello, my name is Watanabe.
    I am just another Ruby porter.
    % cat sample/02.en.ascii.lf
    Hello, my name is matz.
    It's me who has created Ruby. I am a Ruby hacker.
    % docdiff sample/01.en.ascii.lf sample/02.en.ascii.lf
    Hello, my name is Watanabe.matz.
    It's me who has created Ruby.  I am just another a Ruby porter.hacker.
    %

    % cat sample/01.ja.eucjp.lf
    こんにちは、私の名前はわたなべです。
    私はJust Another Ruby Porterです。
    % cat sample/02.ja.eucjp.lf
    こんばんは、私の名前はまつもとです。
    Rubyを作ったのは私です。私はRuby Hackerです。
    % docdiff sample/01.ja.eucjp.lf sample/02.ja.eucjp.lf
    こんにちはこんばんは、私の名前はわたなべです名前はまつもとです
    Rubyを作ったのは私です。私はJust Another Ruby PorterHackerです。
    %

    Configuration 設定

    You can place configuration files at:

    設定ファイルは次の場所に配置すると有効になります:

    • /etc/docdiff/docdiff.conf (site-wide configuration)
    • ~/etc/docdiff/docdiff.conf (user configuration)
      (~/etc/docdiff/docdiff.conf is used by default in order to keep home directory clean, preventing dotfiles and dotdirs from scattering around. Alternatively, you can use ~/.docdiff/docdiff.conf as user configuration file name, following the traditional Unix convention.)
    • /etc/docdiff/docdiff.conf(サイト全体の設定)
    • ~/etc/docdiff/docdiff.conf(ユーザごとの設定)
      (標準の設定では、ホームディレクトリにドットファイルをまき散らかさないために、~/etc/docdiff/docdiff.confが使われます。または、昔ながらのUnixの慣習に従って~/.docdiff/docdiff.confを使ってももちろん構いません。ただし両方同時には使えません)

    Notation is as follows (also refer to the file docdiff.conf.example included in the distribution archive):

    設定ファイルの記法は次のとおりです(docdiff.conf.exampleファイルも参照してください。配布アーカイブに含まれているはずです):

    # comment
    key1 = value
    key2 = value
    ...

    Every value is treated as string, unless it seems like a number. In such case, value is treated as a number (usually an integer).

    値(value)は、数字として解釈できるもの以外は、すべて文字列として扱われます。数字は数値(たいていは整数)として扱われます。

    Troubleshooting and Tips 問題解決とヒント

    wrong argument type nil (expected Module) (TypeError) wrong argument type nil (expected Module) (TypeError)

    Sometimes DocDiff fails to auto-recognize encoding and/or end-of-line character. You may get an error like this.

    DocDiffがたまにエンコーディングや行末文字の自動判定に失敗して、次のようなエラーを出力することがあります。

    charstring.rb:47:in `extend': wrong argument type nil (expected Module) (TypeError)

    In such a case, try explicitly specifying encoding and end-of-line character (e.g. docdiff --utf8 --crlf).

    このような場合は、エンコーディングや行末文字を明示的に指定してみてください(e.g. docdiff --utf8 --crlf)。

    Inappropriate Insertion / Deletion 不適切な挿入と削除

    When comparing space-separated texts (such as English or program source code), the word next to the end of line is sometimes unnecessarily deleted and inserted. This is due to the limitation of DocDiff's word splitter. It splits strings into words like the following.

    スペースで区切られたテキスト(英文やプログラムのソースコードなど)を比較しているときに、行末にある単語が、特に必要もないのにいったん削除されてからまた挿入されることがあります。これはDocDiffの単語分割機能に制限があるせいで起きます。テキストは次のように単語に分割されます。

    text 1:

    foo bar
    ("foo bar" => ["foo ", "bar"])

    text 2:

    foo
    bar
    ("foo\nbar" => ["foo", "\n", "bar"])

    comparison result:

    foo foo
    bar
    ("<del>foo </del><ins>foo</ins><ins>\n</ins>bar")

    Foo is (unnecessarily) deleted and inserted at the same time.

    Fooは(必要もないのに)削除されると同時に挿入されています。

    I would like to fix this sometime, but it's not easy. If you split single space as single element (i.e. ["foo", " ", "bar"]), the word order of the comparison result will be less natural. Suggestions are welcome.

    作者はこの問題をいつか解決したいと思っていますが、簡単ではなさそうです。もし空白を1つの要素として分割したなら(i.e. ["foo", " ", "bar"])、比較した結果出力される単語の並びが今よりも不自然になってしまいます。良い案があったら教えてください。

    Using DocDiff with Version Control Systems DocDiffをバージョン管理システムと組み合わせて使う

    If you want to use DocDiff as an external diff program from VCSs, the following may work.

    DocDiffをVCSの外部diffプログラムとして使いたければ、次のようにするとよいでしょう。

    Subversion

    % svn diff --diff-cmd=docdiff --extensions "--ascii --lf --tty --digest"

    Git

    % GIT_EXTERNAL_DIFF=~/bin/gitdocdiff.sh git diff

    ~/bin/gitdocdiff.sh:

    #!/bin/sh
    docdiff --ascii --lf --tty --digest $2 $5

    With zsh, you can use DocDiff or other utility to compare arbitrary sources. In the following example, we compare specific revision of foo.html in a repository with one on a website.

    zshを使えば、いろいろな場所にある文書をDocDiffや他のユーティリティで自由に比較できます。次の例ではリポジトリ内の特定のリビジョンのfoo.htmlとウェブサイト上のfoo.htmlとを比較しています。

    CVS:
    % docdiff =(cvs -Q update -p -r 1.3 foo.html) =(curl --silent http://www.example.org/foo.html)

    Subversion:
    % docdiff =(svn cat -r3 http://svn.example.org/repos/foo.html) =(curl --silent http://www.example.org/foo.html)

    Comparing Non-plain Text Files Such As HTML or Microsoft Word Documents HTMLやWord文書などのプレーンテキストではないファイルを比較する

    You can compare files other than plain text, such as HTML and Microsoft Word documents, if you use appropriate converter.

    適切な変換ツールを使えば、HTMLやMicrosoft Word文書など、プレーンテキスト以外のファイルも比較できます。

    Comparing the content of two HTML documents (without tags) HTML文書の内容(タグを除く)を比較:
    % docdiff =(w3m -dump -cols 10000 foo.html) =(w3m -dump -cols 10000 http://www.example.org/foo.html)

    Comparing the content of two Microsoft Word documents Microsoft Word文書の内容を比較:
    % docdiff =(wvWare foo.doc | w3m -T text/html -dump -cols 10000) =(wvWare bar.doc | w3m -T text/html -dump -cols 10000)

    Workaround for Latin-* (ISO-8859-*) encodings: Use ASCII Latin-* (ISO-8859-*) のための回避策: ASCIIを指定する

    If you want to compare Latin-* (ISO-8859-*) texts, try using ASCII as their encoding. When ASCII is specified, DocDiff assumes single-byte characters.

    文字コードがLatin-* (ISO-8859-*) のテキストを扱うときは、文字コードにASCIIを指定してみてください。ASCIIが指定されると、DocDiffは対象をシングルバイト文字のテキストとして扱います。

    Comparing Latin-1 texts:
    % docdiff --encoding=ASCII latin-1-old.txt latin-1-new.txt


    License ライセンス

    This software is distributed under so-called modified BSD style license (http://www.opensource.org/licenses/bsd-license.php (without advertisement clause)). By contributing to this software, you agree that your contribution may be incorporated under the same license.

    このソフトウェアはいわゆる修正BSDスタイルライセンス(http://www.opensource.org/licenses/bsd-license.php(広告条項なし))のもとで配布されています。このソフトウェアに貢献すると、あなたは貢献したものが同ライセンスのもとに取り込まれることに同意したとみなされます。

    Copyright and condition of use of main portion of the source:

    ソースコードの主となる部分の著作権と使用条件は次のとおりです:

    Copyright (C) Hisashi MORITA.  All rights reserved.
    
    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions
    are met:
    1. Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.
    2. Redistributions in binary form must reproduce the above copyright
       notice, this list of conditions and the following disclaimer in the
       documentation and/or other materials provided with the distribution.
    3. Neither the name of the University nor the names of its contributors
       may be used to endorse or promote products derived from this software
       without specific prior written permission.
    
    THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
    ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    SUCH DAMAGE.
    

    diff library (docdiff/diff.rb and docdiff/diff/*) was originally a part of Ruby/CVS by Akira TANAKA. Ruby/CVS is licensed under modified BSD style license. See the following for detail.

    diffライブラリ(docdiff/diff.rbおよびdocdiff/diff/*)は、もともと田中哲さんによるRuby/CVSの一部分でした。Ruby/CVSは修正BSDスタイルライセンスのもとで配布されています。詳細は次を参照してください。

    Credits クレジット

    • Hisashi MORITA (primary author)

    Acknowledgments 謝辞

    • Akira TANAKA (diff library author)
    • Shin'ichiro HARA (initial idea and algorithm suggestion)
    • Masatoshi SEKI (patch)
    • Akira YAMADA (patch, Debian package)
    • Kenshi MUTO (testing, bug report, Debian package)
    • Kazuhiro NISHIYAMA (bug report)
    • Hiroshi OHKUBO (bug report)
    • Shugo MAEDA (bug report)
    • Kazuhiko (patch)

    Resources 情報源

    Format フォーマット

    Similar Software 同様の目的を持ったソフトウェア

    There are several other software that can compare text word by word and/or character by character.

    テキストを単語単位や文字単位で比較することができるソフトウェアは、ほかにもあります。


    docdiff-0.5.0+git20160313/readme.md000066400000000000000000000137311263141227400162770ustar00rootroot00000000000000# DocDiff 2000-12-09..2011-02-23 Hisashi MORITA ## Todo * Incorporate ignore space patch. * Better auto-recognition of encodings and eols. * Make CSS and tty escape sequence customizable in config files. * Better multilingualization using Ruby 1.9 feature. * Write "DocPatch". ## Description Compares two text files by word, by character, or by line ## Summary DocDiff compares two text files and shows the difference. It can compare files word by word, character by character, or line by line. It has several output formats such as HTML, tty, Manued, or user-defined markup. It supports several encodings and end-of-line characters, including ASCII (and other single byte encodings such as ISO-8859-*), UTF-8, EUC-JP, Shift_JIS, CR, LF, and CRLF. ## Requirement * Ruby (http://www.ruby-lang.org) (Note that you may need additional ruby library such as iconv, if your OS's Ruby package does not include those.) ## Installation Note that you need appropriate permission for proper installation (you may have to have a root/administrator privilege). * Place `docdiff/` directory and its contents to ruby library directory, so that ruby interpreter can load them. ``` # cp -r docdiff /usr/lib/ruby/1.9.1 ``` * Place `docdiff.rb` in command binary directory. ``` # cp docdiff.rb /usr/bin/ ``` * (Optional) You may want to rename it to `docdiff`. ``` # mv /usr/bin/docdiff.rb /usr/bin/docdiff ``` * (Optional) When invoked as `chardiff` or `worddiff`, docdiff runs with resolution set to `char` or `word`, respectively. ``` # ln -s /usr/bin/docdiff.rb /usr/bin/chardiff.rb # ln -s /usr/bin/docdiff.rb /usr/bin/worddiff.rb ``` * Set appropriate permission. ``` # chmod +x /usr/bin/docdiff.rb ``` * (Optional) If you want site-wide configuration file, place `docdiff.conf.example` as `/etc/docdiff/docdiff.conf` and edit it. ``` # cp docdiff.conf.example /etc/docdiff.conf # $EDITOR /etc/docdiff.conf ``` * (Optional) If you want per-user configuration file, place `docdiff.conf.example` as `~/etc/docdiff/docdiff.conf` and edit it. ``` % cp docdiff.conf.example ~/etc/docdiff.conf % $EDITOR ~/etc/docdiff.conf ``` ## Usage ### Synopsis % docdiff [options] oldfile newfile e.g. % docdiff old.txt new.txt > diff.html See the help message for detail (`docdiff --help`). ## License This software is distributed under so-called modified BSD style license (http://www.opensource.org/licenses/bsd-license.php (without advertisement clause)). By contributing to this software, you agree that your contribution may be incorporated under the same license. Copyright and condition of use of main portion of the source: ``` Copyright (C) Hisashi MORITA. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ``` diff library (`docdiff/diff.rb` and `docdiff/diff/*`) was originally a part of Ruby/CVS by Akira TANAKA. Ruby/CVS is licensed under modified BSD style license. See the following for detail. * http://raa.ruby-lang.org/list.rhtml?name=ruby-cvs * http://cvs.m17n.org/~akr/ruby-cvs/ ## Credits * Hisashi MORITA (primary author) ## Acknowledgments * Akira TANAKA (diff library author) * Shin'ichiro HARA (initial idea and algorithm suggestion) * Masatoshi SEKI (patch) * Akira YAMADA (patch, Debian package) * Kenshi MUTO (testing, bug report, Debian package) * Kazuhiro NISHIYAMA (bug report) * Hiroshi OHKUBO (bug report) * Shugo MAEDA (bug report) * Kazuhiko (patch) ## Resources ### Format * HTML/XHTML http://www.w3.org * tty (Graphic rendition using VT100 / ANSI escape sequence) * VT100: http://vt100.net/docs/tp83/appendixb.html * ANSI: http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html * Manued (Manuscript Editing language: a proofreading method for text) * http://www.archi.is.tohoku.ac.jp/~yamauchi/otherprojects/manued/index.shtml === Similar Software There are several other software that can compare text word by word and/or character by character. * GNU wdiff (Seems to support single byte characters only.) http://www.gnu.org/directory/GNU/wdiff.html * cdif by Kazumasa UTASHIRO (Supports several Japanese encodings.) http://srekcah.org/~utashiro/perl/scripts/cdif * ediff for Emacsen http://www.xemacs.org/Documentation/packages/html/ediff.html * diff-detail for xyzzy, by Hiroshi OHKUBO http://ohkubo.s53.xrea.com/xyzzy/index.html#diff-detail * Manuediff (Outputs difference in Manued format.) http://hibiki.miyagi-ct.ac.jp/~suzuki/comp/export/manuediff.html * YASDiff (Yet Another Scheme powered diff) by Y. Fujisawa http://nnri.dip.jp/~yf/cgi-bin/yaswiki2.cgi?name=YASDiff&parentid=0 * WinMerge (GUI diff tool for Windows) http://winmerge.org/ docdiff-0.5.0+git20160313/sample/000077500000000000000000000000001263141227400157745ustar00rootroot00000000000000docdiff-0.5.0+git20160313/sample/01.en.ascii.cr000066400000000000000000000000731263141227400202320ustar00rootroot00000000000000Hello, my name is Watanabe. I am just another Ruby porter. docdiff-0.5.0+git20160313/sample/01.en.ascii.crlf000066400000000000000000000000751263141227400205560ustar00rootroot00000000000000Hello, my name is Watanabe. I am just another Ruby porter. docdiff-0.5.0+git20160313/sample/01.en.ascii.lf000066400000000000000000000000731263141227400202270ustar00rootroot00000000000000Hello, my name is Watanabe. I am just another Ruby porter. docdiff-0.5.0+git20160313/sample/01.ja.eucjp.lf000066400000000000000000000001101263141227400202250ustar00rootroot00000000000000ˤϡ̾Ϥ錄ʤ٤Ǥ Just Another Ruby PorterǤ docdiff-0.5.0+git20160313/sample/01.ja.sjis.cr000066400000000000000000000001101263141227400200720ustar00rootroot00000000000000ɂ́A̖O͂킽ȂׂłB Just Another Ruby PorterłB docdiff-0.5.0+git20160313/sample/01.ja.sjis.crlf000066400000000000000000000001121263141227400204160ustar00rootroot00000000000000ɂ́A̖O͂킽ȂׂłB Just Another Ruby PorterłB docdiff-0.5.0+git20160313/sample/01.ja.utf8.crlf000066400000000000000000000001411263141227400203360ustar00rootroot00000000000000こんにちは、私の名前はわたなべです。 私はJust Another Ruby Porterです。 docdiff-0.5.0+git20160313/sample/02.en.ascii.cr000066400000000000000000000001131263141227400202260ustar00rootroot00000000000000Hello, my name is matz. It's me who has created Ruby. I am a Ruby hacker. docdiff-0.5.0+git20160313/sample/02.en.ascii.crlf000066400000000000000000000001151263141227400205520ustar00rootroot00000000000000Hello, my name is matz. It's me who has created Ruby. I am a Ruby hacker. docdiff-0.5.0+git20160313/sample/02.en.ascii.lf000066400000000000000000000001131263141227400202230ustar00rootroot00000000000000Hello, my name is matz. It's me who has created Ruby. I am a Ruby hacker. docdiff-0.5.0+git20160313/sample/02.ja.eucjp.lf000066400000000000000000000001231263141227400202320ustar00rootroot00000000000000Фϡ̾ϤޤĤȤǤ RubyäΤϻǤRuby HackerǤ docdiff-0.5.0+git20160313/sample/02.ja.sjis.cr000066400000000000000000000001231263141227400200770ustar00rootroot00000000000000΂́A̖O͂܂‚ƂłB Rubŷ͎łBRuby HackerłB docdiff-0.5.0+git20160313/sample/02.ja.sjis.crlf000066400000000000000000000001251263141227400204230ustar00rootroot00000000000000΂́A̖O͂܂‚ƂłB Rubŷ͎łBRuby HackerłB docdiff-0.5.0+git20160313/sample/02.ja.utf8.crlf000066400000000000000000000001661263141227400203460ustar00rootroot00000000000000こんばんは、私の名前はまつもとです。 Rubyを作ったのは私です。私はRuby Hackerです。 docdiff-0.5.0+git20160313/sample/humpty_dumpty01.ascii.lf000066400000000000000000000002161263141227400224760ustar00rootroot00000000000000Humpty Dumpty sat on a wall. Humpty Dumpty had a great fall. All the king's horses and all the king's men Couldn't put Humpty together again! docdiff-0.5.0+git20160313/sample/humpty_dumpty02.ascii.lf000066400000000000000000000002511263141227400224760ustar00rootroot00000000000000Humpty Dumpty was sitting on a Humpty Dumpty wall. Humpty had a great fall by mistake. All the king's men and all the king's horses Couldn't put Humpty Dumpty together! docdiff-0.5.0+git20160313/test/000077500000000000000000000000001263141227400154725ustar00rootroot00000000000000docdiff-0.5.0+git20160313/test/charstring_test.rb000077500000000000000000001017421263141227400212320ustar00rootroot00000000000000#!/usr/bin/ruby # -*- coding: euc-jp; -*- require 'test/unit' require 'docdiff/charstring' require 'nkf' class TC_DocDiff_CharString < Test::Unit::TestCase CharString = DocDiff::CharString def setup() # end # test encoding module registration def test_encoding_ascii() str = "foo".extend CharString str.encoding = "US-ASCII" expected = CharString::ASCII assert_equal(expected, CharString::Encodings[str.encoding]) end def test_encoding_eucjp() str = "foo".extend CharString str.encoding = "EUC-JP" expected = CharString::EUC_JP assert_equal(expected, CharString::Encodings[str.encoding]) end def test_encoding_sjis() str = "foo".extend CharString str.encoding = "Shift_JIS" expected = CharString::Shift_JIS assert_equal(expected, CharString::Encodings[str.encoding]) end def test_encoding_utf8() str = "foo".extend CharString str.encoding = "UTF-8" expected = CharString::UTF8 assert_equal(expected, CharString::Encodings[str.encoding]) end # test eol module registration def test_eol_cr() str = "foo".extend CharString str.eol = "CR" expected = CharString::CR assert_equal(expected, CharString::EOLChars[str.eol]) end def test_eol_lf() str = "foo".extend CharString str.eol = "LF" expected = CharString::LF assert_equal(expected, CharString::EOLChars[str.eol]) end def test_eol_crlf() str = "foo".extend CharString str.eol = "CRLF" expected = CharString::CRLF assert_equal(expected, CharString::EOLChars[str.eol]) end # test eol eol_char method def test_eol_char_cr() str = "foo\rbar\r".extend CharString str.eol = "CR" expected = "\r" assert_equal(expected, str.eol_char) end def test_eol_char_lf() str = "foo\nbar\n".extend CharString str.eol = "LF" expected = "\n" assert_equal(expected, str.eol_char) end def test_eol_char_crlf() str = "foo\r\nbar\r\n".extend CharString str.eol = "CRLF" expected = "\r\n" assert_equal(expected, str.eol_char) end def test_eol_char_none() str = "foobar".extend CharString expected = nil assert_equal(expected, str.eol_char) end def test_eol_char_none_for_0length_string() str = "".extend CharString expected = nil assert_equal(expected, str.eol_char) end def test_eol_char_none_eucjp() str = NKF.nkf("-e", "ܸa b").extend CharString expected = nil assert_equal(expected, str.eol_char) end def test_eol_char_none_sjis() str = NKF.nkf("-s", "ܸa b").extend CharString expected = nil assert_equal(expected, str.eol_char) end # test eol split_to_line() method def test_cr_split_to_line() str = "foo\rbar\r".extend CharString encoding, eol = "US-ASCII", "CR" str.encoding, str.eol = encoding, eol expected = ["foo\r", "bar\r"] assert_equal(expected, str.split_to_line) end def test_cr_split_to_line_chomped_lastline() str = "foo\rbar".extend CharString str.encoding = "US-ASCII" str.eol = "CR" expected = ["foo\r", "bar"] assert_equal(expected, str.split_to_line) end def test_cr_split_to_line_empty_line() str = "foo\r\rbar\r".extend CharString str.encoding = "US-ASCII" str.eol = "CR" expected = ["foo\r", "\r", "bar\r"] assert_equal(expected, str.split_to_line) end def test_lf_split_to_line() str = "foo\nbar\n".extend CharString str.encoding = "US-ASCII" str.eol = "LF" expected = ["foo\n", "bar\n"] assert_equal(expected, str.split_to_line) end def test_lf_split_to_line_chomped_lastline() str = "foo\nbar".extend CharString str.encoding = "US-ASCII" str.eol = "LF" expected = ["foo\n", "bar"] assert_equal(expected, str.split_to_line) end def test_lf_split_to_line_empty_line() str = "foo\n\nbar\n".extend CharString str.encoding = "US-ASCII" str.eol = "LF" expected = ["foo\n", "\n", "bar\n"] assert_equal(expected, str.split_to_line) end def test_crlf_split_to_line() str = "foo\r\nbar\r\n".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = ["foo\r\n", "bar\r\n"] assert_equal(expected, str.split_to_line) end def test_crlf_split_to_line_chomped_lastline() str = "foo\r\nbar".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = ["foo\r\n", "bar"] assert_equal(expected, str.split_to_line) end def test_crlf_split_to_line_empty_line() str = "foo\r\n\r\nbar\r\n".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = ["foo\r\n", "\r\n", "bar\r\n"] assert_equal(expected, str.split_to_line) end # test ASCII module def test_ascii_split_to_word() str = "foo bar".extend CharString str.encoding = "US-ASCII" expected = ["foo ", "bar"] assert_equal(expected, str.split_to_word) end def test_ascii_split_to_word_withsymbol() str = "foo (bar) baz-baz".extend CharString str.encoding = "US-ASCII" expected = ["foo ", "(bar) ", "baz-baz"] assert_equal(expected, str.split_to_word) end def test_ascii_split_to_word_withquote() str = "foo's 'foo' \"bar\" 'baz.'".extend CharString str.encoding = "US-ASCII" expected = ["foo's ", "'foo' ", "\"bar\" ", "'baz.'"] assert_equal(expected, str.split_to_word) end def test_ascii_split_to_word_withlongspace() str = " foo bar".extend CharString str.encoding = "US-ASCII" expected = [" ", "foo ", " ", "bar"] assert_equal(expected, str.split_to_word) end def test_ascii_split_to_word_withdash() str = "foo -- bar, baz - quux".extend CharString str.encoding = "US-ASCII" expected = ["foo ", "-- ", "bar, ", "baz ", "- ", "quux"] assert_equal(expected, str.split_to_word) end def test_ascii_split_to_char() str = "foo bar".extend CharString str.encoding = "US-ASCII" str.eol = "LF" expected = ["f","o","o"," ","b","a","r"] assert_equal(expected, str.split_to_char) end def test_ascii_split_to_char_with_eol_cr() str = "foo bar\r".extend CharString str.encoding = "US-ASCII" str.eol = "CR" expected = ["f","o","o"," ","b","a","r","\r"] assert_equal(expected, str.split_to_char) end def test_ascii_split_to_char_with_eol_lf() str = "foo bar\n".extend CharString str.encoding = "US-ASCII" str.eol = "LF" expected = ["f","o","o"," ","b","a","r","\n"] assert_equal(expected, str.split_to_char) end def test_ascii_split_to_char_with_eol_crlf() str = "foo bar\r\n".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = ["f","o","o"," ","b","a","r","\r\n"] assert_equal(expected, str.split_to_char) end def test_ascii_split_to_byte() str = "foo bar\r\n".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = ["f","o","o"," ","b","a","r","\r","\n"] assert_equal(expected, str.split_to_byte) end def test_ascii_count_byte() str = "foo bar\r\n".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = 9 assert_equal(expected, str.count_byte) end def test_ascii_count_char() str = "foo bar\r\nbaz quux\r\n".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = 17 assert_equal(expected, str.count_char) end def test_ascii_count_latin_graph_char() str = "foo bar\r\nbaz quux\r\n".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = 13 assert_equal(expected, str.count_latin_graph_char) end def test_ascii_count_graph_char() str = "foo bar\r\nbaz quux\r\n".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = 13 assert_equal(expected, str.count_graph_char) end def test_ascii_count_latin_blank_char() str = "foo bar\r\nbaz\tquux\r\n".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_latin_blank_char) end def test_ascii_count_blank_char() str = "foo bar\r\nbaz\tquux\r\n".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_blank_char) end def test_ascii_count_word() str = "foo bar \r\nbaz quux\r\n".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = 6 assert_equal(expected, str.count_word) end def test_ascii_count_latin_word() str = "foo bar \r\nbaz quux\r\n".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = 5 # " " is also counted as a word assert_equal(expected, str.count_latin_word) end def test_ascii_count_latin_valid_word() str = "1 foo \r\n%%% ()\r\n".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_latin_valid_word) end def test_ascii_count_line() str = "foo\r\nbar".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_line) end def test_ascii_count_graph_line() str = "foo\r\n ".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = 1 assert_equal(expected, str.count_graph_line) end def test_ascii_count_empty_line() str = "foo\r\n \r\n\t\r\n\r\n".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = 1 assert_equal(expected, str.count_empty_line) end def test_ascii_count_blank_line() str = "\r\n \r\n\t\r\n ".extend CharString str.encoding = "US-ASCII" str.eol = "CRLF" expected = 3 assert_equal(expected, str.count_blank_line) end # test EUCJP module def test_eucjp_split_to_word() str = NKF.nkf("-e", "ܸʸfoo bar").extend CharString str.encoding = "EUC-JP" expected = ["ܸ","ʸ","foo ","bar"].collect{|c| NKF.nkf("-e", c)} assert_equal(expected, str.split_to_word) end def test_eucjp_split_to_word_kanhira() str = NKF.nkf("-e", "ܸʸ").extend CharString str.encoding = "EUC-JP" expected = ["ܸ", "ʸ"].collect{|c| NKF.nkf("-e", c)} assert_equal(expected, str.split_to_word) end def test_eucjp_split_to_word_katahira() str = NKF.nkf("-e", "ʤʸ").extend CharString str.encoding = "EUC-JP" expected = ["ʤ", "ʸ"].collect{|c| NKF.nkf("-e", c)} assert_equal(expected, str.split_to_word) end def test_eucjp_split_to_word_kataonbiki() str = NKF.nkf("-e", "ӡ").extend CharString str.encoding = "EUC-JP" #<= needed to pass the test expected = ["ӡ", "", ""].collect{|c| NKF.nkf("-e", c)} assert_equal(expected, str.split_to_word) end def test_eucjp_split_to_word_hiraonbiki() str = NKF.nkf("-e", "ӡ").extend CharString str.encoding = "EUC-JP" #<= needed to pass the test expected = ["", "ӡ"].collect{|c| NKF.nkf("-e", c)} assert_equal(expected, str.split_to_word) end def test_eucjp_split_to_word_latinmix() str = NKF.nkf("-e", "ܸLatinʸ").extend CharString str.encoding = "EUC-JP" expected = ["ܸ", "Latin", "", "ʸ"].collect{|c| NKF.nkf("-e", c)} assert_equal(expected, str.split_to_word) end def test_eucjp_split_to_char() str = NKF.nkf("-e", "ܸa b").extend CharString str.encoding = "EUC-JP" str.eol = "LF" #<= needed to pass the test expected = ["","","","a"," ","b"].collect{|c|NKF.nkf("-e",c)} assert_equal(expected, str.split_to_char) end def test_eucjp_split_to_char_with_cr() str = NKF.nkf("-e", "ܸa b\r").extend CharString str.encoding = "EUC-JP" str.eol = "CR" expected = ["","","","a"," ","b","\r"].collect{|c|NKF.nkf("-e",c)} assert_equal(expected, str.split_to_char) end def test_eucjp_split_to_char_with_lf() str = NKF.nkf("-e", "ܸa b\n").extend CharString str.encoding = "EUC-JP" str.eol = "LF" expected = ["","","","a"," ","b","\n"].collect{|c|NKF.nkf("-e",c)} assert_equal(expected, str.split_to_char) end def test_eucjp_split_to_char_with_crlf() str = NKF.nkf("-e", "ܸa b\r\n").extend CharString str.encoding = "EUC-JP" str.eol = "CRLF" expected = ["","","","a"," ","b","\r\n"].collect{|c|NKF.nkf("-e",c)} assert_equal(expected, str.split_to_char) end def test_eucjp_count_char() str = NKF.nkf("-e", "ܸa b\r\n").extend CharString str.encoding = "EUC-JP" str.eol = "CRLF" expected = 7 assert_equal(expected, str.count_char) end def test_eucjp_count_latin_graph_char() str = NKF.nkf("-e", "ܸa b\r\n").extend CharString str.encoding = "EUC-JP" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_latin_graph_char) end def test_eucjp_count_ja_graph_char() str = NKF.nkf("-e", "ܸa b\r\n").extend CharString str.encoding = "EUC-JP" str.eol = "CRLF" expected = 3 assert_equal(expected, str.count_ja_graph_char) end def test_eucjp_count_graph_char() str = NKF.nkf("-e", "ܸa b\r\n").extend CharString str.encoding = "EUC-JP" str.eol = "CRLF" expected = 5 assert_equal(expected, str.count_graph_char) end def test_eucjp_count_latin_blank_char() str = NKF.nkf("-e", "ܸ\ta b\r\n").extend CharString str.encoding = "EUC-JP" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_latin_blank_char) end def test_eucjp_count_ja_blank_char() str = NKF.nkf("-e", "ܡ\ta b\r\n").extend CharString str.encoding = "EUC-JP" str.eol = "CRLF" expected = 1 assert_equal(expected, str.count_ja_blank_char) end def test_eucjp_count_blank_char() str = NKF.nkf("-e", "ܡ\ta b\r\n").extend CharString str.encoding = "EUC-JP" str.eol = "CRLF" expected = 3 assert_equal(expected, str.count_blank_char) end def test_eucjp_count_word() str = NKF.nkf("-e", "ܡa b --\r\n").extend CharString str.encoding = "EUC-JP" str.eol = "CRLF" expected = 7 # "--" and "\r\n" are counted as word here (though not "valid") assert_equal(expected, str.count_word) end def test_eucjp_count_ja_word() str = NKF.nkf("-e", "ܡa b --\r\n").extend CharString str.encoding = "EUC-JP" str.eol = "CRLF" expected = 3 assert_equal(expected, str.count_ja_word) end def test_eucjp_count_latin_valid_word() str = NKF.nkf("-e", "ܡa b --\r\n").extend CharString str.encoding = "EUC-JP" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_latin_valid_word) end def test_eucjp_count_ja_valid_word() str = NKF.nkf("-e", "ܡa b --\r\n").extend CharString str.encoding = "EUC-JP" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_ja_valid_word) end def test_eucjp_count_valid_word() str = NKF.nkf("-e", "ܡa b --\r\n").extend CharString str.encoding = "EUC-JP" str.eol = "CRLF" expected = 4 assert_equal(expected, str.count_valid_word) end def test_eucjp_count_line() str = NKF.nkf("-e", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar").extend CharString str.encoding = "EUC-JP" str.eol = "CRLF" expected = 6 assert_equal(expected, str.count_line) end def test_eucjp_count_graph_line() str = NKF.nkf("-e", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar").extend CharString str.encoding = "EUC-JP" str.eol = "CRLF" expected = 3 assert_equal(expected, str.count_graph_line) end def test_eucjp_count_empty_line() str = NKF.nkf("-e", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar").extend CharString str.encoding = "EUC-JP" str.eol = "CRLF" expected = 1 assert_equal(expected, str.count_empty_line) end def test_eucjp_count_blank_line() str = NKF.nkf("-e", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar").extend CharString str.encoding = "EUC-JP" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_blank_line) end # test SJIS module def test_sjis_split_to_word() str = NKF.nkf("-s", "ܸʸfoo bar").extend CharString str.encoding = "Shift_JIS" expected = ["ܸ", "ʸ", "foo ", "bar"].collect{|c|NKF.nkf("-s",c)} assert_equal(expected, str.split_to_word) end def test_sjisplit_s_to_word_kanhira() str = NKF.nkf("-s", "ܸʸ").extend CharString str.encoding = "Shift_JIS" expected = ["ܸ", "ʸ"].collect{|c| NKF.nkf("-s", c)} assert_equal(expected, str.split_to_word) end def test_sjis_split_to_word_katahira() str = NKF.nkf("-s", "ʤʸ").extend CharString str.encoding = "Shift_JIS" expected = ["ʤ", "ʸ"].collect{|c| NKF.nkf("-s", c)} assert_equal(expected, str.split_to_word) end def test_sjis_split_to_word_kataonbiki() str = NKF.nkf("-s", "ӡλ").extend CharString str.encoding = "Shift_JIS" expected = ["ӡ", ""].collect{|c| NKF.nkf("-s", c)} assert_equal(expected, str.split_to_word) end def test_sjis_split_to_word_hiraonbiki() str = NKF.nkf("-s", "ӡ").extend CharString str.encoding = "Shift_JIS" expected = ["", "ӡ"].collect{|c| NKF.nkf("-s", c)} assert_equal(expected, str.split_to_word) end def test_sjis_split_to_word_latinmix() str = NKF.nkf("-s", "ܸLatinʸ").extend CharString str.encoding = "Shift_JIS" expected = ["ܸ","Latin","","ʸ"].collect{|c| NKF.nkf("-s", c)} assert_equal(expected, str.split_to_word) end def test_sjis_split_to_char() str = NKF.nkf("-s", "ɽ׻a b").extend CharString str.encoding = "Shift_JIS" str.eol = "LF" #<= needed to pass the test expected = ["ɽ","","","a"," ","b"].collect{|c|NKF.nkf("-s",c)} assert_equal(expected, str.split_to_char) end def test_sjis_split_to_char_with_cr() str = NKF.nkf("-s", "ɽ׻a b\r").extend CharString str.encoding = "Shift_JIS" str.eol = "CR" expected = ["ɽ","","","a"," ","b","\r"].collect{|c|NKF.nkf("-s",c)} assert_equal(expected, str.split_to_char) end def test_sjis_split_to_char_with_lf() str = NKF.nkf("-s", "ɽ׻a b\n").extend CharString str.encoding = "Shift_JIS" str.eol = "LF" expected = ["ɽ","","","a"," ","b","\n"].collect{|c|NKF.nkf("-s",c)} assert_equal(expected, str.split_to_char) end def test_sjis_split_to_char_with_crlf() str = NKF.nkf("-s", "ɽ׻a b\r\n").extend CharString str.encoding = "Shift_JIS" str.eol = "CRLF" expected = ["ɽ","","","a"," ","b","\r\n"].collect{|c|NKF.nkf("-s",c)} assert_equal(expected, str.split_to_char) end def test_sjis_count_char() str = NKF.nkf("-s", "ܸa b\r\n").extend CharString str.encoding = "Shift_JIS" str.eol = "CRLF" expected = 7 assert_equal(expected, str.count_char) end def test_sjis_count_latin_graph_char() str = NKF.nkf("-s", "ܸa b\r\n").extend CharString str.encoding = "Shift_JIS" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_latin_graph_char) end def test_sjis_count_ja_graph_char() str = NKF.nkf("-s", "ܸa b\r\n").extend CharString str.encoding = "Shift_JIS" str.eol = "CRLF" expected = 3 assert_equal(expected, str.count_ja_graph_char) end def test_sjis_count_graph_char() str = NKF.nkf("-s", "ܸa b\r\n").extend CharString str.encoding = "Shift_JIS" str.eol = "CRLF" expected = 5 assert_equal(expected, str.count_graph_char) end def test_sjis_count_latin_blank_char() str = NKF.nkf("-s", "ܸ\ta b\r\n").extend CharString str.encoding = "Shift_JIS" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_latin_blank_char) end def test_sjis_count_ja_blank_char() str = NKF.nkf("-s", "ܡ\ta b\r\n").extend CharString str.encoding = "Shift_JIS" str.eol = "CRLF" expected = 1 assert_equal(expected, str.count_ja_blank_char) end def test_sjis_count_blank_char() str = NKF.nkf("-s", "ܡ\ta b\r\n").extend CharString str.encoding = "Shift_JIS" str.eol = "CRLF" expected = 3 assert_equal(expected, str.count_blank_char) end def test_sjis_count_word() str = NKF.nkf("-s", "ܡa b --\r\n").extend CharString str.encoding = "Shift_JIS" str.eol = "CRLF" expected = 7 # "--" and "\r\n" are counted as word here (though not "valid") assert_equal(expected, str.count_word) end def test_sjis_count_ja_word() str = NKF.nkf("-s", "ܡa b --\r\n").extend CharString str.encoding = "Shift_JIS" str.eol = "CRLF" expected = 3 assert_equal(expected, str.count_ja_word) end def test_sjis_count_latin_valid_word() str = NKF.nkf("-s", "ܡa b --\r\n").extend CharString str.encoding = "Shift_JIS" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_latin_valid_word) end def test_sjis_count_ja_valid_word() str = NKF.nkf("-s", "ܡa b --\r\n").extend CharString str.encoding = "Shift_JIS" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_ja_valid_word) end def test_sjis_count_valid_word() str = NKF.nkf("-s", "ܡa b --\r\n").extend CharString str.encoding = "Shift_JIS" str.eol = "CRLF" expected = 4 assert_equal(expected, str.count_valid_word) end def test_sjis_count_line() str = NKF.nkf("-s", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar").extend CharString str.encoding = "Shift_JIS" str.eol = "CRLF" expected = 6 assert_equal(expected, str.count_line) end def test_sjis_count_graph_line() str = NKF.nkf("-s", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar").extend CharString str.encoding = "Shift_JIS" str.eol = "CRLF" expected = 3 assert_equal(expected, str.count_graph_line) end def test_sjis_count_empty_line() str = NKF.nkf("-s", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar").extend CharString str.encoding = "Shift_JIS" str.eol = "CRLF" expected = 1 assert_equal(expected, str.count_empty_line) end def test_sjis_count_blank_line() str = NKF.nkf("-s", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar").extend CharString str.encoding = "Shift_JIS" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_blank_line) end # test UTF8 module def test_utf8_split_to_word() str = NKF.nkf("-E -w", "ܸʸfoo bar").extend CharString str.encoding = "UTF-8" expected = ["ܸ", "ʸ", "foo ", "bar"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, str.split_to_word) end def test_utf8_split_to_word_kanhira() str = NKF.nkf("-E -w", "ܸʸ").extend CharString str.encoding = "UTF-8" expected = ["ܸ", "ʸ"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, str.split_to_word) end def test_utf8_split_to_word_katahira() str = NKF.nkf("-E -w", "ʤʸ").extend CharString str.encoding = "UTF-8" expected = ["ʤ", "ʸ"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, str.split_to_word) end def test_utf8_split_to_word_kataonbiki() str = NKF.nkf("-E -w", "ӡλ").extend CharString str.encoding = "UTF-8" expected = ["ӡ", ""].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, str.split_to_word) end def test_utf8_split_to_word_hiraonbiki() str = NKF.nkf("-E -w", "ӡ").extend CharString str.encoding = "UTF-8" expected = ["", "ӡ"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, str.split_to_word) end def test_utf8_split_to_word_latinmix() str = NKF.nkf("-E -w", "ܸLatinʸ").extend CharString str.encoding = "UTF-8" expected = ["ܸ", "Latin", "", "ʸ"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, str.split_to_word) end def test_utf8_split_to_char() str = NKF.nkf("-E -w", "ܸa b").extend CharString str.encoding = "UTF-8" #<= needed to pass the test str.eol = "LF" #<= needed to pass the test expected = ["", "", "", "a", " ", "b"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, str.split_to_char) end def test_utf8_split_to_char_with_cr() str = NKF.nkf("-E -w", "ܸa b\r").extend CharString str.encoding = "UTF-8" #<= needed to pass the test str.eol = "CR" expected = ["","","","a"," ","b","\r"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, str.split_to_char) end def test_utf8_split_to_char_with_lf() str = NKF.nkf("-E -w", "ܸa b\n").extend CharString str.encoding = "UTF-8" #<= needed to pass the test str.eol = "LF" expected = ["","","","a"," ","b","\n"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, str.split_to_char) end def test_utf8_split_to_char_with_crlf() str = NKF.nkf("-E -w", "ܸa b\r\n").extend CharString str.encoding = "UTF-8"#<= needed to pass the test str.eol = "CRLF" expected = ["","","","a"," ","b","\r\n"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, str.split_to_char) end def test_utf8_count_char() str = NKF.nkf("-E -w", "ܸa b\r\n").extend CharString str.encoding = "UTF-8" #<= needed to pass the test str.eol = "CRLF" expected = 7 assert_equal(expected, str.count_char) end def test_utf8_count_latin_graph_char() str = NKF.nkf("-E -w", "ܸa b\r\n").extend CharString str.encoding = "UTF-8" #<= needed to pass the test str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_latin_graph_char) end def test_utf8_count_ja_graph_char() str = NKF.nkf("-E -w", "ܸa b\r\n").extend CharString str.encoding = "UTF-8" #<= needed to pass the test str.eol = "CRLF" expected = 3 assert_equal(expected, str.count_ja_graph_char) end def test_utf8_count_graph_char() str = NKF.nkf("-E -w", "ܸa b\r\n").extend CharString str.encoding = "UTF-8" #<= needed to passs the test str.eol = "CRLF" expected = 5 assert_equal(expected, str.count_graph_char) end def test_utf8_count_latin_blank_char() str = NKF.nkf("-E -w", "ܸ\ta b\r\n").extend CharString str.encoding = "UTF-8" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_latin_blank_char) end def test_utf8_count_ja_blank_char() str = NKF.nkf("-E -w", "ܡ\ta b\r\n").extend CharString str.encoding = "UTF-8" str.eol = "CRLF" expected = 1 assert_equal(expected, str.count_ja_blank_char) end def test_utf8_count_blank_char() str = NKF.nkf("-E -w", "ܡ\ta b\r\n").extend CharString str.encoding = "UTF-8" str.eol = "CRLF" expected = 3 assert_equal(expected, str.count_blank_char) end def test_utf8_count_word() str = NKF.nkf("-E -w", "ܡa b --\r\n").extend CharString str.encoding = "UTF-8" str.eol = "CRLF" expected = 7 # "--" and "\r\n" are counted as word here (though not "valid") assert_equal(expected, str.count_word) end def test_utf8_count_ja_word() str = NKF.nkf("-E -w", "ܡa b --\r\n").extend CharString str.encoding = "UTF-8" str.eol = "CRLF" expected = 3 assert_equal(expected, str.count_ja_word) end def test_utf8_count_latin_valid_word() str = NKF.nkf("-E -w", "ܡa b --\r\n").extend CharString str.encoding = "UTF-8" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_latin_valid_word) end def test_utf8_count_ja_valid_word() str = NKF.nkf("-E -w", "ܡa b --\r\n").extend CharString str.encoding = "UTF-8" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_ja_valid_word) end def test_utf8_count_valid_word() str = NKF.nkf("-E -w", "ܡa b --\r\n").extend CharString str.encoding = "UTF-8" str.eol = "CRLF" expected = 4 assert_equal(expected, str.count_valid_word) end def test_utf8_count_line() str = NKF.nkf("-E -w", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar").extend CharString str.encoding = "UTF-8" str.eol = "CRLF" expected = 6 assert_equal(expected, str.count_line) end def test_utf8_count_graph_line() str = NKF.nkf("-E -w", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar").extend CharString str.encoding = "UTF-8" str.eol = "CRLF" expected = 3 assert_equal(expected, str.count_graph_line) end def test_utf8_count_empty_line() str = NKF.nkf("-E -w", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar").extend CharString str.encoding = "UTF-8" str.eol = "CRLF" expected = 1 assert_equal(expected, str.count_empty_line) end def test_utf8_count_blank_line() str = NKF.nkf("-E -w", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar").extend CharString str.encoding = "UTF-8" str.eol = "CRLF" expected = 2 assert_equal(expected, str.count_blank_line) end # test module functions def assert_guess_encoding(expected, str) unless CharString.ruby_m17n? assert_equal(expected, CharString.guess_encoding_using_pureruby(str)) assert_equal(expected, CharString.guess_encoding_using_iconv(str)) end assert_equal(expected, CharString.guess_encoding(str)) end def test_guess_encoding_nil() str = nil expected = nil assert_guess_encoding(expected, str) end # def test_guess_encoding_binary() # str = "\xFF\xFF" # expected = "BINARY" # assert_equal(expected, CharString.guess_encoding(str)) # end def test_guess_encoding_unknown() if CharString.ruby_m17n? str = "".encode("BINARY") # cannot put invalid string literal expected = "ASCII-8BIT" else str = "\xff\xff\xff\xff" # "\xDE\xAD\xBE\xEF" expected = "UNKNOWN" end assert_guess_encoding(expected, str) end def test_guess_encoding_ascii_1() if CharString.ruby_m17n? str = "ASCII string".encode("US-ASCII") expected = "US-ASCII" else str = "ASCII string" expected = "US-ASCII" end assert_guess_encoding(expected, str) end def test_guess_encoding_ascii_2() if CharString.ruby_m17n? str = "abc\ndef\n".encode("US-ASCII") expected = "US-ASCII" else str = "abc\ndef\n" expected = "US-ASCII" end assert_guess_encoding(expected, str) end # CharString.guess_encoding mistakes JIS for ASCII sometimes, due to Iconv. # def test_guess_encoding_jis_1() # str = NKF.nkf("-j", "ȥʤȤҤ餬\n") # expected = "JIS" # assert_guess_encoding(expected, str) # end # def test_guess_encoding_jis_2() # str = NKF.nkf("-j", "ȥʤȤҤ餬ʤLatinʸȶ( )ȵ@\n" * 100) # expected = "JIS" # assert_guess_encoding(expected, str) # end def test_guess_encoding_eucjp_1() str = NKF.nkf("-e", "ܸLatinʸ") expected = "EUC-JP" assert_guess_encoding(expected, str) end def test_guess_encoding_eucjp_2() str = NKF.nkf('-e', "ȥʤȤҤ餬ʤLatinʸȶ( )\n" * 10) expected = "EUC-JP" assert_guess_encoding(expected, str) end def test_guess_encoding_eucjp_3() str = NKF.nkf('-e', "Фϡ̾ϤޤĤȤǤ\nRubyäΤϻǤRuby HackerǤ\n") expected = "EUC-JP" assert_guess_encoding(expected, str) end def test_guess_encoding_sjis_1() str = NKF.nkf("-s", "ܸLatinʸ") expected = "Shift_JIS" assert_guess_encoding(expected, str) end def test_guess_encoding_sjis_2() str = NKF.nkf('-s', "\nʤ\nҤ餬ʤ\nLatin") expected = "Shift_JIS" assert_guess_encoding(expected, str) end def test_guess_encoding_cp932_1() str = NKF.nkf('--oc=CP932', "\\u2460") # CIRCLED DIGIT ONE expected = "Windows-31J" # CP932 == Windows-31J in Ruby 1.9+ assert_guess_encoding(expected, str) end def test_guess_encoding_utf8_1() str = NKF.nkf("-E -w", "ܸLatinʸ") expected = "UTF-8" assert_guess_encoding(expected, str) end def test_guess_encoding_utf8_2() str = NKF.nkf("-E -w", "\nˤۤؤ\n") expected = "UTF-8" assert_guess_encoding(expected, str) end def test_guess_eol_nil() str = nil expected = nil assert_equal(expected, CharString.guess_eol(str)) end def test_guess_eol_empty() str = "" expected = "NONE" assert_equal(expected, CharString.guess_eol(str)) end def test_guess_eol_none() str = "foo bar" expected = "NONE" assert_equal(expected, CharString.guess_eol(str)) end def test_guess_eol_cr() str = "foo bar\r" expected = "CR" assert_equal(expected, CharString.guess_eol(str)) end def test_guess_eol_lf() str = "foo bar\n" expected = "LF" assert_equal(expected, CharString.guess_eol(str)) end def test_guess_eol_crlf() str = "foo bar\r\n" expected = "CRLF" assert_equal(expected, CharString.guess_eol(str)) end def test_guess_eol_mixed() str = "foo\rbar\nbaz\r\n" expected = "UNKNOWN" assert_equal(expected, CharString.guess_eol(str)) end def test_guess_eol_cr2() str = "foo\rbar\rbaz\r".extend CharString expected = "CR" assert_equal(expected, CharString.guess_eol(str)) end def test_guess_eol_lf2() str = "foo\nbar\nbaz\n".extend CharString expected = "LF" assert_equal(expected, CharString.guess_eol(str)) end def test_guess_eol_crlf2() str = "foo\r\nbar\r\nbaz\r\n".extend CharString expected = "CRLF" assert_equal(expected, CharString.guess_eol(str)) end def teardown() # end end docdiff-0.5.0+git20160313/test/diff_test.rb000077500000000000000000000020171263141227400177710ustar00rootroot00000000000000#!/usr/bin/ruby require 'test/unit' require "docdiff/diff" class TC_DocDiff_Diff < Test::Unit::TestCase Diff = DocDiff::Diff def setup() # end def test_new_ses() a1 = [:a, :b, :c] a2 = [:a, :x, :c] expected = [[:common_elt_elt, [:a], [:a]], [:del_elt, [:b], nil], [:add_elt, nil, [:x]], [:common_elt_elt, [:c], [:c]]] actual = [] actual_speculative = [] actual_shortestpath = [] actual_contours = [] Diff.new(a1, a2).ses .each{|e| actual << e} Diff.new(a1, a2).ses(:speculative ).each{|e| actual_speculative << e} Diff.new(a1, a2).ses(:shortestpath).each{|e| actual_shortestpath << e} Diff.new(a1, a2).ses(:contours ).each{|e| actual_contours << e} assert_equal(expected, actual) assert_equal(expected, actual_speculative) assert_equal(expected, actual_shortestpath) assert_equal(expected, actual_contours) end def teardown() # end end docdiff-0.5.0+git20160313/test/difference_test.rb000077500000000000000000000036761263141227400211670ustar00rootroot00000000000000#!/usr/bin/ruby require 'test/unit' require 'docdiff/difference' class TC_DocDiff_Difference < Test::Unit::TestCase Difference = DocDiff::Difference def setup() # end def test_new() array1 = [:a, :b, :c] array2 = [:a, :x, :c] expected = [[:common_elt_elt, [:a], [:a]], [:change_elt, [:b], [:x]], [:common_elt_elt, [:c], [:c]]] assert_equal(expected, Difference.new(array1, array2)) end def test_raw_list() array1 = [:a, :b, :c] array2 = [:a, :x, :c] expected = [[:common_elt_elt, [:a], [:a]], [:del_elt, [:b], nil], [:add_elt, nil, [:x]], [:common_elt_elt, [:c], [:c]]] assert_equal(expected, Difference.new(array1, array2).raw_list) end def test_former_only() array1 = [:a, :b, :c] array2 = [:a, :x, :c] expected = [[:common_elt_elt, [:a], [:a]], [:change_elt, [:b], nil], [:common_elt_elt, [:c], [:c]]] assert_equal(expected, Difference.new(array1, array2).former_only) array1 = [:a, :b, :c] array2 = [:a, :c, :d] expected = [[:common_elt_elt, [:a], [:a]], [:del_elt, [:b], nil], [:common_elt_elt, [:c], [:c]]] assert_equal(expected, Difference.new(array1, array2).former_only) end def test_latter_only() array1 = [:a, :b, :c] array2 = [:a, :x, :c] expected = [[:common_elt_elt, [:a], [:a]], [:change_elt, nil, [:x]], [:common_elt_elt, [:c], [:c]]] assert_equal(expected, Difference.new(array1, array2).latter_only) array1 = [:a, :b, :c] array2 = [:a, :c, :d] expected = [[:common_elt_elt, [:a], [:a]], [:common_elt_elt, [:c], [:c]], [:add_elt, nil, [:d]]] assert_equal(expected, Difference.new(array1, array2).latter_only) end def teardown() # end end docdiff-0.5.0+git20160313/test/docdiff_test.rb000077500000000000000000000211501263141227400204560ustar00rootroot00000000000000#!/usr/bin/ruby # -*- coding: us-ascii; -*- require 'test/unit' require 'docdiff' require 'nkf' class TC_DocDiff_Document < Test::Unit::TestCase Document = DocDiff::Document def setup() # end def test_compare_by_line() doc1 = Document.new("Foo bar.\nBaz quux.", 'US-ASCII', 'LF') doc2 = Document.new("Foo.\nBaz quux.", 'US-ASCII', 'LF') docdiff = DocDiff.new expected = [[:change_elt, ["Foo bar.\n"], ["Foo.\n"]], [:common_elt_elt, ['Baz quux.'], ['Baz quux.']]] assert_equal(expected, docdiff.compare_by_line(doc1, doc2)) end def test_compare_by_line_word() doc1 = Document.new("a b c d\ne f", 'US-ASCII', 'LF') doc2 = Document.new("a x c d\ne f", 'US-ASCII', 'LF') docdiff = DocDiff.new expected = [[:common_elt_elt, ["a "], ["a "]], [:change_elt, ["b "], ["x "]], [:common_elt_elt, ["c ", "d", "\n"], ["c ", "d", "\n"]], [:common_elt_elt, ["e f"], ["e f"]]] assert_equal(expected, docdiff.compare_by_line_word(doc1, doc2)) end def test_compare_by_line_word_char() doc1 = Document.new("foo bar\nbaz", 'US-ASCII', 'LF') doc2 = Document.new("foo beer\nbaz", 'US-ASCII', 'LF') docdiff = DocDiff.new expected = [[:common_elt_elt, ['foo '], ['foo ']], [:common_elt_elt, ['b'], ['b']], [:change_elt, ['a'], ['e', 'e']], [:common_elt_elt, ['r'], ['r']], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, ['baz'], ['baz']]] assert_equal(expected, docdiff.compare_by_line_word_char(doc1, doc2)) end def test_run_line_html() doc1 = Document.new("foo bar\nbaz", 'US-ASCII', 'LF') doc2 = Document.new("foo beer\nbaz", 'US-ASCII', 'LF') docdiff = DocDiff.new expected = '' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + 'Difference' + "\n" + '' + "\n" + '
    ' + "\n" + 'foo bar
    ' + "\n" + '
    ' + 'foo beer
    ' + "\n" + '
    ' + 'baz' + "" + "\n
    " + "\n" assert_equal(expected, docdiff.run(doc1, doc2, {:resolution => "line", :format => "html", :digest => false})) end def test_run_line_manued() doc1 = Document.new("foo bar\nbaz", 'US-ASCII', 'LF') doc2 = Document.new("foo beer\nbaz", 'US-ASCII', 'LF') docdiff = DocDiff.new expected = "defparentheses [ ]\n" + "defdelete /\n" + "defswap |\n" + "defcomment ;\n" + "defescape ~\n" + "deforder newer-last\n" + "defversion 0.9.5\n" + "[foo bar\n/foo beer\n]baz" assert_equal(expected, docdiff.run(doc1, doc2, {:resolution => "line", :format => "manued", :digest => false})) end def test_run_word_manued() doc1 = Document.new("foo bar\nbaz", 'US-ASCII', 'LF') doc2 = Document.new("foo beer\nbaz", 'US-ASCII', 'LF') docdiff = DocDiff.new expected = "defparentheses [ ]\n" + "defdelete /\n" + "defswap |\n" + "defcomment ;\n" + "defescape ~\n" + "deforder newer-last\n" + "defversion 0.9.5\n" + "foo [bar/beer]\nbaz" assert_equal(expected, docdiff.run(doc1, doc2, {:resolution => "word", :format => "manued", :digest => false})) end def test_run_char_manued() doc1 = Document.new("foo bar\nbaz", 'US-ASCII', 'LF') doc2 = Document.new("foo beer\nbaz", 'US-ASCII', 'LF') docdiff = DocDiff.new expected = "defparentheses [ ]\n" + "defdelete /\n" + "defswap |\n" + "defcomment ;\n" + "defescape ~\n" + "deforder newer-last\n" + "defversion 0.9.5\n" + "foo b[a/ee]r\nbaz" assert_equal(expected, docdiff.run(doc1, doc2, {:resolution => "char", :format => "manued", :digest => false})) end def test_parse_config_file_content() content = ["# comment line\n", " # comment line with leading space\n", "foo1 = bar\n", "foo2 = bar baz \n", " foo3 = 123 # comment\n", "foo4 = no \n", "foo1 = tRue\n", "\n", "", nil].join expected = {:foo1=>true, :foo2=>"bar baz", :foo3=>123, :foo4=>false} docdiff = DocDiff.new assert_equal(expected, DocDiff.parse_config_file_content(content)) end def test_run_line_user() doc1 = Document.new("foo bar\nbaz", 'US-ASCII', 'LF') doc2 = Document.new("foo beer\nbaz", 'US-ASCII', 'LF') config = {:tag_common_start => '<=>', :tag_common_end => '', :tag_del_start => '<->', :tag_del_end => '', :tag_add_start => '<+>', :tag_add_end => '', :tag_change_before_start => '', :tag_change_before_end => '', :tag_change_after_start => '', :tag_change_after_end => ''} docdiff = DocDiff.new docdiff.config.update(config) expected = "foo bar\nfoo beer\n<=>baz" assert_equal(expected, docdiff.run(doc1, doc2, {:resolution => "line", :format => "user", :digest => false})) end def test_run_word_user() doc1 = Document.new("foo bar\nbaz", 'US-ASCII', 'LF') doc2 = Document.new("foo beer\nbaz", 'US-ASCII', 'LF') config = {:tag_common_start => '<=>', :tag_common_end => '', :tag_del_start => '<->', :tag_del_end => '', :tag_add_start => '<+>', :tag_add_end => '', :tag_change_before_start => '', :tag_change_before_end => '', :tag_change_after_start => '', :tag_change_after_end => ''} docdiff = DocDiff.new docdiff.config.update(config) expected = "<=>foo barbeer<=>\n<=>baz" assert_equal(expected, docdiff.run(doc1, doc2, {:resolution => "word", :format => "user", :digest => false})) end def test_run_char_user() doc1 = Document.new("foo bar\nbaz", 'US-ASCII', 'LF') doc2 = Document.new("foo beer\nbaz", 'US-ASCII', 'LF') config = {:tag_common_start => '<=>', :tag_common_end => '', :tag_del_start => '<->', :tag_del_end => '', :tag_add_start => '<+>', :tag_add_end => '', :tag_change_before_start => '', :tag_change_before_end => '', :tag_change_after_start => '', :tag_change_after_end => ''} docdiff = DocDiff.new docdiff.config.update(config) expected = "<=>foo <=>baee<=>r<=>\n<=>baz" assert_equal(expected, docdiff.run(doc1, doc2, {:resolution => "char", :format => "user", :digest => false})) end def test_cli() expected = "Hello, my name is [-Watanabe.-]{+matz.+}\n" cmd = "ruby -I lib bin/docdiff --wdiff" + " sample/01.en.ascii.lf sample/02.en.ascii.lf" actual = `#{cmd}`.scan(/^.*?$\n/m).first assert_equal(expected, actual) end def teardown() # end end docdiff-0.5.0+git20160313/test/document_test.rb000077500000000000000000000534621263141227400207110ustar00rootroot00000000000000#!/usr/bin/ruby # -*- coding: euc-jp; -*- require 'test/unit' require 'docdiff/document' require 'nkf' class TC_DocDiff_Document < Test::Unit::TestCase Document = DocDiff::Document CharString = DocDiff::CharString def setup() # end def test_encoding() doc = Document.new("Foo bar.\nBaz quux.") doc.encoding = 'US-ASCII' doc.eol = 'LF' expected = 'US-ASCII' assert_equal(expected, doc.encoding) end def test_encoding_auto() doc = if CharString.ruby_m17n? Document.new("Foo bar.\nBaz quux.".encode("US-ASCII")) else Document.new("Foo bar.\nBaz quux.") end expected = 'US-ASCII' assert_equal(expected, doc.encoding) end def test_eol() doc = Document.new("Foo bar.\nBaz quux.") doc.encoding = 'US-ASCII' doc.eol = 'LF' expected = 'LF' assert_equal(expected, doc.eol) end def test_eol_auto_lf() doc = Document.new("Foo bar.\nBaz quux.") expected = 'LF' assert_equal(expected, doc.eol) end def test_eol_auto_none() doc = Document.new("Foo bar.") expected = "NONE" assert_equal(expected, doc.eol) end def test_eol_char_lf() doc = Document.new("Foo bar.\nBaz quux.") # doc.encoding = "US-ASCII" # doc.eol = "LF" expected = "\n" assert_equal(expected, doc.eol_char) end def test_split_by_line() doc = Document.new("Hello, my name is Watanabe.\nI am just another Ruby porter.\n") expected = ["Hello, my name is Watanabe.\n", "I am just another Ruby porter.\n"] assert_equal(expected, doc.split_to_line) end # test eol split_to_line() method def test_cr_split_to_line() doc = Document.new("foo\rbar\r") expected = ["foo\r", "bar\r"] assert_equal(expected, doc.split_to_line) end def test_cr_split_to_line_chomped_lastline() doc = Document.new("foo\rbar") expected = ["foo\r", "bar"] assert_equal(expected, doc.split_to_line) end def test_cr_split_to_line_empty_line() doc = Document.new("foo\r\rbar\r") expected = ["foo\r", "\r", "bar\r"] assert_equal(expected, doc.split_to_line) end def test_lf_split_to_line() doc = Document.new("foo\nbar\n") expected = ["foo\n", "bar\n"] assert_equal(expected, doc.split_to_line) end def test_lf_split_to_line_chomped_lastline() doc = Document.new("foo\nbar") expected = ["foo\n", "bar"] assert_equal(expected, doc.split_to_line) end def test_lf_split_to_line_empty_line() doc = Document.new("foo\n\nbar\n") expected = ["foo\n", "\n", "bar\n"] assert_equal(expected, doc.split_to_line) end def test_crlf_split_to_line() doc = Document.new("foo\r\nbar\r\n") expected = ["foo\r\n", "bar\r\n"] assert_equal(expected, doc.split_to_line) end def test_crlf_split_to_line_chomped_lastline() doc = Document.new("foo\r\nbar") expected = ["foo\r\n", "bar"] assert_equal(expected, doc.split_to_line) end def test_crlf_split_to_line_empty_line() doc = Document.new("foo\r\n\r\nbar\r\n") expected = ["foo\r\n", "\r\n", "bar\r\n"] assert_equal(expected, doc.split_to_line) end # test ASCII module def test_ascii_split_to_word() doc = Document.new("foo bar") expected = ["foo ", "bar"] assert_equal(expected, doc.split_to_word) end def test_ascii_split_to_word_withsymbol() doc = Document.new("foo (bar) baz-baz") expected = ["foo ", "(bar) ", "baz-baz"] assert_equal(expected, doc.split_to_word) end def test_ascii_split_to_word_withquote() doc = Document.new("foo's 'foo' \"bar\" 'baz.'") expected = ["foo's ", "'foo' ", "\"bar\" ", "'baz.'"] assert_equal(expected, doc.split_to_word) end def test_ascii_split_to_word_withlongspace() doc = Document.new(" foo bar") expected = [" ", "foo ", " ", "bar"] assert_equal(expected, doc.split_to_word) end def test_ascii_split_to_word_withdash() doc = Document.new("foo -- bar, baz - quux") expected = ["foo ", "-- ", "bar, ", "baz ", "- ", "quux"] assert_equal(expected, doc.split_to_word) end def test_ascii_split_to_char() doc = Document.new("foo bar") expected = ["f","o","o"," ","b","a","r"] assert_equal(expected, doc.split_to_char) end def test_ascii_split_to_char_with_eol_cr() doc = Document.new("foo bar\r") expected = ["f","o","o"," ","b","a","r","\r"] assert_equal(expected, doc.split_to_char) end def test_ascii_split_to_char_with_eol_lf() doc = Document.new("foo bar\n") expected = ["f","o","o"," ","b","a","r","\n"] assert_equal(expected, doc.split_to_char) end def test_ascii_split_to_char_with_eol_crlf() doc = Document.new("foo bar\r\n") expected = ["f","o","o"," ","b","a","r","\r\n"] assert_equal(expected, doc.split_to_char) end def test_ascii_split_to_byte() doc = Document.new("foo bar\r\n") expected = ["f","o","o"," ","b","a","r","\r","\n"] assert_equal(expected, doc.split_to_byte) end def test_ascii_count_byte() doc = Document.new("foo bar\r\n") expected = 9 assert_equal(expected, doc.count_byte) end def test_ascii_count_char() doc = Document.new("foo bar\r\nbaz quux\r\n") expected = 17 assert_equal(expected, doc.count_char) end def test_ascii_count_latin_graph_char() doc = Document.new("foo bar\r\nbaz quux\r\n") expected = 13 assert_equal(expected, doc.count_latin_graph_char) end def test_ascii_count_graph_char() doc = Document.new("foo bar\r\nbaz quux\r\n") expected = 13 assert_equal(expected, doc.count_graph_char) end def test_ascii_count_latin_blank_char() doc = Document.new("foo bar\r\nbaz\tquux\r\n") expected = 2 assert_equal(expected, doc.count_latin_blank_char) end def test_ascii_count_blank_char() doc = Document.new("foo bar\r\nbaz\tquux\r\n") expected = 2 assert_equal(expected, doc.count_blank_char) end def test_ascii_count_word() doc = Document.new("foo bar \r\nbaz quux\r\n") expected = 6 assert_equal(expected, doc.count_word) end def test_ascii_count_latin_word() doc = Document.new("foo bar \r\nbaz quux\r\n") expected = 5 # " " is also counted as a word assert_equal(expected, doc.count_latin_word) end def test_ascii_count_latin_valid_word() doc = Document.new("1 foo \r\n%%% ()\r\n") expected = 2 assert_equal(expected, doc.count_latin_valid_word) end def test_ascii_count_line() doc = Document.new("foo\r\nbar") expected = 2 assert_equal(expected, doc.count_line) end def test_ascii_count_graph_line() doc = Document.new("foo\r\n ") expected = 1 assert_equal(expected, doc.count_graph_line) end def test_ascii_count_empty_line() doc = Document.new("foo\r\n \r\n\t\r\n\r\n") expected = 1 assert_equal(expected, doc.count_empty_line) end def test_ascii_count_blank_line() doc = Document.new("\r\n \r\n\t\r\n ") expected = 3 assert_equal(expected, doc.count_blank_line) end # test EUCJP module def test_eucjp_split_to_word() doc = Document.new(NKF.nkf("-e", "ܸʸfoo bar")) expected = ["ܸ","ʸ","foo ","bar"].collect{|c| NKF.nkf("-e", c)} assert_equal(expected, doc.split_to_word) end def test_eucjp_split_to_word_kanhira() doc = Document.new(NKF.nkf("-e", "ܸʸ")) expected = ["ܸ", "ʸ"].collect{|c| NKF.nkf("-e", c)} assert_equal(expected, doc.split_to_word) end def test_eucjp_split_to_word_katahira() doc = Document.new(NKF.nkf("-e", "ʤʸ")) expected = ["ʤ", "ʸ"].collect{|c| NKF.nkf("-e", c)} assert_equal(expected, doc.split_to_word) end def test_eucjp_split_to_word_kataonbiki() doc = Document.new(NKF.nkf("-e", "ӡ"), "EUC-JP") expected = ["ӡ", "", ""].collect{|c| NKF.nkf("-e", c)} assert_equal(expected, doc.split_to_word) end def test_eucjp_split_to_word_hiraonbiki() doc = Document.new(NKF.nkf("-e", "ӡ"), "EUC-JP") expected = (["", "ӡ"]).collect{|c| NKF.nkf("-e", c)} assert_equal(expected, doc.split_to_word) end def test_eucjp_split_to_word_latinmix() doc = Document.new(NKF.nkf("-e", "ܸLatinʸ")) expected = ["ܸ", "Latin", "", "ʸ"].collect{|c| NKF.nkf("-e", c)} assert_equal(expected, doc.split_to_word) end def test_eucjp_split_to_char() doc = Document.new(NKF.nkf("-e", "ܸa b")) expected = ["","","","a"," ","b"].collect{|c|NKF.nkf("-e",c)} assert_equal(expected, doc.split_to_char) end def test_eucjp_split_to_char_with_cr() doc = Document.new(NKF.nkf("-e", "ܸa b\r")) expected = ["","","","a"," ","b","\r"].collect{|c|NKF.nkf("-e",c)} assert_equal(expected, doc.split_to_char) end def test_eucjp_split_to_char_with_lf() doc = Document.new(NKF.nkf("-e", "ܸa b\n")) expected = ["","","","a"," ","b","\n"].collect{|c|NKF.nkf("-e",c)} assert_equal(expected, doc.split_to_char) end def test_eucjp_split_to_char_with_crlf() doc = Document.new(NKF.nkf("-e", "ܸa b\r\n")) expected = ["","","","a"," ","b","\r\n"].collect{|c|NKF.nkf("-e",c)} assert_equal(expected, doc.split_to_char) end def test_eucjp_count_char() doc = Document.new(NKF.nkf("-e", "ܸa b\r\n")) expected = 7 assert_equal(expected, doc.count_char) end def test_eucjp_count_latin_graph_char() doc = Document.new(NKF.nkf("-e", "ܸa b\r\n")) expected = 2 assert_equal(expected, doc.count_latin_graph_char) end def test_eucjp_count_ja_graph_char() doc = Document.new(NKF.nkf("-e", "ܸa b\r\n")) expected = 3 assert_equal(expected, doc.count_ja_graph_char) end def test_eucjp_count_graph_char() doc = Document.new(NKF.nkf("-e", "ܸa b\r\n")) expected = 5 assert_equal(expected, doc.count_graph_char) end def test_eucjp_count_latin_blank_char() doc = Document.new(NKF.nkf("-e", "ܸ\ta b\r\n")) expected = 2 assert_equal(expected, doc.count_latin_blank_char) end def test_eucjp_count_ja_blank_char() doc = Document.new(NKF.nkf("-e", "ܡ\ta b\r\n")) expected = 1 assert_equal(expected, doc.count_ja_blank_char) end def test_eucjp_count_blank_char() doc = Document.new(NKF.nkf("-e", "ܡ\ta b\r\n")) expected = 3 assert_equal(expected, doc.count_blank_char) end def test_eucjp_count_word() doc = Document.new(NKF.nkf("-e", "ܡa b --\r\n")) expected = 7 # "--" and "\r\n" are counted as word here (though not "valid") assert_equal(expected, doc.count_word) end def test_eucjp_count_ja_word() doc = Document.new(NKF.nkf("-e", "ܡa b --\r\n")) expected = 3 assert_equal(expected, doc.count_ja_word) end def test_eucjp_count_latin_valid_word() doc = Document.new(NKF.nkf("-e", "ܡa b --\r\n")) expected = 2 assert_equal(expected, doc.count_latin_valid_word) end def test_eucjp_count_ja_valid_word() doc = Document.new(NKF.nkf("-e", "ܡa b --\r\n")) expected = 2 assert_equal(expected, doc.count_ja_valid_word) end def test_eucjp_count_valid_word() doc = Document.new(NKF.nkf("-e", "ܡa b --\r\n")) expected = 4 assert_equal(expected, doc.count_valid_word) end def test_eucjp_count_line() doc = Document.new(NKF.nkf("-e", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar")) expected = 6 assert_equal(expected, doc.count_line) end def test_eucjp_count_graph_line() doc = Document.new(NKF.nkf("-e", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar")) expected = 3 assert_equal(expected, doc.count_graph_line) end def test_eucjp_count_empty_line() doc = Document.new(NKF.nkf("-e", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar")) expected = 1 assert_equal(expected, doc.count_empty_line) end def test_eucjp_count_blank_line() doc = Document.new(NKF.nkf("-e", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar")) expected = 2 assert_equal(expected, doc.count_blank_line) end # test SJIS module def test_sjis_split_to_word() doc = Document.new(NKF.nkf("-s", "ܸʸfoo bar")) expected = ["ܸ", "ʸ", "foo ", "bar"].collect{|c|NKF.nkf("-s",c)} assert_equal(expected, doc.split_to_word) end def test_sjisplit_s_to_word_kanhira() doc = Document.new(NKF.nkf("-s", "ܸʸ")) expected = ["ܸ", "ʸ"].collect{|c| NKF.nkf("-s", c)} assert_equal(expected, doc.split_to_word) end def test_sjis_split_to_word_katahira() doc = Document.new(NKF.nkf("-s", "ʤʸ")) expected = ["ʤ", "ʸ"].collect{|c| NKF.nkf("-s", c)} assert_equal(expected, doc.split_to_word) end def test_sjis_split_to_word_kataonbiki() doc = Document.new(NKF.nkf("-s", "ӡλ")) expected = ["ӡ", ""].collect{|c| NKF.nkf("-s", c)} assert_equal(expected, doc.split_to_word) end def test_sjis_split_to_word_hiraonbiki() doc = Document.new(NKF.nkf("-s", "ӡ")) expected = ["", "ӡ"].collect{|c| NKF.nkf("-s", c)} assert_equal(expected, doc.split_to_word) end def test_sjis_split_to_word_latinmix() doc = Document.new(NKF.nkf("-s", "ܸLatinʸ")) expected = ["ܸ","Latin","","ʸ"].collect{|c| NKF.nkf("-s", c)} assert_equal(expected, doc.split_to_word) end def test_sjis_split_to_char() doc = Document.new(NKF.nkf("-s", "ɽ׻a b")) expected = ["ɽ","","","a"," ","b"].collect{|c|NKF.nkf("-s",c)} assert_equal(expected, doc.split_to_char) end def test_sjis_split_to_char_with_cr() doc = Document.new(NKF.nkf("-s", "ɽ׻a b\r")) expected = ["ɽ","","","a"," ","b","\r"].collect{|c|NKF.nkf("-s",c)} assert_equal(expected, doc.split_to_char) end def test_sjis_split_to_char_with_lf() doc = Document.new(NKF.nkf("-s", "ɽ׻a b\n")) expected = ["ɽ","","","a"," ","b","\n"].collect{|c|NKF.nkf("-s",c)} assert_equal(expected, doc.split_to_char) end def test_sjis_split_to_char_with_crlf() doc = Document.new(NKF.nkf("-s", "ɽ׻a b\r\n")) expected = ["ɽ","","","a"," ","b","\r\n"].collect{|c|NKF.nkf("-s",c)} assert_equal(expected, doc.split_to_char) end def test_sjis_count_char() doc = Document.new(NKF.nkf("-s", "ܸa b\r\n")) expected = 7 assert_equal(expected, doc.count_char) end def test_sjis_count_latin_graph_char() doc = Document.new(NKF.nkf("-s", "ܸa b\r\n")) expected = 2 assert_equal(expected, doc.count_latin_graph_char) end def test_sjis_count_ja_graph_char() doc = Document.new(NKF.nkf("-s", "ܸa b\r\n")) expected = 3 assert_equal(expected, doc.count_ja_graph_char) end def test_sjis_count_graph_char() doc = Document.new(NKF.nkf("-s", "ܸa b\r\n")) expected = 5 assert_equal(expected, doc.count_graph_char) end def test_sjis_count_latin_blank_char() doc = Document.new(NKF.nkf("-s", "ܸ\ta b\r\n")) expected = 2 assert_equal(expected, doc.count_latin_blank_char) end def test_sjis_count_ja_blank_char() doc = Document.new(NKF.nkf("-s", "ܡ\ta b\r\n")) expected = 1 assert_equal(expected, doc.count_ja_blank_char) end def test_sjis_count_blank_char() doc = Document.new(NKF.nkf("-s", "ܡ\ta b\r\n")) expected = 3 assert_equal(expected, doc.count_blank_char) end def test_sjis_count_word() doc = Document.new(NKF.nkf("-s", "ܡa b --\r\n")) expected = 7 # "--" and "\r\n" are counted as word here (though not "valid") assert_equal(expected, doc.count_word) end def test_sjis_count_ja_word() doc = Document.new(NKF.nkf("-s", "ܡa b --\r\n")) expected = 3 assert_equal(expected, doc.count_ja_word) end def test_sjis_count_latin_valid_word() doc = Document.new(NKF.nkf("-s", "ܡa b --\r\n")) expected = 2 assert_equal(expected, doc.count_latin_valid_word) end def test_sjis_count_ja_valid_word() doc = Document.new(NKF.nkf("-s", "ܡa b --\r\n")) expected = 2 assert_equal(expected, doc.count_ja_valid_word) end def test_sjis_count_valid_word() doc = Document.new(NKF.nkf("-s", "ܡa b --\r\n")) expected = 4 assert_equal(expected, doc.count_valid_word) end def test_sjis_count_line() doc = Document.new(NKF.nkf("-s", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar")) expected = 6 assert_equal(expected, doc.count_line) end def test_sjis_count_graph_line() doc = Document.new(NKF.nkf("-s", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar")) expected = 3 assert_equal(expected, doc.count_graph_line) end def test_sjis_count_empty_line() doc = Document.new(NKF.nkf("-s", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar")) expected = 1 assert_equal(expected, doc.count_empty_line) end def test_sjis_count_blank_line() doc = Document.new(NKF.nkf("-s", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar")) expected = 2 assert_equal(expected, doc.count_blank_line) end # test UTF8 module def test_utf8_split_to_word() doc = Document.new(NKF.nkf("-E -w", "ܸʸfoo bar")) expected = ["ܸ", "ʸ", "foo ", "bar"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, doc.split_to_word) end def test_utf8_split_to_word_kanhira() doc = Document.new(NKF.nkf("-E -w", "ܸʸ")) expected = ["ܸ", "ʸ"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, doc.split_to_word) end def test_utf8_split_to_word_katahira() doc = Document.new(NKF.nkf("-E -w", "ʤʸ")) expected = ["ʤ", "ʸ"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, doc.split_to_word) end def test_utf8_split_to_word_kataonbiki() doc = Document.new(NKF.nkf("-E -w", "ӡλ")) expected = ["ӡ", ""].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, doc.split_to_word) end def test_utf8_split_to_word_hiraonbiki() doc = Document.new(NKF.nkf("-E -w", "ӡ")) expected = ["", "ӡ"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, doc.split_to_word) end def test_utf8_split_to_word_latinmix() doc = Document.new(NKF.nkf("-E -w", "ܸLatinʸ")) expected = ["ܸ", "Latin", "", "ʸ"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, doc.split_to_word) end def test_utf8_split_to_char() doc = Document.new(NKF.nkf("-E -w", "ܸa b"), "UTF-8") expected = ["", "", "", "a", " ", "b"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, doc.split_to_char) end def test_utf8_split_to_char_with_cr() doc = Document.new(NKF.nkf("-E -w", "ܸa b\r"), "UTF-8") expected = ["","","","a"," ","b","\r"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, doc.split_to_char) end def test_utf8_split_to_char_with_lf() doc = Document.new(NKF.nkf("-E -w", "ܸa b\n"), "UTF-8") expected = ["","","","a"," ","b","\n"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, doc.split_to_char) end def test_utf8_split_to_char_with_crlf() doc = Document.new(NKF.nkf("-E -w", "ܸa b\r\n"), "UTF-8") expected = ["","","","a"," ","b","\r\n"].collect{|c| NKF.nkf("-E -w", c)} assert_equal(expected, doc.split_to_char) end def test_utf8_count_char() doc = Document.new(NKF.nkf("-E -w", "ܸa b\r\n"), "UTF-8") expected = 7 assert_equal(expected, doc.count_char) end def test_utf8_count_latin_graph_char() doc = Document.new(NKF.nkf("-E -w", "ܸa b\r\n"), "UTF-8") expected = 2 assert_equal(expected, doc.count_latin_graph_char) end def test_utf8_count_ja_graph_char() doc = Document.new(NKF.nkf("-E -w", "ܸa b\r\n"), "UTF-8") expected = 3 assert_equal(expected, doc.count_ja_graph_char) end def test_utf8_count_graph_char() doc = Document.new(NKF.nkf("-E -w", "ܸa b\r\n"), "UTF-8") expected = 5 assert_equal(expected, doc.count_graph_char) end def test_utf8_count_latin_blank_char() doc = Document.new(NKF.nkf("-E -w", "ܸ\ta b\r\n")) expected = 2 assert_equal(expected, doc.count_latin_blank_char) end def test_utf8_count_ja_blank_char() doc = Document.new(NKF.nkf("-E -w", "ܡ\ta b\r\n")) expected = 1 assert_equal(expected, doc.count_ja_blank_char) end def test_utf8_count_blank_char() doc = Document.new(NKF.nkf("-E -w", "ܡ\ta b\r\n")) expected = 3 assert_equal(expected, doc.count_blank_char) end def test_utf8_count_word() doc = Document.new(NKF.nkf("-E -w", "ܡa b --\r\n")) expected = 7 # "--" and "\r\n" are counted as word here (though not "valid") assert_equal(expected, doc.count_word) end def test_utf8_count_ja_word() doc = Document.new(NKF.nkf("-E -w", "ܡa b --\r\n")) expected = 3 assert_equal(expected, doc.count_ja_word) end def test_utf8_count_latin_valid_word() doc = Document.new(NKF.nkf("-E -w", "ܡa b --\r\n")) expected = 2 assert_equal(expected, doc.count_latin_valid_word) end def test_utf8_count_ja_valid_word() doc = Document.new(NKF.nkf("-E -w", "ܡa b --\r\n")) expected = 2 assert_equal(expected, doc.count_ja_valid_word) end def test_utf8_count_valid_word() doc = Document.new(NKF.nkf("-E -w", "ܡa b --\r\n")) expected = 4 assert_equal(expected, doc.count_valid_word) end def test_utf8_count_line() doc = Document.new(NKF.nkf("-E -w", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar")) expected = 6 assert_equal(expected, doc.count_line) end def test_utf8_count_graph_line() doc = Document.new(NKF.nkf("-E -w", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar")) expected = 3 assert_equal(expected, doc.count_graph_line) end def test_utf8_count_empty_line() doc = Document.new(NKF.nkf("-E -w", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar")) expected = 1 assert_equal(expected, doc.count_empty_line) end def test_utf8_count_blank_line() doc = Document.new(NKF.nkf("-E -w", "ܸ\r\n\r\n \r\n\r\nfoo\r\nbar")) expected = 2 assert_equal(expected, doc.count_blank_line) end def teardown() # end end docdiff-0.5.0+git20160313/test/test_helper.rb000066400000000000000000000002471263141227400203400ustar00rootroot00000000000000# -*- coding: utf-8 -*- begin # FIXME: "invalid byte sequence in UTF-8 (ArgumentError)" will be raised. require 'simplecov' SimpleCov.start rescue LoadError end docdiff-0.5.0+git20160313/test/view_test.rb000077500000000000000000000641651263141227400200470ustar00rootroot00000000000000#!/usr/bin/ruby # -*- coding: euc-jp; -*- require 'test/unit' require 'docdiff/view' require 'docdiff/difference' require 'nkf' class TC_DocDiff_View < Test::Unit::TestCase View = DocDiff::View Difference = DocDiff::Difference def setup() # end def test_scan_lines_cr() str = "A\r\rA\n\nA\r\n\r\nA\n\r\n\rA" expected = ["A\r", "\r", "A\n\nA\r", "\n\r", "\nA\n\r", "\n\r", "A"] actual = str.scan_lines("CR") assert_equal(expected, actual) end def test_scan_lines_lf() str = "A\r\rA\n\nA\r\n\r\nA\n\r\n\rA" expected = ["A\r\rA\n", "\n", "A\r\n", "\r\n", "A\n", "\r\n", "\rA"] actual = str.scan_lines("LF") assert_equal(expected, actual) end def test_scan_lines_crlf() str = "A\r\rA\n\nA\r\n\r\nA\n\r\n\rA" expected = ["A\r\rA\n\nA\r\n", "\r\n", "A\n\r\n", "\rA"] actual = str.scan_lines("CRLF") assert_equal(expected, actual) end def test_source_lines_cr() array1 = "A\r\rA\n\nA\r\n\r\nA\n\r\n\rA".split(//) array2 = ["b", "c", "c"] difference = Difference.new(array1, array2) expected = ["A\r", "\r", "A\n\nA\r", "\n\r", "\nA\n\r", "\n\r", "A"] actual = View.new(difference, "US-ASCII", "CR").source_lines assert_equal(expected, actual) end def test_source_lines_cr2() array1 = "A\r\rA\n\nA\r\n\r\nA\n\r\n\r".split(//) array2 = ["b", "c", "c"] difference = Difference.new(array1, array2) expected = ["A\r", "\r", "A\n\nA\r", "\n\r", "\nA\n\r", "\n\r"] actual = View.new(difference, "US-ASCII", "CR").source_lines assert_equal(expected, actual) end def test_source_lines_lf() array1 = "A\r\rA\n\nA\r\n\r\nA\n\r\n\rA".split(//) array2 = ["b", "c", "c"] difference = Difference.new(array1, array2) expected = ["A\r\rA\n", "\n", "A\r\n", "\r\n", "A\n", "\r\n", "\rA"] actual = View.new(difference, "US-ASCII", "LF").source_lines assert_equal(expected, actual) end def test_source_lines_lf2() array1 = "A\r\rA\n\nA\r\n\r\nA\n\r\n\r".split(//) array2 = ["b", "c", "c"] difference = Difference.new(array1, array2) expected = ["A\r\rA\n", "\n", "A\r\n", "\r\n", "A\n", "\r\n", "\r"] actual = View.new(difference, "US-ASCII", "LF").source_lines assert_equal(expected, actual) end def test_source_lines_crlf() array1 = "A\r\rA\n\nA\r\n\r\nA\n\r\n\rA".split(//) array2 = ["b", "c", "c"] difference = Difference.new(array1, array2) expected = ["A\r\rA\n\nA\r\n", "\r\n", "A\n\r\n", "\rA"] actual = View.new(difference, "US-ASCII", "CRLF").source_lines assert_equal(expected, actual) end def test_source_lines_crlf2() array1 = "A\r\rA\n\nA\r\n\r\nA\n\r\n\r".split(//) array2 = ["b", "c", "c"] difference = Difference.new(array1, array2) expected = ["A\r\rA\n\nA\r\n", "\r\n", "A\n\r\n", "\r"] actual = View.new(difference, "US-ASCII", "CRLF").source_lines assert_equal(expected, actual) end def test_source_lines_noeol() array1 = ["a", "b", "c"] array2 = ["b", "c", "c"] difference = Difference.new(array1, array2) expected = ["abc"] actual = View.new(difference, "US-ASCII", nil).source_lines assert_equal(expected, actual) end def test_target_lines_cr() array1 = ["a", "b", "\n", "c"] array2 = "A\r\rA\n\nA\r\n\r\nA\n\r\n\rA".split(//) difference = Difference.new(array1, array2) expected = ["A\r", "\r", "A\n\nA\r", "\n\r", "\nA\n\r", "\n\r", "A"] actual = View.new(difference, "US-ASCII", "CR").target_lines assert_equal(expected, actual) end def test_target_lines_cr2() array1 = ["a", "b", "\n", "c"] array2 = "A\r\rA\n\nA\r\n\r\nA\n\r\n\r".split(//) difference = Difference.new(array1, array2) expected = ["A\r", "\r", "A\n\nA\r", "\n\r", "\nA\n\r", "\n\r"] actual = View.new(difference, "US-ASCII", "CR").target_lines assert_equal(expected, actual) end def test_target_lines_lf() array1 = ["a", "b", "\n", "c"] array2 = "A\r\rA\n\nA\r\n\r\nA\n\r\n\rA".split(//) difference = Difference.new(array1, array2) expected = ["A\r\rA\n", "\n", "A\r\n", "\r\n", "A\n", "\r\n", "\rA"] actual = View.new(difference, "US-ASCII", "LF").target_lines assert_equal(expected, actual) end def test_target_lines_lf2() array1 = ["a", "b", "\n", "c"] array2 = "A\r\rA\n\nA\r\n\r\nA\n\r\n\r".split(//) difference = Difference.new(array1, array2) expected = ["A\r\rA\n", "\n", "A\r\n", "\r\n", "A\n", "\r\n", "\r"] actual = View.new(difference, "US-ASCII", "LF").target_lines assert_equal(expected, actual) end def test_target_lines_crlf() array1 = ["a", "b", "\n", "c"] array2 = "A\r\rA\n\nA\r\n\r\nA\n\r\n\rA".split(//) difference = Difference.new(array1, array2) expected = ["A\r\rA\n\nA\r\n", "\r\n", "A\n\r\n", "\rA"] actual = View.new(difference, "US-ASCII", "CRLF").target_lines assert_equal(expected, actual) end def test_target_lines_crlf2() array1 = ["a", "b", "\n", "c"] array2 = "A\r\rA\n\nA\r\n\r\nA\n\r\n\r".split(//) difference = Difference.new(array1, array2) expected = ["A\r\rA\n\nA\r\n", "\r\n", "A\n\r\n", "\r"] actual = View.new(difference, "US-ASCII", "CRLF").target_lines assert_equal(expected, actual) end def test_target_lines_noeol() array1 = ["a", "b", "c"] array2 = ["b", "c", "c"] difference = Difference.new(array1, array2) expected = ["bcc"] actual = View.new(difference, "US-ASCII", nil).target_lines assert_equal(expected, actual) end def test_to_tty_del_add_ascii() array1 = ['a', 'b', 'c'] array2 = ['b', 'c', 'c'] difference = Difference.new(array1, array2) expected = ["\033[7;4;31ma\033[0m", "b", "\033[7;1;34mc\033[0m", "c"] assert_equal(expected, View.new(difference, "US-ASCII", nil).to_tty(nil, false)) end def test_to_tty_change_ascii() array1 = ['a', 'b', 'c'] array2 = ['a', 'x', 'c'] difference = Difference.new(array1, array2) expected = ["a", "\033[7;4;33mb\033[0m\033[7;1;32mx\033[0m", "c"] assert_equal(expected, View.new(difference, "US-ASCII", nil).to_tty(nil, false)) end def test_to_tty_del_add_ja() array1 = ['', '', ''] array2 = ['', '', ''] expected = ["\033[7;4;31m\033[0m", "", "\033[7;1;34m\033[0m", ""] assert_equal(expected, View.new(Difference.new(array1, array2), "EUC-JP", nil).to_tty(nil, false)) assert_equal(expected.collect{|i|NKF.nkf("-s",i)}, View.new(Difference.new(array1.collect{|i|NKF.nkf("-s",i)}, array2.collect{|i|NKF.nkf("-s",i)}), "Shift_JIS", nil).to_tty(nil, false)) assert_equal(expected.collect{|i|NKF.nkf("-E -w", i)}, View.new(Difference.new(array1.collect{|i|NKF.nkf("-E -w", i)}, array2.collect{|i|NKF.nkf("-E -w", i)}), "UTF-8", nil).to_tty(nil, false)) end def test_to_tty_change_ja() array1 = ['', '', ''] array2 = ['', '', ''] expected = ["", "\033[7;4;33m\033[0m\033[7;1;32m\033[0m", ""] assert_equal(expected, View.new(Difference.new(array1, array2), "EUC-JP", nil).to_tty(nil, false)) assert_equal(expected.collect{|i|NKF.nkf("-s",i)}, View.new(Difference.new(array1.collect{|i|NKF.nkf("-s",i)}, array2.collect{|i|NKF.nkf("-s",i)}), "Shift_JIS", nil).to_tty(nil, false)) assert_equal(expected.collect{|i|NKF.nkf("-E -w", i)}, View.new(Difference.new(array1.collect{|i|NKF.nkf("-E -w", i)}, array2.collect{|i|NKF.nkf("-E -w", i)}), "UTF-8", nil).to_tty(nil, false)) end def test_to_tty_digest() array1 = ["a", "\n", "b", "c", "d", "e", "\n", "f", "\n"] array2 = ["c", "d", "X", "\n", "Y", "e", "\n", "F", "\n"] expected = ["----\n", "1-2,(1)\n\033[7;4;31ma\nb\033[0mcd\n----\n", "(2),1-2\ncd\033[7;1;34mX\nY\033[0me\n\n----\n", "3,3\ne\n\033[7;4;33mf\033[0m\033[7;1;32mF\033[0m\n\n----\n"] assert_equal(expected, View.new(Difference.new(array1, array2), "US-ASCII", "LF").to_tty_digest(nil, false)) end def test_to_tty_digest_multi() array1 = ["a", "\n", "b", "c", "d", "e", "\n", "f", "\n"] array2 = ["c", "d", "X", "\n", "Y", "e", "\n", "F", "\n"] expected = ["----\n", "1-2,(1)\na\nbcd\n\033[7;4;31ma\nb\033[0mcd\n----\n", "(2),1-2\ncde\n\ncd\033[7;1;34mX\nY\033[0me\n\n----\n", "3,3\ne\n\033[7;4;33mf\033[0m\n\ne\n\033[7;1;32mF\033[0m\n\n----\n"] assert_equal(expected, View.new(Difference.new(array1, array2), "US-ASCII", "LF").to_tty_digest({:display=>'multi'}, false)) end def test_to_html_cr_ascii() array1 = ['a', "\r"] array2 = ['a', "\r"] difference = Difference.new(array1, array2) expected = ["a
    \r
    "] assert_equal(expected, View.new(difference, "US-ASCII", "CR").to_html(nil, false)) end def test_to_html_lf_ascii() array1 = ['a', "\n"] array2 = ['a', "\n"] difference = Difference.new(array1, array2) expected = ["a
    \n
    "] assert_equal(expected, View.new(difference, "US-ASCII", "LF").to_html(nil, false)) end def test_to_html_crlf_ascii() array1 = ['a', "\r\n"] array2 = ['a', "\r\n"] difference = Difference.new(array1, array2) expected = ["a
    \r\n
    "] assert_equal(expected, View.new(difference, "US-ASCII", "CRLF").to_html(nil, false)) end def test_to_html_escaping_ascii() array1 = ['<>& '] array2 = ['<>& '] difference = Difference.new(array1, array2) expected = ["<>&   "] assert_equal(expected, View.new(difference, "US-ASCII", nil).to_html(nil, false)) end def test_to_html_digest() array1 = ["a", "\n", "b", "c", "d", "e", "\n", "f", "\n"] array2 = ["c", "d", "X", "\n", "Y", "e", "\n", "F", "\n"] expected = ["
      ", "
    • 1-2,(1)

      a
      \nb
      cd

    • \n", "
    • (2),1-2

      cdX
      \nY
      e
      \n

    • \n", "
    • 3,3

      e
      \nfF
      \n

    • \n", "
    "] assert_equal(expected, View.new(Difference.new(array1, array2), "US-ASCII", "LF").to_html_digest(nil,false)) end def test_to_html_digest_multi() array1 = ["a", "\n", "b", "c", "d", "e", "\n", "f", "\n"] array2 = ["c", "d", "X", "\n", "Y", "e", "\n", "F", "\n"] expected = ["
      ", "
    • 1-2,(1)

      a
      \nbcd

      a
      \nb
      cd

    • \n", "
    • (2),1-2

      cde
      \n

      cdX
      \nY
      e
      \n

    • \n", "
    • 3,3

      e
      \nf
      \n

      e
      \nF
      \n

    • \n", "
    "] assert_equal(expected, View.new(Difference.new(array1, array2), "US-ASCII", "LF").to_html_digest({:display=>'multi'},false)) end def test_to_html_del_add_ascii() array1 = ['a', 'b', 'c'] array2 = ['b', 'c', 'c'] difference = Difference.new(array1, array2) expected = ['a', 'b', 'c', 'c'] assert_equal(expected, View.new(difference, "US-ASCII", nil).to_html(nil, false)) end def test_to_html_change_ascii() array1 = ['a', 'b', 'c'] array2 = ['a', 'x', 'c'] difference = Difference.new(array1, array2) expected = ['a', 'bx', 'c'] assert_equal(expected, View.new(difference, "US-ASCII", nil).to_html(nil, false)) end def test_to_html_del_add_ja() array1 = ['', '', ''] array2 = ['', '', ''] expected = ['', '', '', ''] assert_equal(expected, View.new(Difference.new(array1, array2), "EUC-JP", nil).to_html(nil, false)) assert_equal(expected.collect{|i|NKF.nkf("-s",i)}, View.new(Difference.new(array1.collect{|i|NKF.nkf("-s",i)}, array2.collect{|i|NKF.nkf("-s",i)}), "Shift_JIS", nil).to_html(nil, false)) assert_equal(expected.collect{|i|NKF.nkf("-E -w", i)}, View.new(Difference.new(array1.collect{|i|NKF.nkf("-E -w", i)}, array2.collect{|i|NKF.nkf("-E -w", i)}), "UTF-8", nil).to_html(nil, false)) end def test_to_html_change_ja() array1 = ['', '', ''] array2 = ['', '', ''] expected = ['', '', ''] assert_equal(expected, View.new(Difference.new(array1, array2), "EUC-JP", nil).to_html(nil, false)) assert_equal(expected.collect{|i|NKF.nkf("-s",i)}, View.new(Difference.new(array1.collect{|i|NKF.nkf("-s",i)}, array2.collect{|i|NKF.nkf("-s",i)}), "Shift_JIS", nil).to_html(nil, false)) assert_equal(expected.collect{|i|NKF.nkf("-E -w", i)}, View.new(Difference.new(array1.collect{|i|NKF.nkf("-E -w", i)}, array2.collect{|i|NKF.nkf("-E -w", i)}), "UTF-8", nil).to_html(nil, false)) end def test_to_manued_del_add_ascii() array1 = ['a', 'b', 'c'] array2 = ['b', 'c', 'c'] difference = Difference.new(array1, array2) expected = ['[a/]', 'b', '[/c]', 'c'] assert_equal(expected, View.new(difference, "US-ASCII", nil).to_manued(nil, false)) end def test_to_manued_change_ascii() array1 = ['a', 'b', 'c'] array2 = ['a', 'x', 'c'] difference = Difference.new(array1, array2) expected = ['a', '[b/x]', 'c'] assert_equal(expected, View.new(difference, "US-ASCII", nil).to_manued(nil, false)) end def test_to_manued_del_add_ja() array1 = ['', '', ''] array2 = ['', '', ''] expected = ['[/]', '', '[/]', ''] assert_equal(expected, View.new(Difference.new(array1, array2), "EUC-JP", nil).to_manued(nil, false)) assert_equal(expected.collect{|i|NKF.nkf("-s",i)}, View.new(Difference.new(array1.collect{|i|NKF.nkf("-s",i)}, array2.collect{|i|NKF.nkf("-s",i)}), "Shift_JIS", nil).to_manued(nil, false)) assert_equal(expected.collect{|i|NKF.nkf("-E -w", i)}, View.new(Difference.new(array1.collect{|i|NKF.nkf("-E -w", i)}, array2.collect{|i|NKF.nkf("-E -w", i)}), "UTF-8", nil).to_manued(nil, false)) end def test_to_manued_change_ja() array1 = ['', '', ''] array2 = ['', '', ''] expected = ['', '[/]', ''] assert_equal(expected, View.new(Difference.new(array1, array2), "EUC-JP", nil).to_manued(nil, false)) assert_equal(expected.collect{|i|NKF.nkf("-s",i)}, View.new(Difference.new(array1.collect{|i|NKF.nkf("-s",i)}, array2.collect{|i|NKF.nkf("-s",i)}), "Shift_JIS", nil).to_manued(nil, false)) assert_equal(expected.collect{|i|NKF.nkf("-E -w", i)}, View.new(Difference.new(array1.collect{|i|NKF.nkf("-E -w", i)}, array2.collect{|i|NKF.nkf("-E -w", i)}), "UTF-8", nil).to_manued(nil, false)) end def test_to_manued_escaping_ascii() array1 = ['a', '[/;]~', 'b', '[/;]~'] array2 = ['a', '[/;]~', 'b'] difference = Difference.new(array1, array2) expected = ["a~[/;]~~b", "[~[~/~;~]~~/]"] assert_equal(expected, View.new(difference, "US-ASCII", nil).to_manued(nil, false)) end def test_to_manued_digest() array1 = ["a", "\n", "b", "c", "d", "e", "\n", "f", "\n"] array2 = ["c", "d", "X", "\n", "Y", "e", "\n", "F", "\n"] expected = ["----\n", "1-2,(1)\n[a\nb/]cd\n----\n", "(2),1-2\ncd[/X\nY]e\n\n----\n", "3,3\ne\n[f/F]\n\n----\n"] assert_equal(expected, View.new(Difference.new(array1, array2), "US-ASCII", "LF").to_manued_digest(nil,false)) end def test_to_manued_digest_multi() array1 = ["a", "\n", "b", "c", "d", "e", "\n", "f", "\n"] array2 = ["c", "d", "X", "\n", "Y", "e", "\n", "F", "\n"] expected = ["----\n", "1-2,(1)\na\nbcd\n[a\nb/]cd\n----\n", "(2),1-2\ncde\n\ncd[/X\nY]e\n\n----\n", "3,3\ne\n[f/]\n\ne\n[/F]\n\n----\n"] assert_equal(expected, View.new(Difference.new(array1, array2), "US-ASCII", "LF").to_manued_digest({:display=>'multi'},false)) end def test_to_wdiff_del_add_ascii() array1 = ['a', 'b', 'c'] array2 = ['b', 'c', 'c'] difference = Difference.new(array1, array2) expected = ['[-a-]', 'b', '{+c+}', 'c'] assert_equal(expected, View.new(difference, "US-ASCII", nil).to_wdiff(nil, false)) end def test_to_wdiff_change_ascii() array1 = ['a', 'b', 'c'] array2 = ['a', 'x', 'c'] difference = Difference.new(array1, array2) expected = ['a', '[-b-]{+x+}', 'c'] assert_equal(expected, View.new(difference, "US-ASCII", nil).to_wdiff(nil, false)) end def test_to_wdiff_del_add_ja() array1 = ['', '', ''] array2 = ['', '', ''] expected = ['[--]', '', '{++}', ''] assert_equal(expected, View.new(Difference.new(array1, array2), "EUC-JP", nil).to_wdiff(nil, false)) assert_equal(expected.collect{|i|NKF.nkf("-s",i)}, View.new(Difference.new(array1.collect{|i|NKF.nkf("-s",i)}, array2.collect{|i|NKF.nkf("-s",i)}), "Shift_JIS", nil).to_wdiff(nil, false)) assert_equal(expected.collect{|i|NKF.nkf("-E -w", i)}, View.new(Difference.new(array1.collect{|i|NKF.nkf("-E -w", i)}, array2.collect{|i|NKF.nkf("-E -w", i)}), "UTF-8", nil).to_wdiff(nil, false)) end def test_to_wdiff_change_ja() array1 = ['', '', ''] array2 = ['', '', ''] expected = ['', '[--]{++}', ''] assert_equal(expected, View.new(Difference.new(array1, array2), "EUC-JP", nil).to_wdiff(nil, false)) assert_equal(expected.collect{|i|NKF.nkf("-s",i)}, View.new(Difference.new(array1.collect{|i|NKF.nkf("-s",i)}, array2.collect{|i|NKF.nkf("-s",i)}), "Shift_JIS", nil).to_wdiff(nil, false)) assert_equal(expected.collect{|i|NKF.nkf("-E -w", i)}, View.new(Difference.new(array1.collect{|i|NKF.nkf("-E -w", i)}, array2.collect{|i|NKF.nkf("-E -w", i)}), "UTF-8", nil).to_wdiff(nil, false)) end def test_to_wdiff_digest() array1 = ["a", "\n", "b", "c", "d", "e", "\n", "f", "\n"] array2 = ["c", "d", "X", "\n", "Y", "e", "\n", "F", "\n"] expected = ["----\n", "1-2,(1)\n[-a\nb-]cd\n----\n", "(2),1-2\ncd{+X\nY+}e\n\n----\n", "3,3\ne\n[-f-]{+F+}\n\n----\n"] assert_equal(expected, View.new(Difference.new(array1, array2), "US-ASCII", "LF").to_wdiff_digest(nil,false)) end def test_to_wdiff_digest_multi() array1 = ["a", "\n", "b", "c", "d", "e", "\n", "f", "\n"] array2 = ["c", "d", "X", "\n", "Y", "e", "\n", "F", "\n"] expected = ["----\n", "1-2,(1)\na\nbcd\n[-a\nb-]cd\n----\n", "(2),1-2\ncde\n\ncd{+X\nY+}e\n\n----\n", "3,3\ne\n[-f-]\n\ne\n{+F+}\n\n----\n"] assert_equal(expected, View.new(Difference.new(array1, array2), "US-ASCII", "LF").to_wdiff_digest({:display => 'multi'}, false)) end def test_to_user_del_add_en() array1 = ['a', 'b', 'c'] array2 = ['b', 'c', 'c'] difference = Difference.new(array1, array2) user_tags = {:start_common => '<=>', :end_common => '', :start_del => '<->', :end_del => '', :start_add => '<+>', :end_add => '', :start_before_change => '', :end_before_change => '', :start_after_change => '', :end_after_change => ''} expected = ['<->a', '<=>b', '<+>c', '<=>c'] assert_equal(expected, View.new(difference, "US-ASCII", nil).to_user(user_tags, false)) end def test_to_user_change_en() array1 = ['a', 'b', 'c'] array2 = ['a', 'x', 'c'] difference = Difference.new(array1, array2) user_tags = {:start_common => '<=>', :end_common => '', :start_del => '<->', :end_del => '', :start_add => '<+>', :end_add => '', :start_before_change => '', :end_before_change => '', :start_after_change => '', :end_after_change => ''} expected = ['<=>a', 'bx', '<=>c'] assert_equal(expected, View.new(difference, "US-ASCII", nil).to_user(user_tags, false)) end def test_to_user_digest() array1 = ["a", "\n", "b", "c", "d", "e", "\n", "f", "\n"] array2 = ["c", "d", "X", "\n", "Y", "e", "\n", "F", "\n"] user_tags = {:start_common => '<=>', :end_common => '', :start_del => '<->', :end_del => '', :start_add => '<+>', :end_add => '', :start_before_change => '', :end_before_change => '', :start_after_change => '', :end_after_change => ''} expected = ["1-2,(1) <->a\nbcd\n", "(2),1-2 cd<+>X\nYe\n\n", "3,3 e\nfF\n\n"] assert_equal(expected, View.new(Difference.new(array1, array2), "US-ASCII", "LF").to_user_digest(user_tags, false)) end def test_to_user_digest_multi() array1 = ["a", "\n", "b", "c", "d", "e", "\n", "f", "\n"] array2 = ["c", "d", "X", "\n", "Y", "e", "\n", "F", "\n"] user_tags = {:start_common => '<=>', :end_common => '', :start_del => '<->', :end_del => '', :start_add => '<+>', :end_add => '', :start_before_change => '', :end_before_change => '', :start_after_change => '', :end_after_change => '', :display => 'multi'} expected = ["1-2,(1) a\nbcd<->a\nbcd\n", "(2),1-2 cde\ncd<+>X\nYe\n\n", "3,3 e\nf\ne\nF\n\n"] assert_equal(expected, View.new(Difference.new(array1, array2), "US-ASCII", "LF").to_user_digest(user_tags, false)) end def test_difference_whole() array1 = ["a", "\n", "b", "c", "d", "e", "\n", "f", "\n"] # a \n b c d e \n f \n array2 = ["c", "d", "X", "\n", "Y", "e", "\n", "F", "\n"] # c d X \n Y e \n F \n expected = [[:del_elt, ["a", "\n", "b"], nil], [:common_elt_elt, ["c", "d"], ["c", "d"]], [:add_elt, nil, ["X", "\n", "Y"]], [:common_elt_elt, ["e", "\n"], ["e", "\n"]], [:change_elt, ["f"], ["F"]], [:common_elt_elt, ["\n"], ["\n"]]] assert_equal(expected, View.new(Difference.new(array1, array2), "US-ASCII", "LF").difference_whole) end # def test_difference_digest() # array1 = ["a", "\n", "b", "c", "d", "e", "\n", "f", "\n"] # a \n b c d e \n f \n # array2 = ["c", "d", "X", "\n", "Y", "e", "\n", "F", "\n"] # c d X \n Y e \n F \n # expected = [ # # something # ] # assert_equal(expected, View.new(Difference.new(array1, array2), "US-ASCII", "LF").difference_digest) # end def teardown() # end end docdiff-0.5.0+git20160313/test/viewdiff_test.rb000077500000000000000000000511751263141227400206750ustar00rootroot00000000000000#!/usr/bin/ruby # -*- coding: euc-jp; -*- require 'test/unit' require 'viewdiff' class TC_DocDiff_Document < Test::Unit::TestCase DiffFile = DocDiff::DiffFile def setup() @docdiff = DocDiff.new @classic_diff = < 0 7a6,7 > 1 > 2 9c9 < i --- > 3 11c11,12 < k --- > 4 > 5 13,14c14,15 < m < n --- > 6 > 7 22d22 < v 23a24,25 > 8 > 9 25c27,28 < y --- > A > B diff --text sample/1/b.en.ascii.lf sample/2/b.en.ascii.lf 1c1,8 < a --- > @ > < > > > - > + > * > ! > 9a17,19 > + > > 17d26 < q 24c33 < x --- > * 26c35 < z --- > z \ No newline at end of file END @context_diff = < ! - ! + ! * ! ! ! b c d *************** *** 7,12 **** --- 14,22 ---- g h i + + + + j k l *************** *** 14,26 **** n o p - q r s t u v w ! x y ! z --- 24,35 ---- n o p r s t u v w ! * y ! z \ No newline at end of file END @context_diff_short = < +- ++ +* +! + b c d @@ -7,6 +14,9 @@ g h i ++ + + j k l @@ -14,13 +24,12 @@ n o p -q r s t u v w -x +* y -z +z \ No newline at end of file END end def test_guess_diff_type_classic() expected = "classic" result = DiffFile.new(@classic_diff).guess_diff_type(@classic_diff) assert_equal(expected, result) end def test_guess_diff_type_context() expected = "context" result = DiffFile.new(@context_diff).guess_diff_type(@context_diff) assert_equal(expected, result) end def test_guess_diff_type_unified() expected = "unified" result = DiffFile.new(@unified_diff).guess_diff_type(@unified_diff) assert_equal(expected, result) end def test_guess_diff_type_unknown() expected = "unknown" result = DiffFile.new(@unified_diff).guess_diff_type("") assert_equal(expected, result) end def test_difffile_src() expected = @classic_diff result = DiffFile.new(@classic_diff).src assert_equal(expected, result) end def test_scan_text_for_diffs_simplified() expected = 12 result = @docdiff.scan_text_for_diffs(@classic_diff + @context_diff + @unified_diff).size assert_equal(expected, result) end def test_scan_text_for_diffs() expected = [ "diff file1 file2\n", "1d0\n< a\n6a4\n> 0\n7a6,7\n> 1\n> 2\n9c9\n< i\n---\n> 3\n", "diff -o f3 f4\n", "26c35\n< z\n---\n> z\n No newline at end of file\n", "lorem insum\n", "diff -o f1 f2\n", "*** f1 blah\n--- f2 blab\n***************\n*** 1,17 ****\n- a\n b\n p\n q\n--- 1,18 ----\n b\n e\n f\n+ 0\n g\n+ 1\n+ 2\n h\n***************\n*** 19,26 ****\n w\n x\n! y\n z\n--- 20,29 ----\n x\n! A\n! B\n z\n No newline at end of file\n", "diff f3 f4\n", "*** f3 foo\n--- f4 bar\n***************\n*** 7,12 ****\n--- 14,22 ----\n g\n h\n i\n+ +\n+\n+\n j\n k\n l\n", "\n", "foo\n\n", "diff -o\n", "--- f1 foo\n+++ f2 bar\n@@ -19,8 +20,10 @@\n s\n t\n u\n-v\n w\n+8\n+9\n x\n-y\n+A\n+B\n z\n", "diff -o\n", "--- f3\n+++ f4\n@@ -7,6 +14,9 @@\n g\n h\n i\n++\n+\n+\n j\n k\n l\n@@ -14,13 +24,12 @@\n y\n-z\n+z\n No newline at end of file" ] result = @docdiff.scan_text_for_diffs("diff file1 file2 1d0 < a 6a4 > 0 7a6,7 > 1 > 2 9c9 < i --- > 3 diff -o f3 f4 26c35 < z --- > z \ No newline at end of file lorem insum diff -o f1 f2 *** f1 blah --- f2 blab *************** *** 1,17 **** - a b p q --- 1,18 ---- b e f + 0 g + 1 + 2 h *************** *** 19,26 **** w x ! y z --- 20,29 ---- x ! A ! B z \ No newline at end of file diff f3 f4 *** f3 foo --- f4 bar *************** *** 7,12 **** --- 14,22 ---- g h i + + + + j k l foo diff -o --- f1 foo +++ f2 bar @@ -19,8 +20,10 @@ s t u -v w +8 +9 x -y +A +B z diff -o --- f3 +++ f4 @@ -7,6 +14,9 @@ g h i ++ + + j k l @@ -14,13 +24,12 @@ y -z +z \ No newline at end of file") assert_equal(expected, result) end def test_anatomize_classic() expected = [ [:common_elt_elt, ["diff --text sample/1/a.en.ascii.lf sample/2/a.en.ascii.lf\n"], ["diff --text sample/1/a.en.ascii.lf sample/2/a.en.ascii.lf\n"]], [:common_elt_elt, ["1d0", "\n"], ["1d0", "\n"]], [:del_elt, ["< ", "a", "\n"], nil], [:common_elt_elt, ["3,4d1", "\n"], ["3,4d1", "\n"]], [:del_elt, ["< ", "c", "\n", "< ", "d", "\n"], nil], [:common_elt_elt, ["6a4", "\n"], ["6a4", "\n"]], [:add_elt, nil, ["> ", "0", "\n"]], [:common_elt_elt, ["7a6,7", "\n"], ["7a6,7", "\n"]], [:add_elt, nil, ["> ", "1", "\n", "> ", "2", "\n"]], [:common_elt_elt, ["9c9", "\n"], ["9c9", "\n"]], [:change_elt, ["< ", "i"], nil], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, ["---", "\n"], ["---", "\n"]], [:change_elt, nil, ["> ", "3"]], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, ["11c11,12", "\n"], ["11c11,12", "\n"]], [:change_elt, ["< ", "k"], nil], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, ["---", "\n"], ["---", "\n"]], [:change_elt, nil, ["> ", "4", "\n", "> ", "5"]], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, ["13,14c14,15", "\n"], ["13,14c14,15", "\n"]], [:change_elt, ["< ", "m"], nil], [:common_elt_elt, ["\n"], ["\n"]], [:change_elt, ["< ", "n"], nil], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, ["---", "\n"], ["---", "\n"]], [:change_elt, nil, ["> ", "6"]], [:common_elt_elt, ["\n"], ["\n"]], [:change_elt, nil, ["> ", "7"]], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, ["22d22", "\n"], ["22d22", "\n"]], [:del_elt, ["< ", "v", "\n"], nil], [:common_elt_elt, ["23a24,25", "\n"], ["23a24,25", "\n"]], [:add_elt, nil, ["> ", "8", "\n", "> ", "9", "\n"]], [:common_elt_elt, ["25c27,28", "\n"], ["25c27,28", "\n"]], [:change_elt, ["< ", "y"], nil], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, ["---", "\n"], ["---", "\n"]], [:change_elt, nil, ["> ", "A", "\n", "> ", "B"]], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, ["diff --text sample/1/b.en.ascii.lf sample/2/b.en.ascii.lf\n"], ["diff --text sample/1/b.en.ascii.lf sample/2/b.en.ascii.lf\n"]], [:common_elt_elt, ["1c1,8", "\n"], ["1c1,8", "\n"]], [:change_elt, ["< ", "a"], nil], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, ["---", "\n"], ["---", "\n"]], [:change_elt, nil, ["> ", "@", "\n", "> ", "<", "\n", "> ", ">", "\n", "> ", "-", "\n", "> ", "+", "\n", "> ", "*", "\n", "> ", "!", "\n", ">"]], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, ["9a17,19", "\n"], ["9a17,19", "\n"]], [:add_elt, nil, ["> ", "+", "\n", ">", "\n", ">", "\n"]], [:common_elt_elt, ["17d26", "\n"], ["17d26", "\n"]], [:del_elt, ["< ", "q", "\n"], nil], [:common_elt_elt, ["24c33", "\n"], ["24c33", "\n"]], [:change_elt, ["< ", "x"], nil], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, ["---", "\n"], ["---", "\n"]], [:change_elt, nil, ["> ", "*"]], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, ["26c35", "\n"], ["26c35", "\n"]], [:change_elt, ["< "], nil], [:common_elt_elt, ["z", "\n"], ["z", "\n"]], [:common_elt_elt, ["---", "\n"], ["---", "\n"]], [:change_elt, nil, ["> "]], [:common_elt_elt, ["z", "\n"], ["z", "\n"]], [:common_elt_elt, [" No newline at end of file\n"], [" No newline at end of file\n"]] ] result = @docdiff.anatomize_classic(@classic_diff) assert_equal(expected, result) end def test_anatomize_classic_hunk() expected = [ [:common_elt_elt, ["9c9", "\n"], ["9c9", "\n"]], [:change_elt, ["< ", "i"], nil], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, ["---", "\n"], ["---", "\n"]], [:change_elt, nil, ["> ", "3"]], [:common_elt_elt, ["\n"], ["\n"]], ] result = @docdiff.anatomize_classic_hunk("9c9\n< i\n---\n> 3\n", "US-ASCII", "LF") assert_equal(expected, result) end def test_anatomize_context() expected = [ [:common_elt_elt, ["diff ", "-c ", "--text ", "1a ", "2a", "\n"], ["diff ", "-c ", "--text ", "1a ", "2a", "\n"]], [:common_elt_elt, ["*** ", "1a", "\n"], ["*** ", "1a", "\n"]], [:common_elt_elt, ["--- ", "2a", "\n"], ["--- ", "2a", "\n"]], [:common_elt_elt, ["***************", "\n"], ["***************", "\n"]], [:common_elt_elt, ["*** ", "1,17 ", "****", "\n"], ["*** ", "1,17 ", "****", "\n"]], [:del_elt, ["- ", "a", "\n"], nil], [:common_elt_elt, [" ", "b", "\n"], [" ", "b", "\n"]], [:common_elt_elt, ["--- ", "1,18 ", "----", "\n"], ["--- ", "1,18 ", "----", "\n"]], [:common_elt_elt, [" ", "b", "\n"], [" ", "b", "\n"]], [:common_elt_elt, ["***************", "\n"], ["***************", "\n"]], [:common_elt_elt, ["*** ", "19,26 ", "****", "\n"], ["*** ", "19,26 ", "****", "\n"]], [:common_elt_elt, ["! "], ["! "]], [:change_elt, ["v"], nil], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, ["--- ", "20,29 ", "----", "\n"], ["--- ", "20,29 ", "----", "\n"]], [:common_elt_elt, ["! "], ["! "]], [:change_elt, nil, ["8"]], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, ["diff ", "-c ", "--text ", "1b ", "2b", "\n"], ["diff ", "-c ", "--text ", "1b ", "2b", "\n"]], [:common_elt_elt, ["*** ", "1b", "\n"], ["*** ", "1b", "\n"]], [:common_elt_elt, ["--- ", "2b", "\n"], ["--- ", "2b", "\n"]], [:common_elt_elt, ["***************", "\n"], ["***************", "\n"]], [:common_elt_elt, ["*** ", "7,12 ", "****", "\n"], ["*** ", "7,12 ", "****", "\n"]], [:common_elt_elt, ["--- ", "14,22 ", "----", "\n"], ["--- ", "14,22 ", "----", "\n"]], [:add_elt, nil, ["+ ", "g", "\n"]] ] result = @docdiff.anatomize_context("diff -c --text 1a 2a *** 1a --- 2a *************** *** 1,17 **** - a b --- 1,18 ---- b *************** *** 19,26 **** ! v --- 20,29 ---- ! 8 diff -c --text 1b 2b *** 1b --- 2b *************** *** 7,12 **** --- 14,22 ---- + g ") assert_equal(expected, result) end def test_anatomize_context_hunk() expected = [ [:common_elt_elt, ["***************", "\n"], ["***************", "\n"]], [:common_elt_elt, ["*** ", "19,26 ", "****", "\n"], ["*** ", "19,26 ", "****", "\n"]], [:common_elt_elt, [" ", "s", "\n ", "t", "\n ", "u", "\n"], [" ", "s", "\n ", "t", "\n ", "u", "\n"]], [:del_elt, ["- ", "v", "\n"], nil], [:common_elt_elt, [" ", "w", "\n ", "x", "\n"], [" ", "w", "\n ", "x", "\n"]], [:common_elt_elt, ["! "], ["! "]], [:change_elt, ["y"], nil], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, [" ", "z", "\n"], [" ", "z", "\n"]], [:common_elt_elt, ["--- ", "20,29 ", "----", "\n"], ["--- ", "20,29 ", "----", "\n"]], [:common_elt_elt, [" ", "s", "\n ", "t", "\n ", "u", "\n ", "w", "\n"], [" ", "s", "\n ", "t", "\n ", "u", "\n ", "w", "\n"]], [:add_elt, nil, ["+ ", "8", "\n", "+ ", "9", "\n"]], [:common_elt_elt, [" ", "x", "\n"], [" ", "x", "\n"]], [:common_elt_elt, ["! "], ["! "]], [:change_elt, nil, ["A", "\n", "! ", "B"]], # <= this should be :change_elt ! [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, [" ", "z", "\n"], [" ", "z", "\n"]], ] result = @docdiff.anatomize_context_hunk("*************** *** 19,26 **** s t u - v w x ! y z --- 20,29 ---- s t u w + 8 + 9 x ! A ! B z ", "US-ASCII", "LF") assert_equal(expected, result) end def test_anatomize_context_hunk_scanbodies() expected = [ [ [:common_elt_elt, [" ", "w", "\n"], [" ", "w", "\n"]], [:common_elt_elt, ["! "], ["! "]], [:change_elt, ["x"], nil], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, [" ", "y", "\n"], [" ", "y", "\n"]] ], [ [:common_elt_elt, [" ", "w", "\n"], [" ", "w", "\n"]], [:common_elt_elt, ["! "], ["! "]], [:change_elt, nil, ["*"]], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, [" ", "y", "\n"], [" ", "y", "\n"]] ] ] result = @docdiff.anatomize_context_hunk_scanbodies(" w ! x y ", " w ! * y ", "US-ASCII", "LF") assert_equal(expected, result) end def test_anatomize_context_hunk_scanbodies_lackformer() expected = [ [ ], [ [:common_elt_elt, [" ", "a", "\n"], [" ", "a", "\n"]], [:add_elt, nil, ["+ ", "x", "\n"]], [:common_elt_elt, [" ", "b", "\n"], [" ", "b", "\n"]] ] ] result = @docdiff.anatomize_context_hunk_scanbodies(""," a\n+ x\n b\n", "US-ASCII", "LF") assert_equal(expected, result) end def test_anatomize_unified_hunk() expected = [ [:common_elt_elt, ["@@ ", "-19,8 ", "+20,10 ", "@@", "\n"], ["@@ ", "-19,8 ", "+20,10 ", "@@", "\n"]], [:common_elt_elt, [" ", "s", "\n ", "t", "\n ", "u", "\n"], [" ", "s", "\n ", "t", "\n ", "u", "\n"]], [:del_elt, ["-v", "\n"], nil], [:common_elt_elt, [" ", "w", "\n"], [" ", "w", "\n"]], [:add_elt, nil, ["+8", "\n", "+9", "\n"]], [:common_elt_elt, [" ", "x", "\n"], [" ", "x", "\n"]], [:change_elt, ["-y"], nil], [:change_elt, nil, ["+A", "\n", "+B"]], [:common_elt_elt, ["\n"], ["\n"]], [:common_elt_elt, [" ", "z", "\n"], [" ", "z", "\n"]] ] result = @docdiff.anatomize_unified_hunk("@@ -19,8 +20,10 @@ s t u -v w +8 +9 x -y +A +B z ", "US-ASCII", "LF") assert_equal(expected, result) end def test_anatomize_unified() expected = [[:common_elt_elt, ["diff ", "-u ", "--text ", "sample/1/a.en.ascii.lf ", "sample/2/a.en.ascii.lf", "\n", "--- ", "sample/1/a.en.ascii.lf ", " ", "2005-08-30 ", "07:07:45.000000000 ", "+0900", "\n", "+++ ", "sample/2/a.en.ascii.lf ", " ", "2005-08-30 ", "07:33:51.000000000 ", "+0900", "\n"], ["diff ", "-u ", "--text ", "sample/1/a.en.ascii.lf ", "sample/2/a.en.ascii.lf", "\n", "--- ", "sample/1/a.en.ascii.lf ", " ", "2005-08-30 ", "07:07:45.000000000 ", "+0900", "\n", "+++ ", "sample/2/a.en.ascii.lf ", " ", "2005-08-30 ", "07:33:51.000000000 ", "+0900", "\n"]], [:common_elt_elt, ["@@ ", "-1,17 ", "+1,18 ", "@@", "\n"], ["@@ ", "-1,17 ", "+1,18 ", "@@", "\n"]], [:del_elt, ["-a", "\n"], nil], [:common_elt_elt, [" ", "b", "\n"], [" ", "b", "\n"]], [:common_elt_elt, ["-c", "\n"], ["-c", "\n"]], [:common_elt_elt, ["-d", "\n"], ["-d", "\n"]], [:common_elt_elt, [" ", "e", "\n"], [" ", "e", "\n"]], [:common_elt_elt, [" ", "f", "\n"], [" ", "f", "\n"]], [:common_elt_elt, ["+0", "\n"], ["+0", "\n"]], [:common_elt_elt, [" ", "g", "\n"], [" ", "g", "\n"]], [:common_elt_elt, ["+1", "\n"], ["+1", "\n"]], [:common_elt_elt, ["+2", "\n"], ["+2", "\n"]], [:common_elt_elt, [" ", "h", "\n"], [" ", "h", "\n"]], [:common_elt_elt, ["-i", "\n"], ["-i", "\n"]], [:common_elt_elt, ["+3", "\n"], ["+3", "\n"]], [:common_elt_elt, [" ", "j", "\n"], [" ", "j", "\n"]], [:common_elt_elt, ["-k", "\n"], ["-k", "\n"]], [:common_elt_elt, ["+4", "\n"], ["+4", "\n"]], [:common_elt_elt, ["+5", "\n"], ["+5", "\n"]], [:common_elt_elt, [" ", "l", "\n"], [" ", "l", "\n"]], [:common_elt_elt, ["-m", "\n"], ["-m", "\n"]], [:common_elt_elt, ["-n", "\n"], ["-n", "\n"]], [:common_elt_elt, ["+6", "\n"], ["+6", "\n"]], [:common_elt_elt, ["+7", "\n"], ["+7", "\n"]], [:common_elt_elt, [" ", "o", "\n"], [" ", "o", "\n"]], [:common_elt_elt, [" ", "p", "\n"], [" ", "p", "\n"]], [:common_elt_elt, [" ", "q", "\n"], [" ", "q", "\n"]], [:common_elt_elt, ["@@ ", "-19,8 ", "+20,10 ", "@@", "\n"], ["@@ ", "-19,8 ", "+20,10 ", "@@", "\n"]], [:common_elt_elt, [" ", "s", "\n ", "t", "\n ", "u", "\n"], [" ", "s", "\n ", "t", "\n ", "u", "\n"]], [:common_elt_elt, ["-v", "\n"], ["-v", "\n"]], [:common_elt_elt, [" ", "w", "\n"], [" ", "w", "\n"]], [:common_elt_elt, ["+8", "\n"], ["+8", "\n"]], [:common_elt_elt, ["+9", "\n"], ["+9", "\n"]], [:common_elt_elt, [" ", "x", "\n"], [" ", "x", "\n"]], [:common_elt_elt, ["-y", "\n"], ["-y", "\n"]], [:common_elt_elt, ["+A", "\n"], ["+A", "\n"]], [:common_elt_elt, ["+B", "\n"], ["+B", "\n"]], [:common_elt_elt, [" ", "z"], [" ", "z"]], [:common_elt_elt, ["diff ", "-u ", "--text ", "sample/1/b.en.ascii.lf ", "sample/2/b.en.ascii.lf", "\n", "--- ", "sample/1/b.en.ascii.lf ", " ", "2005-08-30 ", "07:31:52.000000000 ", "+0900", "\n", "+++ ", "sample/2/b.en.ascii.lf ", " ", "2005-08-30 ", "07:41:01.000000000 ", "+0900", "\n"], ["diff ", "-u ", "--text ", "sample/1/b.en.ascii.lf ", "sample/2/b.en.ascii.lf", "\n", "--- ", "sample/1/b.en.ascii.lf ", " ", "2005-08-30 ", "07:31:52.000000000 ", "+0900", "\n", "+++ ", "sample/2/b.en.ascii.lf ", " ", "2005-08-30 ", "07:41:01.000000000 ", "+0900", "\n"]], [:common_elt_elt, ["@@ ", "-1,4 ", "+1,11 ", "@@", "\n"], ["@@ ", "-1,4 ", "+1,11 ", "@@", "\n"]], [:del_elt, ["-a", "\n"], nil], [:common_elt_elt, ["+@", "\n"], ["+@", "\n"]], [:common_elt_elt, ["+<", "\n"], ["+<", "\n"]], [:common_elt_elt, ["+>", "\n"], ["+>", "\n"]], [:common_elt_elt, ["+-", "\n"], ["+-", "\n"]], [:common_elt_elt, ["++", "\n"], ["++", "\n"]], [:common_elt_elt, ["+*", "\n"], ["+*", "\n"]], [:common_elt_elt, ["+!", "\n"], ["+!", "\n"]], [:common_elt_elt, ["+", "\n"], ["+", "\n"]], [:common_elt_elt, [" ", "b", "\n"], [" ", "b", "\n"]], [:common_elt_elt, [" ", "c", "\n"], [" ", "c", "\n"]], [:common_elt_elt, [" ", "d", "\n"], [" ", "d", "\n"]], [:common_elt_elt, ["@@ ", "-7,6 ", "+14,9 ", "@@", "\n"], ["@@ ", "-7,6 ", "+14,9 ", "@@", "\n"]], [:common_elt_elt, [" ", "g", "\n ", "h", "\n ", "i", "\n"], [" ", "g", "\n ", "h", "\n ", "i", "\n"]], [:common_elt_elt, ["++", "\n"], ["++", "\n"]], [:common_elt_elt, ["+", "\n"], ["+", "\n"]], [:common_elt_elt, ["+", "\n"], ["+", "\n"]], [:common_elt_elt, [" ", "j", "\n"], [" ", "j", "\n"]], [:common_elt_elt, [" ", "k", "\n"], [" ", "k", "\n"]], [:common_elt_elt, [" ", "l", "\n"], [" ", "l", "\n"]], [:common_elt_elt, ["@@ ", "-14,13 ", "+24,12 ", "@@", "\n"], ["@@ ", "-14,13 ", "+24,12 ", "@@", "\n"]], [:common_elt_elt, [" ", "n", "\n ", "o", "\n ", "p", "\n"], [" ", "n", "\n ", "o", "\n ", "p", "\n"]], [:common_elt_elt, ["-q", "\n"], ["-q", "\n"]], [:common_elt_elt, [" ", "r", "\n"], [" ", "r", "\n"]], [:common_elt_elt, [" ", "s", "\n"], [" ", "s", "\n"]], [:common_elt_elt, [" ", "t", "\n"], [" ", "t", "\n"]], [:common_elt_elt, [" ", "u", "\n"], [" ", "u", "\n"]], [:common_elt_elt, [" ", "v", "\n"], [" ", "v", "\n"]], [:common_elt_elt, [" ", "w", "\n"], [" ", "w", "\n"]], [:common_elt_elt, ["-x", "\n"], ["-x", "\n"]], [:common_elt_elt, ["+*", "\n"], ["+*", "\n"]], [:common_elt_elt, [" ", "y", "\n"], [" ", "y", "\n"]], [:common_elt_elt, ["-z", "\n"], ["-z", "\n"]], [:common_elt_elt, ["+z", "\n"], ["+z", "\n"]], [:common_elt_elt, [" ", "No ", "newline ", "at ", "end ", "of ", "file", "\n"], [" ", "No ", "newline ", "at ", "end ", "of ", "file", "\n"]]] result = @docdiff.anatomize_unified(@unified_diff) assert_equal(expected, result) end def teardown() # end end