Merge pull request #2838 from allstarschh/issue_2829_test
Add Support for big5 encoding.
This commit is contained in:
commit
70f788a2a5
@ -415,7 +415,9 @@ var CMapConverterList = {
|
|||||||
'90ms-RKSJ-V': sjisToUnicode,
|
'90ms-RKSJ-V': sjisToUnicode,
|
||||||
'90msp-RKSJ-H': sjisToUnicode,
|
'90msp-RKSJ-H': sjisToUnicode,
|
||||||
'90msp-RKSJ-V': sjisToUnicode,
|
'90msp-RKSJ-V': sjisToUnicode,
|
||||||
'GBK-EUC-H': gbkToUnicode
|
'GBK-EUC-H': gbkToUnicode,
|
||||||
|
'ETenms-B5-H': big5ToUnicode,
|
||||||
|
'ETenms-B5-V': big5ToUnicode,
|
||||||
};
|
};
|
||||||
|
|
||||||
// CMaps using Hankaku (Halfwidth) Latin glyphs instead of proportional one.
|
// CMaps using Hankaku (Halfwidth) Latin glyphs instead of proportional one.
|
||||||
@ -468,6 +470,10 @@ function gbkToUnicode(str) {
|
|||||||
return decodeBytes(stringToBytes(str), 'gbk');
|
return decodeBytes(stringToBytes(str), 'gbk');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function big5ToUnicode(str) {
|
||||||
|
return decodeBytes(stringToBytes(str), 'big5');
|
||||||
|
}
|
||||||
|
|
||||||
// Some characters, e.g. copyrightserif, mapped to the private use area and
|
// Some characters, e.g. copyrightserif, mapped to the private use area and
|
||||||
// might not be displayed using standard fonts. Mapping/hacking well-known chars
|
// might not be displayed using standard fonts. Mapping/hacking well-known chars
|
||||||
// to the similar equivalents in the normal characters range.
|
// to the similar equivalents in the normal characters range.
|
||||||
|
1
test/pdfs/issue2829.pdf.link
Normal file
1
test/pdfs/issue2829.pdf.link
Normal file
@ -0,0 +1 @@
|
|||||||
|
http://www.ym.edu.tw/bcial/property/IP/laws/iplaws01.pdf
|
@ -941,5 +941,12 @@
|
|||||||
"md5": "c7eca682d70a976dfc4b7e64d3e9f1ce",
|
"md5": "c7eca682d70a976dfc4b7e64d3e9f1ce",
|
||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
|
},
|
||||||
|
{ "id": "issue2829",
|
||||||
|
"file": "pdfs/issue2829.pdf",
|
||||||
|
"md5": "f32b28cf8792f6ccc470446bfbb38584",
|
||||||
|
"link": true,
|
||||||
|
"rounds": 1,
|
||||||
|
"type": "eq"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user