Skip to content

Commit 380d703

Browse files
committed
Fix typos in comments
1 parent 09bb17b commit 380d703

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

lute/db/setup/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def setup(self):
9696

9797
if not os.path.exists(self._db_filename):
9898
new_db = True
99-
# Note openin a connection creates a db file,
99+
# Note opening a connection creates a db file,
100100
# so this has to be done after the existence
101101
# check.
102102
with closing(self._open_connection()) as conn:

lute/read/render/calculate_textitems.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def get_textitems(tokens, terms, language, multiword_term_indexer=None):
105105
starting index in the tokens.
106106
107107
- "Write" the TextItems to an array in correctly sorted
108-
order, so that the correct TextItems take precendence
108+
order, so that the correct TextItems take precedence
109109
in the final rendering.
110110
111111
- Calculate any term overlaps.

lute/static/js/lute-anki.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ const LuteAnki = (function() {
195195
);
196196

197197
// Maps all results to the error message, or success.
198-
// For the exmaple in the function docs, this would return
198+
// For the example in the function docs, this would return
199199
// [ "success", "... duplicate" ]
200200
const flat_results = results.flat().map(entry =>
201201
entry && typeof entry === "object" && "error" in entry ?

lute/static/js/lute-tagify-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function lute_tagify_utils_setup_parent_tagify(
141141
},
142142

143143
// Use a hook to force build_autocomplete_dropdown.
144-
// Pasting from the clipboard doesnt fire the
144+
// Pasting from the clipboard doesn't fire the
145145
// tagify.on('input') event, so intercept it and handle
146146
// it manually.
147147
hooks: {

lute/static/js/player.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ window.addEventListener("keydown", function (e) {
387387
if (e.code == "Space") {
388388
// prevent scrolling when space is pressed
389389
// and it seems this fixes the issue where there's flashing
390-
// where one keydown event continiously makes the button play and pause
390+
// where one keydown event continuously makes the button play and pause
391391
e.preventDefault();
392392
togglePlayPause();
393393
// if (e.target == document.body) {

lute/static/js/resize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ if (mediaTablet.matches) {
7676
readPaneRight.addEventListener("pointerdown", function(e){
7777
if (e.offsetY < borderWidth) {
7878
// if there's transition animation dragging is not smooth.
79-
// get's reverted back on document.mouseup below
79+
// gets reverted back on document.mouseup below
8080
readPaneRight.style.transition = "unset";
8181
setIFrameStatus("none");
8282
mouse_pos = e.y;

plugins/_template_/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def pytest_sessionstart(session): # pylint: disable=unused-argument
2121

2222
def _get_test_language():
2323
"""
24-
Retrieve the language definition file for testing ths plugin from definition.yaml
24+
Retrieve the language definition file for testing this plugin from definition.yaml
2525
"""
2626
thisdir = os.path.dirname(os.path.realpath(__file__))
2727
definition_file = os.path.join(thisdir, "..", "definition.yaml")

tests/unit/models/test_Language.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_demo_has_preloaded_languages(app_context):
2929

3030
def test_new_language_has_sane_defaults():
3131
"""
32-
Only validates the call to __init__. Sqlalchemy mappings aren't used during the constuctor.
32+
Only validates the call to __init__. Sqlalchemy mappings aren't used during the constructor.
3333
"""
3434
lang = Language()
3535
assert lang.character_substitutions == "´='|`='|’='|‘='|...=…|..=‥"

tests/unit/read/render/test_calculate_textitems.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def test_multiword_items_cover_other_items(english):
7878

7979

8080
def test_case_not_considered_for_matches(english):
81-
"Case doesnt matter."
81+
"Case doesn't matter."
8282
data = ["some", " ", "data", " ", "here", "."]
8383
expected = "[some-1][ -1][data here-3][.-1]"
8484
assert_renderable_equals(english, data, ["DATA HERE"], expected)

tests/unit/settings/test_current.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
def test_refresh_refreshes_current_settings(app_context):
14-
"Current settigns are loaded."
14+
"Current settings are loaded."
1515
if "backup_dir" in current_settings:
1616
del current_settings["backup_dir"]
1717
refresh_global_settings(db.session)

0 commit comments

Comments
 (0)