Project

General

Profile

Defect #7794 » ja-pdf_fix.patch

Jun NAITOH, 2011-04-01 00:54

View differences:

vendor/plugins/rfpdf/lib/rfpdf/japanese.rb 2011-03-08 04:44:39.000000000 +0900 → vendor/plugins/rfpdf/lib/rfpdf/japanese.rb 2011-03-31 05:24:03.000000000 +0900
o=s[i]
if(o<128)
#ASCII
l+=cw[o.chr]
l+=cw[o.chr] if cw[o.chr]
i+=1
elsif(o>=161 and o<=223)
#Half-width katakana
......
end
if(o<128)
#ASCII
l+=cw[c.chr]
l+=cw[c.chr] || 0
n=1
if(o==32)
sep=i
......
end
if(o<128)
#ASCII
l+=cw[c.chr]
l+=cw[c.chr] || 0
n=1
if(o==32)
sep=i
(5-5/5)