![]() |
#16 | ||||||||
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,068
Karma: 142517494
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Don't convert to try to fix things. It will make the code more difficult to fix things. Go from the original code. Quote:
I too change the indents to 1.2em. I remove the line heights as your Kobo has a setting for line height and you can set it for what you want. It's better that way. Margins should be set to 0. Again Kobo has a setting for margins and you can only increase, not decrease the margins. So again, leaving the margins at 0 lets you choose what you want. There's no need to embed Charis SIL (or the even better ChareInk version that I made). You can side load the fonts you want and use the Kobo firmware setting to select which font you want. As for justification, remove all text-align: left and justify. There again is a setting in the firmware for justification. Also, in classes that affect the body styling, remove any font-size 1em or less. Also, any you get any sort of space of 5% or more, I change that to less. What that is depends on where the space is. For ToC headers, I use a top/bottom margin of 0.8em. But you may find something like 1 or 1.5em to be more to your liking. If there are any widows and orphans in the CSS, I remove those and put a widows: 1 and orphans: 1 in the body style (if there is not a body style, add one). Quote:
Quote:
Quote:
Quote:
Another thing I do is remove the internal ToC (the HTML ToC) and I remove things like "About the Publisher" a list of the author's other books, any reviews, advertisements, previews for other books, newsletter links, piracy notices, and any other rubbish I don't need. You just delete those files in the text section. The NCX ToC will automatically be edited to remove those files if they are there. Also, if there are any embedded fonts I don't want, I delete them and remove the code from the CSS. If you do have any embedded fonts youdo keep, in the Tools menu is where you can find the option to subset the embedded fonts to make them smaller and remove any that are not used. Quote:
Quote:
But remember, DO NOT CONVERT! |
||||||||
![]() |
![]() |
![]() |
#17 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 121
Karma: 5508
Join Date: Dec 2012
Location: Singapore
Device: Kindle Paperwhite 1 & 3
|
wow seem too deep for me
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Book E d i t o r
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
I've been very happy with my system and will keep doing it that way. I've never had a problem when converting files more than once, so I will not be making any changes and will continue to convert all files after modifying all of them. Many of my settings in the Styling and Transform sections will fix many things, without having to manually do a lot of editing.
In Common Options/Look & Feel, I have checked: Subset all embedded fonts, Expand CSS, and embed the Charis SIL font (which I love, so there's no reason to find any other font). In Styling, I have the Fonts box checked at the bottom. I have many extra CSS entries in Styling and many rules in Transform Styles. If anyone wants to see the lists of those entries, let me know. Those entries have saved me tons of time since I added them. In Page Setup, I have 30pt for left and right margins. (This is a must, because I can't stand it when the text is almost flush with the side margins.) In Modify, I have all boxes checked, EXCEPT for the following: Remove OS artifact files, De-indent, Add unmanifested files to manifest, remove unmanifested files from ePub, Remove margins from Adobe .xpgt files, Remove Adobe resource DRM meta tags, Flatten TOC, Encode HTML in UTF-8, Modify @page and body margin styles, Append extra CSS, Remove inline javascript and files, Add/replace metadata jacket, Remove existing cover, insert or replace cover, and Remove non dc: metadata elements. I just wish the Remove page-map.xml feature in Modify actually worked all the time. That's one thing I have to constantly watch for, because if there's a page-map.xml file in the ePub, there is usually a problem with the page-numbering in ADE. And, once in a while, Check Book will find codes related to .xpgt files in the ePub that I have to have automatically fixed, so that feature in Modify doesn't work all the time, either. Another thing that happens once in a while is that my extra CSS for the class "calibre" doesn't always add text-align: justify;, and my extra CSS for the class "body" doesn't always change the left and right margins to zero, so I'll have to manually edit them when that happens: .calibre { margin-top: 0; margin-bottom: 0; line-height: 1.2; text-align: justify; } body { margin-left: 0; margin-right: 0; line-height: 1.2; } .body { margin-left: 0; margin-right: 0; line-height: 1.2; } Everyone has their own way of doing things, and everyone has their own opinions. I spent a lot of time perfecting my system, and it's about as perfect as it can be (except for the few things I still have to manually edit, mainly due to publishers' incompetent methods of coding). But I will read through your last post a few times to see if I can find anything I want to change. Thanks. |
![]() |
![]() |
![]() |
#19 |
Book E d i t o r
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
It would have been too deep for me, too, when I first started using Calibre. But after using it for a few years, I finally decided to learn more about the features.
First, I learned how to edit files and use the CSS coding--to fix errors and reformat everything. Then I asked a few questions in this forum, received some very useful responses, did a lot of reading about different things, and then I came up with my current system of making ePub files be the way I want them to be. |
![]() |
![]() |
![]() |
#20 | |||||||
Book E d i t o r
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Last edited by deback; 02-11-2019 at 08:10 AM. |
|||||||
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 121
Karma: 5508
Join Date: Dec 2012
Location: Singapore
Device: Kindle Paperwhite 1 & 3
|
this seem to be a big topic on Calibre
|
![]() |
![]() |
![]() |
#22 |
Book E d i t o r
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
JSWolf - I just tried your two versions of ChareInk. Found no difference between the NoWeight version and the Charis version, but I would not be able to read books with the regular version of ChareInk, since my first inclination would be to edit the book and get rid of the bold code. It hurt my eyes to look at it. That is one of the other things I always manually edit...when the paragraph text is coded to be bold.
Last edited by deback; 03-24-2018 at 01:19 PM. |
![]() |
![]() |
![]() |
#23 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,068
Karma: 142517494
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#24 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,068
Karma: 142517494
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#25 | |||||||
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,068
Karma: 142517494
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
And there are some bugs in converting which means you will need to go into the code and find where the conversion went wrong and manually fix them. For example, a font size of small is converted to 9pt. That's smaller that a size of small and it too small to read. And some of the things I say to remove will make the eBook much easier to deal with. Once you've removed all excess CSS, searching/replacing is very easy. It's a lot easier to do it my way than your way. And with my way, you learn more about the code which is a good thing vs. a blind conversion where you don't learn much of anything. |
|||||||
![]() |
![]() |
![]() |
#26 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 436
Karma: 3220258
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Over the past year or so, I've had about 3,000 books open in the editor - anything from a quick fix to major surgery. If I've learned anything, it's that no matter how I try to automate or streamline some function, the next book breaks the mould and is totally screwed up by whatever I thought I had working so well. The variation in ebook coding is so vast it is just amazing. It keeps the hobby interesting!
I have come to agree about not converting most of the time. I'm so used to the editor it is just easier. And if I type in find <div.*?>, replace with nothing, and hit "replace all", I know I can backtrack if I have to. But I keep finding old short stories from early mystery and sci-fi magazines that have all in-line styling and no CSS files--the only way I've found to deal with those is to convert, as it gets rid of the in-line stuff and creates a CSS file. The originals can be so dense with code it's migraine time to try and read it. No idea how else to do that. This thread is amazing, it is like a history of just about everything I've bumped into and learned or tried over the past year. You guys are wonderful. |
![]() |
![]() |
![]() |
#27 |
Book E d i t o r
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
JS - Most of everything you said in your last post does not apply to me. I know how to code with CSS and HTML. I'm a book editor, FPS--and valedictorians tend to learn how to do things easily and quickly--and achieve the best results.
I have lots of extra styling codes that fix a lot of things that I used to fix manually. I have lots of transform rules added that fix a lot of things that I used to have to spend time fixing manually. Conversion works great for me and does NOT make editing any harder and does not mess up things. Actually, conversion makes everything much easier. Once in a while, I'll have to manually edit something, but that happens far less often than when I used to do all the editing manually. In fact, I've saved hundreds of hours (or more) by modifying and converting with all my extra settings that fix a lot of things automatically for me. I can load up 100 files, run modify, run convert, run check book, and run ToC on each of the files, and be done with all of it in a very short amount of time. The results in all the books are fantastic, they all work fine, all the errors found by Calibre are gone (with very few manual edits needed), everything is justified, all the blank line spaces are gone, all the indents are how I want them, the text looks very nice, and I love how my files look when I'm done. They look much cleaner and are much better than when I started, that I can tell you. I wish I could show you my system. If I could, I'm 100% sure you would quit criticizing me for everything. You might also want to save time and use my system, which would save you tons of time, with much better results. |
![]() |
![]() |
![]() |
#28 |
Book E d i t o r
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
BTW, one of my settings in Transform is to change any "font-size: small;" and "font-size: medium;" to the size I want them to be. You see, all of my settings, extra CSS codes added, and transform rules take care of a lot of the things you are still editing manually. There are many things that can be done automatically in Extra CSS and Transform.
Punctuation should be smartened when you have edited a book and corrected many punctuation errors, added quotation marks, etc. I can't imagine why you said that most books don't need the punctuation smartened. But I have that performed automatically in my settings. Beautify is necessary to fix the arrangement of everything, including line spaces between all the HTML codes. One advantage of hitting the beautify button is that when finding and replacing, you don't need the \s+ in the Find string. If you don't hit the beautify button, Find will not find all occurrences (when you don't use \s+), but after you hit the beautify button, Find will find all occurrences (without having to use \s+ in the Find string). This makes editing much quicker, because then you just have to highlight whatever you want to search for and paste it into the Find box. Quite often, there will be spaces involved, but it won't matter if you just hit the Beautify button first. (I'm talking about a string that contains space between the end of one paragraph and the beginning of the next paragraph.) I definitely don't do "blind" conversions. You know nothing about me, so you have no idea that I'm a perfectionist, I know a lot about editing books, CSS codes, HTML, and much more that I won't go into here. I've spent hundreds of hours experimenting and perfecting my system and have edited many thousands of books to be the way I want them to be. When you're dealing with thousands of books (like I have), there are some things that would be very time-consuming to do (for example, removing pages that publishers have added is not something I have any interest in doing and would be very time-consuming, because most of the HTML pages I see have names like blahblah_split_001.html, etc). And doing some of the things you say you do manually would be a complete waste of time, when I can do (and already do) many of them automatically. |
![]() |
![]() |
![]() |
#29 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,372
Karma: 29268140
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Since TashPerth started this thread, he/she hasn't made any more posts - I wonder why.
I'll stick my neck out and suggest TashPerth is a she (Natasha) from the Scottish Perth or the Aussie one. She has obviously moved on whilst others - all men I'll venture - continue to wage a mansplaining battle even after she's stopped listening and left the room - yawning. BR |
![]() |
![]() |
![]() |
#30 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
@BR, absolutely right. It's a
![]() [OT] Only an idea from my side to the debaters: Why not making a separate new thread like a "How to do things better or easier" and make it as a sticky post if it is useful for others too. And a separate discussion thread of discussing things around it. That would have much more benefit as these kind of discussions in lots of threads. [/OT] |
![]() |
![]() |
![]() |
Tags |
automatic, format, personalization, personlization |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Merge Formats library into Metadata library? Or, Add Format in bulk? | Sabardeyn | Library Management | 5 | 01-23-2013 07:00 AM |
Formatting from azw4 file format | mandrix | Conversion | 0 | 11-07-2012 02:44 AM |
Keeping books in library in the fb2.zip format | Eugene_ | Library Management | 2 | 09-19-2011 09:39 AM |
Are library books in Adobe Epub format readable on Kindle? | stygian | Amazon Kindle | 7 | 01-09-2011 04:35 PM |
[KOBO] Strip existing formatting to apply my own default formatting to all books | digital_steve | Calibre | 2 | 08-10-2010 07:34 PM |