View Single Post
Old 06-02-2011, 11:08 AM   #2
K-Thom
The one and only
K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.K-Thom ought to be getting tired of karma fortunes by now.
 
Posts: 3,302
Karma: 535819
Join Date: Oct 2008
Location: Berlin, Germany
Device: yup!
Das ist eine übliche Anzeige, wenn man von RTF nach ePub konvertiert. Du kannst es in Sigil manuell nachbearbeiten.

Im CSS kannst du die Intiale z.B. so festlegen:

p.initial span { float: left; font-size: 400%; line-height: 1; margin-right: 10px; text-transform: uppercase;}

* float: left denke ich ist klar
* font-size: 400% stelle ich ein, wenn ich ein Initial über 3 Zeilen will. Manche Reader brauche eine höhere Prozentangabe als man von der Zeilenmenge erwarten würde ...
* line-height 1 habe ich eingestellt, weil manche Reader sonst das Initial nach oben schieben. So schließt die Oberkante mit der Oberkante der ersten Zeile ab.
* margin-right lässt sich natirlich so breit einstellen, wie man es gerne hätte.
* text-transform: uppercase ist ganz wichtig. Sollte aus irgendeinem Grund das Initial nicht angezeigt werden, wird es als normaler Großbuchstabe angezeigt.

Im Fließtext baust du das z.B. für ein "F" dann so ein:

<p class="initial">
<span>F</span>ranz Kafka

Das "span" sorgt dafür, dass die Intial-Formatierung nur beim F greift und der Rest des Absatzes normal angezeigt wird.

Das Ganze basiert übrigens auf zelda_pinwheels genial umgesetztem ePub "Three men in a boat". Da stecken Formatierungen für so ziemlich jede Lebenslage drin.

Last edited by K-Thom; 06-02-2011 at 11:11 AM.
K-Thom is offline   Reply With Quote