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-23-2013, 05:39 PM   #1
dassie
Member
dassie has a complete set of Star Wars action figures.dassie has a complete set of Star Wars action figures.dassie has a complete set of Star Wars action figures.
 
Posts: 16
Karma: 250
Join Date: Oct 2012
Device: Kobo Touch
remove justified alignment during conversion

So i'm trying to get calibre to remove all instances of 'text-align: justify' from the CSS.
This so I can choose the text-alignment for paragraphs myself from the reader.

I can remove the text-align tag altogether by adding it to the other CSS properties field in Look and Feel, but this will also remove text-align:center, so chapter titles and images will be left-aligned instead of centered. only justified styling needs to be removed. Filling in 'text-align: justify' does not work. I tried using find and replace but this only looks in the html, not the css.

Is there any way to remove a specific property-value combination from the CSS using calibre, or is the only way through an external CSS-editing tool?
dassie is offline   Reply With Quote
Old 01-24-2013, 02:07 AM   #2
alansplace
Grand Sorcerer
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 5,884
Karma: 464403178
Join Date: Feb 2010
Location: 33.9388° N, 117.2716° W
Device: Kindles K-2, K-KB, PW 1 & 2, Voyage, Fire 2, 5 & HD 8, Surface 3, iPad
Cool look & feel

Quote:
Originally Posted by dassie View Post
So i'm trying to get calibre to remove all instances of 'text-align: justify' from the CSS.
This so I can choose the text-alignment for paragraphs myself from the reader.

I can remove the text-align tag altogether by adding it to the other CSS properties field in Look and Feel, but this will also remove text-align:center, so chapter titles and images will be left-aligned instead of centered. only justified styling needs to be removed. Filling in 'text-align: justify' does not work. I tried using find and replace but this only looks in the html, not the css.

Is there any way to remove a specific property-value combination from the CSS using calibre, or is the only way through an external CSS-editing tool?
Change the setting in look & feel.

alansplace is offline   Reply With Quote
Advert
Old 01-24-2013, 06:01 PM   #3
dassie
Member
dassie has a complete set of Star Wars action figures.dassie has a complete set of Star Wars action figures.dassie has a complete set of Star Wars action figures.
 
Posts: 16
Karma: 250
Join Date: Oct 2012
Device: Kobo Touch
The alignment dropdown in look and feel can only a) leave alignment alone b) force a specific alignment. It has no support for removing a specific alignment.

You see, i did actually
dassie is offline   Reply With Quote
Old 01-24-2013, 07:54 PM   #4
meeera
Grand Sorcerer
meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.
 
meeera's Avatar
 
Posts: 5,658
Karma: 66417824
Join Date: Dec 2011
Location: Australia
Device: Kobo Libra 2, iPadMini4, iPad4, MBP; support other Kobo/Kindles
Quote:
Originally Posted by dassie View Post
The alignment dropdown in look and feel can only a) leave alignment alone b) force a specific alignment. It has no support for removing a specific alignment.

You see, i did actually
I think you can do what you want in Filter Style Information, can't you, just not in the dropdown?
meeera is offline   Reply With Quote
Old 04-22-2013, 05:42 AM   #5
ewphoenix123
Addict
ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'
 
Posts: 200
Karma: 42238
Join Date: Oct 2012
Device: Kobo: Glo, Aura , Aura H2O, Aura ONE, Forma, Elipsa
Anyone figured out how to do this? I can't find a way to remove only the justified entries automatically.
ewphoenix123 is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Font-families and justified alignment ElMiko Sigil 46 03-04-2013 02:27 AM
Left-justified text in a right-justified box Skeezix Conversion 4 11-15-2011 08:44 PM
img alignment mobi conversion c3hhej Conversion 2 02-22-2011 02:06 PM
HTML-EPUB: no justified alignment in iPad (iBooks) marekl Calibre 5 01-21-2011 04:37 PM
calibre: HTML to LRF conversion, problem with justified text Juggle4Evr Sony Reader 6 07-12-2009 07:19 PM


All times are GMT -4. The time now is 05:34 AM.


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