Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-29-2014, 05:13 PM   #16
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by cybmole View Post
thanks - I finally get the difference between <small> and small-caps. If I were a developer I'd want to test which of the current crop of e-readers & tablets can handle small-caps, within the readers' own "original" font - if that's already been done & anyone has a link.please post it...
Kindles (KF8) handle font-variant: smallcaps, and some of the Android/iOS reading programs handle it as well (I know for sure that Mantano and Bluefire support it, I assume iBooks + Marvin support it as well).

Not too sure on the situation of most ereaders, but ADE itself does not support smallcaps.... and many of these readers are ADE based.

Last edited by Tex2002ans; 01-29-2014 at 05:16 PM.
Tex2002ans is offline   Reply With Quote
Old 01-29-2014, 05:36 PM   #17
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Mantano's built on Adobe's RMSDK, as well. I've never tested it, but would expect it to ignore font-variant just like ADE does.
DiapDealer is offline   Reply With Quote
Old 01-29-2014, 06:31 PM   #18
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by DiapDealer View Post
Mantano's built on Adobe's RMSDK, as well. I've never tested it, but would expect it to ignore font-variant just like ADE does.
I just tested on Bluefire and Mantano on my phone and both didn't show font-variant: smallcaps... I could have sworn it did the last time I tested it (many many moons ago)!

Maybe I am just going crazy... or maybe it was a feature built into the Premium versions?
Tex2002ans is offline   Reply With Quote
Old 01-29-2014, 07:09 PM   #19
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Tex2002ans View Post
Maybe I am just going crazy... or maybe it was a feature built into the Premium versions?
Well, not the Mantano Premium version, anyway. That's what I use.
DiapDealer is offline   Reply With Quote
Old 01-30-2014, 05:35 AM   #20
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
different book - same topic

each chapter of this book opens with a small-caps phrase which appears in all capitals in sigil book view, but appears as lower case on the sony reader. e.g.

<p class="calibre5"><span class="calibre9">the cage opens at the front, a double loop</span> of chain hingeing its door at the bottom. At the top, a thicker chain and a fist-sized padlock keep the cage safely shut.</p>

.calibre9 { font-variant: small-caps }

so is there any way, short of retyping the start of every chapter , to add some CSS that ADE/sony does understand which will make that opening phrase display in caps ?

update - well google is telling me there is no CSS workaround, but could sigil's own regex engine fix this easily.

I need a regex that will transform all letters within a class ="calibre9" span to uppercase

Last edited by cybmole; 01-30-2014 at 06:10 AM.
cybmole is offline   Reply With Quote
Old 01-30-2014, 07:53 AM   #21
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: 29,801
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by cybmole View Post
different book - same topic

each chapter of this book opens with a small-caps phrase which appears in all capitals in sigil book view, but appears as lower case on the sony reader. e.g.

<p class="calibre5"><span class="calibre9">the cage opens at the front, a double loop</span> of chain hingeing its door at the bottom. At the top, a thicker chain and a fist-sized padlock keep the cage safely shut.</p>

.calibre9 { font-variant: small-caps }

so is there any way, short of retyping the start of every chapter , to add some CSS that ADE/sony does understand which will make that opening phrase display in caps ?

update - well google is telling me there is no CSS workaround, but could sigil's own regex engine fix this easily.

I need a regex that will transform all letters within a class ="calibre9" span to uppercase
Absolutly

I cut this from my saved searches, so it has MY line numbers

Code:
104\Name=Cleanup/Upper the case
104\Find="<span class=\"calibre9\">(.+?)</span>"
104\Replace="<span class=\"calibre9\">\\U\\1</span>"
theducks is online now   Reply With Quote
Old 01-30-2014, 08:01 AM   #22
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by cybmole View Post
I need a regex that will transform all letters within a class ="calibre9" span to uppercase
That's fairly easy to accomplish:

Find:<span class="calibre9">(.*?)</span>
Replace:<span class="calibre9">\U\1\E</span>

For more information on converting to and from upper case characters see this older post of mine.

However, if you start out with upper case text, you'll probably also need to convert the text to lower case. Otherwise you'll get all caps text.

.calibre9 { text-transform: lowercase; font-variant: small-caps; }

@theducks: You'll need to add \E at the end; otherwise the final </span> will also be capitalized.
Doitsu is offline   Reply With Quote
Old 01-30-2014, 08:11 AM   #23
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
thanks - I had experimented & used 2 passes because I did not know about the \E,

so I did a 2nd pass to change /SPAN to /span

seems to have done the trick

interestingly, there's a sequel to this book which has similar formatting, except that in the sequel, they put the opening phrases into caps. thus it looked ok even when small-caps failed to kick in.
publishers learning from their mistakes - whatever next
cybmole is offline   Reply With Quote
Old 01-30-2014, 08:48 AM   #24
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: 29,801
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Doitsu View Post
That's fairly easy to accomplish:

Find:<span class="calibre9">(.*?)</span>
Replace:<span class="calibre9">\U\1\E</span>

For more information on converting to and from upper case characters see this older post of mine.

However, if you start out with upper case text, you'll probably also need to convert the text to lower case. Otherwise you'll get all caps text.

.calibre9 { text-transform: lowercase; font-variant: small-caps; }

@theducks: You'll need to add \E at the end; otherwise the final </span> will also be capitalized.
Thanks. Fixing my saved search NOW
theducks is online now   Reply With Quote
Old 01-30-2014, 11:21 PM   #25
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
Very nice regex info in this thread, thanks guys.

I guess those of us who use embedded small-caps fonts instead of gambling on support for "transform" and "font-variant" are going to have to mend our ways.

Edit to add: For the lead-in on a new chapter, I usually use all-caps styled for .7em bold, following a large drop-cap or large initial cap. I use the small-caps font for stuff inline in other text, such as "signatures" or signs, etc.

Last edited by GrannyGrump; 01-31-2014 at 12:38 AM.
GrannyGrump is offline   Reply With Quote
Old 02-01-2014, 01:25 AM   #26
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by GrannyGrump View Post
Very nice regex info in this thread, thanks guys.

I guess those of us who use embedded small-caps fonts instead of gambling on support for "transform" and "font-variant" are going to have to mend our ways.

Edit to add: For the lead-in on a new chapter, I usually use all-caps styled for .7em bold, following a large drop-cap or large initial cap. I use the small-caps font for stuff inline in other text, such as "signatures" or signs, etc.
I wish I'd seen this thread when it started. We had a series of go-rounds with a publisher about this nearly...two years ago? Who also wanted what they first called a 'drop cap' and ended up being ye olden Raised Initial, which would have been all well and good, but it was a RI with a set of smallcaps, (as in the original part of the discussion) and after MUCH going-round, the long and short of it is, in ADE, that simply does not work, and it's a bastard on Nooks. You either get the world's hinkiest broken lines/words (it hyphenates in the most bizarre places), or, if you set hyphenation: off, you end up with something looking a bit like this:

B
i
l
f
o
r
d

C
h
u
r
c
h

(Assume all the non-bolded letters are smallcaps). OR, the first word is aligned horizontally, but the next one is as you see the example. We tried everything, and even consulted with both Josh and Liz about it. Something in ADE's software just...don't like it, nohow, noway. Whatever the issue is, it's a dog to make work, no matter what you do with those smallcaps/smallcap variants, faux smallcaps, etc. Now, I haven't tried it since 2.0, I don't think...but man, it was the pits back then. I don't think I've given it a whirl since, as it was a lot of fuss for something fairly minor.

FWIW.
Hitch
Hitch is offline   Reply With Quote
Old 02-03-2014, 03:31 AM   #27
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
a final? (maybe) word on all this small caps stuff.

In all the books I've seen it used, in whatever variant, I have yet to see it used intelligently - ever. By which I mean ending it with attention to context, at the end of a sentence, or phrase.

It seems that publishers decide to always small cap the first N words, or the first N centimetres.

So you get small caps intro chunks that consist of sentence + one word, or all-but-one word of a phrase, or even ones bug out half way through someone's name, at the FN/LN boundary.

Maybe it's all down to machine typesetting, surely in ye golden olden days of human typesetting ther'd be a little more sense applied ?

& its not impossible to write regex that ends the small caps if a full stop or comma is detected.
cybmole is offline   Reply With Quote
Old 02-03-2014, 03:57 AM   #28
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
Hitch said
Quote:
in ADE, that simply does not work, and it's a bastard on Nooks.
Well, that is mightily depressing. Faux small caps don't work? But it is just a simple span, how could they mess up something that basic? Must I give up my drop cap with faux small caps?

@cybmole, I agree. I personally like to use a logical phrase or sentence fragment, not necessarily the same number of words for each chapter. I really don't like the "single word" set off this way -- a short word like "the" or "but" looks like an orphan child sitting there in its solitary all-caps splendor. Even if traditional publishers have been using that for several centuries now (at least since the mid-1800's).
GrannyGrump is offline   Reply With Quote
Old 02-03-2014, 04:38 AM   #29
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Quote:
Originally Posted by cybmole View Post
It seems that publishers decide to always small cap the first N words, or the first N centimetres.
It is such a shame that font-variants are not supported or pseudo elements. Then :first-line could be used to create small caps of the first line, regardless of the fontsize.

You would think that this made a lot of sense to include on an e-reader...
Toxaris is offline   Reply With Quote
Old 02-03-2014, 05:29 AM   #30
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by cybmole View Post
It seems that publishers decide to always small cap the first N words, or the first N centimetres.
It's probably the first line, in the printed book, and then it gets blindly converted to ebook.

I sometimes try to include the first few words that make some sense, as in "When Peter Jones asked...", "The old manor house was...", "During the following years they met...", etc.

Quote:
Originally Posted by Toxaris View Post
It is such a shame that font-variants are not supported or pseudo elements. Then :first-line could be used to create small caps of the first line, regardless of the fontsize.
Exactly, and font-variant and pseudo-elements are required in the ePub 2.0.1 spec, so the problem is we do not have ePub-compliant readers (and book creators try to work around that).

Use font-variant and :first-line, and nothing will actually be lost (you will not see the small-caps in most readers, but is it so important?)

Last edited by Jellby; 02-03-2014 at 05:32 AM.
Jellby is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Valid code for August 2012 Baen Bundle Papi47 Deals and Resources (No Self-Promotion or Affiliate Links) 0 12-13-2012 02:52 PM
Fictionwise Code 55% - valid to 05/14/12 Josieb1 Deals and Resources (No Self-Promotion or Affiliate Links) 21 05-14-2012 02:55 PM
Valid ePub, but not valid enough for iBooks MichaelGray ePub 46 01-14-2011 08:22 AM
50% Off Promo Code for KoboBooks.com - Valid Dec. 15 Only G0AT Kobo Reader 10 12-18-2010 09:42 AM
Why does it have to be so complicated? (Good reader for PDF's) drumknott Which one should I buy? 5 11-14-2009 05:43 AM


All times are GMT -4. The time now is 10:12 AM.


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