![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 937
Karma: 4542958
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? Last edited by Karellen; 11-20-2023 at 08:55 PM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,315
Karma: 21696336
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.
|
![]() |
![]() |
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 937
Karma: 4542958
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 ![]() |
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,328
Karma: 53944634
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 |
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 937
Karma: 4542958
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |