Merge pull request #9088 from Snuffleupagus/issue-9084

For non-embedded fonts, map softhyphen (0x00AD) to regular hyphen (0x002D) (issue 9084)
This commit is contained in:
Tim van der Meij 2017-10-31 21:19:17 +01:00 committed by GitHub
commit 7d0fce7317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 0 deletions

View File

@ -51,6 +51,8 @@ function mapSpecialUnicodeValues(code) {
return 0; return 0;
} else if (code >= 0xF600 && code <= 0xF8FF) { } else if (code >= 0xF600 && code <= 0xF8FF) {
return (getSpecialPUASymbols()[code] || code); return (getSpecialPUASymbols()[code] || code);
} else if (code === 0x00AD) { // softhyphen
return 0x002D; // hyphen
} }
return code; return code;
} }

View File

@ -62,6 +62,7 @@
!issue8707.pdf !issue8707.pdf
!issue8798r.pdf !issue8798r.pdf
!issue8823.pdf !issue8823.pdf
!issue9084.pdf
!bad-PageLabels.pdf !bad-PageLabels.pdf
!filled-background.pdf !filled-background.pdf
!ArabicCIDTrueType.pdf !ArabicCIDTrueType.pdf

BIN
test/pdfs/issue9084.pdf Normal file

Binary file not shown.

View File

@ -711,6 +711,13 @@
"link": false, "link": false,
"type": "eq" "type": "eq"
}, },
{ "id": "issue9084",
"file": "pdfs/issue9084.pdf",
"md5": "5570ec01cc869d299fec1b2f68926a08",
"rounds": 1,
"link": false,
"type": "eq"
},
{ "id": "issue8707", { "id": "issue8707",
"file": "pdfs/issue8707.pdf", "file": "pdfs/issue8707.pdf",
"md5": "d3dc670adde9ec9fb82c974027033029", "md5": "d3dc670adde9ec9fb82c974027033029",