![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 123
Karma: 998177
Join Date: Aug 2010
Device: Kindle 3
|
![]()
The issue is that when reading programmers books (converted from EPUB) on my Kindle the letter size of all code examples (displayed in a monospace font) are significantly larger than the rest of the books font. As result the code bloks are larger but it's especially ugly & annoing when code is part of the line of other text. Is there anything i can do about it? See in attachment for example.
Last edited by Starko; 11-11-2012 at 06:59 AM. |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
You could use the inspect function in calibre reader to find font size for the code and change it with tweak epub (select text and right click on it to inspect)
Helen |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 123
Karma: 998177
Join Date: Aug 2010
Device: Kindle 3
|
Thanks helen. I tried but i am not good at CSS and i see that there are a lot of inheritance there so i have no idea what the actual font size is and where i have to change it. That would also mean that i'd have to do it every time with every book i convert.
I was more thinking in terms of having a setting somewhere that makes <pre>, <tt> and other monosize fonts smaller during conversion to moby. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Covert to azw3 instead you should get nicer looking results with that.
|
![]() |
![]() |
![]() |
#5 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 123
Karma: 998177
Join Date: Aug 2010
Device: Kindle 3
|
Thanks, i just tried it and it does look much better!
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
Quote:
I know very little about CSS either dammit. One easy solution to try is under conversion>look and feel>filter style information. Check/tick fonts box. I did not think the kindle 3 had seperate fonts so this probably will not work, but if it does work you could make it your conversion default. As to the tweak option, it is a bit of a pain in the butt to have to change a lot of files. I have done over 500 I am sure and and generally do 10 or less at a time. But when they are done they are done. I inspect a selected portion of the text in the calibre viewer. Usually the font size is listed. At this point I uncheck the box beside the font size to see if everything looks better. If it does I tweak the epub and remove all font size lines in stylesheet.css with that size. Or change them to the size I want. Worst case I just remove every font size reference. Notepad works although there are better programs. Adobe dreamweaver for one. Once you have done one it takes about a minute per book which to me is better than being annoyed constantly every time you reference the book. Helen PS I ignore the inheritance and you have the choice to preview the book before you rebuild it. Last edited by speakingtohe; 11-11-2012 at 04:20 PM. |
|
![]() |
![]() |
![]() |
#7 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 123
Karma: 998177
Join Date: Aug 2010
Device: Kindle 3
|
Helen, thank you for such a detailed response!
I am a tinkerer too. This time though, i decided to find out whether there was something that could be done quickly. And if not, than how much effort would be needed to actually understand how kindle handles monosize fonts. For example, regular browsers ignore your direct attempts to set font size for <pre> tag. I am sure that there there are or at some point will be some ways to influence conversion. But using AZW3 works well enough (ideally i'd like to have monosize fonts yet another point smaller) so i will not spend any more time on this. Thanks again anyway |
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,249
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
If you're a tinkerer you could try editing the css file in your book. Wherever you see the styling
Code:
font-family: monospace; Code:
font-size: 0.8em; |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Solved - setting font size for optimum reading | PodPeople | Ectaco jetBook | 3 | 05-05-2011 03:01 PM |
0.7.58 Mobi Font Size problem | Blossom | Conversion | 15 | 04-30-2011 09:27 PM |
Setting optimum font size for Aluratek Libre | PodPeople | Conversion | 0 | 02-28-2011 09:27 AM |
Smallest font size in Mobi | hkdorama | Kindle Formats | 0 | 07-26-2010 04:07 AM |
LIT->LRF Conversion - Quirky Base Font Size Setting | orion2001 | Calibre | 6 | 09-27-2009 12:10 AM |