|
|
Thread Tools | Search this Thread |
07-09-2020, 08:47 PM | #76 | ||
A Hairy Wizard
Posts: 3,069
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Quote:
Code:
no ID = <body><h1 style="display:none" title="Howdy" /> just my .02 |
||
07-09-2020, 10:06 PM | #77 | |
Grand Sorcerer
Posts: 27,465
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Last edited by DiapDealer; 07-09-2020 at 10:08 PM. |
|
Advert | |
|
07-09-2020, 11:44 PM | #78 |
Bookmaker & Cat Slave
Posts: 11,447
Karma: 157030631
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
|
07-10-2020, 12:11 AM | #79 |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
I get paid to fixup/update Public Domain (or CC-BY) ebooks all the time + combine chapters from various sources.
Example: I've done dozens of "Best of Topic X" compilations. And just a few weeks ago I worked on a book that combined articles written over 40+ years. Of course, I regex everything into clean/sensible code (headings) + normalize everything within a book to be consistent... but if you're less meticulous about your code... |
07-10-2020, 12:29 AM | #80 | |
Bookmaker & Cat Slave
Posts: 11,447
Karma: 157030631
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
Advert | |
|
09-10-2020, 12:14 PM | #81 |
Sigil Developer
Posts: 7,506
Karma: 5433350
Join Date: Nov 2009
Device: many
|
TOCSaver potential plugin
Okay, I finally got some time and took a shot at creating TOCSaver_v010.zip.
This plugin should be used when a TOC is not based on headings (or the headings have incomplete text) and it should inject in the right headings and update title attributes so that if a user regenerates the TOC using Sigil tools it will come back quite close to the original NCX TOC. Effectively saving the current TOC into the xhtml files itself as needed. If using an epub3, this plugin only parses the ncx and therefore you must use Sigil's epub3 Tools to generate an NCX from an existing Nav before launching the plugin. This should be considered alpha level. @Mister L, Please give it a try and let me know if this is what you wanted. If and when it seems to work well enough, I will add it to its own thread and the plugin index. Hope this helps. KevinH |
09-10-2020, 08:03 PM | #82 | |
Groupie
Posts: 159
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
|
Quote:
Brilliant!!!!! Thank you so much for this! I've tried it out quickly on 3 files and so far it seems to work perfectly. I will try to test it further soon and report back if necessary but I think it is already definitely ready to be added in the plugin index. I tested it on files which had: - files listed in the toc with no headings at all in the xhtml page - files with titles split over 2 h* tags in the xhtml page - files with headings that were significantly different in the ncx to the text in the page (eg spans to fake smallcaps in the xhtml page, and sentence case in the toc). It handled all of these cases exactly as it should. This is really going to make some projects a lot easier, thank you so much for tackling the job, I really appreciate it. From some previous comments I think it will be useful for a lot of people. |
|
09-11-2020, 09:09 AM | #83 |
Sigil Developer
Posts: 7,506
Karma: 5433350
Join Date: Nov 2009
Device: many
|
Good to know. I will add an icon and make its own thread just in case there are others that might be interested.
Done: See https://www.mobileread.com/forums/sh...d.php?t=333097 Last edited by KevinH; 09-11-2020 at 11:56 AM. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
GUI Plugin "TOC View Generator" (was: Define Content) | Mick2nd | Plugins | 19 | 02-03-2022 09:41 AM |
V3 "Feature" Full Screen Add Book Dialog | johnelle | Library Management | 3 | 08-11-2017 02:43 PM |
A warning for Linux users: slow "Add Books", "Unknown" title and Author | rolgiati | Library Management | 8 | 07-24-2013 04:36 PM |
"Add existing files" doesn't show all directories | Ripplinger | Sigil | 5 | 02-23-2013 11:43 AM |
Feature Request - TOC Exclude "> My Books" | chrisparker | Library Management | 2 | 10-13-2012 11:44 AM |