Fix source typos

Accumulated source typos
This commit is contained in:
luz paz 2022-07-19 06:59:42 -04:00
parent b9d8e9c462
commit bd5cfa27e4
7 changed files with 14 additions and 14 deletions

View File

@ -3,7 +3,7 @@ import re
from calibre.web.feeds.news import BasicNewsRecipe
class GermanGovermentPress(BasicNewsRecipe):
class GermanGovernmentPress(BasicNewsRecipe):
title = u'Pressemitteilungen der Bundesregierung'
oldest_article = 14
__author__ = 'malfi'

View File

@ -134,9 +134,9 @@ class ZAOBAO(BasicNewsRecipe):
self.log(_('added feed %s') % (feed.title))
for i, feed in enumerate(parsed_feeds):
# workaorund a strange problem: Somethimes the xml encoding is not
# apllied correctly by parse()
weired_encoding_detected = False
# workaround a strange problem: Sometimes the xml encoding is not
# applied correctly by parse()
weird_encoding_detected = False
if not isinstance(feed.description, type(u'')) and self.encoding and feed.description:
self.log(
_('Feed %s is not encoded correctly, manually replace it') % (feed.title))
@ -144,10 +144,10 @@ class ZAOBAO(BasicNewsRecipe):
self.encoding, 'replace')
elif feed.description.find(self.DESC_SENSE) == -1 and self.encoding and feed.description:
self.log(
_('Feed %s is weired encoded, manually redo all') % (feed.title))
_('Feed %s is weirdly encoded, manually redo all') % (feed.title))
feed.description = feed.description.encode(
'cp1252', 'replace').decode(self.encoding, 'replace')
weired_encoding_detected = True
weird_encoding_detected = True
for a, article in enumerate(feed):
if not isinstance(article.title, type(u'')) and self.encoding:
@ -161,7 +161,7 @@ class ZAOBAO(BasicNewsRecipe):
article.text_summary = article.text_summary.decode(
self.encoding, 'replace')
article.summary = article.text_summary
if weired_encoding_detected:
if weird_encoding_detected:
if article.title:
article.title = article.title.encode(
'cp1252', 'replace').decode(self.encoding, 'replace')

View File

@ -196,7 +196,7 @@ REM responsive while calibre is running. Within calibre itself
REM the background processes should be set to run with 'low' priority.
REM Using the START command starts up Calibre in a separate process.
REM If used without /WAIT option it launches calibre and contines batch file.
REM If used without /WAIT option it launches calibre and continues batch file.
REM normally this would simply run off the end and close the Command window.
REM Use with /WAIT to wait until calibre completes to run a task on exit
REM --------------------------------------------------------

View File

@ -99,7 +99,7 @@
<xsl:value-of select="fb:last-name"/>
<br/>
</xsl:template>
<!-- secuence template -->
<!-- sequence template -->
<xsl:template name="sequence">
<li/>
<xsl:value-of select="@name"/>

View File

@ -196,10 +196,10 @@ class POCKETBOOK360(EB600):
FORMATS = ['epub', 'fb2', 'prc', 'mobi', 'pdf', 'djvu', 'rtf', 'chm', 'txt']
VENDOR_NAME = ['PHILIPS', '__POCKET', 'POCKETBO']
WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = ['MASS_STORGE', 'BOOK_USB_STORAGE',
WINDOWS_MAIN_MEM = WINDOWS_CARD_A_MEM = ['MASS_STORAGE', 'BOOK_USB_STORAGE',
'OK_POCKET_611_61', 'OK_POCKET_360+61']
OSX_MAIN_MEM = OSX_CARD_A_MEM = 'Philips Mass Storge Media'
OSX_MAIN_MEM = OSX_CARD_A_MEM = 'Philips Mass Storage Media'
OSX_MAIN_MEM_VOL_PAT = re.compile(r'/Pocket')
@classmethod

View File

@ -228,7 +228,7 @@ class ThemeCreateDialog(Dialog):
l = w.l = QFormLayout(w)
l.setFieldGrowthPolicy(QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow)
self.missing_icons_group = mg = QGroupBox(self)
self.mising_icons = mi = QListWidget(mg)
self.missing_icons = mi = QListWidget(mg)
mi.setSelectionMode(QAbstractItemView.SelectionMode.NoSelection)
mg.l = QVBoxLayout(mg)
mg.l.addWidget(mi)
@ -305,7 +305,7 @@ class ThemeCreateDialog(Dialog):
else:
title = _('No missing icons')
self.missing_icons_group.setTitle(title)
mi = self.mising_icons
mi = self.missing_icons
mi.clear()
for name in sorted(self.report.missing):
QListWidgetItem(QIcon(I(name, allow_user_override=False)), name, mi)

View File

@ -352,7 +352,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
def pc_finished(self):
try:
self.pc.finished.diconnect()
self.pc.finished.disconnect()
except:
pass
self.stack.setCurrentIndex(0)