Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 07-29-2019, 12:43 PM   #61
brent63
Zealot
brent63 began at the beginning.
 
brent63's Avatar
 
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
brent63 is offline   Reply With Quote
Old 07-29-2019, 01:02 PM   #62
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by brent63 View Post
I changed False to True and followed your previous instructions, see below.

Spoiler:
File Name Line Column Context Catgory Rule Message
Section0001.xhtml 9 4 ... >>F???<< STYLE PROFANITY Profanity: This word is considered offensive.

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"
}
(You'll have to scroll to the right to see the change.)

D.

Last edited by DiapDealer; 07-30-2019 at 08:44 AM.
Doitsu is offline   Reply With Quote
Advert
Old 07-29-2019, 01:08 PM   #63
brent63
Zealot
brent63 began at the beginning.
 
brent63's Avatar
 
Posts: 110
Karma: 10
Join Date: Aug 2018
Location: New Jersey
Device: Samsung Tab E nook
Thank you working now.
brent63 is offline   Reply With Quote
Old 07-30-2019, 08:46 AM   #64
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
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.
DiapDealer is offline   Reply With Quote
Old 08-27-2019, 04:26 PM   #65
lumpynose
Wizard
lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.
 
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.
Attached Thumbnails
Click image for larger version

Name:	Annotation 2019-08-27 132338.jpg
Views:	307
Size:	61.0 KB
ID:	173148  
lumpynose is offline   Reply With Quote
Advert
Old 08-28-2019, 01:06 AM   #66
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by lumpynose View Post
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
The default settings (-Xmx1024m -Xms512m) work fine for me with LanguageTool-4.6.

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?
Doitsu is offline   Reply With Quote
Old 08-28-2019, 02:32 AM   #67
lumpynose
Wizard
lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
Quote:
Originally Posted by Doitsu View Post
The default settings (-Xmx1024m -Xms512m) work fine for me with LanguageTool-4.6.

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?
Huh, weird.

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.
lumpynose is offline   Reply With Quote
Old 08-28-2019, 02:47 AM   #68
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by lumpynose View Post
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.
If you're working on a Public Domain book, please share a download link. (If it's a commercial book, you can scramble it with the Calibre ScrambleEbook plugin.)

Also, please post the contents of LanguageTool.json.

Quote:
Originally Posted by lumpynose View Post
I have 64gb of ram. There's nothing big running using ram.
My Windows 10 testing machine only has 8GB of RAM. I.e., it's definitely not a RAM issue.
Doitsu is offline   Reply With Quote
Old 08-28-2019, 09:56 AM   #69
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is offline   Reply With Quote
Old 08-28-2019, 11:52 AM   #70
lumpynose
Wizard
lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.lumpynose ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 6719822
Join Date: Jul 2012
Device: Palm Pilot M105
Quote:
Originally Posted by Doitsu View Post
If you're working on a Public Domain book, please share a download link. (If it's a commercial book, you can scramble it with the Calibre ScrambleEbook plugin.)

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.
Ok, thanks. Will do. I agree with KevinH that it's likely a stack issue.
lumpynose is offline   Reply With Quote
Old 09-10-2019, 12:56 PM   #71
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
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.
JSWolf is offline   Reply With Quote
Old 06-12-2020, 03:35 AM   #72
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
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?
Leonatus is offline   Reply With Quote
Old 06-12-2020, 06:12 AM   #73
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Leonatus View Post
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?
You'll need to download the desktop version of LanguageTool and unzip it.
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.
Doitsu is offline   Reply With Quote
Old 06-12-2020, 06:32 AM   #74
Leonatus
Wizard
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 1,023
Karma: 10963125
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
Quote:
Originally Posted by Doitsu View Post
You'll need to download the desktop version of LanguageTool and unzip it.
But there has always been a Sigil plugin, and it used to work really well. Is this gone? I scarcely can believe it.

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
Edit: The error apparently only occurs at the french book.

Last edited by Leonatus; 06-12-2020 at 07:48 AM.
Leonatus is offline   Reply With Quote
Old 06-12-2020, 12:18 PM   #75
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Leonatus View Post
But when I ran Language tool, there appeared another error:
Code:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 94: invalid continuation byte
This usually only happens if the epub is incorrectly encoded. Your book most likely has no encoding declaration or an UTF8 declaration but is most likely CP1252 encoded. However, valid epubs may only be utf8 or utf16 encoded.

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.
Doitsu is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 11:40 PM.


MobileRead.com is a privately owned, operated and funded community.