Commit 7477b71e authored by Yuri Chornoivan's avatar Yuri Chornoivan

Fix minor typos

parent e676558a
......@@ -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
......
......@@ -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"
......
......@@ -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)
......
......@@ -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
*
......
......@@ -24,7 +24,7 @@
/**
* SECTION:poppler-form-field
* @short_description: Form Field
* @title: PoppplerFormField
* @title: PopplerFormField
*/
typedef struct _PopplerFormFieldClass PopplerFormFieldClass;
......
......@@ -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,
......
......@@ -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
......
......@@ -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
*/
......
......@@ -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);
......
......@@ -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
......
......@@ -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;
......
......@@ -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;
......
......@@ -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) {
......
......@@ -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);
}
......
......@@ -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++) {
......
......@@ -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 ;
......
......@@ -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;
......
......@@ -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()) {
......
......@@ -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 {
......
......@@ -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 {
......
......@@ -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);
......
......@@ -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);
......
......@@ -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]);
......
......@@ -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;
......
......@@ -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");
......
......@@ -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
{
......
......@@ -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;
......
......@@ -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
*/
......
......@@ -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;
......
......@@ -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:
......
......@@ -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);
......
......@@ -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;
......
......@@ -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.
......
......@@ -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]) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment