Register Guidelines E-Books Search Today's Posts Mark Forums Read

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
Connoisseur
brent63 began at the beginning.
 
Posts: 86
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
Wizard
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: 4,836
Karma: 16233483
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
Connoisseur
brent63 began at the beginning.
 
Posts: 86
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: 21,969
Karma: 122040334
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 online now   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: 4583858
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:	40
Size:	61.0 KB
ID:	173148  
lumpynose is offline   Reply With Quote
Advert
Old 08-28-2019, 01:06 AM   #66
Doitsu
Wizard
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: 4,836
Karma: 16233483
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: 4583858
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
Wizard
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: 4,836
Karma: 16233483
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
Wizard
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: 4,183
Karma: 2620702
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 online now   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: 4583858
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: 55,975
Karma: 51659512
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
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 online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:05 AM.


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