View Single Post
Old 07-15-2022, 12:31 PM   #1
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
All text becomes a link (kepub only)

A retail epub works fine as epub, but when converted to kepub (either by the calibre plugin, or by kepubify) all the text becomes a link.

Every chapter title looks something like this:

<p class="CT" id="ch04_ch_001"><a href="ch04.xhtml#tocch04_ch_001"><span class="ChapLabel">4</span>Title text</a></p>

Code:
p.CT {
  font-family: sans-serif;
  font-size: 140%;
  margin-left: 0em;
  margin-top: 1em;
  margin-bottom: 2.5em;
  font-style: normal;
  font-weight: bold;
  text-align: center;
  line-height: 1.2em;
  text-transform: uppercase;
}


It's this link that gets followed when the text in the chapter gets clicked on.

I have tried to remove various things, divs and what not, but so far I haven't understood what is causing this. (Removing the href from the title works of course.)

Tested on two different Kobo models.

Any idea?
Attached Files
File Type: epub scrambled-partial.epub (143.9 KB, 51 views)
patrik is offline   Reply With Quote