pdf.js/src/core
Jonas Jenwald 088ce6c009 Add a unit-test to check that ProblematicCharRanges contains valid entries
When adding new entries to `ProblematicCharRanges`, you have to be careful to not make any mistakes since that could cause glyph mapping issues.
Currently the existing reference tests should probably help catch any errors, but based on experience I think that having a unit-test which specifically checks `ProblematicCharRanges` would be both helpful and timesaving when modifying/reviewing changes to this code.

Hence this patch which adds a function (and unit-test) that is used to validate the entries in `ProblematicCharRanges`, and also checks that we don't accidentally add more character ranges than the Private Use Area can actually contain.
The way that the validation code, and thus the unit-test, is implemented also means that we have an easy way to tell how much of the Private Use Area is potentially utilized by re-mapped characters.
2016-08-27 11:56:00 +02:00
..
annotation.js Adjust the (applicable) existing isName callsites to use the new isName(v, name) version of the function 2016-08-10 11:15:08 +02:00
arithmetic_decoder.js Adds UMD headers to core, display and shared files. 2015-12-15 13:24:39 -06:00
bidi.js Fixes weird loop in the bidi.js. 2016-04-27 16:14:33 -05:00
cff_parser.js trivial spelling fixes 2016-07-17 14:33:41 +02:00
charsets.js Adds UMD headers to core, display and shared files. 2015-12-15 13:24:39 -06:00
chunked_stream.js Remove unused variables 2016-05-11 16:11:13 +02:00
cmap.js Catch errors and continue parsing in parseCMap (issue 7492) 2016-07-18 16:39:56 +02:00
colorspace.js Use Dict_getArray in more places in src/core/ to avoid issues when Arrays contain indirect objects 2016-05-05 19:42:57 +02:00
crypto.js Adjust the (applicable) existing isName callsites to use the new isName(v, name) version of the function 2016-08-10 11:15:08 +02:00
document.js [api-minor] Add a parameter to PDFPageProxy_getTextContent that controls whether PartialEvaluator_getTextContent will attempt to combine same line text items 2016-07-19 13:38:57 +02:00
encodings.js Refactor Encodings 2016-01-28 11:32:59 -06:00
evaluator.js Adjust the (applicable) existing isName callsites to use the new isName(v, name) version of the function 2016-08-10 11:15:08 +02:00
font_renderer.js Extract CFFParser from fonts.js (issue 6777) 2016-04-01 22:32:39 +02:00
fonts.js Add a unit-test to check that ProblematicCharRanges contains valid entries 2016-08-27 11:56:00 +02:00
function.js trivial spelling fixes 2016-07-17 14:33:41 +02:00
glyphlist.js Lazify GlyphsUnicode. 2016-01-28 11:32:59 -06:00
image.js trivial spelling fixes 2016-07-17 14:33:41 +02:00
jbig2.js Remove unused variables 2015-12-16 23:52:16 +01:00
jpg.js Update JpegImage.getData to support forceRGBoutput for images with numComponents === 1 (issue 6066) 2016-02-18 10:12:37 +01:00
jpx.js trivial spelling fixes 2016-07-17 14:33:41 +02:00
metrics.js Lazify Metrics 2016-01-28 12:11:46 -06:00
murmurhash3.js trivial spelling fixes 2016-07-17 14:33:41 +02:00
network.js Makes PDF data reading Streams API friendly. 2016-02-18 13:17:53 -06:00
obj.js Merge pull request #7534 from Snuffleupagus/isName-name-check 2016-08-17 15:48:42 +02:00
parser.js Add a recoveryMode that suppresses errors from the Parser, and utilize it when searching for the main trailer in XRef_indexObjects (bug 1250079) 2016-08-17 12:37:35 +02:00
pattern.js Use Dict_getArray in more places in src/core/ to avoid issues when Arrays contain indirect objects 2016-05-05 19:42:57 +02:00
pdf_manager.js Removes global PDFJS usage from the src/core/. 2016-03-23 19:24:37 -05:00
primitives.js Add a parameter to the isName function that enables checking not just that something is a Name, but also that the actual name properties matches 2016-08-10 11:15:03 +02:00
ps_parser.js Move the isSpace utility function from core/parser.js to shared/util.js 2016-06-06 09:11:33 +02:00
standard_fonts.js Lazify stdFontMap, serifFonts, GlyphMapForStandardFonts 2016-01-28 11:51:54 -06:00
stream.js Move the isSpace utility function from core/parser.js to shared/util.js 2016-06-06 09:11:33 +02:00
type1_parser.js Move the isSpace utility function from core/parser.js to shared/util.js 2016-06-06 09:11:33 +02:00
unicode.js Convert uniXXXX glyph names to proper ones when building the charCodeToGlyphId map for TrueType fonts (bug 1132849, issue 6893, issue 6894) 2016-03-09 19:37:15 +01:00
worker.js [api-minor] Add a parameter to PDFPageProxy_getTextContent that controls whether PartialEvaluator_getTextContent will attempt to combine same line text items 2016-07-19 13:38:57 +02:00