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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-14-2013, 11:29 AM   #181
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,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by AnnieWalker View Post
Incredible. Thanks for making it so easy. I've applied them in 5secs...but it seems that I can't override text alignment setting of the file to justify even with "text-align:justify !important;" line. Do you have a solution for this, too?
No tricks for the viewer, maybe someone else can give it a try.

I prefer left justified for my 7 inch tablet, but I can see using full justification on a full monitor. I tried what you tried and it worked on one book of about 12 that I tried it on.

Personally since I prefer left justify I set this when I convert the book to my specs. There is a setting under the conversion options on the Look & Feel tab where you can set your alignment preference during conversion, see attached.

Alternatively instead of converting the book if it is epub I suppose you could:
  • Right click on the book.
  • Select the Tweak Book Option
  • Select Explode Book
  • Select stylesheet.css
  • Open it up in your favorite text editor (I use Notepad++).
  • Find any (non-header, IE. not h1, h2, h3 etc...) instance of left and change it to justify.
  • Save the stylesheet.css
  • Select Rebuild book
Your book is now changed.

Good Luck.
DoctorOhh is offline   Reply With Quote
Old 04-14-2013, 11:59 AM   #182
AnnieWalker
Junior Member
AnnieWalker began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2012
Device: Kindle Paperwhite Wi-Fi
Quote:
Originally Posted by DoctorOhh View Post


There is a setting under the conversion options on the Look & Feel tab where you can set your alignment preference during conversion, see attached.

Alternatively instead of converting the book if it is epub I suppose you could:
Thanks. I'm familiar with both those practices and they do the job but what I meant was if it could be resolved with adding one line in user stylesheet, per many mentions on this forum. Your 1/12 clarifies it for me.

Cheers
AnnieWalker is offline   Reply With Quote
Advert
Old 04-14-2013, 12:03 PM   #183
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,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by AnnieWalker View Post
Thanks. I'm familiar with both those practices and they do the job but what I meant was if it could be resolved with adding one line in user stylesheet, per many mentions on this forum. Your 1/12 clarifies it for me.
You're welcome.

Hopefully someone with more knowledge will have insight into how to adjust the viewer's css.
DoctorOhh is offline   Reply With Quote
Old 05-18-2013, 03:44 AM   #184
Gladtobemom
Connoisseur
Gladtobemom began at the beginning.
 
Gladtobemom's Avatar
 
Posts: 63
Karma: 10
Join Date: Feb 2008
Device: Cybook, Palm Z72
It was really hard to give up the Mobipocket reader. It was so easy to use and I loved the column formats.

Well. . . .It's now gone from my computer. I finally figured out how to get books to be three columns and cover my whole screen. Use my favorite font (Constantia) and even a soft buff background.

So, I have my Cybook (Opus) which fits in my apron pocket or my bag. I have Calibre to let me keep things organized and read on the PC.

My question is how can I get


3 columns/pages justified left

Last edited by Gladtobemom; 05-19-2013 at 12:33 PM.
Gladtobemom is offline   Reply With Quote
Old 06-26-2013, 07:19 AM   #185
MajorMess
Junior Member
MajorMess began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2013
Device: Pocketbook 902
Hi
I have a question regarding the multi-column view, too and I am not sure, if it was discussed elsewhere / I am too stupid to find the right button in the preferences menu .

When I choose 2 columns per page, only 1 page is flipped after turning the page, e.g. it is displayed page 1+2, next turn would be 2+3 instead of 3+4.
That is really strange and beats the purpose of that view IMHO. Strangely, it works fine in the "contents" section of a book.

Using mac btw.

Any ideas?
MajorMess is offline   Reply With Quote
Advert
Old 07-21-2013, 05:39 PM   #186
marcopivetta
Junior Member
marcopivetta began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2013
Device: kindle
Thumbs up [solved] css - line spacing - line height

I made adjustments in the color and the background (white is so hard for my eyes), but the program does not allow to adjust the line spaces.

I tryed to follow these instructions.

Quote:
Originally Posted by Ralob View Post
My personal CSS style is extremely basic, but it does exactly what I want- proper indentation for all paragraphs, adequate spacing between lines, background color that is easy on the eyes, and centered headings. Very basic but it does its job.

body {color:rgb(0,0,0);
background-color:rgb(174,174,174);
text-align:justify;
line-spacing:1.8;
margin-top:0px;
margin-bottom:4px;
margin-right:50px;
margin-left:50px;
text-indent:3em;}
h1, h2, h3, h4, h5, h6
{color:black;
text-align:center;
font-style:italic;
font-weight:bold;}
But it didn't work regarding to the spaces between lines .

I found a solution and want to share with you.

There is no line-spacing in css. Instead there is line-height.

So, I just added this line in Preferences > User Stylesheet

Code:
body {
line-height:125%;
}
And it worked like a charm .

Congratulations Kovid Goyal. This is a great software!
marcopivetta is offline   Reply With Quote
Old 11-17-2013, 05:06 AM   #187
Ng Teck Guan
Junior Member
Ng Teck Guan began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Nov 2013
Device: none
Chinese text in vertical direction

Hello everyone, I am new to this forum.

I am looking high and low for a way to read my chinese ebook correctly on a desktop or laptop.

The original ebook is chinese characters in vertical direction. When i imported i open the epub in Calibre it becomes rotated ....please see link for image...

Does anyone know how i can resolve this by rotating the page 90 degrees, by changing the stylesheet or anything?

Any help is greatly appreciated, thank you very much.
Attached Thumbnails
Click image for larger version

Name:	chinese epub.png
Views:	1672
Size:	93.4 KB
ID:	115314  
Ng Teck Guan is offline   Reply With Quote
Old 05-27-2014, 11:31 PM   #188
miss_spell
Junior Member
miss_spell began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2012
Device: ibook
Styles to create iPad covers

Hopefully I'm posting this correctly.
I love the covers the iPad or iBooks on the iPad generates for ePubs.
When I download an ePub from http://archiveofourown.org
it always opens with an apple cover of various colours.

Does anyone know the code to make ePubs I make from word files come in with the apple style cover instead of the calibre default one?

I opened an AO3 file inside calibre, but there was nothing in the custom code box. I'm sure there is some kind of tag in the html that tells the ePub to use apples default but I'm too much of an html spaz to recognize it.

Any help appreciated
miss_spell is offline   Reply With Quote
Old 11-21-2014, 06:56 PM   #189
Kumabjorn
Basculocolpic
Kumabjorn ought to be getting tired of karma fortunes by now.Kumabjorn ought to be getting tired of karma fortunes by now.Kumabjorn ought to be getting tired of karma fortunes by now.Kumabjorn ought to be getting tired of karma fortunes by now.Kumabjorn ought to be getting tired of karma fortunes by now.Kumabjorn ought to be getting tired of karma fortunes by now.Kumabjorn ought to be getting tired of karma fortunes by now.Kumabjorn ought to be getting tired of karma fortunes by now.Kumabjorn ought to be getting tired of karma fortunes by now.Kumabjorn ought to be getting tired of karma fortunes by now.Kumabjorn ought to be getting tired of karma fortunes by now.
 
Kumabjorn's Avatar
 
Posts: 4,356
Karma: 20181319
Join Date: Jul 2010
Location: Sweden
Device: Kindle 3 WiFi, Kindle 4SO, Kindle for Android, Sony PRS-350 and PRS-T1
Sorry if this has been asked Before, but the thread is too long for me to go through every posting.

I have some Japanese books that are written in what is called tategaki, in other words the characters are aligned in vertical rows instead of horizontal lines. Because the Calibra Book Viewer handles things as lines (rows are not an option) I get vertical lines, i.e. the characters are rotated 90 degrees clockwise. I can pivot the monitor and read it just fine, but then the UI becomes extremely counter intuitive.
So I am wondering if it is possible to create a few lines of CSS Style Sheet code that would rotate the characters 90 degrees counte-clockwise? That would give me the best of both Worlds.
Kumabjorn is offline   Reply With Quote
Old 11-21-2014, 08:31 PM   #190
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,459
Karma: 26645808
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Kumabjorn View Post
Sorry if this has been asked Before, but the thread is too long for me to go through every posting.

So I am wondering if it is possible to create a few lines of CSS Style Sheet code that would rotate the characters 90 degrees counte-clockwise? That would give me the best of both Worlds.
You can search a thread, you can also search the calibre forum, or search the 'net ( click)

I don't know if any of the suggested CSS will work in the viewer, why don't you try ?

The Kindle for PC/Mac software will render vertical text.

BR
BetterRed is offline   Reply With Quote
Old 11-28-2014, 04:25 PM   #191
LadyKate
Fanatic
LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.LadyKate ought to be getting tired of karma fortunes by now.
 
Posts: 515
Karma: 1470724
Join Date: Jul 2013
Location: Quebec CA
Device: android 4 (samsung tablet and asus tablet)
Quote:
Originally Posted by mtravellerh View Post
A propos margins: Please be advised that, if you use your CSS in ePubs for the ADEPT engine, the default page numbers will flow in the text body.
Just curious because I don't know what you mean by "default page numbers".
LadyKate is offline   Reply With Quote
Old 11-29-2014, 12:50 PM   #192
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: 29,689
Karma: 54369090
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 LadyKate View Post
Just curious because I don't know what you mean by "default page numbers".
MRDSK puts the block? number at the far Right.
If you don't leave room AND modify the base font, it lands INTO the text at the edge

I use in the (my default)CSS

body{ font-size: 1.2em; margin: 0 16pt 0 2pt;}

At my normal reading at zoom level 3 (of 9), the numbers appear small and don't intrude (much) until 4 digits (a very large book)
theducks is offline   Reply With Quote
Old 03-18-2015, 03:06 AM   #193
ukepyoo11
Junior Member
ukepyoo11 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2014
Device: None
Hello,

I was just wondering if there's a way to override the text alignment embedded in my ebook with the user stylesheet. I've tried putting !important but it still won't work.
ukepyoo11 is offline   Reply With Quote
Old 05-15-2015, 12:56 PM   #194
Oldeyes
Junior Member
Oldeyes began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2015
Device: Sony,Apple,Android
Over-ride Device's Margins

Apologies in advance if wrong thread...

I've experienced an issue with every e-book viewer device I've tried.

As I increase font/text size with settings, the margins also increase, reducing the space available to display words. At an extreme end, there are perhaps 1-2 words per line, and a page size becomes less than a sentence. As a programmer/analyst in a previous career, I understand that such an increase of margins would initially seem logical, but since screen area is fixed, in reality, there should be little need for margins beyond a couple of pixels. -Especially on pocket sized readers that have 1 inch wide plastic borders holding the LCD that are themselves physical margins. And as fonts increase, margins should decrease.

My high level question is, would I be able to correct or by-pass this issue through learning and experimenting with CSS styles? What would the process be? I'm thinking that editing the CSS style within an epub ebook in calibre to get the left/right margins that work, followed by epub-to-epub conversion, and putting the new epub onto the device, might be the solution. I have not succeeded with this approach, though.

Thanks for taking the time to read and provide suggestions!

Last edited by Oldeyes; 05-15-2015 at 12:59 PM.
Oldeyes is offline   Reply With Quote
Old 05-15-2015, 04:50 PM   #195
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by Oldeyes View Post
Apologies in advance if wrong thread...

I've experienced an issue with every e-book viewer device I've tried.

As I increase font/text size with settings, the margins also increase, reducing the space available to display words. At an extreme end, there are perhaps 1-2 words per line, and a page size becomes less than a sentence. As a programmer/analyst in a previous career, I understand that such an increase of margins would initially seem logical, but since screen area is fixed, in reality, there should be little need for margins beyond a couple of pixels. -Especially on pocket sized readers that have 1 inch wide plastic borders holding the LCD that are themselves physical margins. And as fonts increase, margins should decrease.

My high level question is, would I be able to correct or by-pass this issue through learning and experimenting with CSS styles? What would the process be? I'm thinking that editing the CSS style within an epub ebook in calibre to get the left/right margins that work, followed by epub-to-epub conversion, and putting the new epub onto the device, might be the solution. I have not succeeded with this approach, though.

Thanks for taking the time to read and provide suggestions!
You will want to use the editor to investigate the CSS, specifically looking for margins set on the body tag, or @page.

Once you've done that, send the modified EPUB -- no need to convert it into itself, that just adds unnecessary layers of confusion.


ebooks really shouldn't specify margins, every device already does that anyway.
eschwartz is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom CSS for output deckoff Calibre 1 08-28-2010 11:55 PM
ePub with custom .css on a 505 dicknskip Sony Reader Dev Corner 3 06-09-2010 11:34 PM
User stylesheets for ePub files salty-horse Sony Reader Dev Corner 12 02-23-2010 07:44 AM
ePub conversion: override existing css with a custom one sbin Calibre 1 01-09-2010 04:03 AM
Calibre's generated css for epub brewt Calibre 7 12-29-2008 09:59 AM


All times are GMT -4. The time now is 11:25 AM.


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