fixed typos

This commit is contained in:
freddii
2021-02-04 17:12:22 +01:00
parent c210b27819
commit 89c7efe682
27 changed files with 128 additions and 128 deletions
+2 -2
View File
@@ -1,14 +1,14 @@
#!/usr/bin/env python3
"""Try to guess a text's language and character set by checking how it matches lists of
common words. This is not a primary method of detection because it's slow and unreliable, but it
may be a help in discrimating, for exemple, before european languages using relatively close
may be a help in discrimating, for example, before european languages using relatively close
variations of iso-8859.
This is used in association with a zip file containing a number of stopwords list: rcllatinstops.zip
As a note, I am looking for a good iso-8859-7 stop words list for greek, the only ones I found
were utf-8 and there are errors when transcoding to iso-8859-7. I guess that there is something
about Greek accents that I don't know and would enable fixing this (some kind of simplification
allowing transliteration from utf-8 to iso-8859-7). An exemple of difficulty is the small letter
allowing transliteration from utf-8 to iso-8859-7). An example of difficulty is the small letter
epsilon with dasia (in unicode but not iso). Can this be replaced by either epsilon or epsilon
with acute accent ?
"""
+1 -1
View File
@@ -17,7 +17,7 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
########################################################
# Running OCR programs for Recoll. This is excecuted from,
# Running OCR programs for Recoll. This is executed from,
# e.g. rclpdf.py if pdftotext returns no data.
#
# The script tries to retrieve the data from the ocr cache, else it
+1 -1
View File
@@ -34,7 +34,7 @@ import io
import keyword, token, tokenize
#############################################################################
### Python Source Parser (does Hilighting)
### Python Source Parser (does Highlighting)
#############################################################################
_KEYWORD = token.NT_OFFSET + 1
+1 -1
View File
@@ -172,7 +172,7 @@ awk '
s=substr($0, RSTART+5, RLENGTH-5)
printf("%s", s)
# Note: No way to know if this ends a paragraph, so no "<br>"
# but it migth be good to have one in some instances
# but it might be good to have one in some instances
}
else if (match($0, "<para+")) {
printf("<br>")