Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-13-2014, 10:26 AM   #1
VirgoGirl
"Why is it doing *that*?"
VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.
 
VirgoGirl's Avatar
 
Posts: 322
Karma: 725344
Join Date: Sep 2011
Device: Black Kobo Touch & Glo, responsible for 2 PaperWhites
Unhappy How to remove text justification?

Hi!

I like to remove all the text justification from my epubs - personal preference - and have been using Sigil to edit the CSS. After a quick view through the Calibre online User Manual, it said that the newest version of Calibre can do it under "Look & Feel> Miscellaneous" options. So I upgraded, but I can't find the option to remove all the justification. I see "text justification", but under the pull down menu is "Original, "left align", and "justify text". This is a screen shot of 1.27's "Look & Feel" screen:

(if that is too small, use this link for a bigger image: http://i142.photobucket.com/albums/r...pse11e15f7.jpg)

This is what the online user manual says:
Quote:
Miscellaneous

There are a few more options in this section.

No text justification
Normally, if the output format supports it, calibre will force the output ebook to have justified text (i.e., a smooth right margin). This option will turn off this behavior, in which case whatever justification is specified in the input document will be used instead.

Linearize tables
Some badly designed documents use tables to control the layout of text on the page. When converted these documents often have text that runs off the page and other artifacts. This option will extract the content from the tables and present it in a linear fashion. Note that this option linearizes all tables, so only use it if you are sure the input document does not use tables for legitimate purposes, like presenting tabular information.

Transliterate unicode characters
Transliterate unicode characters to an ASCII representation. Use with care because this will replace unicode characters with ASCII. For instance it will replace “Михаил Горбачёв” with “Mikhail Gorbachiov”. Also, note that in cases where there are multiple representations of a character (characters shared by Chinese and Japanese for instance) the representation used by the largest number of people will be used (Chinese in the previous example). This option is mainly useful if you are going to view the ebook on a device that does not have support for unicode.

Input character encoding
Older documents sometimes don’t specify their character encoding. When converted, this can result in non-English characters or special characters like smart quotes being corrupted. calibre tries to auto-detect the character encoding of the source document, but it does not’ always succeed. You can force it to assume a particular character encoding by using this setting. cp1252 is a common encoding for documents produced using windows software. You should also read How do I convert my file containing non-English characters, or smart quotes? for more on encoding issues.
I'm kinda frustrated as this was the only reason I updated the program, 0.9.33 was working just fine for me. Am I missing something?
VirgoGirl is offline   Reply With Quote
Old 03-13-2014, 10:51 AM   #2
kristalana
Groupie
kristalana ought to be getting tired of karma fortunes by now.kristalana ought to be getting tired of karma fortunes by now.kristalana ought to be getting tired of karma fortunes by now.kristalana ought to be getting tired of karma fortunes by now.kristalana ought to be getting tired of karma fortunes by now.kristalana ought to be getting tired of karma fortunes by now.kristalana ought to be getting tired of karma fortunes by now.kristalana ought to be getting tired of karma fortunes by now.kristalana ought to be getting tired of karma fortunes by now.kristalana ought to be getting tired of karma fortunes by now.kristalana ought to be getting tired of karma fortunes by now.
 
kristalana's Avatar
 
Posts: 152
Karma: 1170000
Join Date: Mar 2013
Location: USA
Device: Kindle PW2, Galaxy Tab Pro
You want "left align" under the text justification pull-down.
kristalana is offline   Reply With Quote
Old 03-13-2014, 11:07 AM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,993
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Kristalana hit the nail on the head.

'No' justification would be raggedy on both edges with no centering to boot.
So unless you write in one of those RTL written languages, Left is what you want
theducks is offline   Reply With Quote
Old 03-13-2014, 02:44 PM   #4
VirgoGirl
"Why is it doing *that*?"
VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.
 
VirgoGirl's Avatar
 
Posts: 322
Karma: 725344
Join Date: Sep 2011
Device: Black Kobo Touch & Glo, responsible for 2 PaperWhites
Hi, thanks for the replies!
Quote:
Originally Posted by kristalana View Post
You want "left align" under the text justification pull-down.
If I use left align, it locks it into the left justification, which means I can't then use the justification mode on my Kobo whenever I feel like the justification is necessary.

Quote:
Originally Posted by theducks
'No' justification would be raggedy on both edges with no centering to boot.
When I remove all the justification in Sigil, it doesn't make the left side ragged, it has a smooth left side and a jagged right side.

I want to be able to remove all the justification as it converts, not afterward with Calibre or Sigil.

Thanks again for the replies!
VirgoGirl is offline   Reply With Quote
Old 03-13-2014, 02:46 PM   #5
VirgoGirl
"Why is it doing *that*?"
VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.
 
VirgoGirl's Avatar
 
Posts: 322
Karma: 725344
Join Date: Sep 2011
Device: Black Kobo Touch & Glo, responsible for 2 PaperWhites
I hate the word "justification".
VirgoGirl is offline   Reply With Quote
Old 03-13-2014, 03:11 PM   #6
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
There is no perfect automated solution for what you want. You can use a calibre conversion to remove all text-align css entries by entering text-align in the Convert - Look&Feel - Filter Style - Other CSS Properties box, but there will be collateral damage of all centre- and right-alignment disappearing as well. The only way to remove selectively is the way you've been doing it.
jackie_w is offline   Reply With Quote
Old 03-13-2014, 03:39 PM   #7
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
I think it could be automated to remove all "text-align: left" and "text-align: right" (so centering would still work) but I don't know how to do that with Calibre.
ShellShock is offline   Reply With Quote
Old 03-13-2014, 04:09 PM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,993
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by VirgoGirl View Post
Hi, thanks for the replies!


If I use left align, it locks it into the left justification, which means I can't then use the justification mode on my Kobo whenever I feel like the justification is necessary.



When I remove all the justification in Sigil, it doesn't make the left side ragged, it has a smooth left side and a jagged right side.

I want to be able to remove all the justification as it converts, not afterward with Calibre or Sigil.

Thanks again for the replies!
Sorry, but the Kobo setting appears to be broken.

The normal for browsers is to have a system default for ALL settings so if there is not an explicit call, the default is what you see (Left align is the common default: eg Sigil and Calibre).
The exact value of those is at the manufacturers whim .

Devices tend to offer 2 settings:
1) Use Our (user) settings
2) Use the books/publishers settings (system set defaults prevails if not set)

You are hoping/expecting to be able to use the Publishers CSS (option 2) and still be able to pick and choose which will be used at the device.
Hand editing the CSS is what I do for all my EPUB that I read on my Pocket Pro because calibre does not offer: Indent AND paragraph spacing together. I have a few Sigil-clips set up with MY values.

I can usually bang out the touchup-edit in a few minutes, I also mark custom columns in Calibre, the date it has been done and with the validate status (No: when a quickie fix won't work)
theducks is offline   Reply With Quote
Old 03-13-2014, 09:51 PM   #9
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by theducks View Post
Sorry, but the Kobo setting appears to be broken.

The normal for browsers is to have a system default for ALL settings so if there is not an explicit call, the default is what you see (Left align is the common default: eg Sigil and Calibre).
The exact value of those is at the manufacturers whim .

Devices tend to offer 2 settings:
1) Use Our (user) settings
2) Use the books/publishers settings (system set defaults prevails if not set)

You are hoping/expecting to be able to use the Publishers CSS (option 2) and still be able to pick and choose which will be used at the device.
Hand editing the CSS is what I do for all my EPUB that I read on my Pocket Pro because calibre does not offer: Indent AND paragraph spacing together. I have a few Sigil-clips set up with MY values.

I can usually bang out the touchup-edit in a few minutes, I also mark custom columns in Calibre, the date it has been done and with the validate status (No: when a quickie fix won't work)
The Kobo devices usually do not override styles that are in the book. For justification, the device has settings that can be left or right. But, if the styles used in the book set the justification, they are not overridden. To me this is the right way to do it. It means the author/publisher can style sections of the book to look different if needed.
davidfor is offline   Reply With Quote
Old 03-13-2014, 10:40 PM   #10
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,993
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by davidfor View Post
The Kobo devices usually do not override styles that are in the book. For justification, the device has settings that can be left or right. But, if the styles used in the book set the justification, they are not overridden. To me this is the right way to do it. It means the author/publisher can style sections of the book to look different if needed.
I agree
Use one or the other.
Expecting a mix of both to work across devices to work is iffy.

I sure don't get even that much control. Font size: 1-6 and it rotates (landscape) to show the last few
theducks is offline   Reply With Quote
Old 03-14-2014, 08:34 AM   #11
VirgoGirl
"Why is it doing *that*?"
VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.
 
VirgoGirl's Avatar
 
Posts: 322
Karma: 725344
Join Date: Sep 2011
Device: Black Kobo Touch & Glo, responsible for 2 PaperWhites
Good morning!

I have a bad cold, so bear with me - if I come across in a short tempered manner, I don't mean to, I just have a horrible chest cold and 4 kids I have to continue to entertain as it's March Break. I feel like I want to throw a tantrum like a 2 year old then go to bed for a week.

I'm not sure the Kobo is *broken* per say, I think it just defaults to left align if no text align is expressly demanded, which IMHO as a user, is exactly the way it should work.

When I remove the justification through Sigil, I remove "text-align: justify;" so it doesn't spread across the page - I hate it when the first line of a paragraph has 4 words that are stretched across the screen with gaping holes in between, it bugs the hell out of me. I don't remove "text-align: center;", but if there is a left or right justification, I will look for it in the text and see if it is necessary to the flow of the text.

When I add a book after removing justification onto the Kobo and start reading it, the left side is smooth and the right side is jagged. SOMETIMES, though, I need to turn the justification back on if there is an issue with pages ending too far up the screen that are not the ends of chapters. That rarely happens, and sometimes it's just a whim to turn it back on.

If I remember correctly (and it's quite possible I don't as I have just drank a medium black coffee on an empty stomach, still slightly content from last night's Tylenol 1's, so who knows what I think is true), the Kobo's justification options are: off, left, justified (which is where the sentences go from one side of the screen to the other), and right (maybe?).

Okay, so what I WANT to do is to remove - as I'm processing the ebook - the command "text-align: justify" in the CSS so I don't have to go into Sigil and remove it later. A week ago I discovered, after years of having Calibre, that I could remove embedded fonts while processing, I had been using Sigil to do that. Now it's much easier.

If I can be a 2 year old for a moment, I'm annoyed that I cannot remove the justification thru Calibre as the User Manual implied I could. *stamp foot* There, done now.

Thanks again for your replies, it's nice to talk to talk to people who aren't asking me for cookies or a ride to their friends' houses.
VirgoGirl is offline   Reply With Quote
Old 03-14-2014, 11:39 AM   #12
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,993
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
You want: (set in look and feel section of Conversions)

text-align: left (other choices are original and the hated justify)
(I assume this leaves any text-align: center intact)

text-align has 4 possible values: Left, Right, Center, Justify <the one you hate
( inherit is a legal 5th value)
theducks is offline   Reply With Quote
Old 03-14-2014, 11:48 AM   #13
VirgoGirl
"Why is it doing *that*?"
VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.VirgoGirl ought to be getting tired of karma fortunes by now.
 
VirgoGirl's Avatar
 
Posts: 322
Karma: 725344
Join Date: Sep 2011
Device: Black Kobo Touch & Glo, responsible for 2 PaperWhites
Quote:
Originally Posted by theducks View Post
You want: (set in look and feel section of Conversions)

text-align: left (other choices are original and the hated justify)
(I assume this leaves any text-align: center intact)

text-align has 4 possible values: Left, Right, Center, Justify <the one you hate
( inherit is a legal 5th value)
If I use the left align, though, it locks it into left justification and I can't use the justified setting on the Kobo.

I know, I know, I'm impossible to please.
VirgoGirl is offline   Reply With Quote
Old 03-15-2014, 12:18 AM   #14
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by VirgoGirl View Post
If I use the left align, though, it locks it into left justification and I can't use the justified setting on the Kobo.

I know, I know, I'm impossible to please.
It looks like you will simply have to use calibre's Edit Book feature and remove the items from the CSS as you previously did with Sigil.

Most ereading software will allow you, even if left justification is specified, to change the book to full justification in the settings. Since your Kobo is not one of these, manually editing the CSS is currently your only option.
DoctorOhh is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with text justification joeindallas Recipes 3 01-28-2011 09:24 AM
[Kobo] Remove page number from right-hand margin + justification digital_steve Calibre 5 08-05-2010 11:24 PM
Text Justification GSteer Kobo Reader 4 05-03-2010 12:55 AM
Help with text justification jament Calibre 4 11-10-2009 05:27 PM


All times are GMT -4. The time now is 06:47 AM.


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