Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-16-2020, 03:41 PM   #31
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,748
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by KevinH View Post
In fact there are already plugins that try to do things like this for common scanner mistakes. I am not sure if they are word list driven or not.

Obviously this list would need to be language specific.
FWIW the ePubTidy plugin has a word replacement list feature, it comes with a en-US list (e.g. abrupdy|abruptly), that can be edited, and a user contributed Greek list.

I don't use the plugin.

BR
BetterRed is online now   Reply With Quote
Old 12-16-2020, 04:51 PM   #32
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: 8,805
Karma: 6000000
Join Date: Nov 2009
Device: many
Yes but unfortunately it is a tree based list with parent and child nodes separated by /.

It has fields is_group, fullname, name, find, replace.

So if we were to use the filename as the fullname of the group, and assume all entries are part of that group, we would still need to derive a name for each entry, before adding the find and replace strings. Also order matters here as each entry is performed in the order they are found (so no sorting).

Seems like overkill but I guess we could name them by something like fix0001 through fixXXXX but that isn't very meaningful.

So it won't be as simple as reading in a delimited list. But it should be doable.


Quote:
Originally Posted by Doitsu View Post
AFAIK, users can only import and export Saved Searches .ini files.
KevinH is offline   Reply With Quote
Old 12-16-2020, 09:40 PM   #33
The_book
Zealot
The_book began at the beginning.
 
Posts: 100
Karma: 10
Join Date: Aug 2019
Device: none
1. Regular expression with function replacement (can be developed as a plug-in)
2. Search save function add save search mode
3. Setting options for turning off html checking for files larger than a specified size
The_book is offline   Reply With Quote
Old 12-16-2020, 09:58 PM   #34
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: 8,805
Karma: 6000000
Join Date: Nov 2009
Device: many
1. Writing and using Sigil's plugins is much more flexible than writing replacement functions in python itself. So I do not think that feature is needed. If you can write a replacement function in python you should have no trouble creating a plugin. The interface is very simple.

2. What do you mean by "save search mode"? Do You mean regular expression control flags should be saved along with the search or something else?

3. There is no regular checking of html files once loaded. Turn off Preview on very very large files. But note, single large html files are generally a very poor design choice.

Quote:
Originally Posted by The_book View Post
1. Regular expression with function replacement (can be developed as a plug-in)
2. Search save function add save search mode
3. Setting options for turning off html checking for files larger than a specified size
KevinH is offline   Reply With Quote
Old 12-16-2020, 10:22 PM   #35
The_book
Zealot
The_book began at the beginning.
 
Posts: 100
Karma: 10
Join Date: Aug 2019
Device: none
Quote:
Originally Posted by KevinH View Post
1. Writing and using Sigil's plugins is much more flexible than writing replacement functions in python itself. So I do not think that feature is needed. If you can write a replacement function in python you should have no trouble creating a plugin. The interface is very simple.

2. What do you mean by "save search mode"? Do You mean regular expression control flags should be saved along with the search or something else?

3. There is no regular checking of html files once loaded. Turn off Preview on very very large files. But note, single large html files are generally a very poor design choice.
1. I think so.
2. Yes. Normal/Regex/Case sensitive/Do not change, current/all/selected/do not change.
3. single large html files is used before divided, and I need to do saved search/replace before divided. Anyawy , I will try.
The_book is offline   Reply With Quote
Old 12-16-2020, 10:40 PM   #36
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: 8,805
Karma: 6000000
Join Date: Nov 2009
Device: many
Quote:
Originally Posted by The_book View Post
3. single large html files is used before divided, and I need to do saved search/replace before divided. Anyawy , I will try.
Why when you can later do the same search and replaces across all xhtml files automatically?

When faced with one huge large html file I do the following after initial load.

1. Temporarily turn off Preview using View menu

2. Run Mend and Prettify to clean code and make structure more clear.

3. Use find and replace to insert all sigil split markers at chapter start points all in one go.

4. Use Split At Markers

5. Turn back on Preview.
KevinH is offline   Reply With Quote
Old 12-16-2020, 11:48 PM   #37
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,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Find & Replace: new Validate Regex option

I have one more Find & Replace enhancement suggestion: how about adding a simple regex validator?

Apparently, you can actually use a regular expression for this.

But I'm sure that there must be some Open Source C++ libraries for validating regular expressions.

(Since Auto-Tokenize automatically escapes some characters, users shouldn't be able to select both Auto-Tokenize and Validate Regex.)

When Validate Regex is checked and the Find/Replace boxes contain invalid regular expressions, Sigil should display a warning, when the user clicks the Find button. Maybe you could also format invalid regular expressions in red to indicate that they're invalid.
Doitsu is offline   Reply With Quote
Old 12-17-2020, 04:14 AM   #38
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
I borrow a lot of the books I read from my County Library.

Unfortunately they do not have many copies of each book (probably to keep the publishers happy) so it's a bit hit-and-miss as to when they are available. Because of this I tend to grab them when I can.

The problem is they have a limited time to read, and if I have just started to read another book by the time I get around to them they have expired.

To get around this I use the Aprentice Alf tools in Calibre to remove the time limit (I will probably get shot down in flames for admitting that) so that I don't have to worry about them expiring.

If Sigil were to have something that could do the same I would no reason to use Calibre - which I despise for its enforced file management regime.

So my suggestion is either something built-in or a plug-in to remove DRM from epubs.
Ashjuk is offline   Reply With Quote
Old 12-17-2020, 07:23 AM   #39
HaPeSchu
Banned
HaPeSchu began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Feb 2020
Device: tolino epos
I would prefer if the filename scheme is the same regardless if you split by position or split by markers,
HaPeSchu is offline   Reply With Quote
Old 12-17-2020, 07:32 AM   #40
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: 8,805
Karma: 6000000
Join Date: Nov 2009
Device: many
Sorry. That is never going to happen. Sigil is not an e-reader. FWIW, at least in the old days, calibre only ever provided the gui for Alf's tool. The old version of the tool had its own standalone gui and calibre was never needed. My guess is they dropped out the gui code. But taking the old gui code and converting it to epub3 would not be hard to do.

As for using Alf's tool on library books, something that you have not paid for, is a big bad in my opinion. Hope you are at least deleting *all* of your copies when the book has been read.


Quote:
Originally Posted by Ashjuk View Post
I borrow a lot of the books I read from my County Library.

Unfortunately they do not have many copies of each book (probably to keep the publishers happy) so it's a bit hit-and-miss as to when they are available. Because of this I tend to grab them when I can.

The problem is they have a limited time to read, and if I have just started to read another book by the time I get around to them they have expired.

To get around this I use the Aprentice Alf tools in Calibre to remove the time limit (I will probably get shot down in flames for admitting that) so that I don't have to worry about them expiring.

If Sigil were to have something that could do the same I would no reason to use Calibre - which I despise for its enforced file management regime.

So my suggestion is either something built-in or a plug-in to remove DRM from epubs.

Last edited by KevinH; 12-17-2020 at 08:06 AM.
KevinH is offline   Reply With Quote
Old 12-17-2020, 07:34 AM   #41
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: 8,805
Karma: 6000000
Join Date: Nov 2009
Device: many
No, that is your preference and not a feature request. They split in different ways. Simply Use Rename or RegularExpression Rename after spliting either way to get what you want.

Quote:
Originally Posted by HaPeSchu View Post
I would prefer if the filename scheme is the same regardless if you split by position or split by markers,
KevinH is offline   Reply With Quote
Old 12-17-2020, 08:29 AM   #42
Ashjuk
Fanatic
Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.Ashjuk ought to be getting tired of karma fortunes by now.
 
Ashjuk's Avatar
 
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
Quote:
Originally Posted by KevinH View Post
Sorry. That is never going to happen. Sigil is not an e-reader. FWIW, at least in the old days, calibre only ever provided the gui for Alf's tool. The old version of the tool had its own standalone gui and calibre was never needed. My guess is they dropped out the gui code. But taking the old gui code and converting it to epub3 would not be hard to do.

As for using Alf's tool on library books, something that you have not paid for, is a big bad in my opinion. Hope you are at least deleting *all* of your copies when the book has been read.
OK - just a thought that's all.

And yes, I do delete my library books after reading. I have never been a fan of reading books more than once so there is not a lot of point keeping them.
Ashjuk is offline   Reply With Quote
Old 12-17-2020, 08:33 AM   #43
HaPeSchu
Banned
HaPeSchu began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Feb 2020
Device: tolino epos
No, its not my preference. I neither choosed the one nor the other, its hardcoded by you or maybe already by valloric.

And by the way i'm sick off your arrogante answers. Last time by telling me that the bug i reported has been already (!) mentionend (where? it wasnt in the thread so i reported it. If it wasn't in the thread how was I supposed to know it was already reported and make me feel like I was too stupid to read the thread.

Now your telling me that the filename schema is my preference which it isnt. I cant change it.

But just leave it alone. You change sigil to suit YOU. Ok. But then don't ask for other opinions/ideas.
HaPeSchu is offline   Reply With Quote
Old 12-17-2020, 08:47 AM   #44
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: 28,611
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by HaPeSchu View Post
No, its not my preference. I neither choosed the one nor the other, its hardcoded by you or maybe already by valloric.

And by the way i'm sick off your arrogante answers. Last time by telling me that the bug i reported has been already (!) mentionend (where? it wasnt in the thread so i reported it. If it wasn't in the thread how was I supposed to know it was already reported and make me feel like I was too stupid to read the thread.

Now your telling me that the filename schema is my preference which it isnt. I cant change it.

But just leave it alone. You change sigil to suit YOU. Ok. But then don't ask for other opinions/ideas.
He meant it's only your preference that files split with both features use the same naming scheme. Not that you already HAD a preference choice. Never mind that you actually DO have a choice in the matter; by always sticking to one split method or the other.

We're looking for "Feature Requests" here, not personal preference tweaks.

As for the rest of your post: don't let the door hit you. I'm the resident arrogant butthead around here, not Kevin. He's the reasonable polite one.

Last edited by DiapDealer; 12-17-2020 at 08:55 AM.
DiapDealer is online now   Reply With Quote
Old 12-17-2020, 09:06 AM   #45
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: 8,805
Karma: 6000000
Join Date: Nov 2009
Device: many
So you are upset because this earlier response?

Quote:
Yes, this has already been reported will be fixed in the next release.

Quote:
Originally Posted by HaPeSchu View Post
Hi,

thanks for the new version. But i have an issue with search & replace on macOS Mojave.

When i select a text and press cmd-F the text was copied and masked for regex into the find field in former versions.

In 1.4 the s&r dialog is closed in addition. cmd-f brings it back with the masked text in the find field.

HaPeSchu
This was simply informing you that the bug you reported had already been fixed and that the fix would be in the next release. That should have been good news for you! How on earth did you get offended by that?

If you really are that touchy then this forum is probably not the right place for you, as I really could not be more polite in my answer. I really do try not to offend anyone in my replies (until they attack me first).

The way you choose to split files is of course your personal preference. As DiapDealer said, this thread is about feature requests not personal preference choices or tweaks (as in just your likes and dislikes).

If English is not your first language, then perhaps not all of this was clear at first read. That said, attributing my replies to "malice" is probably not fair in the least.

Quote:
You change sigil to suit YOU.
Of course I do, and to hopefully help many others as well. That is what open source is all about, "scratching an itch" so to speak. I literally spend huge amounts of my (thankfully just now retired) time tracking down bugs, fixing things, adding features, making releases and I do this fully on a volunteer basis. And I have been volunteering as an open source developer since the early 1980s for projects I used and wanted to change or have input on.

If you do not like this opensource approach then you are probably best served by looking elsewhere for your software needs.

KevinH


Quote:
Originally Posted by HaPeSchu View Post
No, its not my preference. I neither choosed the one nor the other, its hardcoded by you or maybe already by valloric.

And by the way i'm sick off your arrogante answers. Last time by telling me that the bug i reported has been already (!) mentionend (where? it wasnt in the thread so i reported it. If it wasn't in the thread how was I supposed to know it was already reported and make me feel like I was too stupid to read the thread.

Now your telling me that the filename schema is my preference which it isnt. I cant change it.

But just leave it alone. You change sigil to suit YOU. Ok. But then don't ask for other opinions/ideas.

Last edited by KevinH; 12-17-2020 at 09:52 AM.
KevinH is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Touch HD, Future features or dead features? ElWorm PocketBook 4 02-07-2018 11:36 AM
New Plugin Features in the upcoming Sigil 0.8.900 KevinH Plugins 6 09-14-2015 02:48 PM
FAQ>How do I use ... features of the conversion tools? chaot Library Management 2 08-28-2012 07:28 AM
Writer2ePub, Sigil, and mjBookMaker Features Ransom Writer2ePub 1 09-21-2011 09:20 AM
ePub Creation Tools: Sigil vs Oxygen twedigteam ePub 6 12-10-2010 03:41 AM


All times are GMT -4. The time now is 08:36 AM.


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