View Single Post
Old 12-25-2013, 07:53 AM   #1
truemarine
Member
truemarine has a complete set of Star Wars action figures.truemarine has a complete set of Star Wars action figures.truemarine has a complete set of Star Wars action figures.truemarine has a complete set of Star Wars action figures.
 
Posts: 20
Karma: 374
Join Date: Dec 2013
Device: K4B, Kobo Aura H2O
Smile More control for reading TXT and EPUB

First I am using the default reader (fbreader and pdf reader for TXT and EPUB). I tried to add more control by myself and now want to share some experience.

Tools: OTFM and any editer you like (notepad++ as an example). If you want you can begin with OTMF alone, even for editing on the fly (thanks to the author for creating such a great tool!).

Part I (TXT reader)

/root/onyx_reader/ui.xml

Sample:

<?xml version="1.0" encoding="UTF-8"?>
<config>
<group name="Indicator">
<option name="FontSize" value="24"/>
</group>
<group name="Options">
<option name="BottomMargin" value="8"/>
<option name="LeftMargin" value="8"/>
<option name="RightMargin" value="8"/>
<option name="TopMargin" value="8"/>
</group>
<group name="Style">
<option name="Base:fontFamily" value="YourFontName"/>
<option name="Base:fontSize" value="34"/>
<option name="Base:lineSpacingPercent" value="125"/>
<option name="Regular Paragraph:spaceAfter" value="4"/>
<option name="Regular Paragraph:spaceBefore" value="4"/>
</group>
</config>

What we have:
- Better control for the page margin
- Better control for the line spacing
- Control for paragraph spacing ("Regular Paragraph:spaceAfter" and "Regular Paragraph:spaceBefore")

If you use fbreader for epub reading I guess you can have more control by yourself.

Last edited by truemarine; 12-25-2013 at 08:04 AM.
truemarine is offline   Reply With Quote