mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
11814e2518
commit
7bb80f456b
@ -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
|
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
|
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.
|
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::
|
.. note::
|
||||||
You can double click a word to highlight the next occurrence of that word
|
You can double click a word to highlight the next occurrence of that word
|
||||||
|
@ -1040,7 +1040,7 @@ def find_next(word, locations, current_editor, current_editor_name,
|
|||||||
if current_editor_name not in files:
|
if current_editor_name not in files:
|
||||||
current_editor = current_editor_name = None
|
current_editor = current_editor_name = None
|
||||||
else:
|
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
|
# current editor first
|
||||||
lfiles = list(files)
|
lfiles = list(files)
|
||||||
idx = lfiles.index(current_editor_name)
|
idx = lfiles.index(current_editor_name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user