Skip to content

Commit

Permalink
Fix misc. typos
Browse files Browse the repository at this point in the history
Found via `codespell -q 3 -S *.ts,./libs,./sample-projects -L searchin`
  • Loading branch information
luzpaz committed Sep 17, 2019
1 parent 5dcd93c commit c03a655
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion manuskript/mainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(self):
self.projectDirty = None # has the user made any unsaved changes ?
self._lastFocus = None
self._lastMDEditView = None
self._defaultCursorFlashTime = 1000 # Overriden at startup with system
self._defaultCursorFlashTime = 1000 # Overridden at startup with system
# value. In manuskript.main.
self._autoLoadProject = None # Used to load a command line project

Expand Down
4 changes: 2 additions & 2 deletions manuskript/models/abstractItem.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class abstractItem():

# Enum kept on the class for easier acces
# Enum kept on the class for easier access
enum = enums.Abstract

# Used for XML export
Expand Down Expand Up @@ -105,7 +105,7 @@ def type(self):
return self._data[self.enum.type]

#######################################################################
# Parent / Children managment
# Parent / Children management
#######################################################################

def child(self, row):
Expand Down
2 changes: 1 addition & 1 deletion manuskript/settingsWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __init__(self, mainWindow):
tr["Russian"] = "manuskript_ru.qm"
tr["Svenska"] = "manuskript_sv.qm"
tr["Turkish"] = "manuskript_tr.qm"
tr["Ukranian"] = "manuskript_uk.qm"
tr["Ukrainian"] = "manuskript_uk.qm"
tr["Chinese (Simplified)"] = "manuskript_zh_CN.qm"
self.translations = tr

Expand Down
4 changes: 2 additions & 2 deletions manuskript/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
# self.btnAddSubPlot.clicked.connect(self.updateSubPlotView, F.AUC)
# Yet the disconnectAll() function has been called.
# Workaround: we remove the necessity for connection to be unique. This
# works for now, but could create issues later one when we want to tests
# those specific functionnality. Maybe it will be called several times.
# works for now, but could create issues later on when we want to test
# this specific functionality. Maybe it will be called several times?
# At that moment, we will need to catch the exception in the MainWindow,
# or better: understand why it happens at all, and only on some signals.
from manuskript import functions as F
Expand Down
2 changes: 1 addition & 1 deletion manuskript/ui/editors/editorWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self, parent):
def resizeEvent(self, event):
"""
textEdit's scrollBar has been reparented to self. So we need to
update it's geomtry when self is resized, and put it where we want it
update it's geometry when self is resized, and put it where we want it
to be.
"""
# Update scrollbar geometry
Expand Down
2 changes: 1 addition & 1 deletion manuskript/ui/highlighters/basicHighlighter.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def highlightBlock(self, text):

def doHighlightBlock(self, text):
"""
Virtual funtion to subclass.
Virtual function to subclass.
"""
pass

Expand Down
6 changes: 3 additions & 3 deletions manuskript/ui/highlighters/markdownHighlighter.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def transparentFormat(self, fmt, alpha=75):
def unfocusConditions(self):
"""
Returns:
- True if the text is suposed to be unfocused
- True if the text is supposed to be unfocused
- (start, end) if block is supposed to be unfocused except for that part.
"""

Expand Down Expand Up @@ -283,7 +283,7 @@ def defaultTheme(self):
theme = {
"markup": markup}

#Exemple:
#Example:
#"color": Qt.red,
#"deltaSize": 10,
#"background": Qt.yellow,
Expand Down Expand Up @@ -477,7 +477,7 @@ def debug():
self.transparentFormat(fmt)
self.transparentFormat(markupFormat)

# Format openning Markup
# Format opening Markup
self.setFormat(token.position, token.openingMarkupLength,
markupFormat)

Expand Down
10 changes: 5 additions & 5 deletions manuskript/ui/highlighters/markdownTokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def tokenizeBulletPointList(self, text):
spaceCount += 1

# If this list item is the first in the list, ensure the
# number of spaces preceeding the bullet point does not
# number of spaces preceding the bullet point does not
# exceed three, as that would indicate a code block rather
# than a bullet point list.

Expand Down Expand Up @@ -832,15 +832,15 @@ def tokenizeMatches(self, tokenType, text, regex,
markupStartCount=0, markupEndCount=0,
replaceMarkupChars=False, replaceAllChars=False):
"""
Tokenizes a block of text, searching for all occurrances of regex.
Occurrances are set to the given token type and added to the list of
Tokenizes a block of text, searching for all occurrences of regex.
Occurrences are set to the given token type and added to the list of
tokens. The markupStartCount and markupEndCount values are used to
indicate how many markup special characters preceed and follow the
indicate how many markup special characters precede and follow the
main text, respectively.
For example, if the matched string is "**bold**", and
markupStartCount = 2 and markupEndCount = 2, then the asterisks
preceeding and following the word "bold" will be set as opening and
preceding and following the word "bold" will be set as opening and
closing markup in the token.
If replaceMarkupChars is true, then the markupStartCount and
Expand Down
2 changes: 1 addition & 1 deletion manuskript/ui/settings_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1855,7 +1855,7 @@ def retranslateUi(self, Settings):
self.chkAutoSaveNoChanges.setText(_translate("Settings", "If no changes during"))
self.label_14.setText(_translate("Settings", "seconds."))
self.chkSaveOnQuit.setText(_translate("Settings", "Save on project close"))
self.chkSaveToZip.setToolTip(_translate("Settings", "<html><head/><body><p>If you check this option, your project will be save as one single file. Easier to copy or backup, but does not allow collaborative editing, or versionning.<br/>If this is unchecked, your project will be save as a folder containing many small files.</p></body></html>"))
self.chkSaveToZip.setToolTip(_translate("Settings", "<html><head/><body><p>If you check this option, your project will be save as one single file. Easier to copy or backup, but does not allow collaborative editing, or versioning.<br/>If this is unchecked, your project will be save as a folder containing many small files.</p></body></html>"))
self.chkSaveToZip.setText(_translate("Settings", "Save to one single file"))
self.lblTitleGeneral_2.setText(_translate("Settings", "Revisions"))
self.label_44.setText(_translate("Settings", "Revisions are a way to keep track of modifications. For each text item, it stores any changes you make to the main text, allowing you to see and restoring previous versions."))
Expand Down
2 changes: 1 addition & 1 deletion manuskript/ui/settings_ui.ui
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@
</font>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;If you check this option, your project will be save as one single file. Easier to copy or backup, but does not allow collaborative editing, or versionning.&lt;br/&gt;If this is unchecked, your project will be save as a folder containing many small files.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;If you check this option, your project will be saved as one single file. Easier to copy or backup, but does not allow collaborative editing, or versioning.&lt;br/&gt;If this is unchecked, your project will be saved as a folder containing many small files.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="statusTip">
<string/>
Expand Down
6 changes: 3 additions & 3 deletions manuskript/ui/views/MDEditView.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def selectBlock(self, cursor):
def comment(self):
cursor = self.textCursor()

# Select begining and end of words
# Select beginning and end of words
self.selectWord(cursor)

if cursor.hasSelection():
Expand Down Expand Up @@ -294,7 +294,7 @@ def commentBlock(self, block):

def lineFormattingMarkup(self, markup):
"""
Adds `markup` at the begining of block.
Adds `markup` at the beginning of block.
"""
cursor = self.textCursor()
cursor.movePosition(cursor.StartOfBlock)
Expand All @@ -303,7 +303,7 @@ def lineFormattingMarkup(self, markup):
def insertFormattingMarkup(self, markup):
cursor = self.textCursor()

# Select begining and end of words
# Select beginning and end of words
self.selectWord(cursor)

if cursor.hasSelection():
Expand Down

0 comments on commit c03a655

Please sign in to comment.