ref: c81291302e56c89dd2c2015212dffa75eddab338
parent: 04b1a827507edf22ae8703382422d4ced6696a88
author: Sebastian Rasmussen <sebras@gmail.com>
date: Tue May 8 18:35:11 EDT 2018
jbig2dec: Fix typos in error messages and comments.
--- a/jbig2_halftone.c
+++ b/jbig2_halftone.c
@@ -621,7 +621,7 @@
code = jbig2_page_add_result(ctx, &ctx->pages[ctx->current_page], image, region_info.x, region_info.y, region_info.op);
if (code < 0) {
jbig2_image_release(ctx, image);
- return jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number, "unable add halftone region to page");
+ return jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number, "unable to add halftone region to page");
}
jbig2_image_release(ctx, image);
--- a/jbig2_huffman.c
+++ b/jbig2_huffman.c
@@ -536,7 +536,7 @@
the last normal table line in the encoded table */
const int32_t HTHIGH = jbig2_get_int32(segment_data + 5);
- /* estimated number of lines int this table, used for allocating memory for lines */
+ /* estimated number of lines in this table, used for allocating memory for lines */
const size_t lines_max = (segment->data_length * 8 - HTPS * (HTOOB ? 3 : 2)) / (HTPS + HTRS) + (HTOOB ? 3 : 2);
/* points to a first table line data */
@@ -681,7 +681,7 @@
/* cc -g -o jbig2_huffman.test1 -DTEST jbig2_huffman.c .libs/libjbig2dec.a */
-/* a test bitstream, and a list of the table indicies
+/* a test bitstream, and a list of the table indices
to use in decoding it. 1 = table B.1 (A), 2 = table B.2 (B), and so on */
/* this test stream should decode to { 8, 5, oob, 8 } */
--- a/jbig2_metadata.c
+++ b/jbig2_metadata.c
@@ -108,7 +108,7 @@
md->keys[md->entries] = jbig2_strndup(ctx, key, key_length);
md->values[md->entries] = jbig2_strndup(ctx, value, value_length);
if (md->keys[md->entries] == NULL || md->values[md->entries] == NULL) {
- jbig2_error(ctx, JBIG2_SEVERITY_WARNING, -1, "unable to accomodate more metadata");
+ jbig2_error(ctx, JBIG2_SEVERITY_WARNING, -1, "unable to accommodate more metadata");
return -1;
}
md->entries++;
--- a/jbig2_page.c
+++ b/jbig2_page.c
@@ -122,7 +122,7 @@
}
}
if (page->height == 0xFFFFFFFF && page->striped == FALSE) {
- jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number, "height is unspecified but page is not marks as striped");
+ jbig2_error(ctx, JBIG2_SEVERITY_WARNING, segment->number, "height is unspecified but page is not marked as striped");
page->striped = TRUE;
}
page->end_row = 0;
@@ -269,10 +269,10 @@
if (page->image->height < new_height) {
Jbig2Image *resized_image = NULL;
- jbig2_error(ctx, JBIG2_SEVERITY_DEBUG, -1, "growing page buffer to %d rows " "to accomodate new stripe", new_height);
+ jbig2_error(ctx, JBIG2_SEVERITY_DEBUG, -1, "growing page buffer to %d rows " "to accommodate new stripe", new_height);
resized_image = jbig2_image_resize(ctx, page->image, page->image->width, new_height);
if (resized_image == NULL) {
- return jbig2_error(ctx, JBIG2_SEVERITY_FATAL, -1, "unable to resize image to accomodate new stripe");
+ return jbig2_error(ctx, JBIG2_SEVERITY_FATAL, -1, "unable to resize image to accommodate new stripe");
}
page->image = resized_image;
}
--- a/jbig2_symbol_dict.c
+++ b/jbig2_symbol_dict.c
@@ -366,7 +366,7 @@
/* check for broken symbol table */
if (NSYMSDECODED >= params->SDNUMNEWSYMS) {
- jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number, "No OOB signalling end of height class %d", HCHEIGHT);
+ jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number, "No OOB signaling end of height class %d", HCHEIGHT);
goto cleanup4;
}
--- a/jbig2dec.1
+++ b/jbig2dec.1
@@ -23,7 +23,7 @@
sequential or random-access organization.
When passed two stream arguments, they are interpreted as the
-global and page-specific portions of an embedded organzation,
+global and page-specific portions of an embedded organization,
as used in PDF. If a particular page references no global
segment stream, /dev/null can be passed for the
.I global-stream