aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2009-02-21 03:54:31 +0100
committerJay Berkenbilt <ejb@ql.org>2009-02-21 03:54:31 +0100
commit91cb7c0a585ccaf8eab389da9f7351534440ee56 (patch)
tree17acbf824a026228382ec1236e311199024a02b9 /libqpdf
parent0b2288c19d514e18449feb8f43fc1350a10241a1 (diff)
downloadqpdf-91cb7c0a585ccaf8eab389da9f7351534440ee56.tar.zst
fix many typos in comments and strings
git-svn-id: svn+q:///qpdf/trunk@651 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf')
-rw-r--r--libqpdf/Pl_QPDFTokenizer.cc6
-rw-r--r--libqpdf/QPDF.cc2
-rw-r--r--libqpdf/QPDFObjectHandle.cc8
-rw-r--r--libqpdf/QPDFTokenizer.cc2
-rw-r--r--libqpdf/QPDFWriter.cc8
-rw-r--r--libqpdf/QPDF_Name.cc2
-rw-r--r--libqpdf/QPDF_linearization.cc2
-rw-r--r--libqpdf/QUtil.cc2
-rw-r--r--libqpdf/qpdf/MD5.hh2
-rw-r--r--libqpdf/qpdf/QPDF_Dictionary.hh2
10 files changed, 18 insertions, 18 deletions
diff --git a/libqpdf/Pl_QPDFTokenizer.cc b/libqpdf/Pl_QPDFTokenizer.cc
index 27b8c680..96328408 100644
--- a/libqpdf/Pl_QPDFTokenizer.cc
+++ b/libqpdf/Pl_QPDFTokenizer.cc
@@ -58,7 +58,7 @@ Pl_QPDFTokenizer::processChar(char ch)
{
if (this->pass_through)
{
- // We're not noramlizing anymore -- just write this without
+ // We're not normalizing anymore -- just write this without
// looking at it.
writeNext(&ch, 1);
return;
@@ -79,12 +79,12 @@ Pl_QPDFTokenizer::processChar(char ch)
{
// Uh oh.... we're not sophisticated enough to handle
// inline images safely. We'd have to to set up all the
- // filters and pipe the iamge data through it until the
+ // filters and pipe the image data through it until the
// filtered output was the right size for an image of the
// specified dimensions. Then we'd either have to write
// out raw image data or continue to write filtered data,
// resuming normalization when we get to the end.
- // Insetad, for now, we'll just turn off noramlization for
+ // Instead, for now, we'll just turn off normalization for
// the remainder of this stream.
this->pass_through = true;
if (this->unread_char)
diff --git a/libqpdf/QPDF.cc b/libqpdf/QPDF.cc
index a90cddc2..0fe738f4 100644
--- a/libqpdf/QPDF.cc
+++ b/libqpdf/QPDF.cc
@@ -465,7 +465,7 @@ QPDF::reconstruct_xref(QPDFExc& e)
// streams.
throw QPDFExc(this->file.getName() + ": unable to find trailer "
- "dictionary while recovering damanged file");
+ "dictionary while recovering damaged file");
}
// We could iterate through the objects looking for streams and
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc
index 1571c114..03ef2fe4 100644
--- a/libqpdf/QPDFObjectHandle.cc
+++ b/libqpdf/QPDFObjectHandle.cc
@@ -186,7 +186,7 @@ QPDFObjectHandle::getRealValue()
return dynamic_cast<QPDF_Real*>(obj.getPointer())->getVal();
}
-// Name acessors
+// Name accessors
std::string
QPDFObjectHandle::getName()
@@ -211,7 +211,7 @@ QPDFObjectHandle::getUTF8Value()
return dynamic_cast<QPDF_String*>(obj.getPointer())->getUTF8Val();
}
-// Array acessors
+// Array accessors
int
QPDFObjectHandle::getArrayNItems()
@@ -236,7 +236,7 @@ QPDFObjectHandle::setArrayItem(int n, QPDFObjectHandle const& item)
return dynamic_cast<QPDF_Array*>(obj.getPointer())->setItem(n, item);
}
-// Dictionary accesors
+// Dictionary accessors
bool
QPDFObjectHandle::hasKey(std::string const& key)
@@ -323,7 +323,7 @@ QPDFObjectHandle::getPageImages()
// value is null or an empty dictionary, you are supposed to walk
// up the page tree until you find a /Resources dictionary. As of
// this writing, I don't have any test files that use inherited
- // resources, and hand-generating one won't be a good test beacuse
+ // resources, and hand-generating one won't be a good test because
// any mistakes in my understanding would be present in both the
// code and the test file.
diff --git a/libqpdf/QPDFTokenizer.cc b/libqpdf/QPDFTokenizer.cc
index d1f3a4af..1d3d153f 100644
--- a/libqpdf/QPDFTokenizer.cc
+++ b/libqpdf/QPDFTokenizer.cc
@@ -259,7 +259,7 @@ QPDFTokenizer::presentCharacter(char ch)
{
if (strchr(" \t\n\v\f\r()<>[]{}/%", ch) != 0)
{
- // A C-loacle whitespace character or delimiter terminates
+ // A C-locale whitespace character or delimiter terminates
// token. It is important to unread the whitespace
// character even though it is ignored since it may be the
// newline after a stream keyword. Removing it here could
diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc
index 23d0d93e..9051f87a 100644
--- a/libqpdf/QPDFWriter.cc
+++ b/libqpdf/QPDFWriter.cc
@@ -160,7 +160,7 @@ QPDFWriter::setR3EncryptionParameters(
// None
// Only Document Assembly
// Only Form Field Fill-in or Signing
- // Comment AUthoring, Form Field Fill-in or Signing
+ // Comment Authoring, Form Field Fill-in or Signing
// General Editing, Comment and Form Field Authoring
// Allowed printing menu:
@@ -197,7 +197,7 @@ QPDFWriter::setR3EncryptionParameters(
switch (modify)
{
case r3m_none:
- clear.insert(11); // document essembly
+ clear.insert(11); // document assembly
case r3m_assembly:
clear.insert(9); // filling in form fields
@@ -226,7 +226,7 @@ QPDFWriter::setEncryptionParameters(
// PDF specification refers to bits with the low bit numbered 1.
// We have to convert this into a bit field.
- // Specification always requirse bits 1 and 2 to be cleared.
+ // Specification always requires bits 1 and 2 to be cleared.
bits_to_clear.insert(1);
bits_to_clear.insert(2);
@@ -754,7 +754,7 @@ QPDFWriter::unparseObject(QPDFObjectHandle object, int level,
{
// Don't filter if the stream is already compressed with
// FlateDecode. We don't want to make it worse by getting
- // rid of a predictor or otherwising messing with it. We
+ // rid of a predictor or otherwise messing with it. We
// should also avoid messing with anything that's
// compressed with a lossy compression scheme, but we
// don't support any of those right now.
diff --git a/libqpdf/QPDF_Name.cc b/libqpdf/QPDF_Name.cc
index 2dac795f..c640fe83 100644
--- a/libqpdf/QPDF_Name.cc
+++ b/libqpdf/QPDF_Name.cc
@@ -22,7 +22,7 @@ QPDF_Name::normalizeName(std::string const& name)
for (unsigned int i = 1; i < name.length(); ++i)
{
char ch = name[i];
- // Don't use locale/ctype here; follow PDF spec guidlines.
+ // Don't use locale/ctype here; follow PDF spec guidelines.
if (strchr("#()<>[]{}/%", ch) || (ch < 33) || (ch > 126))
{
sprintf(num, "#%02x", (unsigned char) ch);
diff --git a/libqpdf/QPDF_linearization.cc b/libqpdf/QPDF_linearization.cc
index a649936c..9a1c7b05 100644
--- a/libqpdf/QPDF_linearization.cc
+++ b/libqpdf/QPDF_linearization.cc
@@ -2083,7 +2083,7 @@ QPDF::generateHintStream(std::map<int, QPDFXRefEntry> const& xref,
calculateHOutline(xref, lengths, obj_renumber);
// Write the hint stream itself into a compressed memory buffer.
- // Write through a couter so we can get offsets.
+ // Write through a counter so we can get offsets.
Pl_Buffer hint_stream("hint stream");
Pl_Flate f("compress hint stream", &hint_stream, Pl_Flate::a_deflate);
Pl_Count c("count", &f);
diff --git a/libqpdf/QUtil.cc b/libqpdf/QUtil.cc
index d6b503fb..0ffc6e26 100644
--- a/libqpdf/QUtil.cc
+++ b/libqpdf/QUtil.cc
@@ -152,7 +152,7 @@ QUtil::toUTF8(unsigned long uval)
// '0' for its (n+1)th highest bit where n is the total number of
// bytes required. Subsequent bytes start with '10' and have the
// remaining 6 bits free for encoding. For example, an 11-bit
- // unicode value can be stored in two bytes where the first is
+ // Unicode value can be stored in two bytes where the first is
// 110zzzzz, the second is 10zzzzzz, and the z's represent the
// remaining bits.
diff --git a/libqpdf/qpdf/MD5.hh b/libqpdf/qpdf/MD5.hh
index 4009bee3..eb0b9680 100644
--- a/libqpdf/qpdf/MD5.hh
+++ b/libqpdf/qpdf/MD5.hh
@@ -37,7 +37,7 @@ class MD5
// testing)
void print();
- // returns the digest as a hexademical string
+ // returns the digest as a hexadecimal string
std::string unparse();
// Convenience functions
diff --git a/libqpdf/qpdf/QPDF_Dictionary.hh b/libqpdf/qpdf/QPDF_Dictionary.hh
index 6a79fb69..b960050a 100644
--- a/libqpdf/qpdf/QPDF_Dictionary.hh
+++ b/libqpdf/qpdf/QPDF_Dictionary.hh
@@ -23,7 +23,7 @@ class QPDF_Dictionary: public QPDFObject
QPDFObjectHandle getKey(std::string const&);
std::set<std::string> getKeys();
- // Repalce value of key, adding it if it does not exist
+ // Replace value of key, adding it if it does not exist
void replaceKey(std::string const& key, QPDFObjectHandle const&);
// Remove key, doing nothing if key does not exist
void removeKey(std::string const& key);