Defect #61 » rfpdf-korean.diff
vendor/plugins/rfpdf/lib/rfpdf/korean.rb (working copy) | ||
---|---|---|
138 | 138 |
b='LRT' |
139 | 139 |
b2='LR' |
140 | 140 |
else |
141 |
b2='' |
|
142 |
if(border.index('L').nil?) |
|
143 |
b2+='L' |
|
144 |
end |
|
145 |
if(border.index('R').nil?) |
|
146 |
b2+='R' |
|
147 |
end |
|
148 |
b=border.index('T').nil? ? b2+'T' : b2 |
|
149 |
end |
|
141 |
if border.respond_to?:index |
|
142 |
b2='' |
|
143 |
if(border.index('L').nil?) |
|
144 |
b2+='L' |
|
145 |
end |
|
146 |
if(border.index('R').nil?) |
|
147 |
b2+='R' |
|
148 |
end |
|
149 |
b=border.index('T').nil? ? b2+'T' : b2 |
|
150 |
end |
|
151 |
end |
|
150 | 152 |
end |
151 | 153 |
sep=-1 |
152 | 154 |
i=0 |
... | ... | |
202 | 204 |
end |
203 | 205 |
end |
204 | 206 |
#Last chunk |
205 |
if(border and not border.index('B').nil?) |
|
207 |
if(border and border.respond_to?(:index) and not border.index('B').nil?)
|
|
206 | 208 |
b+='B' |
207 | 209 |
end |
208 | 210 |
Cell(w,h,s[j,i-j],b,2,align,fill) |
lib/redmine/export/pdf.rb (working copy) | ||
---|---|---|
33 | 33 |
super() |
34 | 34 |
set_language_if_valid lang |
35 | 35 |
case current_language.to_s.downcase |
36 |
when 'ko' |
|
37 |
extend(PDF_Korean) |
|
38 |
AddUHCFont() |
|
39 |
@font_for_content = 'UHC' |
|
40 |
@font_for_footer = 'UHC' |
|
36 | 41 |
when 'ja' |
37 | 42 |
extend(PDF_Japanese) |
38 | 43 |
AddSJISFont() |