[gs-commits] mupdf 1.16.1.30 Fix typos.
[email protected] (Sebastian Rasmussen)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 8d9cd7d7015f6a9dafd0f6ec7f8bccdf4430d162 Author: Sebastian Rasmussen <[email protected]> Date: Tue Sep 3 00:57:48 2019 +0200 Fix typos. diff --git a/docs/api/graphics.html b/docs/api/graphics.html index c11b920..e7f22ab 100644 --- a/docs/api/graphics.html +++ b/docs/api/graphics.html @@ -21,7 +21,7 @@ This module is a grab bag of various graphics related objects and functions. <h2>Colors</h2> <p> -Colors througout MuPDF are represented as a float vector associated with +Colors throughout MuPDF are represented as a float vector associated with a colorspace object. Colorspaces come in many variants, the most common of which are Gray, RGB, and CMYK. We also support Indexed (palette), L*a*b*, Separation, DeviceN, and ICC based colorspaces. diff --git a/include/mupdf/fitz/document.h b/include/mupdf/fitz/document.h index 5c350a4..379b5d6 100644 --- a/include/mupdf/fitz/document.h +++ b/include/mupdf/fitz/document.h @@ -241,7 +241,7 @@ struct fz_page_s /* Structure definition is public so other classes can - derive from it. Callers shoud not access the members + derive from it. Callers should not access the members directly, though implementations will need initialize functions directly. */ diff --git a/include/mupdf/helpers/mu-threads.h b/include/mupdf/helpers/mu-threads.h index 01da500..8fb8734 100644 --- a/include/mupdf/helpers/mu-threads.h +++ b/include/mupdf/helpers/mu-threads.h @@ -221,7 +221,7 @@ struct mu_mutex_s 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/include/mupdf/helpers/pkcs7-openssl.h b/include/mupdf/helpers/pkcs7-openssl.h index 6e236fd..2a94449 100644 --- a/include/mupdf/helpers/pkcs7-openssl.h +++ b/include/mupdf/helpers/pkcs7-openssl.h @@ -9,7 +9,7 @@ /* Check a signature's digest against ranges of bytes drawn from a stream */ enum pdf_signature_error pkcs7_openssl_check_digest(fz_context *ctx, fz_stream *stm, char *sig, int sig_len); -/* Check a singature's certificate is trusted */ +/* Check a signature's certificate is trusted */ enum pdf_signature_error pkcs7_openssl_check_certificate(char *sig, int sig_len); /* Obtain the designated name information from signature's certificate */ diff --git a/include/mupdf/pdf/crypt.h b/include/mupdf/pdf/crypt.h index ff4d642..78216d1 100644 --- a/include/mupdf/pdf/crypt.h +++ b/include/mupdf/pdf/crypt.h @@ -55,7 +55,7 @@ enum int pdf_document_permissions(fz_context *ctx, pdf_document *doc); -int pdf_signature_byte_range(fz_context *ctx, pdf_document *doc, pdf_obj *signtature, fz_range *byte_range); +int pdf_signature_byte_range(fz_context *ctx, pdf_document *doc, pdf_obj *signature, fz_range *byte_range); fz_stream *pdf_signature_hash_bytes(fz_context *ctx, pdf_document *doc, pdf_obj *signature); diff --git a/source/fitz/draw-blend.c b/source/fitz/draw-blend.c index 17c1fed..b795d91 100644 --- a/source/fitz/draw-blend.c +++ b/source/fitz/draw-blend.c @@ -30,7 +30,7 @@ The formula shown above is a simplification of the following formula: Ar * Cr = [(1-As)*Ab*Cb] + [(1-Ab)*As*Cs] + [Ab*As*B(Cb, Cs)] -At first glange this always appears to be a mistake to me, as it looks +At first glance this always appears to be a mistake to me, as it looks like they have make a mistake in the division. However, if we consider the result alpha equation: diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c index 3764fbe..b74978d 100644 --- a/source/fitz/draw-device.c +++ b/source/fitz/draw-device.c @@ -538,7 +538,7 @@ resolve_color(fz_context *ctx, } colorbv[i] = alpha * 255; - /* op && !devn => overpinting in cmyk or devicegray. */ + /* op && !devn => overprinting in cmyk or devicegray. */ if (op && !devn) { /* We are overprinting, so protect all spots. */ @@ -574,7 +574,7 @@ push_group_for_separations(fz_context *ctx, fz_draw_device *dev, fz_color_params dcs = oi; } - /* Not needed if dest has the seps, and we are not using a proof or the target is the same as the prooof and we don't have an oi or the target is the same as the oi */ + /* Not needed if dest has the seps, and we are not using a proof or the target is the same as the proof and we don't have an oi or the target is the same as the oi */ if ((clone == dev->stack[0].dest->seps) && (dev->proof_cs == NULL || dev->proof_cs == dev->stack[0].dest->colorspace) && (oi == NULL || oi == dev->stack[0].dest->colorspace)) { fz_drop_separations(ctx, clone); diff --git a/source/fitz/draw-path.c b/source/fitz/draw-path.c index 64906b7..370fe83 100644 --- a/source/fitz/draw-path.c +++ b/source/fitz/draw-path.c @@ -820,7 +820,7 @@ fz_stroke_closepath(fz_context *ctx, sctx *s) * As such, the following line should draw a linejoin between the closing segment of this * subpath (seg[0]->seg[1]) == (seg[0]->beg[0]) and the first segment of this subpath * (beg[0]->beg[1]). - * In cases where the line was already at an x,y infinitessimally close to s->beg[0], + * In cases where the line was already at an x,y infinitesimally close to s->beg[0], * fz_stroke_lineto may exit without doing any processing. This leaves seg[0]->seg[1] * pointing at the penultimate line segment. Thus this draws a linejoin between that * penultimate segment and the end segment. This is what we want. */ diff --git a/source/fitz/font.c b/source/fitz/font.c index 00c6e8f..a740a51 100644 --- a/source/fitz/font.c +++ b/source/fitz/font.c @@ -1602,7 +1602,7 @@ fz_prepare_t3_glyph(fz_context *ctx, fz_font *font, int gid) /* Avoid cycles in glyph content streams referring to the glyph itself. * Remember to restore the content stream below, regardless of exceptions - * or a sucessful run of the glyph. */ + * or a successful run of the glyph. */ font->t3procs[gid] = NULL; fz_try(ctx) @@ -1790,7 +1790,7 @@ fz_render_t3_glyph_direct(fz_context *ctx, fz_device *dev, fz_font *font, int gi /* Avoid cycles in glyph content streams referring to the glyph itself. * Remember to restore the content stream below, regardless of exceptions - * or a sucessful run of the glyph. */ + * or a successful run of the glyph. */ font->t3procs[gid] = NULL; fz_try(ctx) diff --git a/source/fitz/image.c b/source/fitz/image.c index 024f6f3..eb60aac 100644 --- a/source/fitz/image.c +++ b/source/fitz/image.c @@ -910,7 +910,7 @@ fz_new_image_from_pixmap(fz_context *ctx, fz_pixmap *pixmap, fz_image *mask) decode array is [0 1] (repeated n times, for n color components). colorkey: NULL, or a pointer to a colorkey array. The default - colorkey array is [0 255] (repeatd n times, for n color + colorkey array is [0 255] (repeated n times, for n color components). mask: NULL, or another image to use as a mask for this one. @@ -1036,7 +1036,7 @@ compressed_image_get_size(fz_context *ctx, fz_image *image) decode array is [0 1] (repeated n times, for n color components). colorkey: NULL, or a pointer to a colorkey array. The default - colorkey array is [0 255] (repeatd n times, for n color + colorkey array is [0 255] (repeated n times, for n color components). buffer: Buffer of compressed data and compression parameters. diff --git a/source/helpers/mu-threads/mu-threads.c b/source/helpers/mu-threads/mu-threads.c index 58c725a..f0bedf3 100644 --- a/source/helpers/mu-threads/mu-threads.c +++ b/source/helpers/mu-threads/mu-threads.c @@ -148,13 +148,13 @@ void mu_unlock_mutex(mu_mutex *mutex) 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. */ #include <string.h> -struct mu_sempahore +struct mu_semaphore { int count; pthread_mutex_t mutex; diff --git a/source/helpers/pkcs7/pkcs7-openssl.c b/source/helpers/pkcs7/pkcs7-openssl.c index 0f60e06..1a7fdb9 100644 --- a/source/helpers/pkcs7/pkcs7-openssl.c +++ b/source/helpers/pkcs7/pkcs7-openssl.c @@ -12,7 +12,7 @@ pkcs7_openssl_check_digest(fz_context *ctx, fz_stream *stm, char *sig, int sig_l return PDF_SIGNATURE_ERROR_UNKNOWN; } -/* Check a singature's certificate is trusted */ +/* Check a signature's certificate is trusted */ enum pdf_signature_error pkcs7_openssl_check_certificate(char *sig, int sig_len) { http://git.ghostscript.com/?p=mupdf.git;a=commit;h=8d9cd7d7015f6a9dafd0f6ec7f8bccdf4430d162 -- MuPDF library Artifex Software, Inc.