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 11-08-2018, 03:10 PM   #181
carmenchu
Zealot
carmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to all
 
Posts: 127
Karma: 159672
Join Date: Dec 2010
Device: Win7,Win10,Lubuntu,smartphone
Thousands of thanks!
Proceeding to download and try--I am grateful for the sheer notion of this plugin.
carmenchu is offline   Reply With Quote
Old 11-08-2018, 06:01 PM   #182
carmenchu
Zealot
carmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to all
 
Posts: 127
Karma: 159672
Join Date: Dec 2010
Device: Win7,Win10,Lubuntu,smartphone
A couple snags

Installed and tested, with a couple of snags:
1. First run produced the following error message:

Code:
Incorrect XHTML: OEBPS/Text/Chap_09.htm Line/Col 17,30 @16:30: Tokenizer error with an unimplemented error message.
Incorrect XHTML: OEBPS/Text/Chap_21.htm Line/Col 19,30 @18:30: Tokenizer error with an unimplemented error message.
As both those lines contained images with src="../Images/bar20days1-ill1.jpg and src="../Images/drive-c.jpg", at first I thought the problem were the hyphens--deleted or corrected to '_', but as the imaages bar-20-daysIll.jpeg and bar20days0-ill0b.jpg had given no trouble, looking further I found common to the troublesome lines
Quote:
alt=""
--also corrected, and personally strongly suspected as the villain (Soup of the evening...)

2. The text contains
Quote:
s-p-a-t!
, and, not knowing better, I added to my KeepHyphen.txt just
Quote:
s-p-a-t!
: reslt, a report of
Quote:
Hyphen removed at
(restored by hand).

Thus, two questions:
1. How to enter in KeepHyphen.txt multi-expressions like s-p-a-t? Like this
s-p
p-a
a-t
or is there some shortcut?
2. What about plurals? To be on the safe side, I entered both
cow-puncher
cow-punchers
but I have a hazy notion that it may be redundant--i.e., that a search for the first may sometimes include the second...?
Thanks!
carmenchu is offline   Reply With Quote
Old 11-09-2018, 02:38 PM   #183
CalibUser
Groupie
CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.
 
Posts: 166
Karma: 62230
Join Date: Jul 2015
Device: Sony
@carmenchu: Thank you for alerting me to the error in my plugin.

I have made a correction and placed the updated plugin in the first post in this thread.
CalibUser is offline   Reply With Quote
Old 11-10-2018, 07:37 AM   #184
carmenchu
Zealot
carmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to all
 
Posts: 127
Karma: 159672
Join Date: Dec 2010
Device: Win7,Win10,Lubuntu,smartphone
More about hyphens

Thanks! No more issues with alt=""...
Now, I have another suggestion about hypens: in some books one finds several instances of words spelled out (maybe for added emphasis) like "r-a-t-s", or stuttered, like "p-p-please".
The Plugin will check "r-a-t-s"
Code:
HyphenRemoved=m.group(1)+m.group(2)
find "at" in Hunspell english dictionary, and return r-at-s, unless "a-t" in KeepHyphens.txt.
Now, I never found an instance of a publication with a hyphen either after or before a single letter, like w-ord or wor-d--where it grammatically sound, which I doubt, there seems to be some styling rule against it.
Thus, my suggestion: is it possble to check those m.group() for number of characters, and keep the hyphen if either is a single char?
I don't know python, is it difficult to do?
However, it makes sense to me--and, by the way, it would take care of the "I-I" special case...
Thanks again!
carmenchu is offline   Reply With Quote
Old 11-10-2018, 03:08 PM   #185
CalibUser
Groupie
CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.
 
Posts: 166
Karma: 62230
Join Date: Jul 2015
Device: Sony
@carmenchu: Following your suggestion, the plugin will not remove hyphens between words where one of the words is a single character.

The updated plugin in the first post in this thread.
CalibUser is offline   Reply With Quote
Old 11-10-2018, 04:57 PM   #186
carmenchu
Zealot
carmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to all
 
Posts: 127
Karma: 159672
Join Date: Dec 2010
Device: Win7,Win10,Lubuntu,smartphone
Thanks again!

I only hope I'm not being a bore...
carmenchu is offline   Reply With Quote
Old 11-11-2018, 06:14 AM   #187
carmenchu
Zealot
carmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to allcarmenchu is a name known to all
 
Posts: 127
Karma: 159672
Join Date: Dec 2010
Device: Win7,Win10,Lubuntu,smartphone
Quote:
Originally Posted by carmenchu View Post
I only hope I'm not being a bore...
The attached image is the icon I have made for showing this plugin in Sigil's toolbar.
It's not a work of art, but anything more sophisticated didn't show well in the little button--this at least can be identified at a glance among my other installed plugins.
For what it's worth...
Attached Images
 

Last edited by carmenchu; 11-11-2018 at 06:15 AM. Reason: correct word
carmenchu is offline   Reply With Quote
Old 11-11-2018, 06:17 AM   #188
CalibUser
Groupie
CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.
 
Posts: 166
Karma: 62230
Join Date: Jul 2015
Device: Sony
Quote:
Originally Posted by carmenchu View Post
I only hope I'm not being a bore...
Not at all.
CalibUser is offline   Reply With Quote
Old 11-11-2018, 06:22 AM   #189
CalibUser
Groupie
CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.
 
Posts: 166
Karma: 62230
Join Date: Jul 2015
Device: Sony
Quote:
Originally Posted by carmenchu View Post
The attached image is the icon I have made for showing this plugin in Sigil's toolbar.
Thanks.
CalibUser is offline   Reply With Quote
Old 01-09-2020, 04:34 PM   #190
xli199
Junior Member
xli199 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jan 2020
Device: samsung s2
ePub Tidy Tool v3

Hi, sorry to ask about ePub Tidy Tool plugin here - the original thread is closed.

Today I used the "chapter titles" button to change the format of chap titles - but somehow all the occurrences of "chapter" were altered - not only the chapter titles. And there are quite a few "chapter" occurrences inside a book I worked on, therefore quite a few paragraphs containing "chapter" were changed.

Is there a way to add more restrictions to this function? e.g., change only occurrences with all-cap "CHAPTER" or only for the first few lines of a file, not to a long paragraph with chapter tucked inside.

Thanks, Sean

Last edited by DiapDealer; 01-12-2020 at 07:50 AM. Reason: The correct thread is not "closed"
xli199 is offline   Reply With Quote
Old 01-12-2020, 02:06 PM   #191
CalibUser
Groupie
CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.CalibUser goes to eleven.
 
Posts: 166
Karma: 62230
Join Date: Jul 2015
Device: Sony
Quote:
Originally Posted by xli199 View Post
Hi, sorry to ask about ePub Tidy Tool plugin here - the original thread is closed.

Today I used the "chapter titles" button to change the format of chap titles - but somehow all the occurrences of "chapter" were altered - not only the chapter titles. And there are quite a few "chapter" occurrences inside a book I worked on, therefore quite a few paragraphs containing "chapter" were changed.

Is there a way to add more restrictions to this function? e.g., change only occurrences with all-cap "CHAPTER" or only for the first few lines of a file, not to a long paragraph with chapter tucked inside.
Thanks for your comment. I am very busy at the moment with several other projects. If there are other users who find this an issue then please let me know via this thread. If there are enough users to make it worth spending my time on this, then I will look at updating the plugin.
CalibUser is offline   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
Tidying Up My Kindle selectortone Calibre 2 07-17-2013 11:35 AM
developping a Plugin for Presentation files abdlink Plugins 4 04-15-2013 12:27 PM
Plugin to fix fb2 files oviksna Plugins 3 01-28-2013 09:53 AM
Tidying Up My Library JayLaFunk Library Management 2 09-20-2011 10:12 AM
Calibre 0.7.50 can't see plugin files mb_webguy Calibre 5 04-29-2011 04:41 AM


All times are GMT -4. The time now is 04:51 PM.


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