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

Go Back   MobileRead Forums > E-Book Readers > Onyx Boox

Notices

Reply
 
Thread Tools Search this Thread
Old 12-25-2013, 07:53 AM   #1
truemarine
Junior 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: 6
Karma: 374
Join Date: Dec 2013
Device: K4B, ONYX BT HD
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
Old 12-25-2013, 08:31 AM   #2
truemarine
Junior 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: 6
Karma: 374
Join Date: Dec 2013
Device: K4B, ONYX BT HD
Now the full version. I do not know why I can not edit my own post.

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 experiences.

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 (FBReader for TXT)

File to modify:
/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.

Part II (PDF Reader for EPUB)

File to modify:
/usr/share/adobe/resources/userStyle.css

Sample:

@page {
margin-top: 5px;
margin-bottom: 5px;
}

body
{
padding: 1%;
margin-top: 1%;
margin-bottom: 1%;
margin-left: 1%;
margin-right: 1%;
line-height: 150%;
widows: 0;
orphans: 0;
}

p {
line-height: 150%;
margin-top: 2%;
margin-bottom: 2%;
}

img{
max-width: 100%;
max-height: 100%;
}

.calibre, .calibre1, .calibre2, .calibre3, .calibre4, .calibre5, .calibre6, .calibre7, .calibre8, .calibre9, .calibre10, .calibre11, .calibre12, .calibre13 {
margin-left: 6pt;
margin-right: 6pt;
line-height: 150%;
margin-top: 2%;
margin-bottom: 2%;
}

.preface {
margin-left: 6pt;
margin-right: 6pt;
line-height: 150%;
margin-top: 2%;
margin-bottom: 2%;
}

.quote {
margin-top: 2%;
margin-bottom: 2%;
line-height: 150%;
}

What we have:
- Better control for the page margin
- Removing the strange blank at the bottom of the page
- Removing image "overflow"
- Override some of the CSS setting of the EPUB file (not sure if everyone want to have that)

I am not the expert for all these stuff but just hope it's useful for you.

BTW have nice holiday!

Last edited by truemarine; 12-25-2013 at 08:33 AM. Reason: Fix typo.
truemarine is offline   Reply With Quote
Old 03-21-2014, 07:58 PM   #3
bleph
Member
bleph has a complete set of Star Wars action figures.bleph has a complete set of Star Wars action figures.bleph has a complete set of Star Wars action figures.
 
Posts: 20
Karma: 298
Join Date: Apr 2013
Device: Boox M90, M92 Black
Thank you. Tried part II for epub. Does not work for me for some reason.

Last edited by bleph; 03-21-2014 at 08:03 PM.
bleph is offline   Reply With Quote
Old 03-21-2014, 11:54 PM   #4
einkuser
Member
einkuser began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Mar 2014
Device: Icarus eXcel 9.7, Kindle Paperwhite, Nook HD+ & Nook Simple Touch
Same here - I tried the to change the css for pdfreader and nothing happened.

Thanks for the good tips. I think a firmware patch is needed to add the features of margin and font change for 'pdfreader'; it's a basic for any epub reader application.
einkuser is offline   Reply With Quote
Old 03-23-2014, 09:58 PM   #5
truemarine
Junior 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: 6
Karma: 374
Join Date: Dec 2013
Device: K4B, ONYX BT HD
Here is an improved version I used for a while.

Better if someone can make a patch as wished.
Attached Files
File Type: zip userStyle.zip (445 Bytes, 18 views)
truemarine is offline   Reply With Quote
Old 03-25-2014, 03:55 AM   #6
einkuser
Member
einkuser began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Mar 2014
Device: Icarus eXcel 9.7, Kindle Paperwhite, Nook HD+ & Nook Simple Touch
Thanks for zipping the file.

I managed to get it on the device but it seems to crash some epubs.

Would you know how I could change the default font (the only font) on 'pdf reader' from Times New Roman? Is there a file I need to change?

Thanks!
einkuser is offline   Reply With Quote
Old 03-27-2014, 10:47 AM   #7
Randy11
Fanatic
Randy11 is out to avenge the death of his or her father, Domingo Montoya.Randy11 is out to avenge the death of his or her father, Domingo Montoya.Randy11 is out to avenge the death of his or her father, Domingo Montoya.Randy11 is out to avenge the death of his or her father, Domingo Montoya.Randy11 is out to avenge the death of his or her father, Domingo Montoya.Randy11 is out to avenge the death of his or her father, Domingo Montoya.Randy11 is out to avenge the death of his or her father, Domingo Montoya.Randy11 is out to avenge the death of his or her father, Domingo Montoya.Randy11 is out to avenge the death of his or her father, Domingo Montoya.Randy11 is out to avenge the death of his or her father, Domingo Montoya.Randy11 is out to avenge the death of his or her father, Domingo Montoya.
 
Posts: 540
Karma: 34368
Join Date: Oct 2008
Device: Samsung EB60, Onyx M92
Quote:
Originally Posted by einkuser View Post
I managed to get it on the device ...
How do you make this, please ?
Randy11 is offline   Reply With Quote
Old 03-27-2014, 12:42 PM   #8
einkuser
Member
einkuser began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Mar 2014
Device: Icarus eXcel 9.7, Kindle Paperwhite, Nook HD+ & Nook Simple Touch
I downloaded the latest firmware posted on this forum by Booxter and then unzipped it. I then navigated to the right folder (see above instructions) and placed the file there. After that, I placed the new zipped firmware on a sd card and update the device. It worked that way but takes some time.
einkuser is offline   Reply With Quote
Old 03-27-2014, 09:05 PM   #9
truemarine
Junior 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: 6
Karma: 374
Join Date: Dec 2013
Device: K4B, ONYX BT HD
Quote:
Originally Posted by einkuser View Post
Thanks for zipping the file.

I managed to get it on the device but it seems to crash some epubs.

Would you know how I could change the default font (the only font) on 'pdf reader' from Times New Roman? Is there a file I need to change?

Thanks!
I got this script from ONYX forum and I just copied it here. Original post: http://bbs.onyx-international.com.cn...-7353-1-1.html

The trick is to replace /opt/onyx/arm/lib/fonts/AdobeHeitiStd-Regular.ttf

How to do it:
1. Change the default font in system setting to something other than AdobeHeitiStd (for safety).
2. Create a folder under folder named "fonts" in your SD card. Rename the font you like to AdobeHeitiStd-Regular.ttf and copy to SD card under that folder.
3. Run the script.
4. Reboot your device.

And you can take a look at the script by yourself. Use at your own risk.
Attached Files
File Type: zip Put fonts 508.zip (281 Bytes, 15 views)
truemarine 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
A New Epub Creator: txt to epub, word to epub oxen ePub 118 06-02-2014 09:44 PM
audio control in epub 3 Lancelot ePub 1 09-25-2013 11:58 AM
PRS-T1 control music while reading francisca Sony Reader 3 05-26-2012 09:11 AM
A year of TXT reading; want PDFs now ! smallhagrid Which one should I buy? 2 07-18-2010 06:50 PM
PRS 700 suddenly reboots while reading txt BrittaVentura Sony Reader 5 08-16-2009 11:34 PM


All times are GMT -4. The time now is 01:44 PM.


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