Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 11-04-2023, 01:13 PM   #1
jma1
Connoisseur
jma1 began at the beginning.
 
Posts: 85
Karma: 10
Join Date: Dec 2015
Device: Kindle
Epoch Times article header format issue

The Epoch times just changed the topic header line appearing on each article. Now in the mobi download the header words appear in normal text size but the greater than symbol is huge filling a full screen on a kindle. Is it possible to reformat this?

The header appears as 'World News > Australia' in this example article.

This is the html for the header line.
Spoiler:
<div class="scroll flex items-center gap-2 whitespace-nowrap text-sm uppercase">
<a class="" href="/world">World News</a>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" width="16"><path stroke-linecap="round" stroke-linejoin="round" d="M8.25 4.5l7.5 7.5-7.5 7.5"></path></svg>
<a class="" href="/world/australia">Australia</a>
</div>


Thanks in advance.
jma1 is offline   Reply With Quote
Old 11-05-2023, 04:21 AM   #2
unkn0wn
Fanatic
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 543
Karma: 82944
Join Date: May 2021
Device: kindle
https://github.com/unkn0w7n/calibre/...c31151cc25ec54
unkn0wn is offline   Reply With Quote
Advert
Old 11-05-2023, 06:48 PM   #3
jma1
Connoisseur
jma1 began at the beginning.
 
Posts: 85
Karma: 10
Join Date: Dec 2015
Device: Kindle
Much better - thanks!

Is there any way in python to replace that svg element with text, the text string being a blank space or the greater than symbol?
jma1 is offline   Reply With Quote
Old 11-06-2023, 03:54 AM   #4
unkn0wn
Fanatic
unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.unkn0wn can do the Funky Gibbon.
 
Posts: 543
Karma: 82944
Join Date: May 2021
Device: kindle
this could be done in preprocess_html
unkn0wn is offline   Reply With Quote
Old 11-06-2023, 08:24 AM   #5
jma1
Connoisseur
jma1 began at the beginning.
 
Posts: 85
Karma: 10
Join Date: Dec 2015
Device: Kindle
Could you advise what the command is? Thanks.
jma1 is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epoch Times problem formatting image caption jma1 Recipes 3 08-30-2023 04:04 PM
Epoch Times has titles no content jma1 Recipes 0 08-20-2023 10:15 AM
Epoch Times Feed still failing jma1 Recipes 8 08-14-2023 10:31 AM
Epoch Times Feed failing jma1 Recipes 5 08-01-2023 02:20 PM
The Epoch Times recipie request jma1 Recipes 2 11-14-2021 04:13 PM


All times are GMT -4. The time now is 03:19 AM.


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