Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-12-2020, 11:36 AM   #16
deback
Book E d i t o r
deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 366
Karma: 110636
Join Date: May 2015
Device: Laptop
Yup, changing to "Justify" in the Preferences will always work. The only problem with that is your cover images might not be centered, because this setting justifies all pages.

I prefer to change the text alignment in the CSS file for the actual classes used for the first paragraph and all other paragraphs.
deback is offline   Reply With Quote
Old 01-12-2020, 11:39 AM   #17
deback
Book E d i t o r
deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 366
Karma: 110636
Join Date: May 2015
Device: Laptop
Quote:
I don't understand CSS or html or any other programing. Please tell me slowly, step by step.
If you want to change the actual classes in the CSS file, open up one of the HTML pages and find the first paragraph in a chapter. For example, <p class="noindent">. Then change the "noindent" class in the CSS file to have text-align: justify;. Do the same for the class used in the rest of the paragraphs. For example, <p class="text">. Change the "text" class in the CSS file to have text-align: justify;.
deback is offline   Reply With Quote
Old 01-12-2020, 11:44 AM   #18
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 55,454
Karma: 51439620
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by deback View Post
If you want to change the actual classes in the CSS file, open up one of the HTML pages and find the first paragraph in a chapter. For example, <p class="noindent">. Then change the "noindent" class in the CSS file to have text-align: justify;. Do the same for the class used in the rest of the paragraphs. For example, <p class="text">. Change the "text" class in the CSS file to have text-align: justify;.
What a long way around for a shortcut.

If there is a body class and if not, add one and make sure it has text-align: justify;. Then remove all lines of text-align: left;. That's the easiest way to do it.
JSWolf is offline   Reply With Quote
Old 01-12-2020, 12:00 PM   #19
deback
Book E d i t o r
deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 366
Karma: 110636
Join Date: May 2015
Device: Laptop
Yup, that will also work, but it's always good to know all your options, so it's not "a long way around for a shortcut." I already mentioned changing the <body> class in a prior post.

The problem with your method is this: You are editing the <body> class AND the two paragraph classes. So, your method involves three edits and my method involves only two edits (which is actually the easiest and quickest way to do it). Either way, the result is the same. I happen to prefer the quicker method by changing two "left" words to two "justify" words. And I use a macro to add this: text-align: justify; So, how can making only two edits be "a long way around" compared to making three edits? Think about it...

I also have a macro (plus many more) that does the following (which I use often): margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; text-align: justify; text-indent: 1.2em; I just highlight all lines in the CSS file for the paragraph class and hit the macro hotkey to copy over whatever is listed in that class.

Last edited by deback; 01-12-2020 at 12:30 PM.
deback is offline   Reply With Quote
Old 01-12-2020, 03:32 PM   #20
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 55,454
Karma: 51439620
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by deback View Post
Yup, that will also work, but it's always good to know all your options, so it's not "a long way around for a shortcut." I already mentioned changing the <body> class in a prior post.

The problem with your method is this: You are editing the <body> class AND the two paragraph classes. So, your method involves three edits and my method involves only two edits (which is actually the easiest and quickest way to do it). Either way, the result is the same. I happen to prefer the quicker method by changing two "left" words to two "justify" words. And I use a macro to add this: text-align: justify; So, how can making only two edits be "a long way around" compared to making three edits? Think about it...

I also have a macro (plus many more) that does the following (which I use often): margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; text-align: justify; text-indent: 1.2em; I just highlight all lines in the CSS file for the paragraph class and hit the macro hotkey to copy over whatever is listed in that class.
Actually, your way is not always the easiest. There are sometimes other classes that go with <p> that are not the standard paragraph or noindent paragraph. Especially when doing offset text because the publishers do not feel that using a <blockquote> is a good idea when it's the best idea.

Doing it my way, you don't have to deal with an unknown amount of <p> classes. You just set up the justify in body, dump any left justification and your done.
JSWolf is offline   Reply With Quote
Old 01-12-2020, 09:01 PM   #21
BookCat
C L J
BookCat ought to be getting tired of karma fortunes by now.BookCat ought to be getting tired of karma fortunes by now.BookCat ought to be getting tired of karma fortunes by now.BookCat ought to be getting tired of karma fortunes by now.BookCat ought to be getting tired of karma fortunes by now.BookCat ought to be getting tired of karma fortunes by now.BookCat ought to be getting tired of karma fortunes by now.BookCat ought to be getting tired of karma fortunes by now.BookCat ought to be getting tired of karma fortunes by now.BookCat ought to be getting tired of karma fortunes by now.BookCat ought to be getting tired of karma fortunes by now.
 
BookCat's Avatar
 
Posts: 2,455
Karma: 15899999
Join Date: Dec 2008
Location: Birmingham UK
Device: Sony e-reader 505, Kindle Paperwhite 2, Kindle Paperwhite 3
Thank you for the HTML answers, but I don't understand any of it. I don't even know where to find the HTML for a book.

On the other hand, I don't mind having off-centre covers; I spend very little time looking at the covers, prefering List View on the kindle. This seems a simpler way to do this too.

I'm sure your more complex answers will help someone more into programing.

Thanks.
BookCat is offline   Reply With Quote
Old 01-12-2020, 10:25 PM   #22
deback
Book E d i t o r
deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 366
Karma: 110636
Join Date: May 2015
Device: Laptop
Quote:
Actually, your way is not always the easiest. There are sometimes other classes that go with <p> that are not the standard paragraph or noindent paragraph. Especially when doing offset text because the publishers do not feel that using a <blockquote> is a good idea when it's the best idea.
Actually, my way is the quickest and easiest. Offset text is not frequent enough to worry about justifying it (for the original poster, that is), but I never use blockquote (and I understand why publishers who know what they're doing don't use blockquote). I have certain classes in my template CSS file for offset text: text1, text2, text3, etc. They all have different formats, and it's very quick for me to add a number after "text" for the different formats I need for the offset text. My system is simple but very effective, fast, and the results are fantastic. I spent a lot of time coming up with the perfect editing process, and it was worth every minute I spent setting it all up. Your advice usually makes no sense to me, and it usually sounds like it would be much more time-consuming than my system. But thanks for trying!

Last edited by deback; 01-12-2020 at 10:33 PM.
deback is offline   Reply With Quote
Old 01-12-2020, 10:29 PM   #23
deback
Book E d i t o r
deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 366
Karma: 110636
Join Date: May 2015
Device: Laptop
Quote:
Thank you for the HTML answers, but I don't understand any of it. I don't even know where to find the HTML for a book.
You can just use the Look and Feel setting to continue justifying the text. When I mentioned HTML, I was referring to the files that are listed on the left side of the Calibre Editor. They all should have the extension of either html, htm, or xhtml. Double clicking on any of them will open the file, so you can see all the codes for each paragraph, etc. Then you can open the stylesheet.css file that's listed below the HTML files in order to edit things in that file.
deback is offline   Reply With Quote
Old 01-13-2020, 06:04 AM   #24
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 55,454
Karma: 51439620
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by deback View Post
Actually, my way is the quickest and easiest. Offset text is not frequent enough to worry about justifying it (for the original poster, that is), but I never use blockquote (and I understand why publishers who know what they're doing don't use blockquote). I have certain classes in my template CSS file for offset text: text1, text2, text3, etc. They all have different formats, and it's very quick for me to add a number after "text" for the different formats I need for the offset text. My system is simple but very effective, fast, and the results are fantastic. I spent a lot of time coming up with the perfect editing process, and it was worth every minute I spent setting it all up. Your advice usually makes no sense to me, and it usually sounds like it would be much more time-consuming than my system. But thanks for trying!
Sorry, your now twice wrong. You way is not the best way as it won't work in all cases and as for the publishers, they make a great many formatting/coding mistakes. There's no reason at all not to use <blockquote> in most cases.

When you fix the justification my way in CSS, it's properly fixed for all classes. Do it your way and you could miss out some classes. Plus, you have to find all the classes to add in the code to justify. My wau, you just have to add in the code once. You still have to remove all the left justify code in either case. Adding in body if need be is trivial.

I have a shortcut setup in Calibre. All I do is type body and then hit control-j and my body and p classes as added in. I do have to dump the p class if the publisher added one. Otherwise I'll have two p classes.
JSWolf is offline   Reply With Quote
Old 01-13-2020, 06:05 AM   #25
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 55,454
Karma: 51439620
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by BookCat View Post
Thank you for the HTML answers, but I don't understand any of it. I don't even know where to find the HTML for a book.

On the other hand, I don't mind having off-centre covers; I spend very little time looking at the covers, prefering List View on the kindle. This seems a simpler way to do this too.

I'm sure your more complex answers will help someone more into programing.

Thanks.
All of this is in the eBook's CSS. You can get to it by using the editor. The easiest way to get to the editor is to select the eBook and press T. You can only edit ePub or KF8.
JSWolf is offline   Reply With Quote
Old 01-14-2020, 11:12 AM   #26
deback
Book E d i t o r
deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.deback figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 366
Karma: 110636
Join Date: May 2015
Device: Laptop
Quote:
Sorry, your [sic] now twice wrong. You [sic] way is not the best way as it won't work in all cases and as for the publishers, they make a great many formatting/coding mistakes. There's no reason at all not to use <blockquote> in most cases.

When you fix the justification my way in CSS, it's properly fixed for all classes. Do it your way and you could miss out some classes. Plus, you have to find all the classes to add in the code to justify. My wau [sic], you just have to add in the code once. You still have to remove all the left justify code [sic] in either case. Adding in body if need be is trivial.
One thing you're missing is that I don't usually want all classes to be justified. I want just the first paragraph and the rest of the paragraphs to be justified. There might be some left-justified classes that I want to stay that way. You can argue all you want, but I will keep using my method, since it is the best and most efficient method.
deback is offline   Reply With Quote
Old 01-14-2020, 03:22 PM   #27
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 55,454
Karma: 51439620
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by deback View Post
One thing you're missing is that I don't usually want all classes to be justified. I want just the first paragraph and the rest of the paragraphs to be justified. There might be some left-justified classes that I want to stay that way. You can argue all you want, but I will keep using my method, since it is the best and most efficient method.
Sorry, but it's not the most efficient method. It's rather inefficient in comparison.
JSWolf is offline   Reply With Quote
Reply

Tags
justification, ragged margins

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page justification when converting from EPUB to AZW3 Tomhik Conversion 1 01-23-2018 12:02 AM
PRS-T1 Justification Hatgirl Sony Reader 5 11-17-2011 10:59 AM
[Kobo] Remove page number from right-hand margin + justification digital_steve Calibre 5 08-06-2010 12:24 AM
Next Firmware Update - Page margins and full justification JBlyth Kobo Reader 32 07-12-2010 12:13 AM
DX justification jlinden Amazon Kindle 7 01-18-2010 08:22 AM


All times are GMT -4. The time now is 08:31 PM.


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