02-08-2024, 05:21 AM | #46 |
Resident Curmudgeon
Posts: 74,313
Karma: 129333690
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
02-08-2024, 05:22 AM | #47 | |
Resident Curmudgeon
Posts: 74,313
Karma: 129333690
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
Advert | |
|
02-08-2024, 06:26 AM | #48 | |
Resident Curmudgeon
Posts: 74,313
Karma: 129333690
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
If there is no pagelist, then the internal pBook page numbers have no use unless you want to build a pagelist. |
|
02-08-2024, 08:09 AM | #49 | |
Zealot
Posts: 131
Karma: 9236
Join Date: Jun 2020
Device: Kindle PW3 [KOReader]
|
Quote:
Just like it’s incorrect to suggest that a behaviour a particular e-reader was displaying 15 years ago is how readers work today. |
|
02-08-2024, 08:33 AM | #50 |
Zealot
Posts: 131
Karma: 9236
Join Date: Jun 2020
Device: Kindle PW3 [KOReader]
|
I don't know why it's so important to you to never be wrong, and I don't want to speculate. I am often wrong and I hope you sometimes admit, even if it's only to yourself, that you are indeed wrong, I don't see how there could be any room left for learning and growth otherwise.
|
Advert | |
|
02-08-2024, 08:47 AM | #51 |
Sigil Developer
Posts: 7,675
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Still can break things if you do not make sure the OPF guide section does not use fragments (at least with epub2)
|
02-08-2024, 08:54 AM | #52 | |
Sigil Developer
Posts: 7,675
Karma: 5433388
Join Date: Nov 2009
Device: many
|
I do not disagree with you about pushing boundaries and improving things.
And I am not advocating against epub3 or using epub3 features in any way (especially if still backwards compatible with epub2). But as a starting point keeping things simple is for me always the right way to form the basic nucleus. Then you can build off of that when your experience and expertise allows. But again this is just my opinion and advice for people starting out in epub development. Just like my advice for people editing every epub they own to remove "bloat" is to not do it unless the "bloat" actually makes a negative impact on performance. But if a person does decide to remove "bloat", they need to be very very careful with css (due to inheritance and some readers injecting their own stylesheet) and they should not remove id attributes unless they have a full understanding of all of the places and ways ids/fragment can be used under both epub2 and epub3. Hope that makes my comments clearer. Quote:
Last edited by KevinH; 02-08-2024 at 09:23 AM. |
|
02-08-2024, 09:11 AM | #53 |
Resident Curmudgeon
Posts: 74,313
Karma: 129333690
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
02-08-2024, 09:16 AM | #54 | ||
Resident Curmudgeon
Posts: 74,313
Karma: 129333690
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Quote:
|
||
02-08-2024, 09:19 AM | #55 | |
Resident Curmudgeon
Posts: 74,313
Karma: 129333690
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
The worst way of making a mistake is when you do an incorrect search/replace and it really screws things up. I've done that plenty of times. But most of the time I've saved bforehand. Nobody knows everything. But I'm wondering why you want/need to have code that doesn't do anything? Last edited by JSWolf; 02-08-2024 at 09:22 AM. |
|
02-08-2024, 09:21 AM | #56 |
Sigil Developer
Posts: 7,675
Karma: 5433388
Join Date: Nov 2009
Device: many
|
|
02-08-2024, 09:23 AM | #57 |
A Hairy Wizard
Posts: 3,108
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
|
I’ll be the first to admit that I don’t have any experience USING accessibility software, so I don’t know exactly what it does, or doesn’t, do.
I am pretty sure, however, that accessibility software has the ability to scan the book and find IDs (of whatever type). The user also has the ability to find/search on the better readers/apps…. So there doesn’t really need to BE an existing link for such IDs to be potentially useful. |
02-08-2024, 09:28 AM | #58 | |
Resident Curmudgeon
Posts: 74,313
Karma: 129333690
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I'm saying it's OK to delete IDs and pBook page numbers in the HTML when they don't do anything. |
|
02-08-2024, 10:23 AM | #59 | |
Zealot
Posts: 131
Karma: 9236
Join Date: Jun 2020
Device: Kindle PW3 [KOReader]
|
Quote:
Then with the double id's you told me to delete one of them because the page slows down etc. (15 year old behaviour on an old Sony reader). Yes, the code would be cleaner, but it takes more time to delete the double ids and fix the TOC reference, with zero consequence on performance vs. the time it took to generate them (no time at all, since it came out of InDesign like that). All in all, just bad or incomplete advice. |
|
02-08-2024, 10:28 AM | #60 |
Zealot
Posts: 131
Karma: 9236
Join Date: Jun 2020
Device: Kindle PW3 [KOReader]
|
And to answer your question, if there is still code in there and it truly doesn't do anything (as in it doesn't impact performance either), I have no reason to remove it, if it takes time (therefore money, since I'm doing this professionally) to do it.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Nook S2 vs regular S2--bloat vs bucks?? | friedrice | Which one should I buy? | 5 | 05-05-2016 11:54 AM |
After I Edit Code, Save, and Convert, all my Code Edits are Gone | lukewrussell | Calibre | 1 | 03-14-2014 08:05 PM |
Some code help | Gray Eminence | Sigil | 3 | 12-31-2010 09:18 AM |
code help | AWOL | Sigil | 7 | 11-19-2010 11:50 AM |
Let's create a source code repository for DR 800 related code? | jraf | iRex | 3 | 03-11-2010 12:26 PM |