View Single Post
Old 03-20-2025, 08:08 PM   #1
Haudek
Member
Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.Haudek knows the difference between a duck.
 
Posts: 24
Karma: 111614
Join Date: Mar 2025
Location: Poland
Device: Kindle Voyage
[Plugin] FindForeignWords – Find words/phrases in span tags with lang attribute

Updated: March 21, 2025
Current Version: "0.0.5"
Status: Stable
Plugin type: validation

Plugin icon:


License/Copying: GNU LGPL Version 2 or Version 3 your choice. Any other license terms are only available directly from the author in writing.

Change Log:
  • v0.0.5 - First public version

How it works:
The plugin searches for all SPAN tags that contain the language attribute (lang or xml:lang) and presents the found words/phrases in the Validation Results window.
Of course, individual words can be checked in the "Spellcheck" window, but for phrases the plugin may be more convenient.
IMHO the plugin is an excellent complement to the ForeignWords plugin, because it allows you to check whether the work has been done correctly and to find any words that have been marked redundantly.

It works on one, many or all xhtml files depending on the selection in the Book Browser window.

Credits/Thanks:
  • @KevinH for generate_line_offsets and charoffset functions.
  • @BeckyEbook for the plugin icon.

Installation:
1. Select Manage Plugins from the Plugins menu. In the Manage Plugins dialog box, select Use Bundled Python, if it isn't already selected. (If your Sigil version doesn't have a Use Bundled Python option, click one of the Auto buttons to detect the path or Set to manually select the Python interpreter path.)
2. Click Add Plugin and select FindForeignWords_v0.X.Y.zip. This will install the ForeignWords plugin, which you can select via Plugins > Validation > FindForeignWords.

Issues:
So far, nothing.

OS Requirements:
Windows/Linux/OS X.

Sigil Requirements:
Sigil v1.6.0.
Attached Files
File Type: zip FindForeignWords_v0.0.5.zip (3.0 KB, 83 views)
Haudek is offline   Reply With Quote