Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > Non-English Discussions > Deutsches Forum > Software

Notices

Reply
 
Thread Tools Search this Thread
Old 12-31-2014, 04:46 AM   #1
nazareno
Member
nazareno began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2013
Device: pocketbook touch lux 623; Sony prs-t1; Sony prs-t2
CSS-Rätsel

ich stehe vor folgendem Rätsel:
eine bestimmte CSS-Formatierung wird in Sigil und Calibre Viewer korrekt angezeigt, während sämtliche andere (sony for pc, sony reader, cool reader usf.) das, worauf es ankommt, unterdrücken.
Die mir wichtige Sache wäre ein überdimensionales Anführungszeichen am Beginn eines Zitates. Es ist im folgenden "blockquote:before" verpackt. Meine Versuche, probeweise Grösse und Lage zu verändern, änderten daran nichts.

blockquote {
font-family: Georgia, serif;
/*font-size: 15px;*/
font-style: italic;
/*width: 600px;*/
margin: 1em 0 0 0;
padding: 0.25em 40px;
line-height: 1.45;
position: relative;
color: #383838;
}
blockquote:before {
display: block;
content: "\201C";
font-size: 3em;
position: absolute;
left: -0px;
top: -20px;
color: #7a7a7a;
}

Vielleicht kommt jemand von euch auf die Lösung?

lg
nazareno
nazareno is offline   Reply With Quote
Old 12-31-2014, 08:26 AM   #2
Sunlite
Addict
Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.
 
Sunlite's Avatar
 
Posts: 206
Karma: 547516
Join Date: Mar 2008
Location: Berlin, Germany
Device: KObo Clara, Kobo Aura, PRS-T1, PB602, CyBook Gen3
Auszug aus dem Mobileread-Wiki über css-Unterstützung von ADE:

Quote:
ADE and Nook (based on ADE) do not support the use of the :before pseudo-element with the content: property (unless this has been fixed recently).
Deutsche Zusammenfassung: ADE unterstützt das Pseudo-Element ':before' im Zusammenspiel mit dem Property 'content' nicht.

Sigil und Calibre verwenden beide einen Browser um den Inhalt von epubs anzuzeigen. Alle (fast) E-Ink-Reader nutzen das RDK von Adobe und unterstützen somit auch nur dass, was Adobe kann.
Sunlite is offline   Reply With Quote
Old 12-31-2014, 09:12 AM   #3
nazareno
Member
nazareno began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2013
Device: pocketbook touch lux 623; Sony prs-t1; Sony prs-t2
vielen Dank, Sunlight!

Des Rätsels Lösung ist also ein bug in Adobe DE. Den entsprechenden link deines Zitats hab ich auch gefunden (https://wiki.mobileread.com/wiki/EPub#ADE), in der Hoffnung, dass dort ein workaround angeboten werde - leider vergebens.

Nun bin ich also wieder ratlos - hat eventuell jemand eine Idee, wie man so ein grosses Anführungszeichen automatisch durch CSS-Formatierung erzeugen könnte?
nazareno is offline   Reply With Quote
Old 12-31-2014, 11:26 AM   #4
Mark Nord
2B || !2B
Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.
 
Posts: 851
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
nazareno
meines Erachtens wirst es automatisch nicht gehen.

Workaround könnte ein SPAN Tag sein:
CSS:
Code:
.sign {
display: block;
font-size: 3em;
position: absolute;
margin-left:-0.8em;
float:left; 
margin-top:-23px;
color: #7a7a7a;
}
XHTML
Code:
<p>.... Nullam ut massa rutrum dolor placerat tempor accumsan eget purus.</p>
<blockquote><p><span class="sign">“</span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus. Donec metus ligula, elementum at pellentesque pellentesque, suscipit...</p></blockquote>
Attached Files
File Type: epub sample1.epub (2.7 KB, 491 views)
Mark Nord is offline   Reply With Quote
Old 01-01-2015, 01:53 AM   #5
nazareno
Member
nazareno began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2013
Device: pocketbook touch lux 623; Sony prs-t1; Sony prs-t2
danke Mark Nord!

Ja, so geht es sicher. Nur das wollte ich mir eigentlich ersparen, mit before und content wäre es eleganter und einfacher gewesen.

Vielleicht werden die pseudo-elemente in Verbindung mit content (der ja eigentlich den ganzen Sinn desselben darstellt) ja irgendwann einmal ins ADE-Programm eingepflegt...
nazareno is offline   Reply With Quote
Old 01-02-2015, 06:18 AM   #6
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 nazareno View Post
Vielleicht werden die pseudo-elemente in Verbindung mit content (der ja eigentlich den ganzen Sinn desselben darstellt) ja irgendwann einmal ins ADE-Programm eingepflegt...
ADE 4.0.2 unterstützt Pseudo-Elemente in ePub3-Dateien. Wenn Du die ePub2-Datei mit dem Sigil-ePub3-Output-Plugin (oder der entsprechenden Calibre-Option, soweit vorhanden) in eine ePub3-Datei umwandelst, wird der Style in ADE 4.0.2 korrekt angezeigt.
Attached Thumbnails
Click image for larger version

Name:	ADE4_EPUB3_PSEUDO.png
Views:	457
Size:	18.9 KB
ID:	133214  
Doitsu is offline   Reply With Quote
Old 01-04-2015, 08:22 AM   #7
nazareno
Member
nazareno began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2013
Device: pocketbook touch lux 623; Sony prs-t1; Sony prs-t2
hallo Doitsu,

das wäre ja wunderbar. Ich habs auch gleich versucht - nur moniert Sigil den fehlenden Pfad von Python 2.7 und 3.4

Was sollte dort genau stehen (unter Windows Vista)?

Danke für deine Hilfe!
nazareno is offline   Reply With Quote
Old 01-04-2015, 09:20 AM   #8
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 nazareno View Post
das wäre ja wunderbar. Ich habs auch gleich versucht - nur moniert Sigil den fehlenden Pfad von Python 2.7 und 3.4

Was sollte dort genau stehen (unter Windows Vista)?
Die Sigil-Plugins erfordern eine vorhandene Python-Installation. Falls Du Python noch nicht installiert hast, solltest Du ActivePython 2.7.8.10 installieren. (Je nach Prozessor musst Du entweder die 32-Bit-Version (x86) oder die 64-Bit-Version (x64) installieren.)

Falls Du Python bereits installiert hast, musst Du nur oben rechts auf Auto klicken, um den Pfad zu ergänzen.
Doitsu is offline   Reply With Quote
Old 01-05-2015, 01:38 AM   #9
nazareno
Member
nazareno began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2013
Device: pocketbook touch lux 623; Sony prs-t1; Sony prs-t2
Verstehe, danke. Aber indem ich sonst keine Plugins plane, werde ich dieses Zusatz-Programm jetzt nicht installieren. Ich warte wohl am besten darauf, dass Sigil komplett auf epub3 angepasst wird - was ja geplant ist, wenn ich richtig verstanden habe. Eine positive Überraschung war für mich überhaupt, dass Sigil jetzt doch noch weiter entwickelt wird, und nicht zugunsten von calibre sozusagen liegen bleibt, wie das noch in meinem Kopf war.
nazareno is offline   Reply With Quote
Old 01-05-2015, 03:37 AM   #10
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 nazareno View Post
Verstehe, danke. Aber indem ich sonst keine Plugins plane, werde ich dieses Zusatz-Programm jetzt nicht installieren.
Falls Du mit "Zusatzprogramm" das Plugin meinst, das ist nur eine 30-KB-Zip-Datei, deren Inhalt in einen Sigil-Unterordner entpackt wird und nur geladen wird, wenn man es explizit über das Plugin-Menü auswählt.

Falls Du mit "Zusatzprogramm" ActivePython gemeint hast, es muss nicht ActivePython sein. Falls Du das reguläre Python von der offiziellen Website installiert hast, geht das natürlich auch. In dem Fall musst Du manuell den entsprechenden Pfad zu python2.exe eintragen. Zum Beispiel:
Code:
C:/Python27/python2.exe
(ActivePython ist nur eine spezielle Distribution, die speziell für Windows optimiert wurde und viele Bibliotheken enthält, die der reguläre Python-Installer nicht installiert.)

Quote:
Originally Posted by nazareno View Post
Ich warte wohl am besten darauf, dass Sigil komplett auf epub3 angepasst wird - was ja geplant ist, wenn ich richtig verstanden habe.
Laut den Programmierern ist das zwar geplant, kann aber durchaus noch ein paar Jahre dauern.

Quote:
Originally Posted by nazareno View Post
Eine positive Überraschung war für mich überhaupt, dass Sigil jetzt doch noch weiter entwickelt wird, und nicht zugunsten von calibre sozusagen liegen bleibt, wie das noch in meinem Kopf war.
Die Entwicklung wurde hauptsächlich von einem Entwickler, KevinH, wieder aufgenommen, der gerne ein Plugin-System haben wollte und nebenbei noch einige andere Verbesserungen eingebaut hat.
Das Äquivalent von Sigil-Plugins sind übrigens Functions im Calibre-Editor. Wenn Du im entsprechenden Calibre-Forum nachfragst, kann ja vielleicht jemand den Sigil-ePub3-Plugin-Code nach Calibre portieren. (Beide basieren auf Python, haben aber unterschiedliche Frameworks.)
Doitsu is offline   Reply With Quote
Old 01-06-2015, 03:15 AM   #11
nazareno
Member
nazareno began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Nov 2013
Device: pocketbook touch lux 623; Sony prs-t1; Sony prs-t2
ja, gemeint war das ActivePython Programm.
Die Einbeziehung des plugins in Calibre wäre vermutlich wirklich die elegantere Lösung, indem dieses kein Extra zu installierendes Programm verlangt. Extra danach im Forum fragen werde ich jedoch nicht - vielleicht haben ja noch andere diese Idee.

Ich danke dir für deine ausführlichen Erklärungen!
nazareno is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ADE breaks CSS --> CSS Validation: Parse Error / Value Error dasboeh ePub 4 12-10-2012 03:25 AM
Other Non-Fiction Meyer, Johann: Rätsel, v1 - 6.4.2012 (German) mmat1 ePub Books 0 04-06-2012 05:39 AM
Override ePub CSS with userStyle.css? barium Sony Reader Dev Corner 11 07-16-2011 03:25 PM
epub CSS versus "Regular" CSS konrad ePub 4 02-18-2011 09:29 AM
css pseudo elements and adjacent combinators in extra css? ldolse Calibre 2 12-21-2010 05:09 PM


All times are GMT -4. The time now is 08:18 AM.


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