super()
set_language_if_valid lang
case current_language.to_s.downcase
+ when 'ko'
+ extend(PDF_Korean)
+ AddUHCFont()
+ @font_for_content = 'UHC'
+ @font_for_footer = 'UHC'
when 'ja'
extend(PDF_Japanese)
AddSJISFont()
b2='LR'\r
else\r
b2=''\r
- if(border.index('L').nil?)\r
+ if(border.to_s.index('L').nil?)\r
b2+='L'\r
end\r
- if(border.index('R').nil?)\r
+ if(border.to_s.index('R').nil?)\r
b2+='R'\r
end\r
- b=border.index('T').nil? ? b2+'T' : b2\r
+ b=border.to_s.index('T').nil? ? b2+'T' : b2\r
end\r
end\r
sep=-1\r
sep=i\r
ls=l\r
end\r
- l+=ascii ? cw[c.chr] : 1000\r
+ l+=(ascii ? cw[c.chr] : 1000) || 0\r
if(l>wmax)\r
#Automatic line break\r
if(sep==-1 or i==j)\r
end\r
end\r
#Last chunk\r
- if(border and not border.index('B').nil?)\r
+ if(border and not border.to_s.index('B').nil?)\r
b+='B'\r
end\r
Cell(w,h,s[j,i-j],b,2,align,fill)\r