diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-07-31 16:03:58 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-08-10 14:09:46 +0200 |
commit | 61b9c24763ec367ba788937fc309d710120db5fd (patch) | |
tree | 3ea6408018b202f2f8936b9b9e0e853da0d5735a | |
parent | f5e7567f45e0d0e092d077e0c102cd7bd41ddf2a (diff) | |
download | mupdf-61b9c24763ec367ba788937fc309d710120db5fd.tar.xz |
The proper term is apparently 'filename extension', not 'suffix'.
-rw-r--r-- | docs/manual-mutool-run.html | 2 | ||||
-rw-r--r-- | include/mupdf/fitz/document.h | 2 | ||||
-rw-r--r-- | include/mupdf/fitz/string-util.h | 4 | ||||
-rw-r--r-- | include/mupdf/helpers/mu-office-lib.h | 2 | ||||
-rw-r--r-- | platform/gl/gl-annotate.c | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/docs/manual-mutool-run.html b/docs/manual-mutool-run.html index 4c7f395d..26964081 100644 --- a/docs/manual-mutool-run.html +++ b/docs/manual-mutool-run.html @@ -538,7 +538,7 @@ Document writer objects are used to create new documents in several formats. <dl> <dt>new DocumentWriter(filename, format, options) <dd>Create a new document writer to create a document with the specified format and output options. -If format is null it is inferred from the filename suffix. The options argument is a comma separated list +If format is null it is inferred from the filename extension. The options argument is a comma separated list of flags and key-value pairs. See below for more details. <dt>DocumentWriter#beginPage(mediabox) <dd>Begin rendering a new page. Returns a Device that can be used to render the page graphics. diff --git a/include/mupdf/fitz/document.h b/include/mupdf/fitz/document.h index f0d114ae..3e6ac1e9 100644 --- a/include/mupdf/fitz/document.h +++ b/include/mupdf/fitz/document.h @@ -309,7 +309,7 @@ void fz_register_document_handlers(fz_context *ctx); fz_recognize_document: Given a magic find a document handler that can handle a document of this type. - magic: Can be a file extension (including initial period) or + magic: Can be a filename extension (including initial period) or a mimetype. */ const fz_document_handler *fz_recognize_document(fz_context *ctx, const char *magic); diff --git a/include/mupdf/fitz/string-util.h b/include/mupdf/fitz/string-util.h index aad11b86..235bb060 100644 --- a/include/mupdf/fitz/string-util.h +++ b/include/mupdf/fitz/string-util.h @@ -80,8 +80,8 @@ char *fz_urldecode(char *url); fz_format_output_path: create output file name using a template. If the path contains %[0-9]*d, the first such pattern will be replaced with the page number. If the template does not contain such a pattern, the page - number will be inserted before the file suffix. If the template does not have - a file suffix, the page number will be added to the end. + number will be inserted before the filename extension. If the template does not have + a filename extension, the page number will be added to the end. */ void fz_format_output_path(fz_context *ctx, char *path, size_t size, const char *fmt, int page); diff --git a/include/mupdf/helpers/mu-office-lib.h b/include/mupdf/helpers/mu-office-lib.h index 759c892a..d2bff1ac 100644 --- a/include/mupdf/helpers/mu-office-lib.h +++ b/include/mupdf/helpers/mu-office-lib.h @@ -270,7 +270,7 @@ void MuOfficeLib_destroy(MuOfficeLib *mu); MuOfficeDocType MuOfficeLib_getDocTypeFromFileExtension(const char *path); /** - * Return a list of file extensions supported by Mu Office library. + * Return a list of filename extensions supported by Mu Office library. * * @return comma-delimited list of extensions, without the leading ".". * The caller should free the returned pointer.. diff --git a/platform/gl/gl-annotate.c b/platform/gl/gl-annotate.c index 265ab673..1cfe4544 100644 --- a/platform/gl/gl-annotate.c +++ b/platform/gl/gl-annotate.c @@ -15,8 +15,8 @@ static pdf_write_options save_opts; static int pdf_filter(const char *fn) { - const char *suffix = strrchr(fn, '.'); - if (suffix && !fz_strcasecmp(suffix, ".pdf")) + const char *extension = strrchr(fn, '.'); + if (extension && !fz_strcasecmp(extension, ".pdf")) return 1; return 0; } |