summaryrefslogtreecommitdiff
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
parentf45ed2539978f86e9a7fe0185f8bbeec398fb087 (diff)
downloadmupdf-b1085c6816c093409c745a41567c8c3009917e27.tar.xz
Fix typos.
-rw-r--r--docs/overview.txt4
-rw-r--r--docs/progressive.txt14
-rw-r--r--include/mupdf/fitz/archive.h10
-rw-r--r--include/mupdf/fitz/bitmap.h2
-rw-r--r--include/mupdf/fitz/buffer.h2
-rw-r--r--include/mupdf/fitz/colorspace.h2
-rw-r--r--include/mupdf/fitz/device.h10
-rw-r--r--include/mupdf/fitz/document.h2
-rw-r--r--include/mupdf/fitz/font.h6
-rw-r--r--include/mupdf/fitz/geometry.h6
-rw-r--r--include/mupdf/fitz/output.h2
-rw-r--r--include/mupdf/fitz/path.h6
-rw-r--r--include/mupdf/fitz/pixmap.h8
-rw-r--r--include/mupdf/fitz/separation.h2
-rw-r--r--include/mupdf/fitz/shade.h8
-rw-r--r--include/mupdf/fitz/store.h12
-rw-r--r--include/mupdf/fitz/stream.h4
-rw-r--r--include/mupdf/fitz/structured-text.h2
-rw-r--r--include/mupdf/fitz/text.h4
-rw-r--r--include/mupdf/helpers/mu-office-lib.h12
-rw-r--r--include/mupdf/memento.h2
-rw-r--r--include/mupdf/pdf/appearance.h2
-rw-r--r--include/mupdf/pdf/document.h6
-rw-r--r--include/mupdf/pdf/resource.h2
-rw-r--r--platform/java/mupdf_native.c2
-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
-rw-r--r--source/helpers/mu-office-lib/mu-office-lib.c12
-rw-r--r--source/pdf/pdf-page.c2
-rw-r--r--source/pdf/pdf-parse.c2
-rw-r--r--source/pdf/pdf-stream.c2
-rw-r--r--source/pdf/pdf-write.c8
-rw-r--r--source/pdf/pdf-xref.c2
-rw-r--r--source/tools/muraster.c2
41 files changed, 102 insertions, 102 deletions
diff --git a/docs/overview.txt b/docs/overview.txt
index 0e558fe8..0a194948 100644
--- a/docs/overview.txt
+++ b/docs/overview.txt
@@ -19,7 +19,7 @@ using MuPDF should use the error handling strategies described below.
Common function arguments
=========================
-Most functions in MuPDFs interface take a context argument.
+Most functions in MuPDF's interface take a context argument.
A context contains global state used by MuPDF inside functions when
parsing or rendering pages of the document. It contains for example:
@@ -101,7 +101,7 @@ The macro based nature of this system has 3 main limitations:
in fz_try throwing an exception may become undefined as part
of the process of throwing that exception.
- As a way of mitigating this problem, we provide an fz_var()
+ As a way of mitigating this problem, we provide a fz_var()
macro that tells the compiler to ensure that that variable is
not unset by the act of throwing the exception.
diff --git a/docs/progressive.txt b/docs/progressive.txt
index 081f599e..da33f961 100644
--- a/docs/progressive.txt
+++ b/docs/progressive.txt
@@ -73,7 +73,7 @@ progressive loading.
+ Progressive streams
- At its lowest level MuPDF reads file data from an fz_stream,
+ At its lowest level MuPDF reads file data from a fz_stream,
using the fz_open_document_with_stream call. (fz_open_document
is implemented by calling this). We have extended the fz_stream
slightly, giving the system a way to ask for meta information
@@ -95,13 +95,13 @@ progressive loading.
When data is pulled from a progressive stream, if we attempt to
read data that is not currently available, the stream should
- throw an FZ_ERROR_TRYLATER error. This particular error code
+ throw a FZ_ERROR_TRYLATER error. This particular error code
will be interpreted by the caller as an indication that it
should retry the parsing of the current objects at a later time.
When a MuPDF call is made on a progressive stream, such as
fz_open_document_with_stream, or fz_load_page, the caller should
- be prepared to handle an FZ_ERROR_TRYLATER error as meaning that
+ be prepared to handle a FZ_ERROR_TRYLATER error as meaning that
more data is required before it can continue. No indication is
directly given as to exactly how much more data is required, but
as the caller will be implementing the progressive fz_stream
@@ -138,7 +138,7 @@ progressive loading.
Callers prepared to tolerate such renderings should set the
'incomplete_ok' flag in the cookie, then call fz_run_page etc
- as normal. If an FZ_ERROR_TRYLATER error is thrown at any point
+ as normal. If a FZ_ERROR_TRYLATER error is thrown at any point
during the page rendering, the error will be swallowed, the
'incomplete' field in the cookie will become non-zero and
rendering will continue. When control returns to the caller
@@ -228,7 +228,7 @@ a server.
For a non-linearized PDF on a byte request capable stream:
- MuPDF will immediately seek to the end of the file to attempt
- to read the trailer. This will fail with an FZ_ERROR_TRYLATER
+ to read the trailer. This will fail with a FZ_ERROR_TRYLATER
due to the data not being here yet, but the stream code should
remember that this data is required and it should be prioritized
in the background fetch process.
@@ -248,7 +248,7 @@ a server.
For a non-linearized PDF on a non-byte request capable stream:
- MuPDF will immediately seek to the end of the file to attempt
- to read the trailer. This will fail with an FZ_ERROR_TRYLATER
+ to read the trailer. This will fail with a FZ_ERROR_TRYLATER
due to the data not being here yet. Subsequent retries will
continue to fail until the whole file has arrived, whereupon
the whole file will be instantly available.
@@ -278,4 +278,4 @@ a server.
+ Whenever MuPDF attempts to read from the stream, we check to see if
we have data for this area of the file already. If we do, we can
return it. If not, we remember this as the next "fill point" for our
- receiver process and throw an FZ_ERROR_TRYLATER error.
+ receiver process and throw a FZ_ERROR_TRYLATER error.
diff --git a/include/mupdf/fitz/archive.h b/include/mupdf/fitz/archive.h
index cbe4e67e..be055615 100644
--- a/include/mupdf/fitz/archive.h
+++ b/include/mupdf/fitz/archive.h
@@ -93,7 +93,7 @@ const char *fz_list_archive_entry(fz_context *ctx, fz_archive *arch, int idx);
If named entry does not exist 0 will be returned, if it does
exist 1 is returned.
- nane: Entry name to look for, this must be an exact match to
+ name: Entry name to look for, this must be an exact match to
the entry name in the archive.
*/
int fz_has_archive_entry(fz_context *ctx, fz_archive *arch, const char *name);
@@ -101,7 +101,7 @@ int fz_has_archive_entry(fz_context *ctx, fz_archive *arch, const char *name);
/*
fz_open_archive_entry: Opens an archive entry as a stream.
- nane: Entry name to look for, this must be an exact match to
+ name: Entry name to look for, this must be an exact match to
the entry name in the archive.
*/
fz_stream *fz_open_archive_entry(fz_context *ctx, fz_archive *arch, const char *name);
@@ -110,14 +110,14 @@ fz_stream *fz_open_archive_entry(fz_context *ctx, fz_archive *arch, const char *
fz_read_archive_entry: Reads all bytes in an archive entry
into a buffer.
- nane: Entry name to look for, this must be an exact match to
+ name: Entry name to look for, this must be an exact match to
the entry name in the archive.
*/
fz_buffer *fz_read_archive_entry(fz_context *ctx, fz_archive *arch, const char *name);
/*
- fz_is_tar_archive: Detect if stream object is a tar achive.
+ fz_is_tar_archive: Detect if stream object is a tar achieve.
Assumes that the stream object is seekable.
*/
@@ -147,7 +147,7 @@ fz_archive *fz_open_tar_archive(fz_context *ctx, const char *filename);
fz_archive *fz_open_tar_archive_with_stream(fz_context *ctx, fz_stream *file);
/*
- fz_is_zip_archive: Detect if stream object is a zip achive.
+ fz_is_zip_archive: Detect if stream object is a zip archive.
Assumes that the stream object is seekable.
*/
diff --git a/include/mupdf/fitz/bitmap.h b/include/mupdf/fitz/bitmap.h
index 353f4ccc..edfbdbc7 100644
--- a/include/mupdf/fitz/bitmap.h
+++ b/include/mupdf/fitz/bitmap.h
@@ -36,7 +36,7 @@ void fz_drop_bitmap(fz_context *ctx, fz_bitmap *bit);
threshold tile is a pixmap, possibly of varying sizes and phases.
Currently, we only provide one 'default' halftone tile for operating
on 1 component plus alpha pixmaps (where the alpha is ignored). This
- is signified by an fz_halftone pointer to NULL.
+ is signified by a fz_halftone pointer to NULL.
*/
typedef struct fz_halftone_s fz_halftone;
diff --git a/include/mupdf/fitz/buffer.h b/include/mupdf/fitz/buffer.h
index 914a6aa7..df3f216a 100644
--- a/include/mupdf/fitz/buffer.h
+++ b/include/mupdf/fitz/buffer.h
@@ -39,7 +39,7 @@ void fz_drop_buffer(fz_context *ctx, fz_buffer *buf);
size_t fz_buffer_storage(fz_context *ctx, fz_buffer *buf, unsigned char **data);
/*
- fz_string_from_buffer: Ensure that a buffers data ends in a
+ fz_string_from_buffer: Ensure that a buffer's data ends in a
0 byte, and return a pointer to it.
Returns pointer to data.
diff --git a/include/mupdf/fitz/colorspace.h b/include/mupdf/fitz/colorspace.h
index 8a1c5caf..e7453f6c 100644
--- a/include/mupdf/fitz/colorspace.h
+++ b/include/mupdf/fitz/colorspace.h
@@ -8,7 +8,7 @@
enum { FZ_MAX_COLORS = 32 };
/*
- An fz_colorspace object represents an abstract colorspace. While
+ A fz_colorspace object represents an abstract colorspace. While
this should be treated as a black box by callers of the library at
this stage, know that it encapsulates knowledge of how to convert
colors to and from the colorspace, any lookup tables generated, the
diff --git a/include/mupdf/fitz/device.h b/include/mupdf/fitz/device.h
index 074d9ded..e40cc2a5 100644
--- a/include/mupdf/fitz/device.h
+++ b/include/mupdf/fitz/device.h
@@ -19,7 +19,7 @@
The list device stores them in a list to play back later.
The text device performs text extraction and searching.
The bbox device calculates the bounding box for the page.
- Other devices can (and will) be written in future.
+ Other devices can (and will) be written in the future.
*/
typedef struct fz_device_s fz_device;
@@ -156,7 +156,7 @@ void *fz_new_device(fz_context *ctx, int size);
void fz_close_device(fz_context *ctx, fz_device *dev);
/*
- fz_drop_device: Free a devices of any type and its resources.
+ fz_drop_device: Free a device of any type and its resources.
Don't forget to call fz_close_device before dropping the device, or you may get incomplete output!
*/
void fz_drop_device(fz_context *ctx, fz_device *dev);
@@ -206,7 +206,7 @@ typedef struct fz_cookie_s fz_cookie;
/*
Provide two-way communication between application and library.
Intended for multi-threaded applications where one thread is
- rendering pages and another thread wants read progress
+ rendering pages and another thread wants to read progress
feedback or abort a job that takes a long time to finish. The
communication is unsynchronized without locking.
@@ -216,7 +216,7 @@ typedef struct fz_cookie_s fz_cookie;
which will cause the rendering to finish soon. This field is
checked periodically when the page is rendered, but exactly
when is not known, therefore there is no upper bound on
- exactly when the the rendering will abort. If the application
+ exactly when the rendering will abort. If the application
did not provide a set of locks to fz_new_context, it must also
await the completion of fz_run_page before issuing another
call to fz_run_page. Note that once the application has set
@@ -294,7 +294,7 @@ fz_device *fz_new_bbox_device(fz_context *ctx, fz_rect *rectp);
If set, then the test device can both test and pass through to
an underlying device (like, say, the display list device). This
means that a display list can be created and at the end we'll
- know if it's color or not.
+ know if it's colored or not.
In the absence of a passthrough device, the device will throw
an exception to stop page interpretation when color is found.
diff --git a/include/mupdf/fitz/document.h b/include/mupdf/fitz/document.h
index cc95c0a7..d7dbd447 100644
--- a/include/mupdf/fitz/document.h
+++ b/include/mupdf/fitz/document.h
@@ -355,7 +355,7 @@ void fz_drop_page(fz_context *ctx, fz_page *page);
duration: A pointer to a place to set the page duration in seconds.
Will be set to 0 if no transition is specified for the page.
- Returns: a pointer to a the transition structure, or NULL if there is no
+ Returns: a pointer to the transition structure, or NULL if there is no
transition specified for the page.
*/
fz_transition *fz_page_presentation(fz_context *ctx, fz_page *page, fz_transition *transition, float *duration);
diff --git a/include/mupdf/fitz/font.h b/include/mupdf/fitz/font.h
index 50092278..c453e085 100644
--- a/include/mupdf/fitz/font.h
+++ b/include/mupdf/fitz/font.h
@@ -59,7 +59,7 @@ enum { FZ_ADOBE_CNS_1, FZ_ADOBE_GB_1, FZ_ADOBE_JAPAN_1, FZ_ADOBE_KOREA_1 };
/*
fz_font_flags_t: Every fz_font carries a set of flags
- within it, in an fz_font_flags_t structure.
+ within it, in a fz_font_flags_t structure.
*/
typedef struct
{
@@ -379,7 +379,7 @@ fz_font *fz_new_font_from_memory(fz_context *ctx, const char *name, const char *
/*
fz_new_font_from_buffer: Create a new font from a font
- file in an fz_buffer.
+ file in a fz_buffer.
name: Name of font (leave NULL to use name from font).
@@ -444,7 +444,7 @@ void fz_set_font_bbox(fz_context *ctx, fz_font *font, float xmin, float ymin, fl
trm: The matrix to apply to the glyph before bounding.
- r: Pointer to an fz_rect to use for storage.
+ r: Pointer to a fz_rect to use for storage.
Returns r, after filling it in with the bounds of the given glyph.
*/
diff --git a/include/mupdf/fitz/geometry.h b/include/mupdf/fitz/geometry.h
index 8b38b15b..7fef12fb 100644
--- a/include/mupdf/fitz/geometry.h
+++ b/include/mupdf/fitz/geometry.h
@@ -152,7 +152,7 @@ struct fz_rect_s
};
/*
- fz_rect_min: get the minimum point from a rectangle as an fz_point.
+ fz_rect_min: get the minimum point from a rectangle as a fz_point.
*/
static inline fz_point *fz_rect_min(fz_rect *f)
{
@@ -160,7 +160,7 @@ static inline fz_point *fz_rect_min(fz_rect *f)
}
/*
- fz_rect_max: get the maximum point from a rectangle as an fz_point.
+ fz_rect_max: get the maximum point from a rectangle as a fz_point.
*/
static inline fz_point *fz_rect_max(fz_rect *f)
{
@@ -247,7 +247,7 @@ fz_is_infinite_irect(const fz_irect *r)
}
/*
- fz_matrix is a a row-major 3x3 matrix used for representing
+ fz_matrix is a row-major 3x3 matrix used for representing
transformations of coordinates throughout MuPDF.
Since all points reside in a two-dimensional space, one vector
diff --git a/include/mupdf/fitz/output.h b/include/mupdf/fitz/output.h
index 824612de..5bc0fc44 100644
--- a/include/mupdf/fitz/output.h
+++ b/include/mupdf/fitz/output.h
@@ -149,7 +149,7 @@ size_t fz_snprintf(char *buffer, size_t space, const char *fmt, ...);
'hint' is the path of a file (normally the existing document file)
supplied to give the function an idea of what directory to use. This
- may or may not be used depending on the implementations whim.
+ may or may not be used depending on the implementation's whim.
The returned path must be freed.
*/
diff --git a/include/mupdf/fitz/path.h b/include/mupdf/fitz/path.h
index da8b2801..40604a2f 100644
--- a/include/mupdf/fitz/path.h
+++ b/include/mupdf/fitz/path.h
@@ -134,11 +134,11 @@ int fz_packed_path_size(const fz_path *path);
fz_pack_path: Pack a path into the given block.
To minimise the size of paths, this function allows them to be
packed into a buffer with other information. Paths can be used
- interchangably regardless of how they are packed.
+ interchangeably regardless of how they are packed.
pack: Pointer to a block of data to pack the path into. Should
be aligned by the caller to the same alignment as required for
- an fz_path pointer.
+ a fz_path pointer.
max: The number of bytes available in the block.
If max < sizeof(fz_path) then an exception will
@@ -151,7 +151,7 @@ int fz_packed_path_size(const fz_path *path);
Returns the number of bytes within the block used. Callers can
access the packed path data by casting the value of pack on
- entry to be an fz_path *.
+ entry to be a fz_path *.
Throws exceptions on failure to allocate, or if
max < sizeof(fz_path).
diff --git a/include/mupdf/fitz/pixmap.h b/include/mupdf/fitz/pixmap.h
index e6d56a3c..302038ae 100644
--- a/include/mupdf/fitz/pixmap.h
+++ b/include/mupdf/fitz/pixmap.h
@@ -41,7 +41,7 @@ int fz_pixmap_x(fz_context *ctx, fz_pixmap *pix);
int fz_pixmap_y(fz_context *ctx, fz_pixmap *pix);
/*
- fz_new_pixmap: Create a new pixmap, with it's origin at (0,0)
+ fz_new_pixmap: Create a new pixmap, with its origin at (0,0)
cs: The colorspace to use for the pixmap, or NULL for an alpha
plane/mask.
@@ -79,7 +79,7 @@ fz_pixmap *fz_new_pixmap(fz_context *ctx, fz_colorspace *cs, int w, int h, int a
fz_pixmap *fz_new_pixmap_with_bbox(fz_context *ctx, fz_colorspace *colorspace, const fz_irect *bbox, int alpha);
/*
- fz_new_pixmap_with_data: Create a new pixmap, with it's origin at
+ fz_new_pixmap_with_data: Create a new pixmap, with its origin at
(0,0) using the supplied data block.
cs: The colorspace to use for the pixmap, or NULL for an alpha
@@ -271,7 +271,7 @@ fz_pixmap *fz_ensure_pixmap_is_additive(fz_context *ctx, fz_pixmap *pix);
/*
fz_convert_pixmap: Convert an existing pixmap to a desired
colorspace. Other properties of the pixmap, such as resolution
- and position are are copied to the converted pixmap.
+ and position are copied to the converted pixmap.
pix: The pixmap to convert.
@@ -318,7 +318,7 @@ fz_pixmap *fz_convert_pixmap(fz_context *ctx, fz_pixmap *pix, fz_colorspace *src
free_samples: Is zero when an application has provided its own
buffer for pixel data through fz_new_pixmap_with_bbox_and_data.
- If non-zero the buffer will be freed along with the the pixmap.
+ If non-zero the buffer will be freed along with the pixmap.
*/
struct fz_pixmap_s
{
diff --git a/include/mupdf/fitz/separation.h b/include/mupdf/fitz/separation.h
index 7cb7c411..e62534e9 100644
--- a/include/mupdf/fitz/separation.h
+++ b/include/mupdf/fitz/separation.h
@@ -5,7 +5,7 @@
#include "mupdf/fitz/context.h"
/*
- An fz_separation structure holds details of a set of separations
+ A fz_separation structure holds details of a set of separations
(such as might be used on within a page of the document).
The app might control the separations by enabling/disabling them,
diff --git a/include/mupdf/fitz/shade.h b/include/mupdf/fitz/shade.h
index 8f25c99a..7a90691d 100644
--- a/include/mupdf/fitz/shade.h
+++ b/include/mupdf/fitz/shade.h
@@ -75,7 +75,7 @@ typedef struct fz_shade_s
} fz_shade;
/*
- fz_keep_shade: Add a reference to an fz_shade.
+ fz_keep_shade: Add a reference to a fz_shade.
shade: The reference to keep.
@@ -84,7 +84,7 @@ typedef struct fz_shade_s
fz_shade *fz_keep_shade(fz_context *ctx, fz_shade *shade);
/*
- fz_drop_shade: Drop a reference to an fz_shade.
+ fz_drop_shade: Drop a reference to a fz_shade.
shade: The reference to drop. If this is the last
reference, shade will be destroyed.
@@ -145,7 +145,7 @@ struct fz_vertex_s
v: Pointer to a fz_vertex structure to populate.
- c: Pointer to an array of floats to use to populate v.
+ c: Pointer to an array of floats used to populate v.
*/
typedef void (fz_shade_prepare_fn)(fz_context *ctx, void *arg, fz_vertex *v, const float *c);
@@ -173,7 +173,7 @@ typedef void (fz_shade_process_fn)(fz_context *ctx, void *arg, fz_vertex *av, fz
prepare: Callback function to 'prepare' each vertex.
This function is passed an array of floats, and populates
- an fz_vertex structure.
+ a fz_vertex structure.
process: This function is passed 3 pointers to vertex
structures, and actually performs the processing (typically
diff --git a/include/mupdf/fitz/store.h b/include/mupdf/fitz/store.h
index 876649e3..15d550be 100644
--- a/include/mupdf/fitz/store.h
+++ b/include/mupdf/fitz/store.h
@@ -73,7 +73,7 @@ void fz_drop_key_storable_key(fz_context *, const fz_key_storable *);
order for this to work, we need a mechanism for turning a generic
'key' into 'a hashable string'. For this purpose the type structure
contains a make_hash_key function pointer that maps from a void *
- to an fz_store_hash structure. If make_hash_key function returns 0,
+ to a fz_store_hash structure. If make_hash_key function returns 0,
then the key is determined not to be hashable, and the value is
not stored in the hash table.
@@ -81,7 +81,7 @@ void fz_drop_key_storable_key(fz_context *, const fz_key_storable *);
component of keys within the store. We refer to these objects as
"key storable" objects. In this case, we need to take additional
care to ensure that we do not end up keeping an item within the
- store, purely because it's value is referred to by another key in
+ store, purely because its value is referred to by another key in
the store.
An example of this are fz_images in PDF files. Each fz_image is
@@ -105,7 +105,7 @@ void fz_drop_key_storable_key(fz_context *, const fz_key_storable *);
This is done by running a pass over the store, 'reaping' those
items.
- Reap passes are slower than we would like as they touching every
+ Reap passes are slower than we would like as they touch every
item in the store. We therefore provide a way to 'batch' such
reap passes together, using fz_defer_reap_start/fz_defer_reap_end
to bracket a region in which many may be triggered.
@@ -171,7 +171,7 @@ fz_store *fz_keep_store_context(fz_context *ctx);
instead. This function takes its own reference to val, as required
(i.e. the caller maintains ownership of its own reference).
- key: The key to use to index the item.
+ key: The key used to index the item.
val: The value to store.
@@ -188,7 +188,7 @@ void *fz_store_item(fz_context *ctx, void *key, void *val, size_t itemsize, fz_s
drop: The function used to free the value (to ensure we get a value
of the correct type).
- key: The key to use to index the item.
+ key: The key used to index the item.
type: Functions used to manipulate the key.
@@ -205,7 +205,7 @@ void *fz_find_item(fz_context *ctx, fz_store_drop_fn *drop, void *key, fz_store_
drop: The function used to free the value (to ensure we get a value
of the correct type).
- key: The key to use to find the item to remove.
+ key: The key used to find the item to remove.
type: Functions used to manipulate the key.
*/
diff --git a/include/mupdf/fitz/stream.h b/include/mupdf/fitz/stream.h
index 23a649bc..b1a370b9 100644
--- a/include/mupdf/fitz/stream.h
+++ b/include/mupdf/fitz/stream.h
@@ -74,7 +74,7 @@ fz_stream *fz_open_memory(fz_context *ctx, unsigned char *data, size_t len);
fz_open_buffer: Open a buffer as a stream.
buf: The buffer to open. Ownership of the buffer is NOT passed in
- (this function takes it's own reference).
+ (this function takes its own reference).
Returns pointer to newly created stream. May throw exceptions on
failure to allocate.
@@ -191,7 +191,7 @@ int64_t fz_read_int64_le(fz_context *ctx, fz_stream *stm);
/*
fz_read_string: Read a null terminated string from the stream into
- the a buffer of a given length. The buffer will be null terminated.
+ a buffer of a given length. The buffer will be null terminated.
Throws on failure (including the failure to fit the entire string
including the terminator into the buffer).
*/
diff --git a/include/mupdf/fitz/structured-text.h b/include/mupdf/fitz/structured-text.h
index 7ec5772a..6a861faa 100644
--- a/include/mupdf/fitz/structured-text.h
+++ b/include/mupdf/fitz/structured-text.h
@@ -34,7 +34,7 @@ typedef struct fz_stext_page_s fz_stext_page;
constituent parts, e.g. the ligature ffi is expanded into three
separate characters f, f and i.
- FZ_STEXT_PRESERVE_WHITESPACE: If this option is actived whitespace
+ FZ_STEXT_PRESERVE_WHITESPACE: If this option is activated whitespace
is passed through to the application in its original form. If this
option is deactivated any type of horizontal whitespace (including
horizontal tabs) will be replaced with space characters of variable
diff --git a/include/mupdf/fitz/text.h b/include/mupdf/fitz/text.h
index cff81b60..d7d7ffb5 100644
--- a/include/mupdf/fitz/text.h
+++ b/include/mupdf/fitz/text.h
@@ -72,7 +72,7 @@ struct fz_text_s
fz_text *fz_new_text(fz_context *ctx);
/*
- fz_keep_text: Add a reference to an fz_text.
+ fz_keep_text: Add a reference to a fz_text.
text: text object to keep a reference to.
@@ -82,7 +82,7 @@ fz_text *fz_keep_text(fz_context *ctx, const fz_text *text);
/*
fz_drop_text: Drop a reference to the object, freeing
- if if is the last one.
+ if it is the last one.
text: Object to drop the reference to.
*/
diff --git a/include/mupdf/helpers/mu-office-lib.h b/include/mupdf/helpers/mu-office-lib.h
index 8d2afbb8..759c892a 100644
--- a/include/mupdf/helpers/mu-office-lib.h
+++ b/include/mupdf/helpers/mu-office-lib.h
@@ -30,7 +30,7 @@
*
* The other mode of use is for plain executables that might wish to
* (say) generate images of all the pages of a document. This can
- * be acheived, without use of callbacks, using the few synchronous
+ * be achieved, without use of callbacks, using the few synchronous
* calls. E.g., MuOfficeDoc_getNumPages will wait for background document
* loading to complete before returning the total number of pages and
* MuOfficeRender_destroy will wait for background rendering to complete
@@ -236,7 +236,7 @@ MuOfficeSaveResult;
/**
* Callback function used to monitor save operations.
*
- * @param cookie the data pointer that was oringinally passed to
+ * @param cookie the data pointer that was originally passed to
* MuOfficeDoc_save.
* @param result the result of the save operation
*/
@@ -261,7 +261,7 @@ MuError MuOfficeLib_create(MuOfficeLib **pMu);
void MuOfficeLib_destroy(MuOfficeLib *mu);
/**
- * 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)
*
@@ -315,7 +315,7 @@ MuError MuOfficeLib_loadDocument(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.
@@ -355,7 +355,7 @@ MuOfficeDocType MuOfficeDoc_docType(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.
*
@@ -588,7 +588,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/include/mupdf/memento.h b/include/mupdf/memento.h
index 6dd27fc4..c424f64f 100644
--- a/include/mupdf/memento.h
+++ b/include/mupdf/memento.h
@@ -59,7 +59,7 @@
* it last passed a check for correctness.
*
* If you rerun, and call Memento_paranoidAt(int event); with this number
- * the the code will wait until it reaches that event and then start
+ * the code will wait until it reaches that event and then start
* checking the heap after every allocation event. Assuming it is a
* deterministic failure, you should then find out where in your program
* the error is occurring (between event x-1 and event x).
diff --git a/include/mupdf/pdf/appearance.h b/include/mupdf/pdf/appearance.h
index d2a4508d..53d29636 100644
--- a/include/mupdf/pdf/appearance.h
+++ b/include/mupdf/pdf/appearance.h
@@ -22,7 +22,7 @@ void pdf_update_ink_appearance(fz_context *ctx, pdf_document *doc, pdf_annot *an
void pdf_update_text_annot_appearance(fz_context *ctx, pdf_document *doc, pdf_annot *annot);
/*
pdf_update_free_text_annot_appearance: update the appearance stream for a free text
- annotation, basing it on the annotations rectangle and contents.
+ annotation, basing it on the annotation's rectangle and contents.
*/
void pdf_update_free_text_annot_appearance(fz_context *ctx, pdf_document *doc, pdf_annot *annot);
diff --git a/include/mupdf/pdf/document.h b/include/mupdf/pdf/document.h
index 231ab8b7..56d16ebf 100644
--- a/include/mupdf/pdf/document.h
+++ b/include/mupdf/pdf/document.h
@@ -96,7 +96,7 @@ pdf_document *pdf_open_document_with_stream(fz_context *ctx, fz_stream *file);
void pdf_drop_document(fz_context *ctx, pdf_document *doc);
/*
- pdf_specifics: down-cast an fz_document to a pdf_document.
+ pdf_specifics: down-cast a fz_document to a pdf_document.
Returns NULL if underlying document is not PDF
*/
pdf_document *pdf_specifics(fz_context *ctx, fz_document *doc);
@@ -750,7 +750,7 @@ void pdf_delete_page_range(fz_context *ctx, pdf_document *doc, int start, int en
on a document have completed, this will tidy up
the document. For now this is restricted to
rebalancing the page tree, but may be extended
- in future.
+ in the future.
*/
void pdf_finish_edit(fz_context *ctx, pdf_document *doc);
@@ -761,7 +761,7 @@ typedef struct pdf_write_options_s pdf_write_options;
/*
In calls to fz_save_document, the following options structure can be used
to control aspects of the writing process. This structure may grow
- in future, and should be zero-filled to allow forwards compatibility.
+ in the future, and should be zero-filled to allow forwards compatibility.
*/
struct pdf_write_options_s
{
diff --git a/include/mupdf/pdf/resource.h b/include/mupdf/pdf/resource.h
index 5c19f35a..d40464da 100644
--- a/include/mupdf/pdf/resource.h
+++ b/include/mupdf/pdf/resource.h
@@ -13,7 +13,7 @@ void pdf_empty_store(fz_context *ctx, pdf_document *doc);
* Structures used for managing resource locations and avoiding multiple
* occurrences when resources are added to the document. The search for existing
* resources will be performed when we are first trying to add an item. Object
- * refs are stored in an fz_hash_table structure using a hash of the md5 sum of
+ * refs are stored in a fz_hash_table structure using a hash of the md5 sum of
* the data, enabling rapid lookup.
*/
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c
index c6582d25..94c8b61c 100644
--- a/platform/java/mupdf_native.c
+++ b/platform/java/mupdf_native.c
@@ -2515,7 +2515,7 @@ newNativeAndroidDrawDevice(JNIEnv *env, jobject self, fz_context *ctx, jobject o
clip.y1 -= pageY0;
/* pixmaps cannot handle right-edge padding, so the bbox must be expanded to
- * match the pixels data */
+ * match the pixel's data */
pixbbox = clip;
pixbbox.x1 = pixbbox.x0 + width;
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.
*/
/*