diff options
Diffstat (limited to 'lib/sisu/v3/texpdf_format.rb')
-rw-r--r-- | lib/sisu/v3/texpdf_format.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/sisu/v3/texpdf_format.rb b/lib/sisu/v3/texpdf_format.rb index 7264f29b..a1fb3e72 100644 --- a/lib/sisu/v3/texpdf_format.rb +++ b/lib/sisu/v3/texpdf_format.rb @@ -1,4 +1,4 @@ -# coding: utf-8 +# encoding: utf-8 =begin * Name: SiSU @@ -79,16 +79,16 @@ module SiSU_TeX_Pdf end class Format_text_object require 'iconv' - require "#{SiSU_lib}/defaults" # defaults.rb + require_relative 'defaults' # defaults.rb attr_accessor :string,:string1,:orientation,:url,:dir,:tex @@sys=SiSU_Env::System_call.new @@tex_pattern_margin_number=/\\begin\{tiny\}\\hspace\{0mm\}\\end\{tiny\}\{\\marginpar.+?\}\}\}/ @@tableheader={ - 'a4' => { :p => 0, :l => 0 }, - 'a5' => { :p => 0, :l => 0 }, - 'b5' => { :p => 0, :l => 0 }, - 'letter' => { :p => 0, :l => 0 }, - 'legal' => { :p => 0, :l => 0 } + 'a4' => { p: 0, l: 0 }, + 'a5' => { p: 0, l: 0 }, + 'b5' => { p: 0, l: 0 }, + 'letter' => { p: 0, l: 0 }, + 'legal' => { p: 0, l: 0 } } @@sys=SiSU_Env::System_call.new def initialize(md,dob=nil) @@ -595,7 +595,7 @@ module SiSU_TeX_Pdf images_hash use_images_hash={} images_hash.each do |k,t| - use_images_hash[k]={ :l =>t, :p =>t} + use_images_hash[k]={ l: t, p: t} end dob.tmp=use_images_hash dob @@ -612,7 +612,7 @@ module SiSU_TeX_Pdf end end class Format_head - require "#{SiSU_lib}/i18n" # defaults.rb + require_relative 'i18n' # defaults.rb def initialize(md,t_o) @md,@t_o=md,t_o @env=SiSU_Env::Info_env.new(@md.fns) @@ -639,7 +639,7 @@ module SiSU_TeX_Pdf otherlang=[] lang_char_arr.slice(1..9).each { |ch| otherlang << @lang.tex_name(ch) } otherlang=otherlang.join(',') - { :mainlang=>mainlang, :otherlang=>otherlang } + { mainlang: mainlang, otherlang: otherlang } end def tex_head_encode texpdf_font=if defined? @md.make.texpdf_font \ |