fixed typos
This commit is contained in:
@@ -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 ?
|
||||
"""
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>")
|
||||
|
||||
Reference in New Issue
Block a user