From 5ddbecb551e93d81177ef8558fdf0427a5109f96 Mon Sep 17 00:00:00 2001 From: Jakub Wilk Date: Tue, 13 Sep 2016 16:25:09 +0200 Subject: [PATCH] Fix typos --- Makefile | 2 +- cmaprsrc/README.txt | 2 +- pdfminer/converter.py | 2 +- pdfminer/pdftypes.py | 2 +- pdfminer/psparser.py | 2 +- tools/pdf2html.cgi | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 2783a0f..0ffd84f 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -## Makefile (for maintainance purpose) +## Makefile (for maintenance purpose) ## PACKAGE=pdfminer diff --git a/cmaprsrc/README.txt b/cmaprsrc/README.txt index 3cfb23e..a003127 100644 --- a/cmaprsrc/README.txt +++ b/cmaprsrc/README.txt @@ -5,7 +5,7 @@ to decode text data written in CJK (Chinese, Japanese, Korean) language. CMap resources are now available freely from Adobe web site: http://opensource.adobe.com/wiki/display/cmap/CMap+Resources -The follwing files were extracted from the downloadable tarballs: +The following files were extracted from the downloadable tarballs: cid2code_Adobe_CNS1.txt: http://download.macromedia.com/pub/opensource/cmap/cmapresources_cns1-6.tar.z diff --git a/pdfminer/converter.py b/pdfminer/converter.py index 28c2abf..30ceb22 100644 --- a/pdfminer/converter.py +++ b/pdfminer/converter.py @@ -185,7 +185,7 @@ class TextConverter(PDFConverter): return # Some dummy functions to save memory/CPU when all that is wanted - # is text. This stops all the image and drawing ouput from being + # is text. This stops all the image and drawing output from being # recorded and taking up RAM. def render_image(self, name, stream): if self.imagewriter is None: diff --git a/pdfminer/pdftypes.py b/pdfminer/pdftypes.py index 5eda1fe..20d981d 100644 --- a/pdfminer/pdftypes.py +++ b/pdfminer/pdftypes.py @@ -110,7 +110,7 @@ def decipher_all(decipher, objid, genno, x): return x -# Type cheking +# Type checking def int_value(x): x = resolve1(x) if not isinstance(x, int): diff --git a/pdfminer/psparser.py b/pdfminer/psparser.py index 825edcc..7270b45 100644 --- a/pdfminer/psparser.py +++ b/pdfminer/psparser.py @@ -247,7 +247,7 @@ class PSBaseParser(object): return (linepos, linebuf) def revreadlines(self): - """Fetches a next line backword. + """Fetches a next line backward. This is used to locate the trailers at the end of a file. """ diff --git a/tools/pdf2html.cgi b/tools/pdf2html.cgi index bfd591f..4ddba6d 100755 --- a/tools/pdf2html.cgi +++ b/tools/pdf2html.cgi @@ -197,7 +197,7 @@ class WebApp(object): convert(item.file, self.outfp, tmppath, pagenos=pagenos, codec=self.codec, maxpages=self.MAXPAGES, maxfilesize=self.MAXFILESIZE, html=html) except Exception, e: - self.put('

Sorry, an error has occured: %s' % q(repr(e))) + self.put('

Sorry, an error has occurred: %s' % q(repr(e))) self.logger.error('convert: %r: path=%r: %s' % (e, traceback.format_exc())) finally: try: