Open GoogleCodeExporter opened 8 years ago
Great app!
I don't know how much this helps, but I was able to add a custom css file on my
SD card, /jsword/styles/custom.css .
I changed
/AndBible/src/net/bible/service/format/osistohtml/OsisToHtmlSaxHandler.java
In the imports:
import net.bible.android.SharedConstants;
In startDocument():
String extraStyleSheetTag = "<link href='file:///"+SharedConstants.MANUAL_INSTALL_DIR+"/styles/custom.css' rel='stylesheet' type='text/css'/>";
Right before the writing the custom font string:
+ extraStyleSheetTag + "\n"
Although it seems to work fine without the css file, it might be a good idea to
add a fileExists() check.
Something like this might also be added to
/AndBible/src/net/bible/service/format/HtmlMessageFormatter.java , but I
haven't tried.
It's not very user friendly -- the user will still need to know css to create
the file. This will not replace the previously defined stylesheet, just augment
it. The styles will need to be overwritten for each element.
But it's at least a start.
Original comment by whik...@gmail.com
on 29 Jul 2012 at 12:22
Attachments:
Original issue reported on code.google.com by
jmatt...@gmail.com
on 4 Feb 2012 at 2:37