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 05-28-2022, 04:50 AM   #1
adfadfsasdfafafd
Enthusiast
adfadfsasdfafafd has learned how to buy an e-book online
 
Posts: 27
Karma: 76
Join Date: May 2014
Device: Kindle 3
Small capitals in Economist recipe

I don't know if something has changed on the Economist website, but for the last couple of weeks abbreviations like "DNA" and "FBI" are coming out as "dna" and "fbi" for me.

e.g. this is the case for:

https://www.economist.com/the-world-...05/26/politics

Looking at the page source, it seems they're using:

<small>dna</small>

and in the output file, it's rendering as:

<small class="calibre14">dna</small>
adfadfsasdfafafd is offline   Reply With Quote
Old 05-28-2022, 06:10 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,960
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
They are nitwits: https://github.com/kovidgoyal/calibr...1affdaf0992589
kovidgoyal is offline   Reply With Quote
Old 05-28-2022, 11:09 AM   #3
adfadfsasdfafafd
Enthusiast
adfadfsasdfafafd has learned how to buy an e-book online
 
Posts: 27
Karma: 76
Join Date: May 2014
Device: Kindle 3
Brilliant, thank you!
adfadfsasdfafafd is offline   Reply With Quote
Old 06-04-2022, 01:36 AM   #4
jwhittin
Enthusiast
jwhittin began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Dec 2010
Location: Melbourne, Australia
Device: Kobo Clara HD
Forgive me if I'm missing something obvious - I'm not very knowledgeable in HTML, but I'm still getting small lower case text after the recipe workaround.

I can fix it by editing the output EPUB document style sheet and adding
text-transform: uppercase;
to the relevant calibreXX class (which seems to change each week).

How can I set it up so I don't have to manually edit each week?

Many thanks

John
jwhittin is offline   Reply With Quote
Old 06-04-2022, 02:03 AM   #5
jwhittin
Enthusiast
jwhittin began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Dec 2010
Location: Melbourne, Australia
Device: Kobo Clara HD
Quote:
Originally Posted by jwhittin View Post
I can fix it by editing the output EPUB document style sheet and adding
text-transform: uppercase;
to the relevant calibreXX class (which seems to change each week).
Further update. This only seems to fix the problem when reading using Calibre reader. When I've re-transferred the files to my Clara HD (after deleting the old versions), they still show as lower case.

..sigh..
jwhittin is offline   Reply With Quote
Old 06-04-2022, 02:15 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,960
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I dont see how that's possible. Make sure you are using the builtin recipe and not a custom one.
kovidgoyal is offline   Reply With Quote
Old 06-04-2022, 03:16 AM   #7
jwhittin
Enthusiast
jwhittin began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Dec 2010
Location: Melbourne, Australia
Device: Kobo Clara HD
Quote:
Originally Posted by kovidgoyal View Post
I dont see how that's possible. Make sure you are using the builtin recipe and not a custom one.
Thanks for the fast response. I've just checked and it's your recipe (the one with the red logo) and I can't recall ever modifying it (besides which, wouldn't it be overwritten by the new version?). I can confirm that it contains the code in your Github workaround mentioned above.

If you want sample files or parts of files, please let me know what you need.
jwhittin is offline   Reply With Quote
Old 06-04-2022, 03:32 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,960
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No I need a url to an article that doesnt work.
kovidgoyal is offline   Reply With Quote
Old 06-04-2022, 03:40 AM   #9
jwhittin
Enthusiast
jwhittin began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Dec 2010
Location: Melbourne, Australia
Device: Kobo Clara HD
Quote:
Originally Posted by kovidgoyal View Post
No I need a url to an article that doesnt work.
https://www.economist.com/letters/20...-to-the-editor downloads with letter writer's name in small lower case.

Here is the part of the EPUB produced by the download:
<p class="calibre13"><small class="calibre19">darren hughes</small><br class="calibre8"/>Chief executive<br class="calibre8"/>Electoral Reform Society<br class="calibre8"/><i class="calibre18">London</i></p>
jwhittin is offline   Reply With Quote
Old 06-04-2022, 03:45 AM   #10
jwhittin
Enthusiast
jwhittin began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Dec 2010
Location: Melbourne, Australia
Device: Kobo Clara HD
And this is how it displays in Calibre reader (without me editing the style sheet).
Attached Thumbnails
Click image for larger version

Name:	Picture1.png
Views:	63
Size:	1.8 KB
ID:	194122  
jwhittin is offline   Reply With Quote
Old 06-04-2022, 05:44 AM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,960
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...da53da7221bdfb
kovidgoyal is offline   Reply With Quote
Old 06-04-2022, 07:27 AM   #12
jwhittin
Enthusiast
jwhittin began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Dec 2010
Location: Melbourne, Australia
Device: Kobo Clara HD
Many thanks Kovid. Now working fine on both Calibre reader and the Clara HD. :-)
jwhittin is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Economist Recipe broken? For me at least... jwhittin Recipes 12 07-06-2016 03:03 AM
The Economist Recipe NSILMike Recipes 6 05-20-2016 07:40 AM
Economist Recipe Dhruv Recipes 5 10-10-2014 08:15 PM
Economist recipe... RobbieW Recipes 2 10-03-2013 05:01 PM
Economist recipe jdomingos76 Recipes 1 03-08-2011 08:33 AM


All times are GMT -4. The time now is 09:35 PM.


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