From d4c06757a0326fe804151cad8027f2778aa2a451 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 1 Mar 2011 20:33:56 -0500 Subject: v3: use "encoding: utf-8" (instead of coding) --- lib/sisu/v3/po4a.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sisu/v3/po4a.rb') diff --git a/lib/sisu/v3/po4a.rb b/lib/sisu/v3/po4a.rb index ea5a5eeb..0c5694d1 100644 --- a/lib/sisu/v3/po4a.rb +++ b/lib/sisu/v3/po4a.rb @@ -1,4 +1,4 @@ -# coding: utf-8 +# encoding: utf-8 =begin * Name: SiSU -- cgit v1.2.3 From f09f45a113ebe9dffb65618a53d38f15c4f89d5d Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 1 Mar 2011 20:36:05 -0500 Subject: v3: use rb1.9.2 "require_relative" syntax --- lib/sisu/v3/po4a.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/sisu/v3/po4a.rb') diff --git a/lib/sisu/v3/po4a.rb b/lib/sisu/v3/po4a.rb index 0c5694d1..9ac98f00 100644 --- a/lib/sisu/v3/po4a.rb +++ b/lib/sisu/v3/po4a.rb @@ -58,11 +58,11 @@ =end module SiSU_po4a - require "#{SiSU_lib}/dal" # dal.rb - require "#{SiSU_lib}/sysenv" # sysenv.rb + require_relative 'dal' # dal.rb + require_relative 'sysenv' # sysenv.rb include SiSU_Env - require "#{SiSU_lib}/shared_metadata" # shared_metadata.rb - require "#{SiSU_lib}/po4a_set" # po4a_set.rb + require_relative 'shared_metadata' # shared_metadata.rb + require_relative 'po4a_set' # po4a_set.rb include SiSU_Param include SiSU_Viz pwd=Dir.pwd @@ -160,8 +160,8 @@ module SiSU_po4a end private class Scroll [],:end=>[] } def initialize(fn,data_src,data_trn,md_src,md_trn,wrap_width) @@ -944,7 +944,7 @@ GSUB end def po4a_git unless @md.cmd =~/M/ - require "#{SiSU_lib}/git" # git.rb + require_relative 'git' # git.rb git=SiSU_Git::Source.new(@md.opt) git.create_file_structure_git unless FileTest.directory?(@file.output_path.pot_git) if @md.opt.f_pth[:lng] =='en' -- cgit v1.2.3 From 05a3fd233ec1ac4475bd797449d1284f6824c005 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 1 Mar 2011 20:41:28 -0500 Subject: v3: ruby 1.9 hash symbol syntax adopted --- lib/sisu/v3/po4a.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/sisu/v3/po4a.rb') diff --git a/lib/sisu/v3/po4a.rb b/lib/sisu/v3/po4a.rb index 9ac98f00..ba892634 100644 --- a/lib/sisu/v3/po4a.rb +++ b/lib/sisu/v3/po4a.rb @@ -163,7 +163,7 @@ module SiSU_po4a require_relative 'defaults' # defaults.rb require_relative 'po4a_set' # po4a_set.rb include SiSU_po4a_utils - @@endnotes={ :para=>[],:end=>[] } + @@endnotes={ para: [], end: [] } def initialize(fn,data_src,data_trn,md_src,md_trn,wrap_width) @fn,@data_src,@data_trn,@md_src,@md_trn,@wrap_width=fn,data_src,data_trn,md_src,md_trn,wrap_width @md=(md_trn.nil?) \ @@ -174,7 +174,7 @@ module SiSU_po4a @tab="\t" @@endnotes_=(@md.mod.inspect =~/--endnote/) ? true : false # --footnote @br=(@md.mod.inspect =~/--dos/) ? "\r\n" : "\n" # --unix - @pot={ :body=>[],:open=>[],:close=>[],:head=>[],:metadata=>[],:tail=>[] } + @pot={ body: [], open: [], close: [], head: [], metadata: [], tail: [] } end def songsheet ############## BUG @fn changes value @@ -905,7 +905,7 @@ GSUB content << pot[:body] content << @@endnotes[:end] if @@endnotes_ Output.new(fn,content,@md).po4a - @@endnotes={ :para=>[],:end=>[] } + @@endnotes={ para: [], end: [] } end end class Output