diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 120f60d2..417d28e5 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -56,7 +56,7 @@ (``self.first_pass == True``), you can now track information that will be used to make decisions in the second pass. The notable example where this technique is used is implementing complex fields. Because the export methods are called - twice, some exporter extensions that perform lossly operations on the + twice, some exporter extensions that perform lossy operations on the document structure may need to ignore processing during the first pass. - The function signature of the ``get_hyperlink_tag`` has changed. It previously accepted a ``Hyperlink`` instance. Now it only accepts @@ -183,7 +183,7 @@ **0.4.00** - External images are now handled. This causes a backwards incompatible change - with all handers related to images. + with all handlers related to images. **0.3.23** diff --git a/README.rst b/README.rst index d99af8d7..aaafc3a5 100644 --- a/README.rst +++ b/README.rst @@ -9,7 +9,7 @@ PyDocX * `Installation `_ * `Documentation `_ * `Release Notes `_ -* `Github Page `_ +* `GitHub Page `_ * `Issue Tracking `_ PyDocX is a tool diff --git a/docs/Makefile b/docs/Makefile index 0908da1d..b9358670 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -34,7 +34,7 @@ help: @echo " epub to make an epub" @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" @echo " latexpdf to make LaTeX files and run them through pdflatex" - @echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx" + @echo " latexpdfja to make LaTeX files and run them through pdflatex/dvipdfmx" @echo " text to make text files" @echo " man to make manual pages" @echo " texinfo to make Texinfo files" @@ -118,7 +118,7 @@ latexpdf: latexpdfja: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex - @echo "Running LaTeX files through platex and dvipdfmx..." + @echo "Running LaTeX files through pdflatex and dvipdfmx..." $(MAKE) -C $(BUILDDIR)/latex all-pdf-ja @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." diff --git a/docs/enumerated_list_detection.rst b/docs/enumerated_list_detection.rst index 21ff6498..d2c35742 100644 --- a/docs/enumerated_list_detection.rst +++ b/docs/enumerated_list_detection.rst @@ -45,11 +45,11 @@ is automatic: Supported enumeration sequences ############################### -* arabic numberals: 1, 2, 3, ... +* arabic numerals: 1, 2, 3, ... * uppercase alphabet characters A, B, C, ..., Z, AA, AB, ... AZ, ... * lowercase alphabet characters a, b, c, ..., z, aa, ab, ... az, ... -* uppercase Roman numberals: I, II, III, IV, ... -* lowercase Roman numberals: i, ii, iii, iv, ... +* uppercase Roman numerals: I, II, III, IV, ... +* lowercase Roman numerals: i, ii, iii, iv, ... Supported enumeration patterns ############################## diff --git a/docs/plugins.rst b/docs/plugins.rst index 40069e74..c0149516 100644 --- a/docs/plugins.rst +++ b/docs/plugins.rst @@ -8,7 +8,7 @@ in the core library. If it's something that should exist, the PyDocX project is always open to new -contributions. Details of how to contibute +contributions. Details of how to contribute can be found in :doc:`/development`. For things that don't fit in the core diff --git a/docs/usage.rst b/docs/usage.rst index 7cf407ef..cae7faed 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -81,7 +81,7 @@ Currently Supported HTML elements * list styles * nested lists * list of tables - * list of pragraphs + * list of paragraphs * justification * images diff --git a/pydocx/export/html.py b/pydocx/export/html.py index 18e3ea53..785da63f 100644 --- a/pydocx/export/html.py +++ b/pydocx/export/html.py @@ -390,7 +390,7 @@ def export_listing_paragraph_property_indentation( if not left and not hanging: return style - # All the bellow left margin calculation is done because html ul/ol/li elements have + # All the below left margin calculation is done because html ul/ol/li elements have # their default indentations and we need to make sure that we migrate as near as # possible solution to html. margin_left = left @@ -428,7 +428,7 @@ def export_listing_paragraph_property_indentation( pass # Here as well, we remove the default hanging which word adds - # because
  • tag will provide it's own + # because
  • tag will provide its own hanging -= level_ind_hanging if margin_left: diff --git a/pydocx/export/numbering_span.py b/pydocx/export/numbering_span.py index 809ff672..dcb18823 100644 --- a/pydocx/export/numbering_span.py +++ b/pydocx/export/numbering_span.py @@ -26,7 +26,7 @@ def int_to_roman(i): ''' - Given any integer, return the roman numberal string. + Given any integer, return the roman numeral string. >>> int_to_roman(1) == 'I' True @@ -47,7 +47,7 @@ def int_to_roman(i): def roman_to_int(n): ''' - Given a roman numberal string, return the decimal equivalent. + Given a roman numeral string, return the decimal equivalent. >>> roman_to_int('I') 1 diff --git a/pydocx/util/zip.py b/pydocx/util/zip.py index 39f86361..2a29812d 100644 --- a/pydocx/util/zip.py +++ b/pydocx/util/zip.py @@ -30,7 +30,7 @@ def create_zip_archive(paths_to_data): that path specified by the key. Each path MUST NOT include an initial '/'. Each path MUST use '/' as a file - separator (this is requried by the zip specification). + separator (this is required by the zip specification). paths_to_data = { 'path/file.txt': 'hello', diff --git a/tests/export/test_xml.py b/tests/export/test_xml.py index 2ad17a88..f0110d67 100644 --- a/tests/export/test_xml.py +++ b/tests/export/test_xml.py @@ -461,7 +461,7 @@ def get_xml(self): return xml -class SeperateListsIntoParentListTestCase(TranslationTestCase): +class SeparateListsIntoParentListTestCase(TranslationTestCase): expected_output = '''
    1. diff --git a/tests/fixtures/table_with_multi_rowspan.html b/tests/fixtures/table_with_multi_rowspan.html index 8f7a8396..94b8fb51 100644 --- a/tests/fixtures/table_with_multi_rowspan.html +++ b/tests/fixtures/table_with_multi_rowspan.html @@ -1 +1 @@ -
      First sectionItem 1
      Item 2
      Second sectionItem 1
      Item 2
      Item 3
      Imte 4
      +
      First sectionItem 1
      Item 2
      Second sectionItem 1
      Item 2
      Item 3
      Item 4
      diff --git a/tox.ini b/tox.ini index 253c446f..c0b9b26a 100644 --- a/tox.ini +++ b/tox.ini @@ -20,7 +20,7 @@ commands = deps = -rrequirements/docs.txt skipsdist = True -# Coverage for python 2.7 and and 3.4 only +# Coverage for python 2.7 and 3.4 only [testenv:py27-coverage] commands = nosetests --with-doctest --with-coverage --cover-package pydocx []