Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-04-2013, 01:53 AM   #1
User75
Member
User75 began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2013
Device: KOBO Glo
Question Sigil: Größe der Überschriften verändern

Hallo,

in meinem Reader KOBO Glo werden die Überschriften zu fett bzw. zu groß angezeigt. (Diese Überschriften sind auch im Inhaltsverzeichnis zu sehen.)
Nun habe ich in Sigil nachgesehen und dort waren die Überschriften mit dem HTML-Tag "h1" gekennzeichnet:

<h1 class="block10" id="id_Toc339098097">Einleitung</h1>

Der HTML-Tag "h1" macht die Schrift ja auch sehr groß. Ich habe dann andere HTML-Tags wie z.B. "h3" ausprobiert, um die Größe zu ändern aber sie ist gleich geblieben.

Daher vermute ich, dass es irgendwo eine andere Stelle gibt, welche die Größe der Überschriften steuert.

Die Überschriften sollen nämlich genau so groß sein wie der restliche Text, nur in Fettschrift.

Was muss man tun, um das zu erreichen?


Vielen Dank im Voraus!
User75 is offline   Reply With Quote
Old 12-04-2013, 01:56 AM   #2
Billi
Wizard
Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.
 
Billi's Avatar
 
Posts: 3,388
Karma: 14190103
Join Date: Jun 2009
Location: Berlin
Device: Cybook, iRex, PB, Onyx
Du könntest Dir in Sigil die dazugehörige css-Datei ansehen und prüfen, wie die Größe der Überschriften dort festgelegt ist.
Billi is offline   Reply With Quote
Advert
Old 12-04-2013, 02:06 AM   #3
User75
Member
User75 began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2013
Device: KOBO Glo
@Billi

Ja, so funktioniert es.

Der Pfad ist:
Buch-Browser -> Styles -> stylesheet.css

Dort findet man dann die Größenangaben, z. B.:

.block10 {
color: black;
display: block;
font-family: "Adobe Garamond Pro Bold", serif;
font-size: 1.83333em;
font-weight: bold;
line-height: 1.2;
text-align: center;
padding: 0;
margin: 0
}

Danke!

P.S.
Kann man das nicht übergreifend verändern? Weil es unter Umständen sehr viel Handarbeit ist, die ganzen Überschriften einzeln zu verändern?
User75 is offline   Reply With Quote
Old 12-04-2013, 02:18 AM   #4
Billi
Wizard
Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.
 
Billi's Avatar
 
Posts: 3,388
Karma: 14190103
Join Date: Jun 2009
Location: Berlin
Device: Cybook, iRex, PB, Onyx
Du kannst Dir natürlich Dein Buch zusammenstellen, wie es Dir gefällt, aber eigentlich "sollte" man etwas logisch/semantisch vorgehen. Also h1 ist der Titel des Buches selbst, die Kapitelüberschriften h2, weitere Untertitel h3 usw.

Wenn Du unbedingt alle Überschriften gleich und gleich der Größe des Haupttextes haben willst, kannst Du das mit
h1, h2, h3, h4, h5, h6
{
font-size:1em;
font-weight:bold;
}
einrichten.
Billi is offline   Reply With Quote
Old 12-04-2013, 03:45 AM   #5
faltradl
Guru
faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.
 
Posts: 602
Karma: 1712372
Join Date: Feb 2013
Location: germany
Device: PocketBook Touch
Quote:
Originally Posted by User75 View Post
Kann man das nicht übergreifend verändern? Weil es unter Umständen sehr viel Handarbeit ist, die ganzen Überschriften einzeln zu verändern?
Wieso, die CSS-Datei ist doch die gewünschte zentrale Stelle. (Außer man spendiert jeder Textdatei eine eigene CSS-Datei. Das ist immer wieder zu finden, aber eigentlich nicht im Sinne des Erfinders.) Einzeln mit viel Handarbeit wäre, wenn die Angaben direkt im Text wären.

Ansonsten hat Billi ja schon beschrieben, wie man die Überschriftebenen alle gleich formatieren kann, sofern man das will.
faltradl is offline   Reply With Quote
Advert
Old 12-04-2013, 03:58 AM   #6
User75
Member
User75 began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2013
Device: KOBO Glo
Wo sollte man in der css-Datei den Code einfügen?

h1, h2, h3, h4, h5, h6
{
font-size:1em;
font-weight:bold;
}


Vielen Dank im Voraus!
User75 is offline   Reply With Quote
Old 12-04-2013, 06:59 AM   #7
faltradl
Guru
faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.
 
Posts: 602
Karma: 1712372
Join Date: Feb 2013
Location: germany
Device: PocketBook Touch
Die Formatierungseinträge haben m.W. in der CSS keine festgelegte Reihenfolge. Braucht es auch nicht, denn wenn wenn der Reader im Text ein <h1> findet schaut er in der CSS-Datei nach, ob es einen passenden Eintrag gibt.

(OK, wer z.B. mit der Programmiersprache Pascal gearbeitet hat kennt es anders. Da war Deklarieren vor Benutzen strenge Pflicht. Das war aber dem Einpasscompiler geschuldet, der dafür schneller lief, weil er sich eben nur einmal durch den Quelltext ackern musste. Damals, wo Speicher und Geschwindigkeit knapp waren, ein Vorteil.)

Zu bunt durcheinander sollte man es natürlich nicht machen. Dem "dummen" Computer ist das egal, aber für uns Menschen ist es einfacher, wenn eine gewisse Logik erkennbar ist.
faltradl is offline   Reply With Quote
Old 12-04-2013, 12:19 PM   #8
Billi
Wizard
Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.
 
Billi's Avatar
 
Posts: 3,388
Karma: 14190103
Join Date: Jun 2009
Location: Berlin
Device: Cybook, iRex, PB, Onyx
Die Reihenfolge ist insofern wichtig, dass bei Mehrfachzuweisungen das letzte gilt. Wenn Du also - um im Beispiel zu bleiben - ziemlich am Anfang eine Zeile mit h1-h6 für die Schriftart hast und später weiter unten - sei es aus Dussligkeit oder Absicht - noch mal nur h3 und Schriftart, dann gilt für h3 das weiter unten.
Billi is offline   Reply With Quote
Old 12-05-2013, 04:10 AM   #9
faltradl
Guru
faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.faltradl ought to be getting tired of karma fortunes by now.
 
Posts: 602
Karma: 1712372
Join Date: Feb 2013
Location: germany
Device: PocketBook Touch
Quote:
Originally Posted by Billi View Post
Die Reihenfolge ist insofern wichtig, dass bei Mehrfachzuweisungen das letzte gilt.
OK, doch das sollte ja eigentlich nicht vorkommen. So umfangreich sind CSS-Dateien ja nicht.

P.S.
Fette CSS-Dateien kann man sich einfangen, wenn man Webseiten in Sigil importiert. Da muss man dann den ganzen Müll rausschmeißen, den ein Ebook nicht braucht.

Wobei das noch mehr für die Textdatei gilt. Das ganze Mist von Javascript, Navigationsleisten etc. muss weg. Da hat man echt eine Menge zu tun. Trotzdem kann es sinnvoll sein den Import zu nutzen, statt sich nur den nackten Text zu holen.
faltradl is offline   Reply With Quote
Old 12-06-2013, 04:13 AM   #10
User75
Member
User75 began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2013
Device: KOBO Glo
Irgendwie funktioniert das noch nicht.
Ich habe in der stylesheet-css den Code gleich ganz oben eingefügt, sodass es so aussieht:

h1, h2, h3, h4, h5, h6
{
font-size:1em;
font-weight:bold;
}
.block {
color: black;
display: block;
font-size: 1.29167em;
line-height: 19.2pt;
text-align: center;
padding: 0;
margin: 0
}
.block1 {
color: black;
display: block;
font-family: serif;
font-size: 0.83333em;
text-align: center;
padding: 0;
margin: 0
}


.
.
.
.
.


Es ändert sich aber rein gar nichts an der Anzeige der Überschriften.
Was mache ich falsch?
User75 is offline   Reply With Quote
Old 12-06-2013, 04:19 AM   #11
Billi
Wizard
Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.
 
Billi's Avatar
 
Posts: 3,388
Karma: 14190103
Join Date: Jun 2009
Location: Berlin
Device: Cybook, iRex, PB, Onyx
Nimm mal in Deiner html-Datei die block-Klassen raus.
Eventuell hast Du da etwas in der Art zu stehen: <h1 class="block"> Überschrift</h1>
Was passiert, wenn Du den class-Teil löschst?

In Deiner css-Datei überschreiben die Anweisungen für block die weiter oben für h1-h6.
Oder Du nimmst unten in der block-Anweisung der css den font-size Teil raus.

Last edited by Billi; 12-06-2013 at 04:27 AM.
Billi is offline   Reply With Quote
Old 12-07-2013, 12:59 PM   #12
User75
Member
User75 began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Sep 2013
Device: KOBO Glo
Ja, bei mir stehen die Überschriften immer in der Art:

<h1 class="block10" id="id_Toc339098097">Einleitung</h1>

Im Skript sind 89 Blöcke, es wird wohl am bestens ein, wenn ich jeden Block einzeln bearbeite und dort die Vorgabe für die Schriftgröße (font-size: 1.83333em; ) entferne.

Dachte halt nur es ginge leichter.

Das epub wurde übrigens aus einem Word-Dokument mit Calibre erstellt.
User75 is offline   Reply With Quote
Old 12-07-2013, 01:18 PM   #13
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,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by User75 View Post

Im Skript sind 89 Blöcke, es wird wohl am bestens ein, wenn ich jeden Block einzeln bearbeite und dort die Vorgabe für die Schriftgröße (font-size: 1.83333em; ) entferne.

Dachte halt nur es ginge leichter.
Du musst nicht jeden Block einzeln bearbeiten. Aktiviere einfach den Regex-Modus in Sigil und verwende die folgenden Suchbegriffe:

Find: <h1 class=".*?"
Replace: <h1

Dann bist Du alle Style-Overrides los und die globalen H1-Styles werden verwendet.

Du kannst ja die restlichen .block10-Einträge ggf. in die h1-Definition kopieren.
Doitsu is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Brauche Hilfe bei der Suche in Sigil 0.4.2 Redamaris Erste Hilfe 2 06-26-2012 12:37 PM
Short Fiction Balzac, Honoré de: Cäsar Birotteaus Größe und Niedergang [German]. V1. 20 Feb 2011 Alaska Kindle Books 0 02-20-2011 01:28 PM
Short Fiction Balzac, Honoré de: Cäsar Birotteaus Größe und Niedergang [German]. V1. 20 Feb 2011 Alaska ePub Books 2 02-20-2011 12:57 PM
Vorgegebenen Rand bei ePubs verändern Alaska Erste Hilfe 23 02-04-2010 08:12 AM
Überschriften Konvertieren Insider Erste Hilfe 5 05-25-2009 09:59 AM


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


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