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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-29-2017, 09:54 PM   #1
canopus56
Junior Member
canopus56 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2017
Device: Andriod
Sigil default styles in Android Epub readers

(1) I have been using Sigil as an authoring tool but notice that when using the Aldiko epub reader for Android that words marked for indexing are underlined, but when pressed do not go to the index. Is there some fix for this, e.g. - auto linking to the index on clicking or overriding the underlining for index hyperlink markups? Stylistically, this makes reading the document annoying. The document passes www3c and epub3 validation.

(2) To the Sigil generated document compatible with mobile epub readers, is there a default stylesheet url that links to the base Sigil styles, e.g. something similar to the declaration:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

Or would such a step be redundant?

Thanks, Kurt
canopus56 is offline   Reply With Quote
Advert
Old 07-29-2017, 10:25 PM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 17,051
Karma: 89654632
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
There are no "base" Sigil styles. All styling is done via the epub itself, or the system rendering it.

As to the marked words; they are not links, they're anchors. That's why they don't take you anywhere. They're the targets for the links in the index. If Aldiko is underlining them, that's on Aldiko. You can try using css to eliminate the underline (the text-decoration property), but some reading systems automatically underline anything in an anchor tag--even if it's not a hyperlink. The epub (nor it's authoring system) can do anything about it if that's the case.

Last edited by DiapDealer; 07-29-2017 at 10:43 PM.
DiapDealer is online now   Reply With Quote
Old 07-30-2017, 05:14 PM   #3
st_albert
Guru
st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.
 
Posts: 637
Karma: 94420
Join Date: Feb 2010
Device: none
Note that Aldiko has a setting to "override the publisher's formatting."

To find that setting, tap the middle of the reading screen, bringing up a menu bar at the bottom. Tap the "Tt" icon, then hit "more" and look for "Advanced formatting."

IIRC the override box is checked by default.

HTH
Albert
st_albert is offline   Reply With Quote
Old 07-30-2017, 07:21 PM   #4
KevinH
Wizard
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 2,549
Karma: 772404
Join Date: Nov 2009
Device: many
FWIW ... You said it passed "epub3 validation" but your suggested DOCTYPE is not correct for epub3.
KevinH is online now   Reply With Quote
Old 08-01-2017, 09:55 PM   #5
canopus56
Junior Member
canopus56 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2017
Device: Andriod
Thank you. I was able to change the index markers to normal type face with css:

/* Comment out to restore index entry hyperlinks */
.sigil_index_marker{color: black; a:link{color:black}; text-decoration: none;}

This works during day mode but not in night mode. Then the black text stays black and is invisible against the night mode black background.

Any suggestions for work-around code that also addresses the night-viewing mode would be appreciated. - Kurt

Last edited by canopus56; 08-01-2017 at 10:30 PM.
canopus56 is offline   Reply With Quote
Advert
Old 08-02-2017, 10:39 AM   #6
canopus56
Junior Member
canopus56 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2017
Device: Andriod
The work around that I came up with was to use the following style to have no text decoration on a Sigil index marker, e.g.

/* Comment out to restore index entry hyperlinks */
/* This works in dayvision mode but not in night vision. In night vision, the text stays black and thus is invisible against the black night background. So, encapsulate the index_marker link around a forced space character &nbsp; and leave the usually wrapped text blank.*/
a.sigil_index_marker{color: black; a:link{color:black}; text-decoration: none;}

As a last production step, using regex, encapsulate the sigil index marker around a space and leave the text as ordinary unmarked text, e.g. -

Change this:

<a class="sigil_index_marker" title="Common whitetail dragonfly" id="sigil_index_id_1">Common whitetail dragonflies</a>&nbsp;

to this:

<a class="sigil_index_marker" title="Common whitetail dragonfly" id="sigil_index_id_1">&nbsp;</a>Common whitetail dragonflies

With this kludge, you get Sigil index markup and index cross-referencing but without any underlining of the index marked text. This works both in daytime and night vision modes. - Kurt

- Kurt
canopus56 is offline   Reply With Quote
Old 08-02-2017, 10:55 AM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 17,051
Karma: 89654632
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
This works both in daytime and night vision modes.
In Aldiko.

The bottom line is that the epubs themselves can't detect the "themes" they're being rendered with. Color manipulation of text WILL cause problems in other reading systems, or interfere with some users' personal preferences.

If it's for your own personal use; that's one thing. But in general ... it's best not to attempt to micromanage the reader experience (stylistically speaking). People use the reading systems that best allows them to adjust things to their own needs. Hard-coded text-color tricks like this often prevent them from being able to do so. Be very careful with kludges.
DiapDealer is online now   Reply With Quote
Old 08-03-2017, 07:31 PM   #8
st_albert
Guru
st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.st_albert has top level security clearance to Area 51.
 
Posts: 637
Karma: 94420
Join Date: Feb 2010
Device: none
FWIW, I run into a similar problem with epub exports from InDesign v4, where for example every ID4 style which specifies "text color black" will, in the epub stylesheet's corresponding style, contain "color:rgb(0,0,0);" I deal with this by just removing or commenting out these statements.

That seems to allow the style to inherit whatever the reading system's default is, I suppose, thus working for both day and night mode.

Perhaps you could make an analogous style definition for "a" in your stylesheet. I.e. don't specify ANY color, and let it take the system defaults, which should be aware of the overall environment.

"When in doubt, take the defaults."

Albert
st_albert 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
Sigil ePub not recognized in Android knadles Sigil 15 01-10-2014 03:48 AM
epub readers on Android McManly Android Devices 5 11-05-2013 12:23 PM
Epub readers don't render CSS the way it is in Sigil? Ahu Lee Sigil 16 01-24-2013 02:58 PM
CSS classes on Android epub readers MarleneW ePub 7 05-13-2012 04:57 PM
Changing default font styles and sizes p3aul Calibre 26 07-12-2009 01:40 AM


All times are GMT -4. The time now is 04:00 PM.


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