| 
			
			 | 
		#1 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 672 
				Karma: 1109784 
				Join Date: Aug 2010 
				
				
				
				Device: Paperwhite 
				
				
				 | 
	
	
	
		
		
			
			 
				
				adding paragraph indentions
			 
			
			
			I started with a text file.   Ends up readable, the paragraphs are seperated, but not indented.  Is there any way to indent all the paragraphs in one fell swoop? 
		
	
		
		
		
		
		
		
		
		
		
		
	
	thanks in advance.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | |
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Add Code: 
	text-indent: 3%; (or 1.5em or 15pt)  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 672 
				Karma: 1109784 
				Join Date: Aug 2010 
				
				
				
				Device: Paperwhite 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			thanks!
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 672 
				Karma: 1109784 
				Join Date: Aug 2010 
				
				
				
				Device: Paperwhite 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			ack!   
		
	
		
		
		
		
		
		
		
		
		
		
	
	follow up q: where would it go in here? or do I need to add something for paragraphs? @namespace h "http://www.w3.org/1999/xhtml"; .calibre { display: block; font-size: 1em; margin-bottom: 0; margin-left: 5pt; margin-right: 5pt; margin-top: 0; page-break-before: always } .calibre1 { display: block } .calibre2 { display: block; margin-bottom: 1em; margin-left: 0; margin-right: 0; margin-top: 1em } .s { display: block; padding-left: 0; padding-right: 0; text-align: left } I am out of my depth here, but if I could make this one small alteration using coding I think I could do everything else I'd like thru the simpler bookview interface. I just have a few books in very primitive text form that I switched over to rtf and then to EPUB thru Calibre. If there's a boilerplate stylesheet for epubs that started rtf that someone could point me to, that'd also be great.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 718 
				Karma: 1085610 
				Join Date: Mar 2009 
				Location: Bristol, England 
				
				
				Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			It depends on which is effecting the paragraph. 
		
	
		
		
		
		
		
		
		
		
		
		
		
			If you look in your text (in code view of course), you are looking for something like: Code: 
	<p class="calibre2"> Last edited by ghostyjack; 09-07-2010 at 10:13 AM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Guru 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 718 
				Karma: 1085610 
				Join Date: Mar 2009 
				Location: Bristol, England 
				
				
				Device: PRS-T1, 1825PT, Galaxy Tab, One X, TF700T, Aura HD, Nexus 7 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Looking at your CSS, might I suggest putting a ";" at the end of each parameter in your CSS as well. e.g. 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Code: 
	.calibre2 {
display: block;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
}
 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | |
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
   You need to look at the Code View of your document and set as many as needed to the desired values. (the example shown was a very simple sheet. Some are huge and a mess. Others are large and elegantly complex) I believe the final semi-colon is optional... But mid point ones ARE Required and the whole style class with the errorgets ignored  
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | |
| 
			
			
			
			 Groupie 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 185 
				Karma: 1110435 
				Join Date: Jul 2010 
				Location: Shanghai, China 
				
				
				Device: Sibrary G5 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 I prefer 1.5em. While % works well for reasonable text sizes, it tends to break down at the extremes. At small text sizes, 3% takes looks a bit much, while for really large text sizes, it can be hard to visually make out any indent at all. Try it here (w3schools.com). --Nathanael  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | |
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 My theory, is the wider the screen (line), the more pronounced the indent needs to be. On a small screen (5", 600x800), 2 chars seems to be enough. on a widescreen, I want about 4 chars worth of indent. Ideally, I would like to have both, % and em at the same time.  
		 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | |
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 But there will probably be Ice in a certain place before my reader supports that ![]() I can't (won't) replace my device just because a newer model came out .  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | |
| 
			
			
			
			 Not who you think I am... 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 374 
				Karma: 30283 
				Join Date: Jan 2010 
				Location: Honolulu 
				
				
				Device: PocketBook 360 -- Ivory 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Open the original text file in Sigil and do all your editing there. Sigil adds simple tags ( like <p> ) instead of the automated naming system that Calibre must use. The double conversion is needlessly complicating things. Sigil opens at least TXT and HTML files -- no need to use Word or any other editor (except a text editor, see my sig) to do these basics, especially if your goal is ePub.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#13 | 
| 
			
			
			
			 Bookmaker & Cat Slave 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503 
				Karma: 158448243 
				Join Date: Apr 2010 
				Location: Phoenix, AZ 
				
				
				Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Actually, to add to what Cap said:   
		
	
		
		
		
		
		
		
		
		
		
		
		
			I'd further add that I've run into a moderately serious problem when converting epub->mobi in Calibre, which is that if you use EXTERNAL stylesheets in Sigil, when you convert your xhtml epub Sigil file in Calibre, if you have any styling, (for indented parras, for example), you lose all the formatting except on any pages you imported which had their own internal css sheet--at least, I think that's what's happening. I'm going back to a file I'm working on today and replacing all the ss calls to the external ss and see if this resolves the problem with the epub->mobi conversion issue. I've abruptly discovered that a BUNCH of books I've done lately (and converted from epub->mobi) have no indented paragraphs, despite being styled that way with text:indent in the external css, and working fine in epubs. I figured I would start here. (For those of you discussing CSS). NEVER MIND!! note to self: do NOT name css styles beginning with numbers. Calibre HATES it. Hitch Last edited by Hitch; 09-09-2010 at 10:12 PM. Reason: Add info about naming convention for styles  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#14 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 19 
				Karma: 10 
				Join Date: Jul 2010 
				
				
				
				Device: Nook 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			OMG this is exactly what i was looking for...i was going around just adding spaces to indent ; it worked but it took forever.... thanks  
		
	
		
		
		
		
		
		
		
		
		
		
	
	so each "p class=calibre#" is a different group that follows those rules? thats great so i can use one group for the main body and another for quotes and another for inserts..sweet  
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#15 | |
| 
			
			
			
			 eBook FANatic 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301 
				Karma: 16078357 
				Join Date: Apr 2008 
				Location: Alabama, USA 
				
				
				Device: HP ipac RX5915 Wife's Kindle 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 e.g. Code: 
	p {
  margin: 0; 
  padding: 0 0 5px 0; 
  text-indent: 1.5em;
}
The only thing I really dont't like is the putrid blue/purple color of the links. Code: 
	a {
color: #000000;
}
 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
| Thread Tools | Search this Thread | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Paragraph breaks | thedevilsjester | Calibre | 2 | 09-07-2010 01:26 PM | 
| Paragraph spacing | jhempel24 | Calibre | 5 | 08-24-2010 01:14 AM | 
| Paragraph question | shrktank | Calibre | 2 | 11-29-2009 01:07 AM | 
| trouble with indentions on conversion | rick98761 | Workshop | 4 | 03-14-2009 04:57 PM | 
| What is so unusual about this paragraph? | Madam Broshkina | Lounge | 11 | 04-24-2008 04:04 PM |