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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-15-2017, 07:20 AM   #1
MountainMan1
Junior Member
MountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a Texan
 
Posts: 9
Karma: 18320
Join Date: Feb 2017
Device: None
Including a Tab in a book

I am new to Calibre and it's Editor. I would like to know if there is some way, besides using the <pre> tag, to insert tabs at the beginning of a paragraph. I guess because of my age, I am just 'old school' and believe that a paragraph should start with a Tab. Maybe it's because for so many years I read print books, I know "hardcopy ewwww", and most of them the paragraphs started with a tab.
MountainMan1 is offline   Reply With Quote
Old 03-15-2017, 08:13 AM   #2
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: 23,191
Karma: 24100002
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab A, Kobo Aura2
It is an INDENT you created with your Tab or spaces on that old Typewriter


Code:
text-indent: 1.5em;
is the CSS you need to add to the style assigned to the paragraphs

@JON will use some other value and scream that 1.5 is too ...
so pick your own number
theducks is offline   Reply With Quote
Old 03-15-2017, 04:33 PM   #3
MountainMan1
Junior Member
MountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a Texan
 
Posts: 9
Karma: 18320
Join Date: Feb 2017
Device: None
Quote:
Originally Posted by theducks View Post
It is an INDENT you created with your Tab or spaces on that old Typewriter


Code:
text-indent: 1.5em;
is the CSS you need to add to the style assigned to the paragraphs

@JON will use some other value and scream that 1.5 is too ...
so pick your own number
I stand corrected and thanks for the info. The typewriter thing was pretty good lol. Now if I can get help on my other question of how to put a block of style code somewhere so that I only have to put it in once I will be cooking with gas.
MountainMan1 is offline   Reply With Quote
Old 03-15-2017, 07:29 PM   #4
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: 23,191
Karma: 24100002
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab A, Kobo Aura2
Quote:
Originally Posted by MountainMan1 View Post
I stand corrected and thanks for the info. The typewriter thing was pretty good lol. Now if I can get help on my other question of how to put a block of style code somewhere so that I only have to put it in once I will be cooking with gas.
THAT is the whole purpose of a CSS

Style once, link from one to however many.

Open a EPUB and look at the code.
class="aname"
is the clue that a style 'block' applies
If you see a <link... .css in the header code, that is the link to a stylesheet
theducks is offline   Reply With Quote
Old 03-17-2017, 01:52 AM   #5
MountainMan1
Junior Member
MountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a TexanMountainMan1 might easily be mistaken for a Texan
 
Posts: 9
Karma: 18320
Join Date: Feb 2017
Device: None
Quote:
Originally Posted by theducks View Post
THAT is the whole purpose of a CSS

Style once, link from one to however many.

Open a EPUB and look at the code.
class="aname"
is the clue that a style 'block' applies
If you see a <link... .css in the header code, that is the link to a stylesheet
theducks, thanks for the reply. I did know that CSS is supposed to style a whole document, but I appreciate the explanation. Just don't know much about them other than that

I have seen some ebooks I have downloaded and been editing (mostly to go after spelling and punctuation errors) with CSS sheets included in the list on the menu to the left.

Besides not really knowing enough beyond the basic concept of what a CSS file is in order to make my own (which I can go to W3 or whatever the website is, or another website I can google and learn more about them) I hadn't noticed what you said about a link to the CSS being in the header code, so that was some useful information I didn't know.

I am guessing that the Calibre editor has some way to easily insert the CSS link in the headers of the HTML text files in the list on the left, although I haven't explored the program enough to know how to find it yet, I will take another look at it.

I should start a new topic about something else I don't understand about editing an ePub, if I can't find a thread on the Editor Forum where it's already been asked and answered of course.

When I save a copy of a book to local disk out of the Calibre Library, I am seeing some strange behavior, or at least strange to me. When the book is saved, it seems like (I could be mistaken) the book always saves to the local directory with 3 files - .epub file, .jpg file or something (the book cover?) and another file (.opf I believe). I don't really understand how to 'package' everything back up (the .epub, .jpg, .opf, and any .css files) into one stand-alone ePub file like it originally came as, when I'm done going after those pesky spelling errors and such. Or packaging everything up if I was editing my own book from scratch. Thanks for the information on CSS, greatly appreciated
MountainMan1 is offline   Reply With Quote
Old 03-17-2017, 03:38 AM   #6
BetterRed
null operator
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: 13,307
Karma: 10793754
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@MountainMan1 - what gets saved is up to you - see Preferences->Saving books to disc

The cover.jpg and metadata.opf are optional - you must have them checked.

BR
BetterRed is online now   Reply With Quote
Old 03-17-2017, 08:11 AM   #7
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: 23,191
Karma: 24100002
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab A, Kobo Aura2
EPUB is the 'package'.
If you use the editor supplied with Calibre, the work is done.

Save to Disk is an EXPORT of the CALIBRE Library 'view' about the book (the format, OPF is the Metadata you see in Calibre, The cover you see in Calibre)

IT may be different than what is in the book INSIDE the Library unless you take extra steps (AKA Polish, embed Metadata or Modify EPUB)

Send to device does the update to the Transferred copy on the fly
theducks is offline   Reply With Quote
Old 03-24-2017, 04:14 AM   #8
Phssthpok
Evangelist
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 432
Karma: 95229
Join Date: Nov 2014
Device: Horrible Kindle
Quote:
Originally Posted by MountainMan1 View Post
I am guessing that the Calibre editor has some way to easily insert the CSS link in the headers of the HTML text files in the list on the left, although I haven't explored the program enough to know how to find it yet, I will take another look at it.
Select one or more files in the file list, right-click and select "Link stylesheets".
Phssthpok is offline   Reply With Quote
Old 03-29-2017, 01:03 PM   #9
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,279
Karma: 666666
Join Date: Dec 2012
Device: Kindle
You are welcome to borrow or adapt my style sheet at http://notjohnkdp.blogspot.com/2013/...yle-sheet.html
Notjohn is offline   Reply With Quote
Old 04-05-2017, 04:50 AM   #10
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: 52,651
Karma: 47576145
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
You really don't want TAB. You'd be better off with Diet Coke.
JSWolf is offline   Reply With Quote
Old 04-05-2017, 11:08 AM   #11
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: 23,191
Karma: 24100002
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab A, Kobo Aura2
Quote:
Originally Posted by JSWolf View Post
You really don't want TAB. You'd be better off with Diet Coke.
Diet is DIE with a T <garfield>
theducks is offline   Reply With Quote
Reply

Tags
editor, tabs

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Samsung Tab 4 or Tab S fordman Android Devices 0 11-16-2014 05:02 PM
Upload single book (Galaxy Tab) qqwweerrttyy Android Devices 0 06-14-2011 01:55 AM
Including book cover when adding books Keith0603 Calibre 11 05-23-2011 12:10 AM


All times are GMT -4. The time now is 07:09 PM.


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