From 67bea207cd535aae1158be881dbd3801abc4aae1 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Wed, 9 Nov 2022 08:24:48 -0500 Subject: [PATCH] Spelling fixes (#215) Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- docs/install.rst | 2 +- docs/release.rst | 4 ++-- docs/usage.rst | 6 +++--- toot/http.py | 2 +- toot/tui/NOTES.md | 2 +- toot/tui/app.py | 2 +- toot/wcstring.py | 6 +++--- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/install.rst b/docs/install.rst index d0705bf..e5cbfd6 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -129,4 +129,4 @@ Source ------ Finally, you can get the latest source distribution, wheel or debian package -`from Github `_. +`from GitHub `_. diff --git a/docs/release.rst b/docs/release.rst index 728467f..2ebfb02 100644 --- a/docs/release.rst +++ b/docs/release.rst @@ -15,7 +15,7 @@ Bump & tag version * Run ``make changelog`` to generate a human readable changelog * Commit the changes * Run ``./scripts/tag_version `` to tag a release in git -* Run ``git push --follow-tags`` to upload changes and tag to Github +* Run ``git push --follow-tags`` to upload changes and tag to GitHub Publishing to PyPI ------------------ @@ -23,7 +23,7 @@ Publishing to PyPI * ``make dist`` to create source and wheel distributions * ``make publish`` to push them to PyPI -Github release +GitHub release -------------- * `Create a release `_ for the newly diff --git a/docs/usage.rst b/docs/usage.rst index f2150a7..6893408 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -122,7 +122,7 @@ Finally, you can launch your favourite editor: toot post --editor vim Define your editor preference in the ``EDITOR`` environment variable, then you -don't need to specify it explicity: +don't need to specify it explicitly: .. code-block:: bash @@ -137,7 +137,7 @@ files. For details on supported formats see `Mastodon docs on attachments `_. It is encouraged to add a plain-text description to the attached media for -accessiblity purposes by adding a ``--description`` option. +accessibility purposes by adding a ``--description`` option. To attach an image: @@ -183,7 +183,7 @@ Timeline takes various options: toot timeline --public --local # public timeline, only this instance toot timeline --tag photo # posts tagged with #photo toot timeline --count 5 # fetch 5 toots (max 20) - toot timeline --once # don't promopt to fetch more toots + toot timeline --once # don't prompt to fetch more toots Status actions -------------- diff --git a/toot/http.py b/toot/http.py index a325b72..6aff9a7 100644 --- a/toot/http.py +++ b/toot/http.py @@ -6,7 +6,7 @@ from toot.logging import log_request, log_response def send_request(request, allow_redirects=True): # Set a user agent string - # Required for accesing instances using Cloudfront DDOS protection. + # Required for accessing instances using Cloudfront DDOS protection. request.headers["User-Agent"] = "toot/{}".format(__version__) log_request(request) diff --git a/toot/tui/NOTES.md b/toot/tui/NOTES.md index 20fc9be..fbd131f 100644 --- a/toot/tui/NOTES.md +++ b/toot/tui/NOTES.md @@ -22,7 +22,7 @@ TODO/Ideas: * Think about how to show media * download media and use local image viewer? * convert to ascii art? -* interaction with clipboard - how to copy a status to clipbard? +* interaction with clipboard - how to copy a status to clipboard? * Show **notifications** * Status source * shortcut to copy source diff --git a/toot/tui/app.py b/toot/tui/app.py index 236481c..2fe0b22 100644 --- a/toot/tui/app.py +++ b/toot/tui/app.py @@ -150,7 +150,7 @@ class TUI(urwid.Frame): def _default_error_callback(ex): self.exception = ex - self.footer.set_error_message("An exeption occured, press E to view") + self.footer.set_error_message("An exception occurred, press E to view") _error_callback = error_callback or _default_error_callback diff --git a/toot/wcstring.py b/toot/wcstring.py index 6ef2c3c..cc4bee1 100644 --- a/toot/wcstring.py +++ b/toot/wcstring.py @@ -70,12 +70,12 @@ def trunc(text, length): """ Truncates text to given length, taking into account wide characters. - If truncated, the last char is replaced by an elipsis. + If truncated, the last char is replaced by an ellipsis. """ if length < 1: raise ValueError("length should be 1 or larger") - # Remove whitespace first so no unneccesary truncation is done. + # Remove whitespace first so no unnecessary truncation is done. text = text.strip() text_length = wcswidth(text) @@ -93,7 +93,7 @@ def trunc(text, length): if text_length - trunc_length <= length: break - # Additional char to make room for elipsis + # Additional char to make room for ellipsis n = chars_to_truncate + 1 return text[:-n].strip() + '…'