![]() |
#1 |
Member
![]() ![]() ![]() ![]() Posts: 20
Karma: 374
Join Date: Dec 2013
Device: K4B, Kobo Aura H2O
|
![]()
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. |
![]() |
![]() |
![]() |
#2 |
Member
![]() ![]() ![]() ![]() Posts: 20
Karma: 374
Join Date: Dec 2013
Device: K4B, Kobo Aura H2O
|
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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 33
Karma: 10
Join Date: Mar 2014
Device: Kindle 8th generation, Onyx Boox Nova
|
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. |
![]() |
![]() |
![]() |
#5 |
Member
![]() ![]() ![]() ![]() Posts: 20
Karma: 374
Join Date: Dec 2013
Device: K4B, Kobo Aura H2O
|
Here is an improved version I used for a while.
Better if someone can make a patch as wished. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Enthusiast
![]() Posts: 33
Karma: 10
Join Date: Mar 2014
Device: Kindle 8th generation, Onyx Boox Nova
|
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! |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,138
Karma: 1577094
Join Date: Oct 2008
Device: Samsung EB60, Onyx M92, Onyx Max2
|
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 33
Karma: 10
Join Date: Mar 2014
Device: Kindle 8th generation, Onyx Boox Nova
|
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.
|
![]() |
![]() |
![]() |
#9 | |
Member
![]() ![]() ![]() ![]() Posts: 20
Karma: 374
Join Date: Dec 2013
Device: K4B, Kobo Aura H2O
|
Quote:
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 ![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A New Epub Creator: txt to epub, word to epub | oxen | ePub | 120 | 07-22-2019 02:28 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 |