mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fix typos
This commit is contained in:
parent
2f63ca0705
commit
ea2850e9a7
16 changed files with 30 additions and 30 deletions
|
@ -853,7 +853,7 @@ var CMapFactory = (function CMapFactoryClosure() {
|
|||
|
||||
function parseCMap(cMap, lexer, fetchBuiltInCMap, useCMap) {
|
||||
var previous;
|
||||
var embededUseCMap;
|
||||
var embeddedUseCMap;
|
||||
objLoop: while (true) {
|
||||
try {
|
||||
var obj = lexer.getObj();
|
||||
|
@ -872,7 +872,7 @@ var CMapFactory = (function CMapFactoryClosure() {
|
|||
break objLoop;
|
||||
case 'usecmap':
|
||||
if (isName(previous)) {
|
||||
embededUseCMap = previous.name;
|
||||
embeddedUseCMap = previous.name;
|
||||
}
|
||||
break;
|
||||
case 'begincodespacerange':
|
||||
|
@ -901,10 +901,10 @@ var CMapFactory = (function CMapFactoryClosure() {
|
|||
}
|
||||
}
|
||||
|
||||
if (!useCMap && embededUseCMap) {
|
||||
// Load the usecmap definition from the file only if there wasn't one
|
||||
if (!useCMap && embeddedUseCMap) {
|
||||
// Load the useCMap definition from the file only if there wasn't one
|
||||
// specified.
|
||||
useCMap = embededUseCMap;
|
||||
useCMap = embeddedUseCMap;
|
||||
}
|
||||
if (useCMap) {
|
||||
return extendCMap(cMap, fetchBuiltInCMap, useCMap);
|
||||
|
|
|
@ -47,7 +47,7 @@ var SKIP_PRIVATE_USE_RANGE_F000_TO_F01F = false;
|
|||
// except for Type 3 fonts
|
||||
var PDF_GLYPH_SPACE_UNITS = 1000;
|
||||
|
||||
// Accented charactars are not displayed properly on Windows, using this flag
|
||||
// Accented characters are not displayed properly on Windows, using this flag
|
||||
// to control analysis of seac charstrings.
|
||||
var SEAC_ANALYSIS_ENABLED = false;
|
||||
|
||||
|
@ -2107,7 +2107,7 @@ var Font = (function FontClosure() {
|
|||
}
|
||||
} else if (op === 0x2B && !tooComplexToFollowFunctions) { // CALL
|
||||
if (!inFDEF && !inELSE) {
|
||||
// collecting inforamtion about which functions are used
|
||||
// collecting information about which functions are used
|
||||
funcId = stack[stack.length - 1];
|
||||
ttContext.functionsUsed[funcId] = true;
|
||||
if (funcId in ttContext.functionsStackDeltas) {
|
||||
|
@ -2132,7 +2132,7 @@ var Font = (function FontClosure() {
|
|||
tooComplexToFollowFunctions = true;
|
||||
}
|
||||
inFDEF = true;
|
||||
// collecting inforamtion about which functions are defined
|
||||
// collecting information about which functions are defined
|
||||
lastDeff = i;
|
||||
funcId = stack.pop();
|
||||
ttContext.functionsDefined[funcId] = { data, i, };
|
||||
|
|
|
@ -313,7 +313,7 @@ var JpxImage = (function JpxImageClosure() {
|
|||
cod.selectiveArithmeticCodingBypass = !!(blockStyle & 1);
|
||||
cod.resetContextProbabilities = !!(blockStyle & 2);
|
||||
cod.terminationOnEachCodingPass = !!(blockStyle & 4);
|
||||
cod.verticalyStripe = !!(blockStyle & 8);
|
||||
cod.verticallyStripe = !!(blockStyle & 8);
|
||||
cod.predictableTermination = !!(blockStyle & 16);
|
||||
cod.segmentationSymbolUsed = !!(blockStyle & 32);
|
||||
cod.reversibleTransformation = data[j++];
|
||||
|
@ -338,8 +338,8 @@ var JpxImage = (function JpxImageClosure() {
|
|||
if (cod.terminationOnEachCodingPass) {
|
||||
unsupported.push('terminationOnEachCodingPass');
|
||||
}
|
||||
if (cod.verticalyStripe) {
|
||||
unsupported.push('verticalyStripe');
|
||||
if (cod.verticallyStripe) {
|
||||
unsupported.push('verticallyStripe');
|
||||
}
|
||||
if (cod.predictableTermination) {
|
||||
unsupported.push('predictableTermination');
|
||||
|
|
|
@ -1197,7 +1197,7 @@ var XRef = (function XRefClosure() {
|
|||
if (endobjRegExp.test(tokenStr)) {
|
||||
break;
|
||||
} else {
|
||||
// Check if an "obj" occurance is actually a new object,
|
||||
// Check if an "obj" occurrence is actually a new object,
|
||||
// i.e. the current object is missing the 'endobj' operator.
|
||||
let objToken = nestedObjRegExp.exec(tokenStr);
|
||||
|
||||
|
|
|
@ -444,7 +444,7 @@ var QueueOptimizer = (function QueueOptimizerClosure() {
|
|||
let match = this.match;
|
||||
if (!state && !match && (i + 1 === ii) && !InitialState[fnArray[i]]) {
|
||||
// Micro-optimization for the common case: last item is not
|
||||
// optimazable, just skipping it.
|
||||
// optimizable, just skipping it.
|
||||
this.lastProcessed = ii;
|
||||
return;
|
||||
}
|
||||
|
@ -452,7 +452,7 @@ var QueueOptimizer = (function QueueOptimizerClosure() {
|
|||
const context = this.context;
|
||||
while (i < ii) {
|
||||
if (match) {
|
||||
// Already find a block of potetially optimizable items, iterating...
|
||||
// Already find a block of potentially optimizable items, iterating...
|
||||
const iterate = (0, match.iterateFn)(context, i);
|
||||
if (iterate) {
|
||||
i++;
|
||||
|
@ -467,7 +467,7 @@ var QueueOptimizer = (function QueueOptimizerClosure() {
|
|||
break;
|
||||
}
|
||||
}
|
||||
// Find the potetially optimizable items.
|
||||
// Find the potentially optimizable items.
|
||||
state = (state || InitialState)[fnArray[i]];
|
||||
if (!state || Array.isArray(state)) {
|
||||
i++;
|
||||
|
|
|
@ -142,7 +142,7 @@ Shadings.RadialAxial = (function RadialAxialClosure() {
|
|||
|
||||
var colorStops = this.colorStops = [];
|
||||
|
||||
// Protect against bad domains so we don't end up in an infinte loop below.
|
||||
// Protect against bad domains so we don't end up in an infinite loop below.
|
||||
if (t0 >= t1 || step <= 0) {
|
||||
// Acrobat doesn't seem to handle these cases so we'll ignore for
|
||||
// now.
|
||||
|
|
|
@ -212,7 +212,7 @@ function compileType3Glyph(imgData) {
|
|||
}
|
||||
}
|
||||
|
||||
// finding iteresting points: every point is located between mask pixels,
|
||||
// finding interesting points: every point is located between mask pixels,
|
||||
// so there will be points of the (width + 1)x(height + 1) grid. Every point
|
||||
// will have flags assigned based on neighboring mask pixels:
|
||||
// 4 | 8
|
||||
|
|
|
@ -163,7 +163,7 @@ function getFilenameFromContentDispositionHeader(contentDisposition) {
|
|||
// Decodes "ext-value" from RFC 5987.
|
||||
let encodingend = extvalue.indexOf('\'');
|
||||
if (encodingend === -1) {
|
||||
// Some servers send "filename*=" without encoding'language' prefix,
|
||||
// Some servers send "filename*=" without encoding 'language' prefix,
|
||||
// e.g. in https://github.com/Rob--W/open-in-browser/issues/26
|
||||
// Let's accept the value like Firefox (57) (Chrome 62 rejects it).
|
||||
return extvalue;
|
||||
|
|
|
@ -48,7 +48,7 @@ var renderTextLayer = (function renderTextLayerClosure() {
|
|||
return !NonWhitespaceRegexp.test(str);
|
||||
}
|
||||
|
||||
// Text layers may contain many thousand div's, and using `styleBuf` avoids
|
||||
// Text layers may contain many thousands of divs, and using `styleBuf` avoids
|
||||
// creating many intermediate strings when building their 'style' properties.
|
||||
var styleBuf = ['left: ', 0, 'px; top: ', 0, 'px; font-size: ', 0,
|
||||
'px; font-family: ', '', ';'];
|
||||
|
@ -340,7 +340,7 @@ var renderTextLayer = (function renderTextLayerClosure() {
|
|||
var xNew;
|
||||
if (affectedBoundary.x2 > boundary.x1) {
|
||||
// In the middle of the previous element, new x shall be at the
|
||||
// boundary start. Extending if further if the affected bondary
|
||||
// boundary start. Extending if further if the affected boundary
|
||||
// placed on top of the current one.
|
||||
xNew = affectedBoundary.index > boundary.index ?
|
||||
affectedBoundary.x1New : boundary.x1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue