View Single Post
Old 12-20-2013, 08:39 PM   #6
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Hi

This is what I am using for plain text. I am aware it's a bit complicated ( I have one font for dropcap display and one for small caps) but it works well with ADE and i have been using it for a long time now. I need to differentiate because of the size and shape of some letters.

Using a double span (let1 and let2 or 4) to code the dropcap helps to place it precisely. Hopefully, this latter part of the code could be adapted for poetry.

I insert for example this in the CSS

Quote:
/*Réglages Lettrines DEUX LIGNES ADE a été privilégié p/r à Sigil.*/

.let1{
display : block;
float : left;
margin-top : -0.5em;
margin-left : 0.0em;
margin-right : 0.2em;
height : 2.2em;
}

.let2{
font-family:'Linux Libertine Display-Regular';
font-size : 3.3em;
line-height : 1.1em;
color:green;
}

/*Réglage Lettrine J, Q et Ç (let 2 vers let4) */

.let4{
font-family:'Linux Libertine Display-Regular';
font-size : 2.9em;
line-height : 1.1em;
color:green;
}
then this, still in the css

Quote:
span.smcpTypeA {font-family:'Linux Libertine O C';font-size:95%;font-style:normal;margin-left:-0.4em;}
span.smcpTypeV {font-family:'Linux Libertine O C';font-size:95%;font-style:normal;}

p.let {margin-left:0.8em;margin-right:0.8em;margin-top:0.3cm;margin-bottom:0.0cm;border:none;padding:0;background-color:transparent;text-indent:0.0cm;text-align:justify;}

In code view it may look like this:

Quote:
<p class="let"><span class="let1"><span class="let2">N</span></span><span class="smcpTypeV">ous croyons</span> devoir prévenir le public, que, malgré le titre de cet ouvrage et ce qu’en dit le rédacteur dans sa préface, nous ne garantissons pas l’authenticité de ce recueil, et que nous avons même de fortes raisons de penser que ce n’est qu’un roman.</p>

It looks like these in ADE (see screenshots)

I also use a regex to put them in place:

S: <p class="let">([A-ZÉÀÔ])

R: <p class="let"><span class="let1"><span class="let2">\1</span></span>
Attached Thumbnails
Click image for larger version

Name:	Sélection_002.jpg
Views:	340
Size:	111.2 KB
ID:	116963   Click image for larger version

Name:	Sélection_003.jpg
Views:	357
Size:	107.6 KB
ID:	116964   Click image for larger version

Name:	Sélection_004.jpg
Views:	345
Size:	108.3 KB
ID:	116966  

Last edited by roger64; 12-20-2013 at 11:02 PM.
roger64 is offline   Reply With Quote