summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2017-01-04 20:06:57 +0100
committerSebastian Rasmussen <sebras@gmail.com>2017-01-17 20:24:24 +0100
commitb1085c6816c093409c745a41567c8c3009917e27 (patch)
tree53404678b5ea5a816528f0e5ebd589a241cab447 /source/fitz
parentf45ed2539978f86e9a7fe0185f8bbeec398fb087 (diff)
downloadmupdf-b1085c6816c093409c745a41567c8c3009917e27.tar.xz
Fix typos.
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/bidi-std.c2
-rw-r--r--source/fitz/draw-device.c12
-rw-r--r--source/fitz/halftone.c2
-rw-r--r--source/fitz/harfbuzz.c2
-rw-r--r--source/fitz/hash.c4
-rw-r--r--source/fitz/list-device.c2
-rw-r--r--source/fitz/load-jpx.c4
-rw-r--r--source/fitz/output-pcl.c12
-rw-r--r--source/fitz/stext-paragraph.c2
9 files changed, 21 insertions, 21 deletions
diff --git a/source/fitz/bidi-std.c b/source/fitz/bidi-std.c
index f5ebcf56..051b07e8 100644
--- a/source/fitz/bidi-std.c
+++ b/source/fitz/bidi-std.c
@@ -57,7 +57,7 @@
only bidi.h and bidi.cpp are needed.
The Win32 version is provided as a dialog procedure. To use as a
- standalone program compile with the the lbmain.cpp file. If all you
+ standalone program compile with the lbmain.cpp file. If all you
need is the ability to run the code "as is", you can instead download
the unibook utility from http://uincode.org/unibook/ which contains
the bidi demo compiled from this source file.
diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c
index 739ee3bd..60da73ac 100644
--- a/source/fitz/draw-device.c
+++ b/source/fitz/draw-device.c
@@ -540,7 +540,7 @@ fz_draw_clip_stroke_path(fz_context *ctx, fz_device *devp, const fz_path *path,
/* When there is no alpha in the current destination (state[0].dest->alpha == 0)
* we have a choice. We can either create the new destination WITH alpha, or
* we can copy the old pixmap contents in. We opt for the latter here, but
- * may want to revisit this decision in future. */
+ * may want to revisit this decision in the future. */
state[1].dest = fz_new_pixmap_with_bbox(ctx, model, &bbox, state[0].dest->alpha);
if (state[0].dest->alpha)
fz_clear_pixmap(ctx, state[1].dest);
@@ -843,7 +843,7 @@ fz_draw_clip_text(fz_context *ctx, fz_device *devp, const fz_text *text, const f
/* When there is no alpha in the current destination (state[0].dest->alpha == 0)
* we have a choice. We can either create the new destination WITH alpha, or
* we can copy the old pixmap contents in. We opt for the latter here, but
- * may want to revisit this decision in future. */
+ * may want to revisit this decision in the future. */
dest = fz_new_pixmap_with_bbox(ctx, model, &bbox, state[0].dest->alpha);
if (state[0].dest->alpha)
fz_clear_pixmap(ctx, dest);
@@ -968,7 +968,7 @@ fz_draw_clip_stroke_text(fz_context *ctx, fz_device *devp, const fz_text *text,
/* When there is no alpha in the current destination (state[0].dest->alpha == 0)
* we have a choice. We can either create the new destination WITH alpha, or
* we can copy the old pixmap contents in. We opt for the latter here, but
- * may want to revisit this decision in future. */
+ * may want to revisit this decision in the future. */
state[1].dest = dest = fz_new_pixmap_with_bbox(ctx, model, &bbox, state[0].dest->alpha);
if (state[0].dest->alpha)
fz_clear_pixmap(ctx, state[1].dest);
@@ -1254,7 +1254,7 @@ fz_draw_fill_image(fz_context *ctx, fz_device *devp, fz_image *image, const fz_m
* the destination device to the source pixels. */
if (fz_try_invert_matrix(&inverse, &local_ctm))
{
- /* Not invertible. Could just bale? Use the whole image
+ /* Not invertible. Could just bail? Use the whole image
* for now. */
src_area.x0 = 0;
src_area.x1 = image->w;
@@ -1387,7 +1387,7 @@ fz_draw_fill_image_mask(fz_context *ctx, fz_device *devp, fz_image *image, const
* the destination device to the source pixels. */
if (fz_try_invert_matrix(&inverse, &local_ctm))
{
- /* Not invertible. Could just bale? Use the whole image
+ /* Not invertible. Could just bail? Use the whole image
* for now. */
src_area.x0 = 0;
src_area.x1 = image->w;
@@ -1528,7 +1528,7 @@ fz_draw_clip_image_mask(fz_context *ctx, fz_device *devp, fz_image *image, const
/* When there is no alpha in the current destination (state[0].dest->alpha == 0)
* we have a choice. We can either create the new destination WITH alpha, or
* we can copy the old pixmap contents in. We opt for the latter here, but
- * may want to revisit this decision in future. */
+ * may want to revisit this decision in the future. */
state[1].dest = dest = fz_new_pixmap_with_bbox(ctx, model, &bbox, state[0].dest->alpha);
if (state[0].dest->alpha)
fz_clear_pixmap(ctx, state[1].dest);
diff --git a/source/fitz/halftone.c b/source/fitz/halftone.c
index 910c2059..f0705790 100644
--- a/source/fitz/halftone.c
+++ b/source/fitz/halftone.c
@@ -43,7 +43,7 @@ fz_drop_halftone(fz_context *ctx, fz_halftone *ht)
/* Default mono halftone, lifted from Ghostscript. */
/* The 0x00 entry has been changed to 0x01 to avoid problems with white
* pixels appearing in the output; as we use < 0 should not appear in the
- * array. I think that gs scales this slighly and hence never actually uses
+ * array. I think that gs scales this slightly and hence never actually uses
* the raw values here. */
static unsigned char mono_ht[] =
{
diff --git a/source/fitz/harfbuzz.c b/source/fitz/harfbuzz.c
index e2b4e834..319e2b65 100644
--- a/source/fitz/harfbuzz.c
+++ b/source/fitz/harfbuzz.c
@@ -32,7 +32,7 @@
* call down to fz_malloc/realloc/calloc/free. These
* require context variables, so we get our hb_lock
* and unlock to set these. Any attempt to call through
- * without setting these is detected.
+ * without setting these will be detected.
*
* It is therefore vital that any fz_lock/fz_unlock
* handlers are shared between all the fz_contexts in
diff --git a/source/fitz/hash.c b/source/fitz/hash.c
index 7e4f49f1..fe6ae6f8 100644
--- a/source/fitz/hash.c
+++ b/source/fitz/hash.c
@@ -3,7 +3,7 @@
/*
Simple hashtable with open addressing linear probe.
Unlike text book examples, removing entries works
-correctly in this implementation, so it wont start
+correctly in this implementation, so it won't start
exhibiting bad behaviour if entries are inserted
and removed frequently.
*/
@@ -117,7 +117,7 @@ do_hash_insert(fz_context *ctx, fz_hash_table *table, const void *key, void *val
if (memcmp(key, ents[pos].key, table->keylen) == 0)
{
- /* This is legal, but should happen rarely. */
+ /* This is legal, but should rarely happen. */
fz_warn(ctx, "assert: overwrite hash slot");
return ents[pos].val;
}
diff --git a/source/fitz/list-device.c b/source/fitz/list-device.c
index ee722126..b12612b4 100644
--- a/source/fitz/list-device.c
+++ b/source/fitz/list-device.c
@@ -38,7 +38,7 @@ typedef enum fz_display_command_e
*
* cmd: What type of node this is.
*
- * size: The number of sizeof(fz_display_node) bytes that this nodes
+ * size: The number of sizeof(fz_display_node) bytes that this node's
* data occupies. (i.e. &node[node->size] = the next node in the
* chain; 0 for end of list).
*
diff --git a/source/fitz/load-jpx.c b/source/fitz/load-jpx.c
index 9baad51d..c52d68d8 100644
--- a/source/fitz/load-jpx.c
+++ b/source/fitz/load-jpx.c
@@ -23,7 +23,7 @@ jpx_ycc_to_rgb(fz_context *ctx, fz_pixmap *pix, int cbsign, int crsign)
ycc[1] = row[x * 3 + 1];
ycc[2] = row[x * 3 + 2];
- /* conciously skip Y */
+ /* consciously skip Y */
if (cbsign)
ycc[1] -= 128;
if (crsign)
@@ -478,7 +478,7 @@ struct stream_block_s
* functions that call down to fz_malloc etc. These
* require context variables, so we lock and unlock around
* calls to openjpeg. Any attempt to call through
- * without setting these is detected.
+ * without setting these will be detected.
*
* It is therefore vital that any fz_lock/fz_unlock
* handlers are shared between all the fz_contexts in
diff --git a/source/fitz/output-pcl.c b/source/fitz/output-pcl.c
index 4eb620f3..1040ddd3 100644
--- a/source/fitz/output-pcl.c
+++ b/source/fitz/output-pcl.c
@@ -416,14 +416,14 @@ pcl_header(fz_context *ctx, fz_output *out, fz_pcl_options *pcl, int num_copies,
}
/* Put out per-page initialization. */
- /* in duplex mode the sheet is already in process, so there are some
+ /* In duplex mode the sheet is already in process, so there are some
* commands which must not be sent to the printer for the 2nd page,
- * as this commands will cause the printer to eject the sheet with
- * only the 1st page printed. This commands are:
+ * as these commands will cause the printer to eject the sheet with
+ * only the 1st page printed. These commands are:
* \033&l%dA (setting paper size)
* \033&l%dH (setting paper tray)
- * in simplex mode we set this parameters for each page,
- * in duplex mode we set this parameters for each odd page
+ * in simplex mode we set these parameters for each page,
+ * in duplex mode we set these parameters for each odd page
*/
if ((pcl->features & PCL_HAS_DUPLEX) && pcl->duplex_set && pcl->duplex)
@@ -599,7 +599,7 @@ static void guess_paper_size(fz_pcl_options *pcl, int w, int h, int xres, int yr
pcl->orientation = rotated;
}
-/* Copy a line, removing the alpha, returning true if it line
+/* Copy a line, removing the alpha, returning true if the line
* was blank. */
static int
line_is_blank(unsigned char *dst, const unsigned char *sp, int w)
diff --git a/source/fitz/stext-paragraph.c b/source/fitz/stext-paragraph.c
index cbf7c925..91f71040 100644
--- a/source/fitz/stext-paragraph.c
+++ b/source/fitz/stext-paragraph.c
@@ -281,7 +281,7 @@ is_list_entry(fz_stext_line *line, fz_stext_span *span, int *char_num_ptr)
#ifdef SPOT_LINE_NUMBERS
/* Is the entire first span a number? Or does it start with a number
- * followed by ) or : ? Allow to involve single latin chars too. */
+ * followed by ) or : ? Allowed to involve single latin chars too. */
if (is_number(chr->c) || is_latin_char(chr->c))
{
int cn = char_num;