05-03-2023, 05:59 PM | #136 | |
Bibliophagist
Posts: 35,733
Karma: 145624992
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
My personal preference is to give these classes names just to make it easier for me to follow later. <p><span>A</span> is a bit harder to follow than <p><span class="dropcap1">A</span> when you come back to it a few months later. |
|
05-03-2023, 07:01 PM | #137 | |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
Quote:
Last edited by slowsmile; 05-03-2023 at 07:09 PM. |
|
05-03-2023, 07:01 PM | #138 |
Sigil Developer
Posts: 7,675
Karma: 5433388
Join Date: Nov 2009
Device: many
|
CSS combinator selectors appears to be an "in" thing to do to prevent the need to create and use css classes in your html/xhtml even though class names can actually be chosen to mean something!
That said ... they are not naked spans and should not be removed. Last edited by KevinH; 05-03-2023 at 07:04 PM. |
05-03-2023, 07:19 PM | #139 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
KevinH and @DiapDealer...In that case -- if removing empty spans really does effect the formatting as you say -- I will add another option for empty span removal in the plugin. This also means that I will have to create another separate user options dialog, since the current user options dialog window's height is now excessive.
Last edited by slowsmile; 05-03-2023 at 07:22 PM. |
05-03-2023, 07:21 PM | #140 |
Grand Sorcerer
Posts: 27,568
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
05-03-2023, 07:38 PM | #141 | |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
Quote:
|
|
05-03-2023, 07:41 PM | #142 | |
Grand Sorcerer
Posts: 27,568
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
I'd recommend multiple columns or even tabs, but then it is tkinter. So everything is easier said than done. I ultimately had to get away from using it (Tk/TKinter). Made my head hurt something fierce! |
|
05-03-2023, 07:53 PM | #143 | |
Grand Sorcerer
Posts: 27,568
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
One option would be to stop removing naked (no attributes) span tags by default with the plugin. Then make it a manual preference to remove them. Those who know the risks (and know what they're doing) and want to remove them anyway, could always manually add something like a Code:
"remove_naked_spans": true, |
|
05-03-2023, 08:07 PM | #144 | ||
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
Quote:
Quote:
And thanks for the suggestion about using the json file for selection but unfortunately I already use the json settings to save the user dialog selection for next time you use the plugin. So I think my only option is to perhaps add it as another user option in the user options dialog window. Last edited by slowsmile; 05-03-2023 at 08:20 PM. |
||
05-03-2023, 08:26 PM | #145 |
Grand Sorcerer
Posts: 27,568
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
That's fair. Qt has it's own learning curve. But since I'm already used to doing C++ Qt stuff with Sigil itself, Qt for Python just makes more sense to me. I never did fully warm up to tkinter. Nothing about it ever became intuitive for me. I had to look up online examples for everything I wanted to do with it.
|
05-03-2023, 08:58 PM | #146 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
Just to clarify and recap, I will make the following changes to this plugin in the near future:
|
05-04-2023, 09:10 AM | #147 |
Resident Curmudgeon
Posts: 74,246
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
How about checking the CSS and if there is no style for a naked span, then go ahead and remove them?
|
05-04-2023, 09:22 AM | #148 |
Grand Sorcerer
Posts: 27,568
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
05-04-2023, 05:25 PM | #149 | |
Bibliophagist
Posts: 35,733
Karma: 145624992
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Last edited by DNSB; 05-04-2023 at 05:27 PM. |
|
05-04-2023, 06:46 PM | #150 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
Just to be absolutely clear, when I say "empty span tags" I mean span tags that have nothing inside them -- no classes, style or any other attributes. Example below:
Code:
<h1 class="heading"><span>CHAPTER 1</span></h1> Generally, as a rule, I always try and avoid using both "empty span tags" and "naked span tags" in my own epubs. In most instances, empty spans serve no earthly purpose and naked spans alone and on their own line(and not surrounded by <div> tags) will always give you an error whenever you run FlightCrew or Epubcheck. Last edited by slowsmile; 05-04-2023 at 07:24 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[FileType Plugin] YVES Bible Plugin | ClashTheBunny | Plugins | 27 | 01-16-2023 01:25 AM |
Problem with my ScrambleEbook plugin and the Plugin Updater tool | jackie_w | Development | 14 | 01-19-2017 10:49 PM |
Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 02:24 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |
New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 12:11 PM |