【GUIライブラリ】wxWindowsでのひょーん
at TECH
141:の
03/05/25 15:55
#!/usr/bin/ruby -Ks
rootdir = ARGV[0].gsub(/\\/, "/")
Dir[rootdir+"**/*.htm"].each do |source|
p source
#source = ARGV[0]
s = ""
ref = source.gsub(/\\/, "/")
ref.gsub!(/^.*html\/wx(.*)$/, 'URLリンク(www.wxwindows.org)')
File.open(source, "r") do |aFile|
s = aFile.read.gsub(/\<[Pp]\>/, "</p>\n<p>")
s.sub!(/\<\/p\>/, '')
s.sub!(/\<head\>/, "<head>\n\
<meta http-equiv=\"content-type\" content=\"text/html; charset=Shift_Jis\">\n\
<meta name=\"translation-author\" content=\"\">\n\
<link rel=\"alternate\" title=\"Original (English ver.)\" href=\"" + ref+ "\">\n\
<style type=\"text/css\">\n\
p,div {\n\
margin-left:1.5em;\n\
}\n\
.o {\n\
color:#363;\n\
background-color:#f3f3f3;\n\
}\n\
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
5132日前に更新/338 KB
担当:undef