![]() |
#106 |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Captalize first word
This seems to be a related area to ask this question.
Is there a way (regex???) to captalize the first word of a paragraph? The ePub uses Code:
<span class="smcap">word<span> Code:
<small>WORD</small> I have tried all I know ( ![]() What say the experts? |
![]() |
![]() |
![]() |
#107 |
Enquiring Mind
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
OK... sorry for the delay in replying to your post (#103) cybmole. Had to spend time on other stuff for much of today.
I'm going to have to amend this bit of my understanding of how CSS works in practice. ![]() When something I'm working on goes against what I'd expect to see, I:
I'm really really surprised by this. You seemed to think, cybmole, that theducks and I were just tossing out info we weren't sure of as if it was hard fact, but I never say "xyz is true" unless I got the info from an excellent authority or verified it for myself - if I'm unsure about something, I say so (and while I don't want to put words into someone else's mouth, I'm pretty sure theducks would say the same thing). I'm sorry that it turns out we were misleading you on this one, cybmole. I'm still trying to figure out if I always had this wrong, or if something changed at some point in how CSS is handled, and I simply never picked up on it. I've attached the following files:
|
![]() |
![]() |
![]() |
#108 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
I really appreciate you looking into this & confirming what I was finding.
I have only a general programming background - no great knowledge of css as such, but an understanding of how interpreters work in general, & of how specific implementations of anything can vary from a theoretical absolute spec. I was unable to post more than the extracts because of forum copyright rules - I tried to post the relevant bits each time but as you say I could have been omitting relevent changes. I did follow up on some of the recommended reading, after asking for suggested books / sites but I never found anything specific/definitive on whether css order should matter, or not; also for actual final reading I convert to .mobi for Kindle which is a whole new ball game. I am happy that we've truly bottomed this issue out for now & can finally put the thread to rest - I've certainly learnt a lot from is so thathnkyou both for your help & patience. |
![]() |
![]() |
![]() |
#109 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#110 | ||||
Enquiring Mind
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
Quote:
Quote:
Quote:
Quote:
![]() |
||||
![]() |
![]() |
![]() |
#111 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
No problem here. (and I learned something. The CSS -class rules are not as solid as I believed
![]() I rather gathered that there was copyright issues, that you were being very good about honoring the boards' rules ![]() I always test on my reader (after all, that is the intended target ![]() I am used to things that look great ('my way') in Sigil, Calibre-viewer, don't always look so good in ADE ![]() I don't even toss in targeting a covert to another format ![]() |
![]() |
![]() |
![]() |
#112 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
If the only difference is position and not hierarchy then what you observe would have to happen. i.e. The software has not way to determine the cascade since they are all at the same level then it must have some deterministic way to choose which one to use. Whether or not the specs include a definition the software has to choose. You have determined that the software does choose. What else is to be expected?
Dale |
![]() |
![]() |
![]() |
#113 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
my latest challenge is swapping hyphens for — but many books use the same character for both contexts, so I don't yet see how to automate i.e. spot the difference between a well-hyphenated word-and a separate clause. if you have any good ideas for that we should start a new thread. |
|
![]() |
![]() |
![]() |
#114 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Aug 2011
Device: Kindle 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#115 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,023
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The easiest to read format for a book is paragraph indents of 1em-1.2em. 5% as most publishers use is too big. No line spaces. Just the next paragraph. That will look good.
|
![]() |
![]() |
![]() |
#116 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Quote:
Quote:
Narrative text, on the other hand works differently. The 'sense' of the text isn't partitioned off so neatly in individual paragraphs, but flows between them, and paragraphs often merely represent differing aspects of the same underlying sequence. Think of a conversation, for instance: the individual paragraphs only make sense when read in context with the surrounding text. Using indents rather than vertical space respects this and helps the reader digest the text as a coherent sequence rather than as a set of packaged ideas. Narrative text does use paragraph spacing at a scene break, where the author wants to convey the sense that this is now a new narrative sequence. |
||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Indents! Please Help! | Ephraim | Sigil | 8 | 11-23-2010 03:43 PM |
Margins and Indents | sloecoach | Calibre | 2 | 09-26-2010 04:41 PM |
Display of Hanging Indents | crutledge | Workshop | 1 | 09-25-2009 06:09 PM |
RFE: Remove remove tags in bulk edit | magphil | Calibre | 0 | 08-11-2009 10:37 AM |
Hanging indents? | llasram | Kindle Formats | 11 | 01-05-2009 10:59 AM |