cpp/poppler-document.cpp | 2 +- cpp/poppler-global.cpp | 2 +- glib/poppler-document.cc | 8 ++++---- glib/poppler-document.h | 2 +- glib/poppler-form-field.cc | 2 +- glib/poppler-page.cc | 4 ++-- glib/poppler-page.h | 6 +++--- glib/poppler-structure-element.cc | 4 ++-- poppler/Annot.cc | 6 +++--- poppler/Annot.h | 4 ++-- poppler/Array.h | 2 +- poppler/CachedFile.h | 2 +- poppler/CairoOutputDev.cc | 4 ++-- poppler/CairoRescaleBox.cc | 4 ++-- poppler/CharCodeToUnicode.cc | 2 +- poppler/Decrypt.cc | 4 ++-- poppler/FlateStream.cc | 4 ++-- poppler/Form.cc | 4 ++-- poppler/GfxFont.cc | 2 +- poppler/GfxState.h | 4 ++-- poppler/PDFDoc.cc | 2 +- poppler/SignatureHandler.cc | 2 +- poppler/SplashOutputDev.cc | 2 +- poppler/StructElement.cc | 2 +- poppler/StructTreeRoot.cc | 2 +- qt5/src/poppler-annotation.h | 4 ++-- qt5/src/poppler-form.h | 4 ++-- qt5/src/poppler-link.h | 8 ++++---- qt5/src/poppler-page.cc | 2 +- qt5/src/poppler-qt5.h | 6 +++--- splash/SplashClip.h | 2 +- test/perf-test.cc | 8 ++++---- utils/HtmlOutputDev.h | 2 +- utils/pdftohtml.cc | 2 +- 34 files changed, 60 insertions(+), 60 deletions(-)
New commits: commit 7477b71e5c4f2d3f4876c1c9cba3c937506bfdaa Author: Yuri Chornoivan <[email protected]> Date: Thu Dec 20 14:15:46 2018 +0200 Fix minor typos diff --git a/cpp/poppler-document.cpp b/cpp/poppler-document.cpp index 77fd24d6..6895ecb1 100644 --- a/cpp/poppler-document.cpp +++ b/cpp/poppler-document.cpp @@ -376,7 +376,7 @@ bool document::set_info_key(const std::string &key, const ustring &val) } /** - Gets the time_t value value of the specified \p key of the document + Gets the time_t value of the specified \p key of the document information. \returns the time_t value for the \p key diff --git a/cpp/poppler-global.cpp b/cpp/poppler-global.cpp index be78c0f8..4468d447 100644 --- a/cpp/poppler-global.cpp +++ b/cpp/poppler-global.cpp @@ -163,7 +163,7 @@ using namespace poppler; /** \var poppler::permission_enum poppler::perm_fill_forms - The permission to allow the the filling of interactive form fields + The permission to allow the filling of interactive form fields (including signature fields). \note this permission can be set even when the \ref poppler::perm_add_notes "perm_add_notes" diff --git a/glib/poppler-document.cc b/glib/poppler-document.cc index 7945c162..a9b4103d 100644 --- a/glib/poppler-document.cc +++ b/glib/poppler-document.cc @@ -1342,7 +1342,7 @@ poppler_document_set_modification_date (PopplerDocument *document, * Returns whether @document is linearized or not. Linearization of PDF * enables efficient incremental access of the PDF file in a network environment. * - * Return value: %TRUE if @document is linearized, %FALSE otherwhise + * Return value: %TRUE if @document is linearized, %FALSE otherwise * * Since: 0.16 **/ @@ -1409,7 +1409,7 @@ poppler_document_get_page_mode (PopplerDocument *document) * * Returns the flags specifying which operations are permitted when the document is opened. * - * Return value: a set of falgs from #PopplerPermissions enumeration + * Return value: a set of flags from #PopplerPermissions enumeration * * Since: 0.16 **/ @@ -2044,7 +2044,7 @@ poppler_index_iter_copy (PopplerIndexIter *iter) * { * do * { - * /<!-- -->* Get the the action and do something with it *<!-- -->/ + * /<!-- -->* Get the action and do something with it *<!-- -->/ * PopplerIndexIter *child = poppler_index_iter_get_child (iter); * if (child) * walk_index (child); @@ -2394,7 +2394,7 @@ poppler_fonts_iter_get_encoding (PopplerFontsIter *iter) * * Returns whether the font associated with @iter is embedded in the document * - * Returns: %TRUE if font is emebdded, %FALSE otherwise + * Returns: %TRUE if font is embedded, %FALSE otherwise */ gboolean poppler_fonts_iter_is_embedded (PopplerFontsIter *iter) diff --git a/glib/poppler-document.h b/glib/poppler-document.h index e1887975..ebf3a9e1 100644 --- a/glib/poppler-document.h +++ b/glib/poppler-document.h @@ -229,7 +229,7 @@ typedef enum * @POPPLER_PDF_SUBTYPE_CONF_G: Level G (external graphical content) (PDF/X) * @POPPLER_PDF_SUBTYPE_CONF_N: Level N (external ICC Profile) (PDF/X) * @POPPLER_PDF_SUBTYPE_CONF_P: Level P (ICC Profile) (PDF/X) - * @POPPLER_PDF_SUBTYPE_CONF_PG: Level PG (conjuction of P and G) (PDF/X) + * @POPPLER_PDF_SUBTYPE_CONF_PG: Level PG (conjunction of P and G) (PDF/X) * @POPPLER_PDF_SUBTYPE_CONF_U: Level U (Unicode) conformance (PDF/A) * @POPPLER_PDF_SUBTYPE_CONF_NONE: No conformance level available * diff --git a/glib/poppler-form-field.cc b/glib/poppler-form-field.cc index c22e2278..0507d4e8 100644 --- a/glib/poppler-form-field.cc +++ b/glib/poppler-form-field.cc @@ -24,7 +24,7 @@ /** * SECTION:poppler-form-field * @short_description: Form Field - * @title: PoppplerFormField + * @title: PopplerFormField */ typedef struct _PopplerFormFieldClass PopplerFormFieldClass; diff --git a/glib/poppler-page.cc b/glib/poppler-page.cc index ce824cdc..a635f398 100644 --- a/glib/poppler-page.cc +++ b/glib/poppler-page.cc @@ -875,7 +875,7 @@ poppler_page_get_text_for_area (PopplerPage *page, * @options: find options * * Finds @text in @page with the given #PopplerFindFlags options and - * returns a #GList of rectangles for each occurance of the text on the page. + * returns a #GList of rectangles for each occurrence of the text on the page. * The coordinates are in PDF points. * * Return value: (element-type PopplerRectangle) (transfer full): a #GList of #PopplerRectangle, @@ -940,7 +940,7 @@ poppler_page_find_text_with_options (PopplerPage *page, * @text: the text to search for (UTF-8 encoded) * * Finds @text in @page with the default options (%POPPLER_FIND_DEFAULT) and - * returns a #GList of rectangles for each occurance of the text on the page. + * returns a #GList of rectangles for each occurrence of the text on the page. * The coordinates are in PDF points. * * Return value: (element-type PopplerRectangle) (transfer full): a #GList of #PopplerRectangle, diff --git a/glib/poppler-page.h b/glib/poppler-page.h index 487b3656..f99f0920 100644 --- a/glib/poppler-page.h +++ b/glib/poppler-page.h @@ -243,7 +243,7 @@ void poppler_quadrilateral_free (PopplerQuadrilateral *quad) /** * PopplerColor: - * @red: the red componment of color + * @red: the red component of color * @green: the green component of color * @blue: the blue component of color * @@ -275,7 +275,7 @@ void poppler_color_free (PopplerColor *color); * @is_underlined: if text is underlined * @color: a #PopplerColor, the foreground color * @start_index: start position this text attributes apply - * @end_index: end position this text text attributes apply + * @end_index: end position this text attributes apply * * A #PopplerTextAttributes is used to describe text attributes of a range of text * @@ -335,7 +335,7 @@ void poppler_link_mapping_free (PopplerLinkMapping *mapping); * @type: the type of transtition * @alignment: the dimension in which the transition effect shall occur. * Only for #POPPLER_PAGE_TRANSITION_SPLIT and #POPPLER_PAGE_TRANSITION_BLINDS transition types - * @direction: the direccion of motion for the transition effect. + * @direction: the direction of motion for the transition effect. * Only for #POPPLER_PAGE_TRANSITION_SPLIT, #POPPLER_PAGE_TRANSITION_BOX and #POPPLER_PAGE_TRANSITION_FLY * transition types * @duration: the duration of the transition effect diff --git a/glib/poppler-structure-element.cc b/glib/poppler-structure-element.cc index 0e71285f..094ef408 100644 --- a/glib/poppler-structure-element.cc +++ b/glib/poppler-structure-element.cc @@ -562,7 +562,7 @@ poppler_structure_element_get_title (PopplerStructureElement *poppler_structure_ } /** - * popppler_structure_element_get_abbreviation: + * poppler_structure_element_get_abbreviation: * @poppler_structure_element: A #PopplerStructureElement * * Acronyms and abbreviations contained in elements of type @@ -1133,7 +1133,7 @@ poppler_text_span_get_font_name (PopplerTextSpan *poppler_text_span) * </programlisting></informalexample> * * Return value: (transfer full) (array length=n_text_spans) (element-type PopplerTextSpan): - * An array of #PopplerTextSpan elments. + * An array of #PopplerTextSpan elements. * * Since: 0.26 */ diff --git a/poppler/Annot.cc b/poppler/Annot.cc index 3eb82675..2e4770ab 100644 --- a/poppler/Annot.cc +++ b/poppler/Annot.cc @@ -587,7 +587,7 @@ AnnotBorderBS::AnnotBorderBS(Dict *dict) { // acroread 8 seems to need both W and S entries for // any border to be drawn, even though the spec // doesn't claim anything of that sort. We follow - // that behaviour by veryifying both entries exist + // that behaviour by verifying both entries exist // otherwise we set the borderWidth to 0 // --jrmuizel obj1 = dict->lookup("W"); @@ -2811,7 +2811,7 @@ void AnnotFreeText::generateFreeTextAppearance() GfxFont *font = nullptr; - // look for font name in default resources + // look for font name in the default resources Form *form = doc->getCatalog()->getForm(); // form is owned by catalog, no need to clean it up Object resourceObj; @@ -2842,7 +2842,7 @@ void AnnotFreeText::generateFreeTextAppearance() } } - // if fontname is not in in default resources, create a Helvetica fake font + // if fontname is not in the default resources, create a Helvetica fake font if (!font) { Dict *fontResDict = new Dict(xref); resourceObj = Object(fontResDict); diff --git a/poppler/Annot.h b/poppler/Annot.h index 87d1df03..4fbdcda4 100644 --- a/poppler/Annot.h +++ b/poppler/Annot.h @@ -832,7 +832,7 @@ public: protected: void removeReferencedObjects() override; - std::unique_ptr<GooString> label; // T (Default autor) + std::unique_ptr<GooString> label; // T (Default author) std::unique_ptr<AnnotPopup> popup; // Popup double opacity; // CA (Default 1.0) // RC @@ -840,7 +840,7 @@ protected: Ref inReplyTo; // IRT std::unique_ptr<GooString> subject; // Subj AnnotMarkupReplyType replyTo; // RT (Default R) - // this object is overrided by the custom intent fields defined in some + // this object is overridden by the custom intent fields defined in some // annotation types. //GooString *intent; // IT AnnotExternalDataType exData; // ExData diff --git a/poppler/Array.h b/poppler/Array.h index 0eb4e780..dfe7c75e 100644 --- a/poppler/Array.h +++ b/poppler/Array.h @@ -67,7 +67,7 @@ public: void remove(int i); // Accessors. - Object get(int i, int resursion = 0) const; + Object get(int i, int recursion = 0) const; Object getNF(int i) const; bool getString(int i, GooString *string) const; diff --git a/poppler/CachedFile.h b/poppler/CachedFile.h index 2a8eb7c5..665744c6 100644 --- a/poppler/CachedFile.h +++ b/poppler/CachedFile.h @@ -140,7 +140,7 @@ public: // The caller is responsible for deleting uri and cachedFile. virtual size_t init(GooString *uri, CachedFile *cachedFile) = 0; - // Loads speficified byte ranges and passes it to the writer to store them. + // Loads specified byte ranges and passes it to the writer to store them. // Returns 0 on success, Anything but 0 on failure. // The caller is responsible for deleting the writer. virtual int load(const std::vector<ByteRange> &ranges, CachedFileWriter *writer) = 0; diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc index e6b0426a..02a6f262 100644 --- a/poppler/CairoOutputDev.cc +++ b/poppler/CairoOutputDev.cc @@ -1925,7 +1925,7 @@ void CairoOutputDev::getScaledSize(const cairo_matrix_t *matrix, else get_singular_values (matrix, &yScale, &xScale); - int tx, tx2, ty, ty2; /* the integer co-oridinates of the resulting image */ + int tx, tx2, ty, ty2; /* the integer co-ordinates of the resulting image */ if (xScale >= 0) { tx = splashRound(matrix->x0 - 0.01); tx2 = splashRound(matrix->x0 + xScale + 0.01) - 1; @@ -2242,7 +2242,7 @@ void CairoOutputDev::drawImageMaskPrescaled(GfxState *state, Object *ref, Stream /* this whole computation should be factored out */ double xScale = matrix.xx; double yScale = matrix.yy; - int tx, tx2, ty, ty2; /* the integer co-oridinates of the resulting image */ + int tx, tx2, ty, ty2; /* the integer co-ordinates of the resulting image */ int scaledHeight; int scaledWidth; if (xScale >= 0) { diff --git a/poppler/CairoRescaleBox.cc b/poppler/CairoRescaleBox.cc index d59eefd8..7f375a87 100644 --- a/poppler/CairoRescaleBox.cc +++ b/poppler/CairoRescaleBox.cc @@ -77,7 +77,7 @@ static void downsample_row_box_filter ( box size is constant - value = a * contribtion_a * 1/box_size + b * contribution_b * 1/box_size + value = a * contribution_a * 1/box_size + b * contribution_b * 1/box_size contribution_b = (1 - contribution_a) = (1 - contribution_a_next) */ @@ -254,7 +254,7 @@ static int compute_coverage (int coverage[], int src_length, int dest_length) /* compute how much the right-most pixel contributes */ overage = ratio*(right_fract); - /* the remainder is the the amount that the left-most pixel + /* the remainder is the amount that the left-most pixel * contributes */ coverage[i] = (1<<24) - (count * ratio + overage); } diff --git a/poppler/CharCodeToUnicode.cc b/poppler/CharCodeToUnicode.cc index 89a42a6f..90d1baca 100644 --- a/poppler/CharCodeToUnicode.cc +++ b/poppler/CharCodeToUnicode.cc @@ -622,7 +622,7 @@ int CharCodeToUnicode::mapToCharCode(Unicode* u, CharCode *c, int usize) const { //for each entry in the sMap for (i=0; i<sMapLen; i++) { //if the entry's unicode length isn't the same are usize, the strings - // are obviously differents + // are obviously different if (sMap[i].len != usize) continue; //compare the string char by char for (j=0; j<sMap[i].len; j++) { diff --git a/poppler/Decrypt.cc b/poppler/Decrypt.cc index 01e7aadf..db66786c 100644 --- a/poppler/Decrypt.cc +++ b/poppler/Decrypt.cc @@ -1745,11 +1745,11 @@ static void revision6Hash(const GooString *inputPassword, unsigned char *K, cons |(uint64_t)BE16byteNumber[4] << 24 | (uint64_t)BE16byteNumber[5] << 16 |(uint64_t)BE16byteNumber[6] << 8 | (uint64_t)BE16byteNumber[7] ); uint64_t rem = N1 % 3 ; - // N2 conatains 0s in higer 4 bytes and 9th to 12 th bytes of BE16byteNumber in lower 4 bytes. + // N2 contains 0s in higher 4 bytes and 9th to 12 th bytes of BE16byteNumber in lower 4 bytes. N2 = ((uint64_t)BE16byteNumber[8] << 24 | (uint64_t)BE16byteNumber[9] << 16 |(uint64_t)BE16byteNumber[10] << 8 | (uint64_t)BE16byteNumber[11] ); rem = ((rem << 32 ) | N2) % 3 ; - // N3 conatains 0s in higer 4 bytes and 13th to 16th bytes of BE16byteNumber in lower 4 bytes. + // N3 contains 0s in higher 4 bytes and 13th to 16th bytes of BE16byteNumber in lower 4 bytes. N3 = ((uint64_t)BE16byteNumber[12] << 24 | (uint64_t)BE16byteNumber[13] << 16 |(uint64_t)BE16byteNumber[14] << 8 | (uint64_t)BE16byteNumber[15] ); rem = ((rem << 32 ) | N3) % 3 ; diff --git a/poppler/FlateStream.cc b/poppler/FlateStream.cc index dca20d63..20f828db 100644 --- a/poppler/FlateStream.cc +++ b/poppler/FlateStream.cc @@ -40,7 +40,7 @@ FlateStream::~FlateStream() { void FlateStream::reset() { //FIXME: what are the semantics of reset? - //i.e. how much intialization has to happen in the constructor? + //i.e. how much initialization has to happen in the constructor? /* reinitialize zlib */ inflateEnd(&d_stream); @@ -88,7 +88,7 @@ int FlateStream::fill_buffer() { return -1; } - /* set to the begining of out_buf */ + /* set to the beginning of out_buf */ d_stream.avail_out = sizeof(out_buf); d_stream.next_out = out_buf; out_pos = 0; diff --git a/poppler/Form.cc b/poppler/Form.cc index db4fd1c2..fc4ce88b 100644 --- a/poppler/Form.cc +++ b/poppler/Form.cc @@ -181,8 +181,8 @@ FormWidgetButton::FormWidgetButton (PDFDoc *docA, Object *aobj, unsigned num, Re type = formButton; onStr = nullptr; - // Find the name of the ON state in the AP dictionnary - // The reference say the Off state, if it existe, _must_ be stored in the AP dict under the name /Off + // Find the name of the ON state in the AP dictionary + // The reference say the Off state, if it exists, _must_ be stored in the AP dict under the name /Off // The "on" state may be stored under any other name Object obj1 = obj.dictLookup("AP"); if (obj1.isDict()) { diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc index 793a102d..cc538f8b 100644 --- a/poppler/GfxFont.cc +++ b/poppler/GfxFont.cc @@ -930,7 +930,7 @@ static bool testForNumericNames(Dict *fontDict, bool hex) { if (obj.getInt() > 5) numeric = false; } else if (obj.isName()) { - // All character names must sucessfully parse. + // All character names must successfully parse. if (!parseNumericName(obj.getName(), hex, nullptr)) numeric = false; } else { diff --git a/poppler/GfxState.h b/poppler/GfxState.h index 8986a838..4bfcd730 100644 --- a/poppler/GfxState.h +++ b/poppler/GfxState.h @@ -1376,9 +1376,9 @@ public: * When GfxState::getReusablePath() is invoked, the currently active * path is taken per reference and its coordinates can be re-edited. * - * A ReusablePathIterator is intented to reduce overhead when the same + * A ReusablePathIterator is intended to reduce overhead when the same * path type is used a lot of times, only with different coordinates. It - * allows just to update the coordinates (occuring in the same order as + * allows just to update the coordinates (occurring in the same order as * in the original path). */ class ReusablePathIterator { diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc index bb578f8a..351bd2ea 100644 --- a/poppler/PDFDoc.cc +++ b/poppler/PDFDoc.cc @@ -293,7 +293,7 @@ bool PDFDoc::setup(const GooString *ownerPassword, const GooString *userPassword if (catalog && !catalog->isOk()) { if (!wasReconstructed) { - // try one more time to contruct the Catalog, maybe the problem is damaged XRef + // try one more time to construct the Catalog, maybe the problem is damaged XRef delete catalog; delete xref; xref = new XRef(str, 0, 0, nullptr, true); diff --git a/poppler/SignatureHandler.cc b/poppler/SignatureHandler.cc index 6c510229..116aab99 100644 --- a/poppler/SignatureHandler.cc +++ b/poppler/SignatureHandler.cc @@ -223,7 +223,7 @@ NSSCMSSignedData *SignatureHandler::CMS_SignedDataCreate(NSSCMSMessage * cms_msg // tempCerts field needs to be filled for complete memory release by NSSCMSSignedData_Destroy signedData->tempCerts = (CERTCertificate **) gmallocn( i+1, sizeof(CERTCertificate *)); memset(signedData->tempCerts, 0, (i+1) * sizeof(CERTCertificate *)); - // store the adresses of these temporary certificates for future release + // store the addresses of these temporary certificates for future release for (i = 0; signedData->rawCerts[i]; ++i) signedData->tempCerts[i] = CERT_NewTempCertificate(CERT_GetDefaultCertDB(), signedData->rawCerts[i], nullptr, 0, 0); diff --git a/poppler/SplashOutputDev.cc b/poppler/SplashOutputDev.cc index 35e535cd..3b850c8f 100644 --- a/poppler/SplashOutputDev.cc +++ b/poppler/SplashOutputDev.cc @@ -4638,7 +4638,7 @@ bool SplashOutputDev::tilingPatternFill(GfxState *state, Gfx *gfxA, Catalog *cat if (y1 - y0 > repeatY) repeatY = y1 - y0; } - // restore CTM and calculate rotate and scale with rounded matric + // restore CTM and calculate rotate and scale with rounded matrix state->setCTM(savedCTM[0], savedCTM[1], savedCTM[2], savedCTM[3], savedCTM[4], savedCTM[5]); state->concatCTM(mat[0], mat[1], mat[2], mat[3], mat[4], mat[5]); state->concatCTM(width * repeatX, 0, 0, height * repeatY, bbox[0], bbox[1]); diff --git a/poppler/StructElement.cc b/poppler/StructElement.cc index 62e5b2a9..d65abe74 100644 --- a/poppler/StructElement.cc +++ b/poppler/StructElement.cc @@ -733,7 +733,7 @@ void Attribute::setFormattedValue(const char *formattedA) bool Attribute::checkType(StructElement *element) { - // If an element is passed, tighther type-checking can be done. + // If an element is passed, tighter type-checking can be done. if (!element) return true; diff --git a/poppler/StructTreeRoot.cc b/poppler/StructTreeRoot.cc index 89503b86..d23ad4d3 100644 --- a/poppler/StructTreeRoot.cc +++ b/poppler/StructTreeRoot.cc @@ -47,7 +47,7 @@ void StructTreeRoot::parse(Dict *root) // ParentTree (optional). If present, it must be a number tree, // otherwise it is not possible to map stream objects to their - // corresponsing structure element. Here only the references are + // corresponding structure element. Here only the references are // loaded into the array, the pointers to the StructElements will // be filled-in later when parsing them. const Object parentTreeObj = root->lookup("ParentTree"); diff --git a/qt5/src/poppler-annotation.h b/qt5/src/poppler-annotation.h index e5463a6a..d0f7439c 100644 --- a/qt5/src/poppler-annotation.h +++ b/qt5/src/poppler-annotation.h @@ -357,7 +357,7 @@ class POPPLER_QT5_EXPORT Annotation QRectF geometry() const; // no default void setGeometry( const QRectF &geom ); - // window contens/override properties + // window contents/override properties QString title() const; // '' text in the titlebar (overrides author) void setTitle( const QString &title ); QString summary() const; // '' short description (displayed if not empty) @@ -609,7 +609,7 @@ class POPPLER_QT5_EXPORT GeomAnnotation : public Annotation /** * \short Text highlight annotation. * - * The higlight annotation represents some areas of text being "highlighted". + * The highlight annotation represents some areas of text being "highlighted". */ class POPPLER_QT5_EXPORT HighlightAnnotation : public Annotation { diff --git a/qt5/src/poppler-form.h b/qt5/src/poppler-form.h index ac28a4c6..6e715bb8 100644 --- a/qt5/src/poppler-form.h +++ b/qt5/src/poppler-form.h @@ -413,7 +413,7 @@ namespace Poppler { public: /** - The verfication result of the signature. + The verification result of the signature. */ enum SignatureStatus { SignatureValid, ///< The signature is cryptographically valid. @@ -493,7 +493,7 @@ namespace Poppler { QString reason() const; /** - The the hash algorithm used for the signature. + The hash algorithm used for the signature. \since 0.58 */ HashAlgorithm hashAlgorithm() const; diff --git a/qt5/src/poppler-link.h b/qt5/src/poppler-link.h index cfca8966..766124ac 100644 --- a/qt5/src/poppler-link.h +++ b/qt5/src/poppler-link.h @@ -74,9 +74,9 @@ class POPPLER_QT5_EXPORT LinkDestination { /** * The new viewport is specified in terms of: - * - possibile new left coordinate (see isChangeLeft() ) - * - possibile new top coordinate (see isChangeTop() ) - * - possibile new zoom level (see isChangeZoom() ) + * - possible new left coordinate (see isChangeLeft() ) + * - possible new top coordinate (see isChangeTop() ) + * - possible new zoom level (see isChangeZoom() ) */ destXYZ = 1, destFit = 2, @@ -223,7 +223,7 @@ class POPPLER_QT5_EXPORT Link QRectF linkArea() const; /** - * Get the next links to be activiated / executed after this link. + * Get the next links to be activated / executed after this link. * * \since 0.64 */ diff --git a/qt5/src/poppler-page.cc b/qt5/src/poppler-page.cc index eb713cdb..1e5e1ae2 100644 --- a/qt5/src/poppler-page.cc +++ b/qt5/src/poppler-page.cc @@ -221,7 +221,7 @@ Link* PageData::convertLinkActionToLink(::LinkAction * a, DocumentData *parentDo // copy link file const QString fileName = UnicodeParsedString( g->getFileName() ); const LinkDestinationData ldd( g->getDest(), g->getNamedDest(), parentDoc, !fileName.isEmpty() ); - // ceate link: fileName, namedDest, object pointer + // create link: fileName, namedDest, object pointer popplerLink = new LinkGoto( linkArea, fileName, LinkDestination( ldd ) ); } break; diff --git a/qt5/src/poppler-qt5.h b/qt5/src/poppler-qt5.h index 200119ef..4f06c47e 100644 --- a/qt5/src/poppler-qt5.h +++ b/qt5/src/poppler-qt5.h @@ -987,7 +987,7 @@ delete it; \section ownership Ownership of the returned objects All the functions that returns class pointers create new object, and the - responsability of those is given to the callee. + responsibility of those is given to the callee. The only exception is \link Poppler::Page::transition() Page::transition()\endlink. @@ -1025,7 +1025,7 @@ delete it; To know whether the %Poppler version you are using has support for color management, you can query Poppler::isCmsAvailable(). In case it is not - avilable, all the color management-related functions will either do nothing + available, all the color management-related functions will either do nothing or return null. */ class POPPLER_QT5_EXPORT Document { @@ -1546,7 +1546,7 @@ QString subject = m_doc->info("Subject"); /** Gets the table of contents (TOC) of the Document. - The caller is responsable for the returned object. + The caller is responsible for the returned object. In the tree the tag name is the 'screen' name of the entry. A tag can have attributes. Here follows the list of tag attributes with meaning: diff --git a/splash/SplashClip.h b/splash/SplashClip.h index a35edca6..ddc48974 100644 --- a/splash/SplashClip.h +++ b/splash/SplashClip.h @@ -66,7 +66,7 @@ public: SplashError clipToRect(SplashCoord x0, SplashCoord y0, SplashCoord x1, SplashCoord y1); - // Interesect the clip with <path>. + // Intersect the clip with <path>. SplashError clipToPath(SplashPath *path, SplashCoord *matrix, SplashCoord flatness, bool eo); diff --git a/test/perf-test.cc b/test/perf-test.cc index 83015e6a..a9573af1 100644 --- a/test/perf-test.cc +++ b/test/perf-test.cc @@ -8,7 +8,7 @@ TODO: * make it work with cairo output as well - * print more info about document like e.g. enumarate images, + * print more info about document like e.g. enumerate images, streams, compression, encryption, password-protection. Each should have a command-line arguments to turn it on/off * never over-write file given as -out argument (optionally, provide -force @@ -142,12 +142,12 @@ static int gResolutionX = 0; static int gResolutionY = 0; /* If NULL, we output the log info to stdout. If not NULL, should be a name of the file to which we output log info. - Controled by -out command-line argument. */ + Controlled by -out command-line argument. */ static char * gOutFileName = nullptr; -/* FILE * correspondig to gOutFileName or stdout if gOutFileName is NULL or +/* FILE * corresponding to gOutFileName or stdout if gOutFileName is NULL or was invalid name */ static FILE * gOutFile = nullptr; -/* FILE * correspondig to gOutFileName or stderr if gOutFileName is NULL or +/* FILE * corresponding to gOutFileName or stderr if gOutFileName is NULL or was invalid name */ static FILE * gErrFile = nullptr; diff --git a/utils/HtmlOutputDev.h b/utils/HtmlOutputDev.h index 631090e0..30a7f1d3 100644 --- a/utils/HtmlOutputDev.h +++ b/utils/HtmlOutputDev.h @@ -151,7 +151,7 @@ public: // Find a string. If <top> is true, starts looking at top of page; // otherwise starts looking at <xMin>,<yMin>. If <bottom> is true, // stops looking at bottom of page; otherwise stops looking at - // <xMax>,<yMax>. If found, sets the text bounding rectange and + // <xMax>,<yMax>. If found, sets the text bounding rectangle and // returns true; otherwise returns false. diff --git a/utils/pdftohtml.cc b/utils/pdftohtml.cc index 33f6219e..bbd98237 100644 --- a/utils/pdftohtml.cc +++ b/utils/pdftohtml.cc @@ -219,7 +219,7 @@ int main(int argc, char *argv[]) { if (errQuiet) { globalParams->setErrQuiet(errQuiet); - printCommands = false; // I'm not 100% what is the differecne between them + printCommands = false; // I'm not 100% what is the difference between them } if (textEncName[0]) { _______________________________________________ poppler mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/poppler
