<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">Le 20/04/2018 à 15:13, Karl Kleinpaste
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:a7bb2a75-346e-643b-6c8e-04091557b236@kleinpaste.org">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<font face="FreeSerif">Xiphos is an XHTML-driven application, and
a couple years ago I added the ability to support <a
moz-do-not-send="true"
href="http://wiki.crosswire.org/Choosing_a_SWORD_program#cite_note-84">user-specified
CSS controls</a>. Initially, this was only per-module, using
style.css in the DataPath of the module. This was first
requested by Neil Mayhew (SIL; Freenode #lsdevlinux). Soon
after, I made Xiphos also understand
~/.xiphos/default-style.css, but it's hard to document this in a
way that users find readily. I thought I'd mention it for the
sake of a little visibility.<br>
<br>
Below is my default-style.css right now. I've been using
2-column display as a default for quite a while, because I tend
to use large screens and horizontal real estate is too plentiful
to want to read single-column. In specific modules where that
doesn't work well, I add a style.css to their directories which
restores 1-column behavior. (Default loads 1st, per-module 2nd.)
There are a couple genbook modules I use routinely that display
alone, and for those I use style.css to configure 4-column. The
rest here followed after working on better ways to show pre-book
and -chapter intro material.<br>
<br>
body { -webkit-column-count: 2 ; margin-top: 0.1cm ; }<br>
.introMaterial { background-color:yellow ; color:black }<br>
.divineName { color:purple }<br>
.transChange { background-color:green ; color:yellow }<br>
<br>
As is typical for CSS, it's possible to walk right up to the
edge of visual psychosis with it, and my choices in these
controls have explored that boundary explicitly. The
".divineName" and ".transChange" attributes are standard in the
XHTML provided by Sword rendering. You can find the rest of the
available knobs to twist with "diatheke -b KJV -f xhtml -k
gen.1.1". So if you really want .wordsOfJesus in 24-point
boldface, you can arrange for that in Xiphos directly.
".introMaterial" is a Xiphos-specific provision as of 4.1, which
will remain until/unless Sword itself starts rendering N:0
requests (pre-book/-chapter content) with its own control name.<br>
<br>
Have some fun with it. Share your particularly good, or
particularly psychotic, modifications.<br>
<br>
<a class="moz-txt-link-freetext"
href="http://ftp.xiphos.org/sword/xiphos/CSS/"
moz-do-not-send="true">http://ftp.xiphos.org/sword/xiphos/CSS/</a><br>
</font></blockquote>
<br>
<font face="FreeSerif">What the entries for the ot quotation in the
nt, and for the introductions? Please give us the other
possibilities or a place where to find it. <br>
<br>
</font>
<blockquote type="cite"
cite="mid:a7bb2a75-346e-643b-6c8e-04091557b236@kleinpaste.org"><font
face="FreeSerif"> </font><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
sword-devel mailing list: <a class="moz-txt-link-abbreviated" href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page</pre>
</blockquote>
<br>
</body>
</html>