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

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 11-20-2023, 03:39 PM   #1
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,039
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
[Request] Additional reports

Hello @kovidgoyal

Often I find spurious code scattered throughout the ebook and these elements can be overlooked during clean up. Only by stumbling across them by accident, or reading the book in editor view, are you able to find them. For example, finding a single <tt></tt> element in a 150,000 word book will be quite difficult. (assume that you don't know it is there)

The reports component of the Editor is a very useful feature, but I find it a bit lacking and does not provide a complete overview of the coding, so the spurious codes can be overlooked during cleanup. For this reason I would like to request additional reports to give a complete view of the coding in the ebook.

In particular, I am referring to the two reports "Style rules" and "Style classes"

"Style Rules" simply lists the complete css file and applies a usage counter.
I find this misleading because the report is locked to the css file, and if a tag is not in the css file, it is not displayed, yet there could be many instances of its use in the ebook.
This should be renamed to CSS rules to avoid the misinterpretation that it will show all elements.
See image 1

"Style Classes" lists the classes in the css file that are used in the document, which duplicates part of the "Style rules" report. Though, of greater benefit is that it will also list classes used in the ebook that are not in the css file.
This is a very useful report in tracking down some spurious code.
See image 2

What you can see in both images, is that the ebook can be infested with code, yet neither report shows any of it.

What is additionally needed is one report to show all tags in use (image 3) and another report to list inline styling - maybe a report named "Inline styles" or maybe a report showing all attributes in use. This would make it much easier to track down coding that needs attention.

What are your thoughts?
Attached Thumbnails
Click image for larger version

Name:	HTMLElements1.jpg
Views:	53
Size:	187.5 KB
ID:	204832   Click image for larger version

Name:	HTMLElements2.jpg
Views:	56
Size:	186.9 KB
ID:	204833   Click image for larger version

Name:	HTMLElements3.jpg
Views:	54
Size:	39.4 KB
ID:	204834  

Last edited by Karellen; 11-20-2023 at 08:55 PM.
Karellen is online now   Reply With Quote
Old 11-20-2023, 10:22 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,671
Karma: 22446734
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
style rules is not linked to a particular css file its for all css files and even inline <style> tags. I'm not particularly keen on reports for tags used or style attributes, there's too little use fo the former and too much variation in the latter.
kovidgoyal is offline   Reply With Quote
Old 11-21-2023, 10:02 PM   #3
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,039
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Hi @kovidgoyal

I am surprised that you think there is too little use for a tag report, as users can very quickly spot tags that need investigating. Personally, I have been caught out so many times- that tag which is used once, and makes you wonder why it is even there.

Yep, I did think the style attributes might get a bit confusing, considering all the possibilities. Maybe list only the style="" occurrances? Anything with class="" will be captured in the style classes report anyway.

Maybe a report that also lists all id="" used in the ebook?

I know many members will think, "geez, just bloody search for them". Sure, but if you don't know they are there, then you don't know what to search for, or even consider searching.

Oh well, maybe one day but thanks for the response.
Karellen is online now   Reply With Quote
Old 11-22-2023, 11:48 AM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,589
Karma: 54344444
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
@karellen Who codes that way?
If I need a placeholder, I make it obvious. "TBD", "xxxxx" < I see this one a lot in links of some self pub books that I got from Amazon. it passes the syntax check
theducks is online now   Reply With Quote
Old 11-22-2023, 02:09 PM   #5
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,039
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by theducks View Post
@karellen Who codes that way?
No idea. I guess some self published authors or other editors that don't have a good grasp of epub design?
Karellen 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
"date" reports correct time zone and time; UI reports a time several hours off Synthead Kindle Developer's Corner 17 01-05-2015 06:10 AM
Feature Request: Additional Location/Tagging for Automatic Importing of books stanmarsh Library Management 0 10-26-2014 01:13 AM
Bug reports and feature request sections for Kobo Lucas Malor Feedback 5 05-22-2013 12:53 PM
Additional Catalog Indicator Request Tom SKP Library Management 7 08-04-2012 07:15 PM
Calibre feature request: Additional Columns/Fields mornington Calibre 29 12-01-2010 07:15 AM


All times are GMT -4. The time now is 06:49 PM.


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