Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 05-22-2020, 07:35 PM   #1
degn
Member
degn began at the beginning.
 
degn's Avatar
 
Posts: 12
Karma: 10
Join Date: Jul 2018
Device: iBooks on iPad Pro
Apostrophe in front of Unical

How can I place an apostrophe in front of an unical? Se red circle in picture.

My current unical3 is set by:
.unical3 {color: black; float: left;font-size: 2.55em;line-height: 1;margin-bottom: -0.273em;margin-right: 0.05em;margin-top: -0.074em;}

Regards in advance!
Attached Thumbnails
Click image for larger version

Name:	SE.png
Views:	191
Size:	97.3 KB
ID:	179432  
degn is offline   Reply With Quote
Old 05-22-2020, 09:19 PM   #2
PatStapleton
Member
PatStapleton began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Nov 2011
Location: Australia
Device: Kindle 4
This CSS selector might work?

https://www.w3schools.com/cssref/sel_before.asp
PatStapleton is offline   Reply With Quote
Old 05-22-2020, 11:27 PM   #3
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,552
Karma: 14325282
Join Date: Nov 2019
Device: none
Uncial?
hobnail is offline   Reply With Quote
Old 05-23-2020, 12:14 AM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,380
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
What you have in the red circle? Looks more like a closing double curly quote than an apostrophe. You are going to have to wrap it in some CSS to move it higher and probably a touch larger if it was supposed to precede the S. It will need to be moved inside the unical3 style and then vary from there.

i.e. <span class="unical3">“S</span> for a starter and then do a style for the “ to position/size it to your tastes. You will need to include the " inside the unical3 span as the float:left; will move the quote mark to allow the letter to float left.

<span class="unical3><span class="quoteunical">“</span>S</span> where the quoteunical style might make the “ a bit smaller, play with the vertical alignment and possibly a grey rather than black.

Another option with quite a bit of history behind it is simply to omit the opening quote when using a drop cap.

@hobnail: I'm tempted to say that he is not using an uncial font. Perhaps unical is the Danish equivalent of dropcap?
DNSB is offline   Reply With Quote
Old 05-23-2020, 08:22 AM   #5
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,154
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Hmm. Danish isn't like US or British English.
Scroll down to Danish
https://en.wikipedia.org/wiki/Quotat...#Summary_table

It's subscript closing quotes, text, super opening:
„Kom med mig for kaffe“

Last edited by Quoth; 05-23-2020 at 08:25 AM.
Quoth is offline   Reply With Quote
Old 05-23-2020, 02:49 PM   #6
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,380
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Quoth View Post
Hmm. Danish isn't like US or British English.
Scroll down to Danish
https://en.wikipedia.org/wiki/Quotat...#Summary_table

It's subscript closing quotes, text, super opening:
„Kom med mig for kaffe“
Thanks. I'll add that to the list of trivial information that I sometimes wish I could forget.
DNSB is offline   Reply With Quote
Old 08-08-2020, 10:43 AM   #7
degn
Member
degn began at the beginning.
 
degn's Avatar
 
Posts: 12
Karma: 10
Join Date: Jul 2018
Device: iBooks on iPad Pro
Thanks for the comments. And to clarify: I'm using drop caps (spanning two lines). The result looks good in iBooks:



but strange in Google Play Books (the L is displaced upwards):



Can I somehow fix the code so both readers give a nice result? Or do I need two separate epub-files, one for each reader?

Quote:
<p class="tekstdropcap"><span class="dropcap3"><span class="quotestart">”</span>L</span>orem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<span class="quoteend">“</span></p>
Quote:
.
tekstdropcap {
color: black;
font-size: 1em;
line-height: 1.2;
text-indent: 0;
margin: 0;
padding-left: 0;
}

.dropcap3 {
color: black;
float: left;
font-size: 2.55em;
line-height: 1;
margin-bottom: -0.273em;
margin-right: 0.05em;
margin-top: -0.01em;
}

.quotestart {
color: grey;
font-size: 0.6em;
vertical-align: -0.46em;
text-align: left;
}
.quoteend {
color: grey;
font-size: 1.4em;
line-height: 0.6;
vertical-align: -0.1em;
}
Attached Thumbnails
Click image for larger version

Name:	ibooks.png
Views:	146
Size:	70.8 KB
ID:	181194   Click image for larger version

Name:	play.jpeg
Views:	153
Size:	838.3 KB
ID:	181195  

Last edited by degn; 08-13-2020 at 05:45 PM. Reason: downsize images
degn is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with words with Apostrophe's in them audeojude Calibre 9 11-25-2019 07:16 AM
Calibre-Go does not like apostrophe svda Library Management 2 05-30-2018 08:05 AM
Need help with an apostrophe mr ploppy Writers' Corner 27 02-17-2012 03:17 PM
apostrophe's deborahjeanne Calibre 4 09-08-2011 09:38 PM
0.5.14 apostrophe's missing... Amalthia Calibre 24 08-11-2009 08:15 PM


All times are GMT -4. The time now is 07:01 AM.


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