![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 223
Karma: 4562
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
<span>Surrounding text</span>
A book I'm reading puts span tags around all text. Most are
Code:
<p><span>Paragraph of text</span></p> Is there any good reason to do this? For that matter, is there any good reason to delete them all (other than a bit of space saving)? |
![]() |
![]() |
![]() |
#2 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,151
Karma: 18843349
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Some software programs are just weird…. But…. That particular issue is something that kobo does for their kepub books. They use that span for some of their device functionality.
The individual letters surrounded by a span are usually used to apply styling. Eg the first dropcap letter in the chapter. Since you use a kobo I’d just leave them, they don’t really hurt anything. |
![]() |
![]() |
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 223
Karma: 4562
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
This is in an original epub, not from kobo. Sounds like there's no good reason for it, but no harm either.
EDIT: A problem with strikethrough that seems to be a kobo issue, unless there's a general epub solution: https://www.mobileread.com/forums/sh...4&postcount=44 Last edited by foosion; Yesterday at 08:45 PM. |
![]() |
![]() |
![]() |
#4 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,595
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 223
Karma: 4562
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
Otherwise regex find/replace would work. I wonder why they included all the <span>s, but that's probably a mystery. |
|
![]() |
![]() |
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,270
Karma: 6700678
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#7 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,595
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Find the icon (for diaps) in the toolbar and click the arrow on the right side. Then uncheck Edit current file only. |
|
![]() |
![]() |
![]() |
#8 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 223
Karma: 4562
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
There are arrows for convert CSS cm to em and for smarten punctuation, each leading to check for edit current file only. There is no such arrow for edit spans and divs, at least not on version 0.4.0 which is the version Calibre lists and is in the OP of the plugin's thread.
Last edited by foosion; Today at 07:04 AM. |
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,270
Karma: 6700678
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
In the editor, go to Edit>Preferences>Toolbars
Select "Book wide tools from third party plugins" Move the Edit Spans Divs icon from the left panel to the right panel Press ok You need to make the change from the icon, not the menu. |
![]() |
![]() |
![]() |
#10 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 223
Karma: 4562
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Edit Spans Divs was already in the right panel, along with the other two. Nothing to change.
|
![]() |
![]() |
![]() |
#11 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,151
Karma: 18843349
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
I'd change the individual letter spans to something else first, then get rid of the paragraph spans, then put the individual letter spans back to their original <span>. |
|
![]() |
![]() |
![]() |
#12 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 223
Karma: 4562
Join Date: Sep 2011
Device: Kobo Libra 2 & Clara BW
|
Quote:
I'd just remove the naked <spans>. Easy enough with regex find/replace in the editor. |
|
![]() |
![]() |
![]() |
#13 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,595
Karma: 134254544
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I know @Karellen already posted this, but you seem to have either missed it or ignored it so I'll post again. In the editor...
Last edited by JSWolf; Today at 10:09 AM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Span Span Span Sigil cleaning up indesign | blackest | Sigil | 31 | 12-06-2017 10:16 AM |
Span Span Span Span | MULTIVAC | ePub | 7 | 12-06-2014 08:58 AM |
span in span: is this problematic? | tbuyus | ePub | 8 | 03-31-2013 08:01 AM |
Is there RegEx to <span> ALL CAPS text? | phossler | Sigil | 4 | 03-10-2013 02:43 PM |
Remove <br /> together with span, and only span | Razzia | Recipes | 3 | 05-30-2011 06:55 PM |