Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Epub_Export_Hyperlinks_Underline

New Here ,
Nov 30, 2022 Nov 30, 2022

Hi Guys. Im trying to figure out how can i change hyperlinks. I can change colour and size but i cant refuse the underline than i export to epub. Thanks for any kind of advice. Cheers 

TOPICS
EPUB
840
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 30, 2022 Nov 30, 2022

Hyperlinks are applied a character style called Hyperlink by default. Disable underline in that character style and all links will be fixed.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 30, 2022 Nov 30, 2022

Thanks for the very quick response. But like im wrote, i did changed the caracter style. It worked perfect for colour and size but it do not working for refusing the underline.
btw: it seems to work with the ebook reeder from apple but its not working for google and the readerfrom acrobat 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 30, 2022 Nov 30, 2022

This is unfortunately a selective fix, Peter. How hyperlinks are displayed in EPUB readers is yet another aspect that is reader-dependent, just as some (mostly older, now) browsers would make links blue and underlined no matter what formatting was applied.

 

You can apply all styling in ID and using CSS, but the reader has the final say.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 01, 2022 Dec 01, 2022

but the reader has the final say.

Thanks, I didn't know that. That's not good behaviour I don't think.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 30, 2022 Nov 30, 2022

If you disabled underline in the character style and the character style is applied to the hyperlinks and the hyperlinks are underlined, then the underline must somehow have been applied as a local override. You can undo that by searching for the character style, and removing the underline (i.e. apply -underline):

 

PeterKahrel_0-1669808845736.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 31, 2023 Jan 31, 2023

@James Gifford—NitroPress said: "You can apply all styling in ID and using CSS, but the reader has the final say."

 

Hi James,

indeed. The reader has the final say.

Usually text-decoration:none in the CSS should be sufficient.

 

But even if I see that already in the CSS of a cracked open reflowable EPUB the Thorium Reader or the Calibre ebook viewer will still do an underline.

 

So I did the following, I changed span.Hyperlink in the idGeneratedStyles.css from:

 

span.Hyperlink {
	color:#22599b;
}

 

to:

 

span.Hyperlink {
	color:#22599b;
	text-decoration:underline;
	text-decoration-color:rgb(255,255,255);
}

 

Well, that's a hack only, a white underline that is working with a white background.

The white underline will be visible if I change the viewer's theme from "Neutral" to e.g. "Night".

 

James, do you have an idea to turn it off in the EPUB viewer?

 

Regards,
Uwe Laubender
( Adobe Community Expert )

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 31, 2023 Jan 31, 2023
LATEST

As you note I noted 🙂 it's all in the reader. Some are very "soft" and follow the code; others have very hard-coded highlighting or style.

 

Overriding both the default Hyperlink style (which plays hide and seek within ID anyway) and any overlay style sometimes combines to give some control. Often, the one factor that just cannot be removed is the underline, and second to that is that it will always be a blue underline, even under otherwise restyled code.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines