Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-28-2013, 10:38 AM   #1
djprescott
Enthusiast
djprescott began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
Removing underlines in Sigil/conflicts with sgc-#?

Hi all

I have been trying to figure this out for ages, but had no luck, so thought I should ask the experts.

I have generated an ePub file from InDesign CS5.5. I then run it into Sigil to do some tweaking.

I wanted to try and remove the underlines from internal hyperlinks within the file. I have tried text-decoration:none on the relevant CSS, but still no changes.

I then discovered the span classes than Sigil inserts (sgc-#). Thinking this may be causing the problem, I also inserted text-decoration:none into the html header alongside the inline styles for sgc. Still this didnt remove the underlining.

Does anyone have any idea of other things I could try?

Many thanks in advance
Dan
djprescott is offline   Reply With Quote
Old 05-28-2013, 10:40 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,998
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Turn off tidy. It will stop generating those sgc-# styles that should not be there.
JSWolf is offline   Reply With Quote
Advert
Old 05-28-2013, 10:49 AM   #3
djprescott
Enthusiast
djprescott began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
Hi JSWolf

Thanks for that, I turned off tidy and it did remove the sgc tags.

However, those underlines are still remaining. Can you think of anything I could do to remove the underlinings?

Thanks
djprescott is offline   Reply With Quote
Old 05-28-2013, 10:51 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,998
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Were the underlines in the ePub before it was loaded into Sigil?
JSWolf is offline   Reply With Quote
Old 05-28-2013, 10:53 AM   #5
djprescott
Enthusiast
djprescott began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
Yes, they were in place before it came into Sigil.
djprescott is offline   Reply With Quote
Advert
Old 05-28-2013, 10:54 AM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,998
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
How are the underlines coded?
JSWolf is offline   Reply With Quote
Old 05-28-2013, 10:56 AM   #7
djprescott
Enthusiast
djprescott began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
Do you mean in Sigil?

The ePub was generated in InDesign originally
djprescott is offline   Reply With Quote
Old 05-28-2013, 11:12 AM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,998
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Please post a sample of the code with an underline.
JSWolf is offline   Reply With Quote
Old 05-28-2013, 11:27 AM   #9
djprescott
Enthusiast
djprescott began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
'See example texts on 119' is the underlined text.

<span class="Hyperlinks" style="font-size:1em;">See Example texts on</span> <span class="Hyperlinks" style="font-size:1em;">119</span></a></p>


and the Hyperlinks CSS it refers to is:

span.Hyperlinks {
font-family : "Sabon MT Std", serif;
font-weight : normal;
font-style : normal;
font-size : 0.92em;
text-decoration : none;
font-variant : normal;
color : #000000;}
djprescott is offline   Reply With Quote
Old 05-28-2013, 11:33 AM   #10
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,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by djprescott View Post
'See example texts on 119' is the underlined text.

<span class="Hyperlinks" style="font-size:1em;">See Example texts on</span> <span class="Hyperlinks" style="font-size:1em;">119</span></a></p>


and the Hyperlinks CSS it refers to is:

span.Hyperlinks {
font-family : "Sabon MT Std", serif;
font-weight : normal;
font-style : normal;
font-size : 0.92em;
text-decoration : none;
font-variant : normal;
color : #000000;}
and Malformed Anchor to boot
Anchors are links
Links get underlined by default
the <a
takes precedence over your span
theducks is offline   Reply With Quote
Old 05-28-2013, 11:37 AM   #11
djprescott
Enthusiast
djprescott began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
Thanks for this.
This is the full section of code. Does this still look wrong?

<p class="examples_texts_ref"><img alt="example_texts.jpg" class="image" src="../Images/example_texts_fmt.jpeg" width="7%" /> <a id="See-Example-Texts_Celebrity-84"></a><a href="../Text/insides_52_kindle-60.html#Example_texts_Geocaching"><span class="Hyperlinks" style="font-size:1em;">See Example texts on</span> <span class="Hyperlinks" style="font-size:1em;">119</span></a></p>
djprescott is offline   Reply With Quote
Old 05-28-2013, 11:48 AM   #12
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,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
a { color: black; text-decoration: none; }

make all anchors Black and no underline
theducks is offline   Reply With Quote
Old 05-28-2013, 11:49 AM   #13
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,095
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
Quote:
Originally Posted by djprescott View Post
'See example texts on 119' is the underlined text.

<span class="Hyperlinks" style="font-size:1em;">See Example texts on</span> <span class="Hyperlinks" style="font-size:1em;">119</span></a></p>


and the Hyperlinks CSS it refers to is:

span.Hyperlinks {
font-family : "Sabon MT Std", serif;
font-weight : normal;
font-style : normal;
font-size : 0.92em;
text-decoration : none;
font-variant : normal;
color : #000000;}
You have a space in between the two identical spans which may be causing it to put the underline from the <a> tag. Remove the duplicate span like this:

<a href="..."><span class="Hyperlinks" style="font-size:1em;">See Example texts on 119</span></a></p>

Personally I don't like putting an extra span inside of another tag when you can just apply the style to the tag itself, like this:

<a href="..." class="Hyperlinks" style="font-size:1em;">See Example texts on 119</a></p>

or even more compact - just style the <a> tag itself in the css:

a {font-family : "Sabon MT Std", serif;
font-weight : normal;
font-style : normal;
font-size : 0.92em; 1em;
text-decoration : none;
font-variant : normal;
color : #000000; inherit}

<a href="...">See Example texts on 119</a></p>
Turtle91 is offline   Reply With Quote
Old 05-28-2013, 11:49 AM   #14
djprescott
Enthusiast
djprescott began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Feb 2013
Device: None
Thanks!
Do you mean to do this inline, or in the head of the html, or in the css?
djprescott is offline   Reply With Quote
Old 05-28-2013, 11:53 AM   #15
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,095
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
Dang...I got ninja'd by 3 posts!!! must be a slow-typing day!

I like to use "inherit" in my link color so the links don't disappear if the reader chooses "night mode"...the link will stay whatever color the normal text is...
Turtle91 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove contents page underlines in epub book using Sigil Andy Sinden Sigil 30 12-16-2012 10:09 AM
removing top margin/header/border with sigil genereated epub jezzad ePub 9 03-16-2012 03:35 PM
Mounted Device Conflicts with Toolbar Settings LaneLester Calibre 4 08-11-2011 04:42 PM
Can I stop Sigil from inserting sgc formatting commands? ramjet1953 Sigil 4 11-22-2010 11:59 AM
Hmmm, SGC's being added weirdness Hitch Sigil 8 09-26-2010 04:01 AM


All times are GMT -4. The time now is 01:12 AM.


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