| 
			
			 | 
		#16 | 
| 
			
			
			
			 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 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#17 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Yes, indeed, my decision to develop the calibre editor was motivated by user_none stopping development of Sigil, and no one stepping up to take over for a while. IMO, it is important to have a well maintained open source tool for editing e-books. And it was easier for me to write one from scratch than take over Sigil's codebase.  
		
	
		
		
		
		
		
		
		
		
		
		
	
	As for how quickly it was developed, it comes down to three factors: 1) Leveraging calibre's already exising powerful capabilities (in particular the book container infrastructure I had created for the Polish Books tool) 2) Knowing in advance exactly what I wanted to create -- thanks to the prior existence of Sigil, designing the editor was easy since I knew what I wanted from having used Sigil. 3) Writing it in python, which, at least for me, is much quicker to develop in than C/C++ And I am glad that Sigil is once more alive and vibrant, always good to have multiple tools to choose from.  | 
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#18 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613 
				Karma: 6718541 
				Join Date: Dec 2004 
				Location: Paradise (Key West, FL) 
				
				
				Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ... 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#19 | 
| 
			
			
			
			 Sigil Developer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,072 
				Karma: 6361556 
				Join Date: Nov 2009 
				
				
				
				Device: many 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			FYI - having worked with and around many many professional developers for over 35 years, I do not say this lightly ... 
		
	
		
		
		
		
		
		
		
		
		
		
		
			Kovid is the single most productive and creative programmer I have ever seen. He accomplishes more in one hour than most programmers do in a week. His work is always understandable and supportable and has very very few bugs when first written. And if any bugs do exist, they are quickly squashed. He seems to be at home with Python, C++, C, javascript, the DOM, website development, sockets, networks, gui, etc etc. There are few if any that have such a wide range of knowledge. Until I met him I always thought I was a pretty good programmer but ... ![]() I have no idea why he isn't running a huge software development house somewhere and getting paid large numbers of stock options! I also have no idea how he gets his wife to allow him to put in the amount of work he does! My wife forces me to leave things alone and take a walk more and more often. ![]() So ... please take a bow Kovid, you definitely deserve many! KevinH Last edited by KevinH; 01-25-2017 at 12:35 PM.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#20 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thank you for the kind words  
		
	
		
		
		
		
		
		
		
		
		
		
	
	![]() Mostly I am just lucky that I am able to work on something I enjoy and feel passionate about.  | 
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#21 | |
| 
			
			
			
			 Enthusiast 
			
			![]() Posts: 26 
				Karma: 10 
				Join Date: Dec 2012 
				
				
				
				Device: nook 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Code: 
	margin: 0 0 0.5em;  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#22 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			I dislike the shorthand form of margins. I prefer to have the margins done the long way.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#23 | |
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,877 
				Karma: 8821117 
				Join Date: Mar 2013 
				Location: Rosario - Santa Fe - Argentina 
				
				
				Device: Kindle 4 NT 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Yes, that is one of the several shorthand form for the property margin. You could use: Code: 
	margin: value; /* the four margins are equal to value */ Code: 
	margin: value1 value2; /* value1 is for top/bottom margins and value2 is for left/right margins */ Code: 
	margin: value1 value2 value3; /* value1 is for top margin, value2 is for left/right margins and value3 is for bottom margin */ Code: 
	margin: value1 value2 value3 value4; /* value1 is for top margin, value2 is for right margin, value3 is for bottom margin and value4 is for left margin */ Regards Rubén  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#24 | |
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				Join Date: Mar 2012 
				Location: Sydney Australia 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 BR Last edited by BetterRed; 01-25-2017 at 09:21 PM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#25 | 
| 
			
			
			
			 Vox calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 412 
				Karma: 1175230 
				Join Date: Jan 2009 
				
				
				
				Device: Sony reader prs700, kobo 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#26 | 
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			The pointy haired manager is a lousy manager and a lousy doer.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#27 | |
| 
			
			
			
			 Fanatic 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 531 
				Karma: 10000000 
				Join Date: Aug 2013 
				Location: Hamden, CT 
				
				
				Device: Kindle Paperwhite (11th gen), Scribe, Kindle 4 Touch 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 On the other hand, I would never put any margin, widow, or text-align in type selector in an EPUB stylesheet. Those belong in the user stylesheet, so they can set their defaults for the reader they use, and don't have to resort to using "!important", which makes the cascade much harder to follow for humans. In fact, the EPUB stylesheet should really only have class, ID, and pseudo-element selectors. Basically, CSS in an EPUB should always assume the user page box is how the user wants it, and not try and change it in any way. The CSS in the EPUB should use margins to separate the blocks of the book from the edges of the user page box, and to separate boxes from each other (either vertically or horizontally), and nothing else.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#28 | |
| 
			
			
			
			 Resident Curmudgeon 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,782 
				Karma: 150249619 
				Join Date: Nov 2006 
				Location: Roslindale, Massachusetts 
				
				
				Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 The one thing that cannot be changed in all reading programs is the indent or paragraph spaces. So it's best to have an indent of 1.2em and no paragraph space. Don't use a smaller font for things like offset text. What can be changed when there are options to change things is the font, the left/right margins, & line height. Some programs have more options but you have to go with the minimum and let these other programs do the overriding. Don't use fixed values in CSS. Use em and % as needed. Don't use font-family unless you need to such as sans-serif or monospace. Make it as simple as possible. Don't have excess CSS entries that aren't used.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#29 | 
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,891 
				Karma: 207182180 
				Join Date: Jan 2010 
				
				
				
				Device: Nexus 7, Kindle Fire HD 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Please, let's not turn this into another "well the right way to code an epub is ..." conversation. They're pointless, boring, and not nearly as relevant as the usual suspects like to think they are.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#30 | 
| 
			
			
			
			 Head of lunatic asylum 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 349 
				Karma: 77620 
				Join Date: Jun 2012 
				Location: UTC +1 
				
				
				Device: Tolino Vision 3HD 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Hi! 
		
	
		
		
		
		
		
		
		
		
		
		
		
			I was advised to read something in this thread, so I did, of course I read it all, and not only once. Conclusion: To be really informed someone have to make the issue (whatever it is) to a full time job (I am already wondering, when some of you guys 'hit the hay'). Under the thread title ''italic at end of line ...'' nobody would expect such an far-reaching info. To be a good moderator must be a hard job. So the least I learned here is not to use CSS shorthands - so far I thought it would be an elegant, smart method to keep the stylessheet short and spacial manageable. I feel more and more well here! (in mobileread). Last edited by chaot; 03-20-2017 at 12:33 PM. Reason: add: (...)  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Glo Line space bug with some fonts | sage79 | Kobo Developer's Corner | 5 | 07-09-2015 04:01 PM | 
| Regex Problem / Line that does't end with .</p> | mcam77 | Sigil | 6 | 03-25-2013 07:38 PM | 
| (Kindle) any format.Add space @ end line | MrTynKyn | Conversion | 0 | 02-17-2013 05:19 PM | 
| How to increase the line space in CSS | Sylver | Calibre | 3 | 08-08-2010 02:02 AM | 
| Denial of Service 5: End of Line. | Steven Lyle Jordan | Writers' Corner | 19 | 11-10-2009 11:58 PM |