diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2017-01-04 20:06:57 +0100 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2017-01-17 20:24:24 +0100 |
commit | b1085c6816c093409c745a41567c8c3009917e27 (patch) | |
tree | 53404678b5ea5a816528f0e5ebd589a241cab447 /source | |
parent | f45ed2539978f86e9a7fe0185f8bbeec398fb087 (diff) | |
download | mupdf-b1085c6816c093409c745a41567c8c3009917e27.tar.xz |
Fix typos.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/bidi-std.c | 2 | ||||
-rw-r--r-- | source/fitz/draw-device.c | 12 | ||||
-rw-r--r-- | source/fitz/halftone.c | 2 | ||||
-rw-r--r-- | source/fitz/harfbuzz.c | 2 | ||||
-rw-r--r-- | source/fitz/hash.c | 4 | ||||
-rw-r--r-- | source/fitz/list-device.c | 2 | ||||
-rw-r--r-- | source/fitz/load-jpx.c | 4 | ||||
-rw-r--r-- | source/fitz/output-pcl.c | 12 | ||||
-rw-r--r-- | source/fitz/stext-paragraph.c | 2 | ||||
-rw-r--r-- | source/helpers/mu-office-lib/mu-office-lib.c | 12 | ||||
-rw-r--r-- | source/pdf/pdf-page.c | 2 | ||||
-rw-r--r-- | source/pdf/pdf-parse.c | 2 | ||||
-rw-r--r-- | source/pdf/pdf-stream.c | 2 | ||||
-rw-r--r-- | source/pdf/pdf-write.c | 8 | ||||
-rw-r--r-- | source/pdf/pdf-xref.c | 2 | ||||
-rw-r--r-- | source/tools/muraster.c | 2 |
16 files changed, 36 insertions, 36 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; diff --git a/source/helpers/mu-office-lib/mu-office-lib.c b/source/helpers/mu-office-lib/mu-office-lib.c index b21ca976..65eae1a2 100644 --- a/source/helpers/mu-office-lib/mu-office-lib.c +++ b/source/helpers/mu-office-lib/mu-office-lib.c @@ -64,7 +64,7 @@ void Pal_Mem_free(void *address) #endif /* - All MuPDFs allocations are redirected through the + All MuPDF's allocations are redirected through the following functions. */ static void *muoffice_malloc(void *arg, size_t size) @@ -98,7 +98,7 @@ static fz_alloc_context muoffice_alloc = }; /* - All MuPDFs locking is done using the following functions + All MuPDF's locking is done using the following functions */ static void muoffice_lock(void *user, int lock); @@ -223,7 +223,7 @@ void MuOfficeLib_destroy(MuOfficeLib *mu) * Perform MuPDF native operations on a given MuOfficeLib * instance. * - * The function is called with an fz_context value that can + * The function is called with a fz_context value that can * be safely used (i.e. the context is cloned/dropped * appropriately around the call). The function should signal * errors by fz_throw-ing. @@ -259,7 +259,7 @@ MuError MuOfficeLib_run(MuOfficeLib *mu, void (*fn)(fz_context *ctx, void *arg), } /** - * Find the type of a file given it's filename extension. + * Find the type of a file given its filename extension. * * @param path path to the file (in utf8) * @@ -509,7 +509,7 @@ ensure_doc_loaded(MuOfficeDoc *doc) * Return the number of pages of a document * * This function waits for document loading to complete before returning - * the result. It may block the calling thread for a signficant period of + * the result. It may block the calling thread for a significant period of * time. To avoid blocking, this call should be avoided in favour of using * the MuOfficeLib_loadDocument callbacks to monitor loading. * @@ -1126,7 +1126,7 @@ MuError MuOfficePage_render( MuOfficePage *page, * render. * * This call is intended to support an app dealing with a user quickly - * flicking through document pages. A render may be sheduled but, before + * flicking through document pages. A render may be scheduled but, before * completion, be found not to be needed. In that case the bitmap will * need to be reused, which requires any existing render to be aborted. * The call to MuOfficeRender_destroy will cut short the render and diff --git a/source/pdf/pdf-page.c b/source/pdf/pdf-page.c index d2ec028b..44f652bd 100644 --- a/source/pdf/pdf-page.c +++ b/source/pdf/pdf-page.c @@ -502,7 +502,7 @@ pdf_page_obj_transform(fz_context *ctx, pdf_obj *pageobj, fz_rect *page_mediabox rotate = 0; /* Compute transform from fitz' page space (upper left page origin, y descending, 72 dpi) - * to PDF user space (arbitary page origin, y ascending, UserUnit dpi). */ + * to PDF user space (arbitrary page origin, y ascending, UserUnit dpi). */ /* Make left-handed and scale by UserUnit */ fz_scale(page_ctm, userunit, -userunit); diff --git a/source/pdf/pdf-parse.c b/source/pdf/pdf-parse.c index 5b77a466..665802ea 100644 --- a/source/pdf/pdf-parse.c +++ b/source/pdf/pdf-parse.c @@ -237,7 +237,7 @@ pdf_to_ucs2(fz_context *ctx, pdf_obj *src) return dst; } -/* allow to convert to UCS-2 without the need for an fz_context */ +/* allow conversion to UCS-2 without the need for a fz_context */ /* (buffer must be at least (fz_to_str_len(src) + 1) * 2 bytes in size) */ void pdf_to_ucs2_buf(fz_context *ctx, unsigned short *buffer, pdf_obj *src) diff --git a/source/pdf/pdf-stream.c b/source/pdf/pdf-stream.c index 289f27da..d9b14405 100644 --- a/source/pdf/pdf-stream.c +++ b/source/pdf/pdf-stream.c @@ -513,7 +513,7 @@ can_reuse_buffer(fz_context *ctx, pdf_xref_entry *entry, fz_compression_params * { int len = pdf_array_len(ctx, f); - /* Empty array of filters. It's uncompressed. We can cope. */ + /* Empty array of filters. Its uncompressed. We can cope. */ if (len == 0) return 1; /* 1 filter is the most we can hope to cope with - if more,*/ diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c index 94379f4e..7602e0c9 100644 --- a/source/pdf/pdf-write.c +++ b/source/pdf/pdf-write.c @@ -246,7 +246,7 @@ page_objects_sort(fz_context *ctx, page_objects *po) /* If both are in the page_objects, pick the larger one */ if (k < i-1 && po->object[k] < po->object[k+1]) k++; - /* If j is bigger than k (i.e. both of it's children), + /* If j is bigger than k (i.e. both of its children), * we're done */ if (po->object[j] > po->object[k]) break; @@ -411,7 +411,7 @@ heap_sort(int *list, int n, const int *val, int (*ge)(int, int)) /* If both are in the page_objects, pick the larger one */ if (k < i-1 && ge(val[list[k+1]], val[list[k]])) k++; - /* If j is bigger than k (i.e. both of it's children), + /* If j is bigger than k (i.e. both of its children), * we're done */ if (ge(val[list[j]], val[list[k]])) break; @@ -1610,7 +1610,7 @@ static fz_buffer *deflatebuf(fz_context *ctx, unsigned char *p, size_t n) size_t cap; if (n != (size_t)longN) - fz_throw(ctx, FZ_ERROR_GENERIC, "Buffer to large to deflate"); + fz_throw(ctx, FZ_ERROR_GENERIC, "Buffer too large to deflate"); cap = compressBound(longN); data = fz_malloc(ctx, cap); @@ -3041,7 +3041,7 @@ void pdf_write_document(fz_context *ctx, pdf_document *doc, fz_output *out, pdf_ if (in_opts->do_incremental && in_opts->do_linear) fz_throw(ctx, FZ_ERROR_GENERIC, "Can't do incremental writes with linearisation"); if (pdf_has_unsaved_sigs(ctx, doc)) - fz_throw(ctx, FZ_ERROR_GENERIC, "Can't write pdf that has unsaved sigs to an fz_output!"); + fz_throw(ctx, FZ_ERROR_GENERIC, "Can't write pdf that has unsaved sigs to a fz_output!"); prepare_for_save(ctx, doc, in_opts); diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index 88182adf..739a5693 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -2496,7 +2496,7 @@ pdf_load_hints(fz_context *ctx, pdf_document *doc, int objnum) fz_rethrow_if(ctx, FZ_ERROR_TRYLATER); /* Don't try to load hints again */ doc->hints_loaded = 1; - /* We won't use the linearized object any more. */ + /* We won't use the linearized object anymore. */ doc->file_reading_linearly = 0; /* Any other error becomes a TRYLATER */ fz_throw(ctx, FZ_ERROR_TRYLATER, "malformed hints object"); diff --git a/source/tools/muraster.c b/source/tools/muraster.c index 96f59162..3857e6d8 100644 --- a/source/tools/muraster.c +++ b/source/tools/muraster.c @@ -10,7 +10,7 @@ * Only supports banding. * Supports auto fallback to grey if possible. * Supports threading. - * Suports fallback in low memory cases. + * Supports fallback in low memory cases. */ /* |