This commit is contained in:
Kovid Goyal 2014-04-18 21:30:42 +05:30
parent 11814e2518
commit 7bb80f456b
2 changed files with 5 additions and 1 deletions

View File

@ -513,6 +513,10 @@ Words are shown with the number of times they occur in the book and the
language the word belongs to. Language information is taken from the books
metadata and from ``lang`` attributes in the HTML files. This allows the spell
checker to work well even with books that contain text in multiple languages.
For example, in the following HTML extract, the word color will be checked
using American English and the word colour using British English::
<div lang="en_US">color <span lang="en_GB">colour</span></div>
.. note::
You can double click a word to highlight the next occurrence of that word

View File

@ -1040,7 +1040,7 @@ def find_next(word, locations, current_editor, current_editor_name,
if current_editor_name not in files:
current_editor = current_editor_name = None
else:
# Re-order the list of locations to search so that we search int he
# Re-order the list of locations to search so that we search in the
# current editor first
lfiles = list(files)
idx = lfiles.index(current_editor_name)