summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-rw-r--r--platform/x11/pdfapp.c2
-rw-r--r--source/fitz/bidi-std.c20
-rw-r--r--source/fitz/bidi.c2
-rw-r--r--source/fitz/draw-affine.c2
-rw-r--r--source/fitz/ftoa.c4
-rw-r--r--source/fitz/harfbuzz.c2
-rw-r--r--source/fitz/image.c4
-rw-r--r--source/fitz/memento.c6
-rw-r--r--source/fitz/strtod.c2
-rw-r--r--source/fitz/strtof.c6
-rw-r--r--source/html/html-layout.c2
-rw-r--r--source/pdf/pdf-appearance.c4
-rw-r--r--source/pdf/pdf-device.c2
-rw-r--r--source/pdf/pdf-font.c2
-rw-r--r--source/pdf/pdf-form.c4
-rw-r--r--source/pdf/pdf-write.c2
-rw-r--r--source/pdf/pdf-xref.c2
-rw-r--r--source/tools/mudraw.c2
-rw-r--r--source/xps/xps-path.c2
m---------thirdparty/mujs0
33 files changed, 60 insertions, 60 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.
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c
index 9d1debbb..bc0f5e23 100644
--- a/platform/x11/pdfapp.c
+++ b/platform/x11/pdfapp.c
@@ -198,7 +198,7 @@ static void event_cb(fz_context *ctx, pdf_document *doc, pdf_doc_event *event, v
{
pdf_mail_doc_event *mail_doc = pdf_access_mail_doc_event(ctx, event);
- pdfapp_warn(app, "The document attmepted to mail the document%s%s%s%s%s%s%s%s (Not supported)",
+ pdfapp_warn(app, "The document attempted to mail the document%s%s%s%s%s%s%s%s (Not supported)",
mail_doc->to[0]?", To: ":"", mail_doc->to,
mail_doc->cc[0]?", Cc: ":"", mail_doc->cc,
mail_doc->bcc[0]?", Bcc: ":"", mail_doc->bcc,
diff --git a/source/fitz/bidi-std.c b/source/fitz/bidi-std.c
index 5d74d361..7315a88d 100644
--- a/source/fitz/bidi-std.c
+++ b/source/fitz/bidi-std.c
@@ -20,7 +20,7 @@
-----------
Sample Implementation of the Unicode Bidirectional Algorithm as it
- was revised by Revision 5 of the Uniode Technical Report # 9
+ was revised by Revision 5 of the Unicode Technical Report # 9
(1999-8-17)
Verified for changes to the algorithm up through Unicode 5.2.0 (2009).
@@ -44,7 +44,7 @@
in UAX#9 had been clarified.
To see this code running in an actual Windows program,
- download the free Unibook uitlity from http://unicode.org/unibook
+ download the free Unibook utility from http://unicode.org/unibook
The bidi demo is executed from the tools menu. It is build from
this source file.
@@ -131,7 +131,7 @@
3. Process the first paragraph by calling BidiParagraph. That
function changes B into BN and returns a length including the
paragraph separator. (The iteration over multiple paragraphs
- is left as excercise for the reader).
+ is left as exercise for the reader).
4. Assign directional types again, but now assign specific types
to whitespace characters.
@@ -152,7 +152,7 @@
reference implementation. Version 25 and its updates fix various
minor issues with the scaffolding used for demonstrating the
algorithm using pseudo-alphabets from the command line or dialog
- box. No changes to the implementation of the actual bidi algrithm
+ box. No changes to the implementation of the actual bidi algorithm
are made in any of the minor updates to version 25. Version 26
also makes no change to the actual algorithm but was verified
against the official BidiTest.txt file for Unicode 5.2.0.
@@ -535,7 +535,7 @@ int fz_bidi_resolve_explicit(fz_bidi_level level, fz_bidi_chartype dir, fz_bidi_
enum bidi_state // possible states
{
xa, // arabic letter
- xr, // right leter
+ xr, // right letter
xl, // left letter
ao, // arabic lett. foll by ON
@@ -625,7 +625,7 @@ const fz_bidi_action action_weak[][10] =
{
// N,.. L, R, AN, EN, AL, NSM, CS,..ES, ET,
/*xa*/ { xxx, xxx, xxx, xxx, xxA, xxR, xxR, xxN, xxN, xxN }, /* arabic letter */
-/*xr*/ { xxx, xxx, xxx, xxx, xxE, xxR, xxR, xxN, xxN, xIx }, /* right leter */
+/*xr*/ { xxx, xxx, xxx, xxx, xxE, xxR, xxR, xxN, xxN, xIx }, /* right letter */
/*xl*/ { xxx, xxx, xxx, xxx, xxL, xxR, xxL, xxN, xxN, xIx }, /* left letter */
/*ao*/ { xxx, xxx, xxx, xxx, xxA, xxR, xxN, xxN, xxN, xxN }, /* arabic lett. foll by ON */
@@ -667,7 +667,7 @@ fz_bidi_chartype get_resolved_type(fz_bidi_action action)
States can be of two kinds:
- Immediate Resolution State, where each input token
- is resolved as soon as it is seen. These states havve
+ is resolved as soon as it is seen. These states have
only single action codes (xxN) or the no-op (xxx)
for static input tokens.
- Deferred Resolution State, where input tokens either
@@ -796,7 +796,7 @@ void fz_bidi_resolve_weak(fz_context *ctx, fz_bidi_level baselevel, fz_bidi_char
set_deferred_run(pcls, cch_run, ich, cls_run);
}
-// === RESOLVE NEUTAL TYPES ==============================================
+// === RESOLVE NEUTRAL TYPES ==============================================
// action values
enum neutral_action
@@ -838,7 +838,7 @@ enum neutral_state
rn, // N preceded by right
ln, // N preceded by left
a, // AN preceded by left (the abbrev 'la' is used up above)
- na // N preceeded by a
+ na // N preceded by a
} ;
/*------------------------------------------------------------------------
@@ -958,7 +958,7 @@ void fz_bidi_resolve_neutrals(fz_bidi_level baselevel, fz_bidi_chartype *pcls, c
set_deferred_run(pcls, cch_run, ich, cls_run);
}
-// === RESOLVE IMPLLICIT =================================================
+// === RESOLVE IMPLICITLY =================================================
/*------------------------------------------------------------------------
Function: resolveImplicit
diff --git a/source/fitz/bidi.c b/source/fitz/bidi.c
index 1fda5656..7d3ca3a2 100644
--- a/source/fitz/bidi.c
+++ b/source/fitz/bidi.c
@@ -170,7 +170,7 @@ static fz_bidi_chartype class_from_ch_n(uint32_t ch)
return from_ch_ws;
}
-/* Split fragments into single scripts (or punctation + single script) */
+/* Split fragments into single scripts (or punctuation + single script) */
static void
split_at_script(const uint32_t *fragment,
size_t fragment_len,
diff --git a/source/fitz/draw-affine.c b/source/fitz/draw-affine.c
index e9d11dab..9fd82950 100644
--- a/source/fitz/draw-affine.c
+++ b/source/fitz/draw-affine.c
@@ -3249,7 +3249,7 @@ fz_paint_image_imp(fz_pixmap * restrict dst, const fz_irect *scissor, const fz_p
/* TODO: if (fb == 0 && fa == 1) call fz_paint_span */
/* Sometimes we can get an alpha only input to be
- * ploted. In this case treat it as a greyscale
+ * plotted. In this case treat it as a greyscale
* input. */
if (img->n == sa && color)
sa = 0;
diff --git a/source/fitz/ftoa.c b/source/fitz/ftoa.c
index 4ec492e9..a16a9346 100644
--- a/source/fitz/ftoa.c
+++ b/source/fitz/ftoa.c
@@ -1,7 +1,7 @@
#include "mupdf/fitz.h"
/*
- Convert IEEE single precison numbers into decimal ASCII strings, while
+ Convert IEEE single precision numbers into decimal ASCII strings, while
satisfying the following two properties:
1) Calling strtof or '(float) strtod' on the result must produce the
original float, independent of the rounding mode used by strtof/strtod.
@@ -166,7 +166,7 @@ static int
k_comp(int n)
{
/* Avoid ceil and floating point multiplication for better
- * performace and portability. Instead use the approximation
+ * performance and portability. Instead use the approximation
* log10(2) ~ 1233/(2^12). Tests show that this gives the correct
* result for all values of n in the range -500..500. */
int tmp = n + DIY_SIGNIFICAND_SIZE - 1;
diff --git a/source/fitz/harfbuzz.c b/source/fitz/harfbuzz.c
index 0200c887..9afd9e40 100644
--- a/source/fitz/harfbuzz.c
+++ b/source/fitz/harfbuzz.c
@@ -27,7 +27,7 @@
* harfbuzz instances.
*
* In order to ensure that allocations throughout mupdf
- * are done consistently, we get harfbuff to call our
+ * are done consistently, we get harfbuzz to call our
* own hb_malloc/realloc/calloc/free functions that
* call down to fz_malloc/realloc/calloc/free. These
* require context variables, so we get our hb_lock
diff --git a/source/fitz/image.c b/source/fitz/image.c
index b3f684a0..59d09bf1 100644
--- a/source/fitz/image.c
+++ b/source/fitz/image.c
@@ -997,7 +997,7 @@ fz_image_resolution(fz_image *image, int *xres, int *yres)
*yres = *xres;
}
- /* Scale xres and yres up until we get beleivable values */
+ /* Scale xres and yres up until we get believable values */
if (*xres < SANE_DPI || *yres < SANE_DPI || *xres > INSANE_DPI || *yres > INSANE_DPI)
{
if (*xres == *yres)
@@ -1051,7 +1051,7 @@ display_list_image_get_pixmap(fz_context *ctx, fz_image *image_, fz_irect *subar
pix = fz_new_pixmap(ctx, image->super.colorspace, w, h, 0);
}
- /* If we render the displaylist into pix with the image matrix, we'll get a unit
+ /* If we render the display list into pix with the image matrix, we'll get a unit
* square result. Therefore scale by w, h. */
ctm = image->transform;
fz_pre_scale(&ctm, w, h);
diff --git a/source/fitz/memento.c b/source/fitz/memento.c
index abb9f427..5619786d 100644
--- a/source/fitz/memento.c
+++ b/source/fitz/memento.c
@@ -207,7 +207,7 @@ static const char *eventType[] =
/* When we list leaked blocks at the end of execution, we search for pointers
* between blocks in order to be able to give a nice nested view.
* Unfortunately, if you have are running your own allocator (such as
- * ghostscripts chunk allocator) you can often find that the header of the
+ * postscript's chunk allocator) you can often find that the header of the
* block always contains pointers to next or previous blocks. This tends to
* mean the nesting displayed is "uninteresting" at best :)
*
@@ -564,7 +564,7 @@ typedef struct MY_SYMBOL_INFO {
ULONG64 Reserved[2];
ULONG info;
ULONG Size;
- ULONG64 ModBase; // Base Address of module comtaining this symbol
+ ULONG64 ModBase; // Base Address of module containing this symbol
ULONG Flags;
ULONG64 Value; // Value of symbol, ValuePresent should be 1
ULONG64 Address; // Address of symbol including base address of module
@@ -1420,7 +1420,7 @@ void Memento_info(void *addr)
/* MacOSX has 10240, Ubuntu seems to have 256 */
#define OPEN_MAX 10240
-/* stashed_map[j] = i means that filedescriptor i-1 was duplicated to j */
+/* stashed_map[j] = i means that file descriptor i-1 was duplicated to j */
int stashed_map[OPEN_MAX];
static void Memento_signal(void)
diff --git a/source/fitz/strtod.c b/source/fitz/strtod.c
index 7ab30fb2..27489ecd 100644
--- a/source/fitz/strtod.c
+++ b/source/fitz/strtod.c
@@ -106,7 +106,7 @@ fz_strtod(const char *as, char **aas)
flag = 0; /* Fsign, Fesign, Fdpoint */
na = 0; /* number of digits of a[] */
dp = 0; /* na of decimal point */
- ex = 0; /* exonent */
+ ex = 0; /* exponent */
state = S0;
for(s=(char*)as;; s++) {
diff --git a/source/fitz/strtof.c b/source/fitz/strtof.c
index a6f2f983..2020dafe 100644
--- a/source/fitz/strtof.c
+++ b/source/fitz/strtof.c
@@ -23,7 +23,7 @@
4) Round x to a float using rounding mode 'to even'.
Step 1) is always lossless as the strtof_fp_t's significand can hold a 9-digit integer.
- In the case |dexp| <= 13 the cached power is exact and the algoritm returns
+ In the case |dexp| <= 13 the cached power is exact and the algorithm returns
the exactly rounded result (with rounding mode 'to even').
There is no double-rounding in 3), 4) as the multiply/divide uses 'round to odd'.
@@ -197,7 +197,7 @@ diy_to_float(strtof_fp_t x, int negative)
/* We have 2^32 - 2^8 = 0xffffff00. */
else if (x.e > -158)
{
- /* x is greator or equal to FLT_MAX. So we get a normalized number. */
+ /* x is greater or equal to FLT_MAX. So we get a normalized number. */
result = (uint32_t) (x.e + 158) << SP_SIGNIFICAND_SIZE;
result |= (x.f >> 8) & SP_SIGNIFICAND_MASK;
@@ -239,7 +239,7 @@ diy_to_float(strtof_fp_t x, int negative)
else if (x.e == -181 && x.f > 0x80000000)
{
/* x is in the range (0.5,1) * 2^-149 so it rounds to the smallest
- denormal. Cant't handle this in the previous case as shifting a
+ denormal. Can't handle this in the previous case as shifting a
uint32_t 32 bits to the right is undefined behaviour. */
result = 1;
}
diff --git a/source/html/html-layout.c b/source/html/html-layout.c
index 93f1905b..5fc6e321 100644
--- a/source/html/html-layout.c
+++ b/source/html/html-layout.c
@@ -269,7 +269,7 @@ static const char *pairbrk[29] =
"%^^%%%^^^__%%%_%%%__^^^______", /* CM combining mark */
"%^^%%%^^^%%%%%%%%%%%^^^%%%%%%", /* WJ word joiner */
"_^^%%%^^^_%____%%%__^^^___%%_", /* H2 hangul leading/vowel syllable */
- "_^^%%%^^^_%____%%%__^^^____%_", /* H3 hangul leading/voewl/trailing syllable */
+ "_^^%%%^^^_%____%%%__^^^____%_", /* H3 hangul leading/vowel/trailing syllable */
"_^^%%%^^^_%____%%%__^^^%%%%__", /* JL hangul leading jamo */
"_^^%%%^^^_%____%%%__^^^___%%_", /* JV hangul vowel jamo */
"_^^%%%^^^_%____%%%__^^^____%_", /* JT hangul trailing jamo */
diff --git a/source/pdf/pdf-appearance.c b/source/pdf/pdf-appearance.c
index 122f36ac..04a4bc75 100644
--- a/source/pdf/pdf-appearance.c
+++ b/source/pdf/pdf-appearance.c
@@ -860,7 +860,7 @@ static char *to_font_encoding(fz_context *ctx, pdf_font_desc *font, char *utf8)
int i;
int needs_converting = 0;
- /* Temporay partial solution. We are using a slow lookup in the conversion
+ /* Temporary partial solution. We are using a slow lookup in the conversion
* below, so we avoid performing the conversion unnecessarily. We check for
* top-bit-set chars, and convert only if they are present. We should also
* check that the font encoding is one that agrees with utf8 from 0 to 7f,
@@ -2012,7 +2012,7 @@ static fz_text *fit_text(fz_context *ctx, font_info *font_rec, char *str, fz_rec
}
/* Post process text with the scale determined by the splitter
- * and with the required offst */
+ * and with the required offset */
for (span = text->head; span; span = span->next)
{
fz_pre_scale(&span->trm, splitter.scale, splitter.scale);
diff --git a/source/pdf/pdf-device.c b/source/pdf/pdf-device.c
index 7ece963d..5c243e8f 100644
--- a/source/pdf/pdf-device.c
+++ b/source/pdf/pdf-device.c
@@ -386,7 +386,7 @@ pdf_dev_font(fz_context *ctx, pdf_device *pdev, fz_font *font)
if (font->t3procs)
fz_throw(ctx, FZ_ERROR_GENERIC, "pdf device does not support type 3 fonts");
if (font->ft_substitute)
- fz_throw(ctx, FZ_ERROR_GENERIC, "pdf device does not support substitute fnots");
+ fz_throw(ctx, FZ_ERROR_GENERIC, "pdf device does not support substitute fonts");
if (!pdf_font_writing_supported(font))
fz_throw(ctx, FZ_ERROR_GENERIC, "pdf device does not support font types found in this file");
diff --git a/source/pdf/pdf-font.c b/source/pdf/pdf-font.c
index 02af35b7..574519fd 100644
--- a/source/pdf/pdf-font.c
+++ b/source/pdf/pdf-font.c
@@ -1820,7 +1820,7 @@ pdf_add_to_unicode(fz_context *ctx, pdf_document *doc, fz_font *font)
fz_buffer_printf(ctx, buf, "endcodespacerange\n");
/* Note to have a valid CMap, the number of entries in table set can
- * not exceed 100, so we have to break into multipe tables. Also, note
+ * not exceed 100, so we have to break into multiple tables. Also, note
* that to reduce the file size we should be looking for sequential
* ranges. Per Adobe technical note #5411, we can't have a range
* cross a boundary where the high order byte changes */
diff --git a/source/pdf/pdf-form.c b/source/pdf/pdf-form.c
index 01efd818..928742ad 100644
--- a/source/pdf/pdf-form.c
+++ b/source/pdf/pdf-form.c
@@ -127,7 +127,7 @@ pdf_obj *pdf_lookup_field(fz_context *ctx, pdf_obj *form, char *name)
static void reset_field(fz_context *ctx, pdf_document *doc, pdf_obj *field)
{
- /* Set V to DV whereever DV is present, and delete V where DV is not.
+ /* Set V to DV wherever DV is present, and delete V where DV is not.
* FIXME: we assume for now that V has not been set unequal
* to DV higher in the hierarchy than "field".
*
@@ -627,7 +627,7 @@ int pdf_pass_event(fz_context *ctx, pdf_document *doc, pdf_page *page, pdf_ui_ev
hp->gen = pdf_to_gen(ctx, annot->obj);
hp->state = HOTSPOT_POINTER_DOWN;
changed = 1;
- /* Exectute the down and focus actions */
+ /* Execute the down and focus actions */
execute_additional_action(ctx, doc, annot->obj, "AA/Fo");
execute_additional_action(ctx, doc, annot->obj, "AA/D");
}
diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c
index 34e831d1..cadb9f82 100644
--- a/source/pdf/pdf-write.c
+++ b/source/pdf/pdf-write.c
@@ -1197,7 +1197,7 @@ add_linearization_objs(fz_context *ctx, pdf_document *doc, pdf_write_state *opts
/* FIXME: Do we have named destinations? Do a E entry */
/* FIXME: Do we have interactive forms? Do a V entry */
/* FIXME: Do we have document information? Do an I entry */
- /* FIXME: Do we have logical structure heirarchy? Do a C entry */
+ /* FIXME: Do we have logical structure hierarchy? Do a C entry */
/* FIXME: Do L, Page Label hint table */
pdf_dict_put_drop(ctx, hint_obj, PDF_NAME_Filter, PDF_NAME_FlateDecode);
opts->hints_length = pdf_new_int(ctx, doc, INT_MIN);
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c
index e6f39cfe..f6f4c292 100644
--- a/source/pdf/pdf-xref.c
+++ b/source/pdf/pdf-xref.c
@@ -2289,7 +2289,7 @@ pdf_page_presentation(fz_context *ctx, pdf_page *page, float *duration)
The functions are split across two files to allow calls to a
version of the constructor that does not link in the interpreter.
The interpreter references the built-in font and cmap resources
- which are quite big. Not linking those into the mubusy binary
+ which are quite big. Not linking those into the mutool binary
saves roughly 6MB of space.
*/
diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c
index 2773d357..e1259db2 100644
--- a/source/tools/mudraw.c
+++ b/source/tools/mudraw.c
@@ -158,7 +158,7 @@ static const format_cs_table_t format_cs_table[] =
Neither ios nor OSX supports unnamed semaphores.
Named semaphores are a pain to use, so we implement
- our own sempahores using condition variables and
+ our own semaphores using condition variables and
mutexes.
*/
diff --git a/source/xps/xps-path.c b/source/xps/xps-path.c
index 81545720..250c4206 100644
--- a/source/xps/xps-path.c
+++ b/source/xps/xps-path.c
@@ -90,7 +90,7 @@ angle_between(const fz_point u, const fz_point v)
}
/*
- Some explaination of the parameters here is warranted. See:
+ Some explanation of the parameters here is warranted. See:
http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes
diff --git a/thirdparty/mujs b/thirdparty/mujs
-Subproject 066a06741cfc3f9dba4e01b38d67d79d700cae8
+Subproject c596dd58c3ccb85a3b1ce75512975d6f38133cd