![]() |
#16 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,913
Karma: 60358908
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,203
Karma: 27110894
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: 8,493
Karma: 5703586
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 11:35 AM. |
![]() |
![]() |
![]() |
#20 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,203
Karma: 27110894
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: 79,220
Karma: 145488788
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,641
Karma: 8566337
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: 21,637
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR Last edited by BetterRed; 01-25-2017 at 08:21 PM. |
|
![]() |
![]() |
![]() |
#25 |
Vox calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 412
Karma: 1175230
Join Date: Jan 2009
Device: Sony reader prs700, kobo
|
|
![]() |
![]() |
![]() |
#26 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,220
Karma: 145488788
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: 518
Karma: 8500000
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: 79,220
Karma: 145488788
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,373
Karma: 203720150
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 11:33 AM. Reason: add: (...) |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Glo Line space bug with some fonts | sage79 | Kobo Developer's Corner | 5 | 07-09-2015 03:01 PM |
Regex Problem / Line that does't end with .</p> | mcam77 | Sigil | 6 | 03-25-2013 06:38 PM |
(Kindle) any format.Add space @ end line | MrTynKyn | Conversion | 0 | 02-17-2013 04:19 PM |
How to increase the line space in CSS | Sylver | Calibre | 3 | 08-08-2010 01:02 AM |
Denial of Service 5: End of Line. | Steven Lyle Jordan | Writers' Corner | 19 | 11-10-2009 10:58 PM |