summaryrefslogtreecommitdiff
path: root/include/mupdf/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 /include/mupdf/fitz
parentf45ed2539978f86e9a7fe0185f8bbeec398fb087 (diff)
downloadmupdf-b1085c6816c093409c745a41567c8c3009917e27.tar.xz
Fix typos.
Diffstat (limited to 'include/mupdf/fitz')
-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
17 files changed, 44 insertions, 44 deletions
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.
*/