Browse Source

Fix some typos (found by codespell)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Stefan Weil 9 years ago
parent
commit
076322dd10

+ 4 - 4
CHANGELOG-OLD

@@ -1,5 +1,5 @@
 v0.11.0 rc2:
 v0.11.0 rc2:
-* #354: Propper handling of directly embedded grayscale jpeg images
+* #354: Proper handling of directly embedded grayscale jpeg images
 * #429: output filenames interperted as latin1 instead of utf8
 * #429: output filenames interperted as latin1 instead of utf8
 * #441: Gif images do not work
 * #441: Gif images do not work
 * #463: Null byte in anchor name
 * #463: Null byte in anchor name
@@ -119,7 +119,7 @@ v0.9.1
 * Fixed up man page
 * Fixed up man page
 * #140: --disable-javascript shod not affect --header-html
 * #140: --disable-javascript shod not affect --header-html
 * #142: We now wait for --redirect-delay microseconds before printing a page,
 * #142: We now wait for --redirect-delay microseconds before printing a page,
-  allowing for javascript redirects to occure, or dynamic content to be
+  allowing for javascript redirects to occur, or dynamic content to be
   generated. However if a window.print() javascript statement is executed
   generated. However if a window.print() javascript statement is executed
   we wait no longer.
   we wait no longer.
 * #147: Detect if --header-html is html
 * #147: Detect if --header-html is html
@@ -130,7 +130,7 @@ v0.9.1
 v0.9.0
 v0.9.0
 * Complete code rewrite.
 * Complete code rewrite.
 * Add support for HTML headers and footers.
 * Add support for HTML headers and footers.
-* Do not exit 0 when a 404 has occured
+* Do not exit 0 when a 404 has occurred
 * Added a manual/readme
 * Added a manual/readme
 * Added an installer under windows
 * Added an installer under windows
 * #47: Give better error message if destination is not writeble
 * #47: Give better error message if destination is not writeble
@@ -151,7 +151,7 @@ v0.9.0
 * Make static build work with older versions of libc
 * Make static build work with older versions of libc
 * Much more that I have now forgotten.
 * Much more that I have now forgotten.
 * Add support for custom page sizes
 * Add support for custom page sizes
-* Upgrade to qt4.6 fixing issues with not beeing able to copy text in acroread
+* Upgrade to qt4.6 fixing issues with not being able to copy text in acroread
 * Upgrade to qt4.6 fixing issues with only one font family working.
 * Upgrade to qt4.6 fixing issues with only one font family working.
 
 
 v0.8.3
 v0.8.3

+ 1 - 1
Doxyfile

@@ -281,7 +281,7 @@ TYPEDEF_HIDES_STRUCT   = NO
 # causing a significant performance penality.
 # causing a significant performance penality.
 # If the system has enough physical memory increasing the cache will improve the
 # If the system has enough physical memory increasing the cache will improve the
 # performance by keeping more symbols in memory. Note that the value works on
 # performance by keeping more symbols in memory. Note that the value works on
-# a logarithmic scale so increasing the size by one will rougly double the
+# a logarithmic scale so increasing the size by one will roughly double the
 # memory usage. The cache size is given by this formula:
 # memory usage. The cache size is given by this formula:
 # 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
 # 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0,
 # corresponding to a cache size of 2^16 = 65536 symbols
 # corresponding to a cache size of 2^16 = 65536 symbols

+ 1 - 1
INSTALL.md

@@ -50,7 +50,7 @@ CentOS 7       | `sudo scripts/build.py setup-schroot-centos7` | not available
 MinGW-w64      | `sudo scripts/build.py setup-mingw-w64`       | `scripts/build.py mingw-w64-cross-win32` | `scripts/build.py mingw-w64-cross-win64`
 MinGW-w64      | `sudo scripts/build.py setup-mingw-w64`       | `scripts/build.py mingw-w64-cross-win32` | `scripts/build.py mingw-w64-cross-win64`
 
 
 The MinGW-w64 toolchain can cross-compile 32/64-bit Windows binaries from
 The MinGW-w64 toolchain can cross-compile 32/64-bit Windows binaries from
-Linux -- it is useful for targetting Windows XP/Windows 2003, which are not
+Linux -- it is useful for targeting Windows XP/Windows 2003, which are not
 supported by default when compiling with MSVC 2013. You may require a
 supported by default when compiling with MSVC 2013. You may require a
 working internet connection during the build to download and compile
 working internet connection during the build to download and compile
 the dependent libraries (e.g. OpenSSL).
 the dependent libraries (e.g. OpenSSL).

+ 5 - 5
examples/image_c_api.c

@@ -36,7 +36,7 @@ void phase_changed(wkhtmltoimage_converter * c) {
 	printf("%s\n", wkhtmltoimage_phase_description(c, phase));
 	printf("%s\n", wkhtmltoimage_phase_description(c, phase));
 }
 }
 
 
-/* Print a message to stderr when an error occures */
+/* Print a message to stderr when an error occurs */
 void error(wkhtmltoimage_converter * c, const char * msg) {
 void error(wkhtmltoimage_converter * c, const char * msg) {
 	fprintf(stderr, "Error: %s\n", msg);
 	fprintf(stderr, "Error: %s\n", msg);
 }
 }
@@ -76,15 +76,15 @@ int main() {
 	/* Call the phase _changed function when the phase changes */
 	/* Call the phase _changed function when the phase changes */
 	wkhtmltoimage_set_phase_changed_callback(c, phase_changed);
 	wkhtmltoimage_set_phase_changed_callback(c, phase_changed);
 
 
-	/* Call the error function when an error occures */
+	/* Call the error function when an error occurs */
 	wkhtmltoimage_set_error_callback(c, error);
 	wkhtmltoimage_set_error_callback(c, error);
 
 
-	/* Call the waring function when a warning is issued */
+	/* Call the warning function when a warning is issued */
 	wkhtmltoimage_set_warning_callback(c, warning);
 	wkhtmltoimage_set_warning_callback(c, warning);
 
 
-	/* Perform the actual convertion */
+	/* Perform the actual conversion */
 	if (!wkhtmltoimage_convert(c))
 	if (!wkhtmltoimage_convert(c))
-		fprintf(stderr, "Convertion failed!");
+		fprintf(stderr, "Conversion failed!");
 
 
 	/* Output possible http error code encountered */
 	/* Output possible http error code encountered */
 	printf("httpErrorCode: %d\n", wkhtmltoimage_http_error_code(c));
 	printf("httpErrorCode: %d\n", wkhtmltoimage_http_error_code(c));

+ 4 - 4
examples/pdf_c_api.c

@@ -36,7 +36,7 @@ void phase_changed(wkhtmltopdf_converter * c) {
 	printf("%s\n", wkhtmltopdf_phase_description(c, phase));
 	printf("%s\n", wkhtmltopdf_phase_description(c, phase));
 }
 }
 
 
-/* Print a message to stderr when an error occures */
+/* Print a message to stderr when an error occurs */
 void error(wkhtmltopdf_converter * c, const char * msg) {
 void error(wkhtmltopdf_converter * c, const char * msg) {
 	fprintf(stderr, "Error: %s\n", msg);
 	fprintf(stderr, "Error: %s\n", msg);
 }
 }
@@ -83,7 +83,7 @@ int main() {
 	/* Call the phase _changed function when the phase changes */
 	/* Call the phase _changed function when the phase changes */
 	wkhtmltopdf_set_phase_changed_callback(c, phase_changed);
 	wkhtmltopdf_set_phase_changed_callback(c, phase_changed);
 
 
-	/* Call the error function when an error occures */
+	/* Call the error function when an error occurs */
 	wkhtmltopdf_set_error_callback(c, error);
 	wkhtmltopdf_set_error_callback(c, error);
 
 
 	/* Call the warning function when a warning is issued */
 	/* Call the warning function when a warning is issued */
@@ -96,9 +96,9 @@ int main() {
 	 */
 	 */
 	wkhtmltopdf_add_object(c, os, NULL);
 	wkhtmltopdf_add_object(c, os, NULL);
 
 
-	/* Perform the actual convertion */
+	/* Perform the actual conversion */
 	if (!wkhtmltopdf_convert(c))
 	if (!wkhtmltopdf_convert(c))
-		fprintf(stderr, "Convertion failed!");
+		fprintf(stderr, "Conversion failed!");
 
 
 	/* Output possible http error code encountered */
 	/* Output possible http error code encountered */
 	printf("httpErrorCode: %d\n", wkhtmltopdf_http_error_code(c));
 	printf("httpErrorCode: %d\n", wkhtmltopdf_http_error_code(c));

+ 1 - 1
include/wkhtmltox/pdfsettings.hh

@@ -155,7 +155,7 @@ struct DLL_PUBLIC HeaderFooter {
 	QString right;
 	QString right;
 	//! Text to render at the center
 	//! Text to render at the center
 	QString center;
 	QString center;
-	//! Should a line seperate the header/footer and the document
+	//! Should a line separate the header/footer and the document
 	bool line;
 	bool line;
 	//! Url of the document the html document that should be used as a header/footer
 	//! Url of the document the html document that should be used as a header/footer
 	QString htmlUrl;
 	QString htmlUrl;

+ 3 - 3
src/lib/multipageloader.cc

@@ -730,7 +730,7 @@ void MultiPageLoader::cancel() {
 /*!
 /*!
   \fn MultiPageLoader::loadFinished(bool ok)
   \fn MultiPageLoader::loadFinished(bool ok)
   \brief Signal emitted when all pages have been loaded
   \brief Signal emitted when all pages have been loaded
-  \param ok True if all the pages have been loaded sucessfully
+  \param ok True if all the pages have been loaded successfully
 */
 */
 
 
 /*!
 /*!
@@ -746,13 +746,13 @@ void MultiPageLoader::cancel() {
 
 
 /*!
 /*!
   \fn void MultiPageLoader::warning(QString text)
   \fn void MultiPageLoader::warning(QString text)
-  \brief Signal emitted when a none fatal warning has occured
+  \brief Signal emitted when a none fatal warning has occurred
   \param text A string describing the warning
   \param text A string describing the warning
 */
 */
 
 
 /*!
 /*!
   \fn void MultiPageLoader::error(QString text)
   \fn void MultiPageLoader::error(QString text)
-  \brief Signal emitted when a fatal error has occured
+  \brief Signal emitted when a fatal error has occurred
   \param text A string describing the error
   \param text A string describing the error
 */
 */
 }
 }

+ 1 - 1
src/lib/pdf_c_bindings.cc

@@ -76,7 +76,7 @@
  * - \b load.debugJavascript Forward javascript warnings and errors to the warning callback.
  * - \b load.debugJavascript Forward javascript warnings and errors to the warning callback.
  *      Must be either "true" or "false".
  *      Must be either "true" or "false".
  * - \b load.loadErrorHandling How should we handle obejcts that fail to load. Must be one of:
  * - \b load.loadErrorHandling How should we handle obejcts that fail to load. Must be one of:
- *      - "abort" Abort the convertion process
+ *      - "abort" Abort the conversion process
  *      - "skip" Do not add the object to the final output
  *      - "skip" Do not add the object to the final output
  *      - "ignore" Try to add the object to the final output.
  *      - "ignore" Try to add the object to the final output.
  * - \b load.proxy String describing what proxy to use when loading the object.
  * - \b load.proxy String describing what proxy to use when loading the object.

+ 1 - 1
src/lib/pdfsettings.hh

@@ -158,7 +158,7 @@ struct DLL_PUBLIC HeaderFooter {
 	QString right;
 	QString right;
 	//! Text to render at the center
 	//! Text to render at the center
 	QString center;
 	QString center;
-	//! Should a line seperate the header/footer and the document
+	//! Should a line separate the header/footer and the document
 	bool line;
 	bool line;
 	//! Url of the document the html document that should be used as a header/footer
 	//! Url of the document the html document that should be used as a header/footer
 	QString htmlUrl;
 	QString htmlUrl;

+ 1 - 1
src/lib/tempfile.cc

@@ -44,7 +44,7 @@ TempFile::~TempFile() {
 
 
 /*!
 /*!
   \brief Create a new temporary file
   \brief Create a new temporary file
-  \param ext The extention of the temporary file
+  \param ext The extension of the temporary file
   \returns Path of the new temporary file
   \returns Path of the new temporary file
 */
 */
 QString TempFile::create(const QString & ext) {
 QString TempFile::create(const QString & ext) {