07-29-2019, 12:43 PM | #61 |
Zealot
Posts: 110
Karma: 10
Join Date: Aug 2018
Location: New Jersey
Device: Samsung Tab E nook
|
I changed False to True and followed your previous instructions, see below.
File Name Line Column Context Catgory Rule Message Section0001.xhtml 9 4 ... >>F???<< STYLE PROFANITY Profanity: This word is considered offensive. Last edited by DiapDealer; 07-30-2019 at 08:43 AM. Reason: Profanity |
07-29-2019, 01:02 PM | #62 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
This means that the plugin works. Is your problem that the plugin doesn't display the message in the Sigil validation window or do you want LanguageTool to ignore profanities? If you don't want LanguageTool to complain about profanities, insert ,PROFANITY at the end of the disabledRules entry (after SENTENCE_WHITESPACE and before the closing quotation mark): Code:
{
"disabledRules": "MORFOLOGIK_RULE_EN_US,MORFOLOGIK_RULE_EN_GB,ENGLISH_WORD_REPEAT_BEGINNING_RULE,WHITESPACE_RULE,COMMA_PARENTHESIS_WHITESPACE,SENTENCE_WHITESPACE,PROFANITY",
"disabledCategories": "REDUNDANCY",
"update_check": false,
"allFiles": false,
"clipboard_copy": false,
"ltPath": "C:/Users/Brent/Language/LanguageTool-4.6/LanguageTool-4.6/languagetool-commandline.jar"
}
D. Last edited by DiapDealer; 07-30-2019 at 08:44 AM. |
|
Advert | |
|
07-29-2019, 01:08 PM | #63 |
Zealot
Posts: 110
Karma: 10
Join Date: Aug 2018
Location: New Jersey
Device: Samsung Tab E nook
|
Thank you working now.
|
07-30-2019, 08:46 AM | #64 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Please use common sense when posting the results of a profanity test. It was suggested that you add "the f-word" to test. It should have been a no-brainer that a similar obfuscation should have been used when giving the results.
|
08-27-2019, 04:26 PM | #65 |
Wizard
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
I'm using LanguageTool_v0.4.2.zip for the plugin and LanguageTool-4.6 for the java app. When I run it it blows up with
Command line: java -Xmx1024m -Xms512m -jar C:/blah/blah/blah Java error message: working on ... java.lang.OutOfMemoryError at blah blah blah I'd copy and paste the errors here but I can't figure out how to copy what I want in the Validation Results window. I get either the partial results, the stuff in yellow, or the header lines. I increased the -Xmx and -Xms values and the error stopped. |
Advert | |
|
08-28-2019, 01:06 AM | #66 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
1. How much RAM does your machine have? 2. Did the plugin fail for all epubs or only epubs with very large (X)HTML files? |
|
08-28-2019, 02:32 AM | #67 | |
Wizard
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
Quote:
The failure was sort of random. At first I selected all the xhtml files and it failed when it started the 2nd one. Selecting 2 or 3 would also fail after the first one. I have 64gb of ram. There's nothing big running using ram. |
|
08-28-2019, 02:47 AM | #68 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Also, please post the contents of LanguageTool.json. My Windows 10 testing machine only has 8GB of RAM. I.e., it's definitely not a RAM issue. |
|
08-28-2019, 09:56 AM | #69 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Assuming the program in question is using recursive descent/parsing techniques, it may not be a total RAM issue or even RAM available to the JVM, but instead a single thread stack size issue. Each recursive call pushes a new frame on the stack with return info and local variables. If that is the case, increasing the stack size (the Xss) may be needed.
This is just a guess, but given the OP has 64gb of ram and is still running into trouble, this may in fact be the cause. Last edited by KevinH; 08-28-2019 at 10:20 AM. |
08-28-2019, 11:52 AM | #70 | |
Wizard
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
|
Quote:
|
|
09-10-2019, 12:56 PM | #71 |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Lumpy,are you using a 32-bit or 64-bit Java? That have been some recent issues using 32-bit Java like stack issues with epubcheck. Plus, 32-bit Java has access to less memory and that could be your out of memory problem.
|
06-12-2020, 03:35 AM | #72 |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Windows 10, 64 bit, Sigil V. 1.2.0, LT V. 0.4.3.
I'm actually trying to check a book in French. When I start the plugin, it opens a window looking for "LT (languagetool-commandline.jar)". As I don't know what to do, I close this window and the check fails with the error message: "LanguageTool path not selected or not found!" I slightly remember that this behaviour did already appear once, but I can't find the post. Can you help, please, Doitsu? |
06-12-2020, 06:12 AM | #73 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
The unzipped folder will contain languagetool-commandline.jar. There's also another Sigil grammar checker plugin for French books that you might find helpful: Grammalecte. |
|
06-12-2020, 06:32 AM | #74 | |
Wizard
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Quote:
Now I understood the necessity of the desktop version, sorry! Grammalecte runs very well, thank you! But when I ran Language tool, there appeared another error: Code:
Status: failed Working on Section0001_0001.xhtml... Traceback (most recent call last): File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 136, in launch self.exitcode = target_script.run(container) File "C:\Users\Juerg\AppData\Local\sigil-ebook\sigil\plugins\LanguageTool\plugin.py", line 491, in run stdout = result[0].decode('utf-8') UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 94: invalid continuation byte Error: 'utf-8' codec can't decode byte 0xe4 in position 94: invalid continuation byte Last edited by Leonatus; 06-12-2020 at 07:48 AM. |
|
06-12-2020, 12:18 PM | #75 | |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
0xe4 (228) in CP1252 is the German a umlaut (ä). If the French book is a PD book, please send me the download link in a PM. I might be able to fix the code page issue. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What does 'Well-Formed Check EPUB' actually check? | bookman156 | Sigil | 21 | 03-20-2016 06:31 PM |
Grammar issues (again).... | mukoan | Writers' Corner | 25 | 06-28-2013 02:26 PM |
Trusting Words grammar check? | jhempel24 | Writers' Corner | 23 | 01-30-2013 02:52 PM |
Are DRM books with check in/check out allowed? | i8abug | Library Management | 4 | 05-31-2012 02:27 PM |
Seriously thoughtful English (or US) grammar | Sweetpea | Lounge | 26 | 10-21-2011 10:17 PM |