summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-06-14 02:08:28 +0200
committerSebastian Rasmussen <sebras@gmail.com>2016-06-14 02:10:24 +0200
commit9c9fe1a6e373ab174667314d5be29c6822894f54 (patch)
treed3649b24e3e7afee05c5cb71b4e25aff66a8c3a5 /include
parent4d7bf58d137d884e4eb0e81fd576031f069105cb (diff)
downloadmupdf-9c9fe1a6e373ab174667314d5be29c6822894f54.tar.xz
Fix typos in various parts of the code.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/config.h2
-rw-r--r--include/mupdf/fitz/context.h4
-rw-r--r--include/mupdf/fitz/device.h4
-rw-r--r--include/mupdf/fitz/display-list.h4
-rw-r--r--include/mupdf/fitz/link.h2
-rw-r--r--include/mupdf/fitz/math.h4
-rw-r--r--include/mupdf/fitz/string.h2
-rw-r--r--include/mupdf/fitz/util.h2
-rw-r--r--include/mupdf/pdf/annot.h2
-rw-r--r--include/mupdf/pdf/appearance.h2
-rw-r--r--include/mupdf/pdf/document.h2
-rw-r--r--include/mupdf/pdf/event.h8
-rw-r--r--include/mupdf/pdf/widget.h10
13 files changed, 24 insertions, 24 deletions
diff --git a/include/mupdf/fitz/config.h b/include/mupdf/fitz/config.h
index 69f38292..0c8830bc 100644
--- a/include/mupdf/fitz/config.h
+++ b/include/mupdf/fitz/config.h
@@ -5,7 +5,7 @@
/*
Choose which plotters we need.
By default we build the greyscale, RGB and CMYK plotters in,
- but omit the arbitraryall the plotters in. To avoid building
+ but omit the arbitrary plotters. To avoid building
plotters in that aren't needed, define the unwanted
FZ_PLOTTERS_... define to 0.
*/
diff --git a/include/mupdf/fitz/context.h b/include/mupdf/fitz/context.h
index 35c88c91..b0f3b8cd 100644
--- a/include/mupdf/fitz/context.h
+++ b/include/mupdf/fitz/context.h
@@ -219,7 +219,7 @@ void fz_set_user_context(fz_context *ctx, void *user);
void *fz_user_context(fz_context *ctx);
/*
- In order to tune MuPDFs behaviour, certain functions can
+ In order to tune MuPDF's behaviour, certain functions can
(optionally) be provided by callers.
*/
@@ -371,7 +371,7 @@ enum {
/*
Memory Allocation and Scavenging:
- All calls to MuPDFs allocator functions pass through to the
+ All calls to MuPDF's allocator functions pass through to the
underlying allocators passed in when the initial context is
created, after locks are taken (using the supplied locking function)
to ensure that only one thread at a time calls through.
diff --git a/include/mupdf/fitz/device.h b/include/mupdf/fitz/device.h
index d0a8f0ed..3a3dd416 100644
--- a/include/mupdf/fitz/device.h
+++ b/include/mupdf/fitz/device.h
@@ -13,7 +13,7 @@
/*
The different format handlers (pdf, xps etc) interpret pages to a
device. These devices can then process the stream of calls they
- recieve in various ways:
+ receive in various ways:
The trace device outputs debugging information for the calls.
The draw device will render them.
The list device stores them in a list to play back later.
@@ -228,7 +228,7 @@ typedef struct fz_cookie_s fz_cookie;
feedback or abort a job that takes a long time to finish. The
communication is unsynchronized without locking.
- abort: The appliation should set this field to 0 before
+ abort: The application should set this field to 0 before
calling fz_run_page to render a page. At any point when the
page is being rendered the application my set this field to 1
which will cause the rendering to finish soon. This field is
diff --git a/include/mupdf/fitz/display-list.h b/include/mupdf/fitz/display-list.h
index a7765245..3881aa28 100644
--- a/include/mupdf/fitz/display-list.h
+++ b/include/mupdf/fitz/display-list.h
@@ -17,7 +17,7 @@
structure in multi-threading where one thread parses the page
and another renders pages.
- Create a displaylist with fz_new_display_list, hand it over to
+ Create a display list with fz_new_display_list, hand it over to
fz_new_list_device to have it populated, and later replay the
list (once or many times) by calling fz_run_display_list. When
the list is no longer needed drop it with fz_drop_display_list.
@@ -36,7 +36,7 @@ fz_display_list *fz_new_display_list(fz_context *ctx);
fz_new_list_device: Create a rendering device for a display list.
When the device is rendering a page it will populate the
- display list with drawing commsnds (text, images, etc.). The
+ display list with drawing commands (text, images, etc.). The
display list can later be reused to render a page many times
without having to re-interpret the page from the document file
for each rendering. Once the device is no longer needed, free
diff --git a/include/mupdf/fitz/link.h b/include/mupdf/fitz/link.h
index 586a5aa2..47abe1b4 100644
--- a/include/mupdf/fitz/link.h
+++ b/include/mupdf/fitz/link.h
@@ -67,7 +67,7 @@ enum {
gotor.rb: The bottom right corner of the destination bounding
box. If fz_link_flag_r_is_zoom is set, then the r figure
- should actually be interpretted as a zoom ratio.
+ should actually be interpreted as a zoom ratio.
gotor.file_spec: If set, this destination should cause a new
file to be opened; this field holds a pointer to a remote
diff --git a/include/mupdf/fitz/math.h b/include/mupdf/fitz/math.h
index b7baede8..be054e81 100644
--- a/include/mupdf/fitz/math.h
+++ b/include/mupdf/fitz/math.h
@@ -112,7 +112,7 @@ struct fz_point_s
Rectangles are always axis-aligned with the X- and Y- axes.
The relationship between the coordinates are that x0 <= x1 and
- y0 <= y1 in all cases except for infinte rectangles. The area
+ y0 <= y1 in all cases except for infinite rectangles. The area
of a rectangle is defined as (x1 - x0) * (y1 - y0). If either
x0 > x1 or y0 > y1 is true for a given rectangle then it is
defined to be infinite.
@@ -122,7 +122,7 @@ struct fz_point_s
x0, y0: The top left corner.
- x1, y1: The botton right corner.
+ x1, y1: The bottom right corner.
*/
typedef struct fz_rect_s fz_rect;
struct fz_rect_s
diff --git a/include/mupdf/fitz/string.h b/include/mupdf/fitz/string.h
index 2af6ba93..7700b6c7 100644
--- a/include/mupdf/fitz/string.h
+++ b/include/mupdf/fitz/string.h
@@ -9,7 +9,7 @@
/*
fz_strsep: Given a pointer to a C string (or a pointer to NULL) break
- it at the first occurence of a delimiter char (from a given set).
+ it at the first occurrence of a delimiter char (from a given set).
stringp: Pointer to a C string pointer (or NULL). Updated on exit to
point to the first char of the string after the delimiter that was
diff --git a/include/mupdf/fitz/util.h b/include/mupdf/fitz/util.h
index ad8816c0..186907a3 100644
--- a/include/mupdf/fitz/util.h
+++ b/include/mupdf/fitz/util.h
@@ -42,7 +42,7 @@ fz_stext_page *fz_new_stext_page_from_display_list(fz_context *ctx, fz_display_l
/*
fz_new_buffer_from_stext_page: Convert structured text into plain text, cropped by the selection rectangle.
- Use fz_inifinite_rect to extract all the text on the page. If 'crlf' is true, lines are separated by '\r\n',
+ Use fz_infinite_rect to extract all the text on the page. If 'crlf' is true, lines are separated by '\r\n',
otherwise '\n'.
*/
fz_buffer *fz_new_buffer_from_stext_page(fz_context *ctx, fz_stext_page *text, const fz_rect *sel, int crlf);
diff --git a/include/mupdf/pdf/annot.h b/include/mupdf/pdf/annot.h
index 7daad6a0..c648370c 100644
--- a/include/mupdf/pdf/annot.h
+++ b/include/mupdf/pdf/annot.h
@@ -132,7 +132,7 @@ void pdf_set_free_text_details(fz_context *ctx, pdf_document *doc, pdf_annot *an
fz_annot_type pdf_annot_obj_type(fz_context *ctx, pdf_obj *obj);
/*
- pdf_poll_changed_annot: enumerate the changed annotations recoreded
+ pdf_poll_changed_annot: enumerate the changed annotations recorded
by a call to pdf_update_page.
*/
pdf_annot *pdf_poll_changed_annot(fz_context *ctx, pdf_document *idoc, pdf_page *page);
diff --git a/include/mupdf/pdf/appearance.h b/include/mupdf/pdf/appearance.h
index 5ea92c63..20d0b97d 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 annoations rectangle and contents.
+ annotation, basing it on the annotations 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 6248145e..9ddeec8d 100644
--- a/include/mupdf/pdf/document.h
+++ b/include/mupdf/pdf/document.h
@@ -378,7 +378,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 compatiblity.
+ in future, and should be zero-filled to allow forwards compatibility.
*/
struct pdf_write_options_s
{
diff --git a/include/mupdf/pdf/event.h b/include/mupdf/pdf/event.h
index dd714cb7..176ba71f 100644
--- a/include/mupdf/pdf/event.h
+++ b/include/mupdf/pdf/event.h
@@ -87,9 +87,9 @@ void pdf_set_doc_event_callback(fz_context *ctx, pdf_document *doc, pdf_doc_even
/*
pdf_alert_event: details of an alert event. In response the app should
- display an alert dialog with the bittons specified by "button_type_group".
+ display an alert dialog with the buttons specified by "button_type_group".
If "check_box_message" is non-NULL, a checkbox should be displayed in
- the lower-left corned along with the messsage.
+ the lower-left corned along with the message.
"finally_checked" and "button_pressed" should be set by the app
before returning from the callback. "finally_checked" need be set
@@ -138,7 +138,7 @@ enum
/*
pdf_access_alert_event: access the details of an alert event
The returned pointer and all the data referred to by the
- structire are owned by mupdf and need not be freed by the
+ structure are owned by mupdf and need not be freed by the
caller.
*/
pdf_alert_event *pdf_access_alert_event(fz_context *ctx, pdf_doc_event *event);
@@ -202,7 +202,7 @@ typedef struct
} pdf_mail_doc_event;
/*
- pdf_acccess_mail_doc_event: access the details of a mail-doc event.
+ pdf_access_mail_doc_event: access the details of a mail-doc event.
*/
pdf_mail_doc_event *pdf_access_mail_doc_event(fz_context *ctx, pdf_doc_event *event);
diff --git a/include/mupdf/pdf/widget.h b/include/mupdf/pdf/widget.h
index a4b5bd5e..c5ed339b 100644
--- a/include/mupdf/pdf/widget.h
+++ b/include/mupdf/pdf/widget.h
@@ -29,11 +29,11 @@ enum
*/
/*
- pdf_focused_widget: returns the currently focussed widget
+ pdf_focused_widget: returns the currently focused widget
- Widgets can become focussed as a result of passing in ui events.
- NULL is returned if there is no currently focussed widget. An
- app may wish to create a native representative of the focussed
+ Widgets can become focused as a result of passing in ui events.
+ NULL is returned if there is no currently focused widget. An
+ app may wish to create a native representative of the focused
widget, e.g., to collect the text for a text widget, rather than
routing key strokes through pdf_pass_event.
*/
@@ -110,7 +110,7 @@ int pdf_choice_widget_is_multiselect(fz_context *ctx, pdf_document *doc, pdf_wid
/*
pdf_choice_widget_value: get the value of a choice widget.
- Returns the number of options curently selected and fills in
+ Returns the number of options currently selected and fills in
the supplied array with their strings. Should first be called
with NULL as the array to find out how big the array need to
be. The filled in elements should not be freed by the caller.