yashsingh1/xdaforums huggingface dataset:
[Nook Touch Themes and Apps] Renate:
The problem with supporting eInk is that the interface classes in Java are all different.

Even in the Nook 1.1, 1.1.5. 1.3 are incompatible with 1.2.1

(Notice that the latest 1.3 on the white Nook uses an older scheme than the 1.2.1)

They all use android.hardware.EpdController in /system/framework/framework.jar

I have no idea what the Kobo is using.

I can guarantee that the application posted above will do no special eInk handling as it checks the system build fingerprint for compatibility.

If you are using Nook 1.1.5 or 1.3 it will also not do any special eInk handling.

The application should work on any device if you copy over these two library files:

/system/lib/libpdfhost.so

/system/lib/libbndeviceinfo.so

I have this app running on my (old) Kyocera Rise (cell phone).

It should run (without any special eInk handling) on your Kobo.

Anything further would require research and programming.
[Nook Touch Themes and Apps] David0226:
It does not handle Last Reading Point correctly when using the stock library.

Great work! I used this for all of 10 minutes and the potential is evident. With some more of your excellent development work you will have a real winner on your hands.

Question, as this obviously will not read books with B&N DRM, is there some way to make this reader the default when using your library app and allow the stock reader to be the default when using the stock library? Perhaps a setting in your library app to use either the "device default" (stock or other) reader or Temblast Reader specifically when a book is selected.

With regard to the text being clearer than the stock reader, I don't notice a difference. However, I am using the Tweaked Modded ROM, which states:

"Forced all rendering to be done on the GPU." I noticed the text was darker using this ROM when I first installed it. Perhaps your reader essentially does the same thing? This might account for the those who notice the text being clearer when using your reader.
[Nook Touch Themes and Apps] Renate:
Interesting, that's not what I explicitly did, but maybe it's effectively what I did.
[Nook Touch Themes and Apps] wozhere:
Font display doesn't seem as good as stock reader upon closer inspection.

For PDF reader I still use two particular versions of Repligo and ezPDF-Reader both: fast, full of options and pinch in-out for zoom on txt/image based files and more, opening all pdfs.

The epub reader is suffering on some files with wrapping longer lines so I get remainder lines with two or three words, unless fonts are much smaller even with little margins so back to AlReader and FBReader I'm afraid.
[Nook Touch Themes and Apps] Renate:
Huh? I have no idea what you mean.

Are you talking about some EPUB that has lots of hard line breaks?

If so, why not view in landscape?

Pinch zoom on PDFs will be coming.

The first priority was to get linear reading in chunks without having to pan constantly.
[Nook Touch Themes and Apps] Renate:
Here's a new version that has fallback for last document read.

If you are using my Library app it will allow LRP on the last untracked book.

If you are using another library it will allow LRP on the last (but only one) book.
[Nook Touch Themes and Apps] richardcoop:
Sorry to say but it still doesn't remember the last read page for me. It also forgets my EPUB config preferences. I've been using your Library app.
[Nook Touch Themes and Apps] Renate:
Sorry, Library-1.11.apk has undergone some changes.

Download in the signature.

It should remember your EPUB & PDF preferences.

Uninstalling and installing will wipe the preferences.
[Nook Touch Themes and Apps] richardcoop:
I've had a chance to use this reader, reading a few chapters in a epub, alternating with the stock reader Comparing the two, I still think the text is clearer with the new reader. There may be a trade-off, however The stock reader does a complete refresh of the screen about every five page turns while the new reader seems to refresh the screen much more often, nearly every page. I find frequent screen refreshes on page turns distracting while reading. Perhaps this could be adjusted?

I tried to compare the books using the same font but was unable to get helvetica neue with the new reader. When I selected it in the config I was give a seif font that looked nothing like helvetica neue.
[Nook Touch Themes and Apps] Renate:
Are you sure that you have version 1.2.1 software there?

The eink handling for this reader is only enabled for 1.2.1

You should be seeing the text "morph" by every page turn, certainly not flashing.

Yes, the font handling of the underlying files is bizarre.

I'm trying to get a fix for that.

Helvetica's true name is Helvetica Neue WGL

I want it to be able to support fonts without having a preset list of fonts in the app itself.

This is the current list:

Amasis30 Amasis30.ttf
Ascender Sans AscenderSans.ttf
Caecilia Caecilia.ttf
Century School Book CenturySchoolBook.ttf
Dutch Dutch.ttf
Georgia Georgia.ttf
Gill Sans GillSans.ttf
Helvetica HelveticaNeue.ttf
Malabar Malabar.ttf
Trebuchet MS Trebuchet.ttf
Ysobel Ysobel.ttf
[Nook Touch Themes and Apps] richardcoop:
It's 1.2.1
[Nook Touch Themes and Apps] Renate:
Try this in an ADB shell:

# getprop ro.build.fingerprint
generic/zoom2/zoom2/zoom2:2.1/ERD79/1.2.1:user/test-keys

I solved the problem of unlimited fonts by an exploit.

I have to rewrite a chunk of code to make it functional.
[Nook Touch Themes and Apps] richardcoop:
Not running ADB, Using Linux Mint.
[Nook Touch Themes and Apps] Renate:
I use mint toothpaste but that too has no bearing on this.

What is the value of ro.build.fingerprint on your Nook?

(You find that out by running an ADB shell and typing in the command from above.)

Are you using any "norefresh" or "fastrefresh" or anything that alters the graphic system?
[Nook Touch Themes and Apps] richardcoop:
I am not using anything that affects the graphic system. What I meant to say was that I have no need to go though the considerable trouble to install ADB on linux.

I would be glad to help if you might be able to tell me the file in which the build no is located and would be happy to send it to you.
[Nook Touch Themes and Apps] Renate:
Your choice, but if somebody wants to do stuff with the Nook then ADB is indispensable.

Let's forget about the fingerprint then.

Just post the chunk of logcat over ADB related to a page turn.
[Nook Touch Themes and Apps] dnastase:
I postponed making ADB work on my linux for years bc too I thought it to be a big deal. It's not.

I used this tutorial and I had a functioning ADB in like 5 min. Mind you, not full Android development, just ADB.

The tutorial is nice bc it also explains why you have to do some steps. For a linux user should be very easy.

Also I realized ADB is a God-send: you can effectively login into the box w/out setting up ssh and also copy files into/out of it.

Very, very seamlessly, well worth it.

http://androidonlinux.wordpress.com/2013/05/12/setting-up-adb-on-linux/
[Nook Touch Themes and Apps] richardcoop:
Tried this tutorial and got to the part: "Part III: The Setting-Up Part

On your Android Phone, go to Settings > Applications > Development and in there enable USB Debugging."

And at a loss as to what to do. Can't find USB debugging on my NST
[Nook Touch Themes and Apps] dnastase:
Did you root your NST ?

Did you install NookColor Tools ?

There in the "All Settings"/Development there is "USB Debugging".

Also: I have installed ADB Konnect (and I think there may be other apps in the App Store like that) that allows you do have ADB over wifi which is awesome bc on one hand you don't need to hook up the USB all the time and on the other it allows you do debug the USB (eg: if you want to use USB keyboard).
[Nook Touch Themes and Apps] richardcoop:
You did all that in 5 minutes? You are a better and much faster man than I am.

In any case, to answer the question I get:

verizon/voles/sholes/sholes:2.1-update1/ESE81/29593:user/release-keys

as the output of Renate's adb comand
[Nook Touch Themes and Apps] Renate:
A new version:

This supports any fonts present in /system/fonts

I think this will be most useful for people who are using languages with glyphs not found in the standard fonts.

You don't have to go around renaming fonts to make things work.

As a matter of fact, the file name is ignored, it's only the TTF font family name that matters.
[Nook Touch Themes and Apps] Renate:
Well, you are getting no special eInk handling with that fingerprint.

That's why it's flashing.

I have some better code for detecting which version EpdController is being used.

That's not in the release above. I'll try to get it in soon.
[Nook Touch Themes and Apps] Renate:
New version time!

If you were already getting correct "morphing" page turns (vs. flashing) from the last update you don't need to bother with this one.

This will do correct eInk handling on any 1.2.1 irrespective of build signature.
[Nook Touch Themes and Apps] richardcoop:
Good job!

In the great eink reader competition the stock reader flashes about every 5th page, AIReaderEINK and CoolReader about every 4th page,

Temblast Reader doesn't flash at all! Went through most of a book without a flash. Also don't know how the screen can look much better.

AIReader loads books slowly and has tons of options but not a very easy to use interface (except for font size). Think the stock reader has the easiest to use interface.

Also tried FBReader nst version. It has a fast refresh toggle that makes the screen look dirty. With the toggle off it refreshes every 3 to 4 pages, only supports Droid fonts and has its own library which is slow and doesn't support the stock library.

Go Renate! :victory:
[Nook Touch Themes and Apps] Renate:
Some seem to have problems with accumulated display artifacts.

I've not seen this myself.

I used an external batch file with adb shell input keyevent 93 to turn the pages.

After 165 pages it looked like this:

This would be the equivalent of reading an entire book without turning it off, switching to another app or even calling up a dialog once.
[Nook Touch Themes and Apps] richardcoop:
Very strange. Above are pictures of the same page on my nook 10 page turns and then another 10 page turns (total 20 page turns), forward and back.

Could it be some problem with the eink? The "dirt" seems to accumulate on the areas that are not written on. Note the dark margins.
[Nook Touch Themes and Apps] richardcoop:
Hmm. The latest glow-light seems to have no flashing in its Reader.We have established that we are using different versions of B&N 1.2.1 software.

The thought occurred to me that maybe there was an improvement to B&N software that I don't have.

Does that make sense?
[Nook Touch Themes and Apps] David0226:
A suggestion for those who are seeing the accumulated artifacts ...

Install "Nook Clear Screen" and "Nook Touch Mod Manager". Then map "Nook Clear Screen" to a long press of one of the hardware buttons.
[Nook Touch Themes and Apps] OverByter:
The latest Glo Light is using a completely different screen than us, higher resolution and obviously other updates. E-ink is still a pretty young technology, with noticeable improvements to each generation.

OB
[Nook Touch Themes and Apps] {Diemex}:
Do you plan on releasing the source? I'm interested to see which library you used.
[Nook Touch Themes and Apps] Renate:
The core of the app is libpdfhost.so, the rendering engine.

Why I use that is that it can handle public library borrowed books.

Here's a new version. It might have problems, so I leave the old version up above.

This version supports links on the pages.

It also supports a stack that gets pushed automatically on links.

It can be popped from the navigate menu.

You can also push if you just want to browse pages and later return.
[Nook Touch Themes and Apps] tebra:
Thanks for this app.

I have a question: if I try to open a PDF file with a file explorer, your app don't appear to open with it.

Why?
[Nook Touch Themes and Apps] kazakore:
Any reason not to update the original post with latest version and release notes?? ;)

Is external dictionary (namely http://aarddict.org/ in my case) coming soon? Hope so as with it this looks like it would fit exactly what I need :)
[Nook Touch Themes and Apps] wozhere:
People who can't use this in android as posted: in a file manager like "Total Commander": long press the epub or pdf you want to read, choose option "Open with": the text label might not appear but Temblast is the app with icon like rising sun Japanese wartime flag at bottom.

Display is really good in this for epubs. Personally can not use it in bed where do most reading, it is a floodlight. Wish it had night-mode option: white text on black background.

Also screen click commands should be 4 quarters:

Upper Left (Table of contents) + Upper Right (Settings)

Lower Left (Previous page) + Lower Right (Next page)

P.S.: Forgot to see if it opens up txt files, converted many pdf & epubs in Calibre to txt, will test it tonight when I get home for txt files.
[Nook Touch Themes and Apps] tebra:
Hi Renate,

If I push "Last Read" icon, I can chose to open your app or the default reader app to read my last epub.

But if select a pdf file with "ES Explorer" app, I have to chose between "perfect viewer" and default reader app. Your app don't show for pdf file.
[Nook Touch Themes and Apps] kazakore:
Temblast Reader says it's install and first thing I notice is it doesn't appear to give anyway to open it directly through ReLaunch (doesn't show up at all on the Applications list.) But it does show up as an option of program to use when I click on a pdf, so that's good :) Any reason for this??

First pdf I tried only displays to around page 20 for some reason. http://en.flossmanuals.net/_booki/pure-data/pure-data.pdf

When opening the same book at a later stage (say I'm flicking between programs or sessions) and it doesn't remember last page read.

If I'm in landscape mode I don't see the lower half of the pages. Going page down takes you to the top of the next page and always skips lower half of page. (Actually same in portrait mode even with X/Y Overscan set to 0%.) - EDIT OK so you can drag pages with some small zone in the middle but it's really not intuitive and you often hit other zones, especially in Landscape mode.

Can't see these Crop options you talked of. Not in any really usable way anyway. Being able to see a page and set the cropped area with a resizable box would be ideal ;)

You can't close the Contents once you've opened it (by quite possibly clicking by accident in that area.) Fine if you have short heading of some technical book, as above, but if they were 50-100 page chapters and you can't get back to normal view without navigating to one of the headings it would be more than annoying!

Where are Options? Sure I must be missing something! Text Options, Open File, Recently Read etc...
[Nook Touch Themes and Apps] Renate:
Sorry, everybody, I've been away for a while.

The reader currently reacts to intents on the two MIME types:

<data android:mimeType="application/pdf" android:scheme="file" />
<data android:mimeType="application/epub" android:scheme="file" />

This is really the proper way to do things.

I'll add in file extension matching so it will work with ill-behaved file managers.

I've been using the reader a lot and I want to fix some stuff that is making resizing slow.

Resizing happens when you change orientation or open/close the TOC.

Some EPUBs divide the content into very few files.

That means that it has to repaginate a lot of pages when resizing.

Dividing up an EPUB so that every fresh page starts a new file can avoid this.

That would be having a separate file for each chapter, not too big a deal.

Not obvious, but with PDFs in landscape a poke in the center of the page scrolls down a chunk.

A poke on the right goes a full page.
[Nook Touch Themes and Apps] nivieru:
Hi Renate,

thank for this reader (and for your numerous contributions to the nook community).

I really like it's minimalist approach, but I have a problem with links, or at least with footnotes whose links are one superscript letter -

when I try to tap them it rarely brings me to the note, instead it brings up the menu (or turn a page if it's close to the edge).

I guess the area that's considered part of the link is too small.
[Nook Touch Themes and Apps] Renate:
Yup, that has been noticed. I read a lot of books with footnotes.

(Did you notice that it doesn't push the return place correctly too?

I fixed that bug but was waiting to fix the small hit area thing first.)

It's coming.
[Nook Touch Themes and Apps] Renate:
Here's a new version.

It works a lot better on tiny superscript footnotes.

Most footnotes have a reverse link that you can use, but a "Pop" will get you back too.
[Nook Touch Themes and Apps] bisbal:
Awesome app, everyone should use it because it's great.
[Nook Touch Themes and Apps] Darrian:
I would like to try it but after installing it the icon doesn't show up in my app drawer and my file manager doesn't see it associated with epubs. Note that I'm not trying to use it on a rooted nook reader as I no longer have one; I'm using a Nook HD+ with CM11. I can't imagine it should matter if it's phone compatible. I'm trying the apk you posted on the 28th. Is there a different one I should use?
[Nook Touch Themes and Apps] Renate:
There's no icon on the desktop because it only launches as a viewer for EPUB and PDF.

It requires library files that are part of Nook 1.2.1

Without those, it won't run.
[Nook Touch Themes and Apps] Darrian:
Ok. Do you plan to make it compatible with all android devices in the future or will it remain for e-ink Nook readers only?
[Nook Touch Themes and Apps] wozhere:
People who have 1.2.1 firmware update can long press the epub or pdf in a file manager like 'Total Commander', choose open with, this temblast reader has an icon like Sun rays of old Japanese flag, click that as the name might not show.
[Nook Touch Themes and Apps] Renate:
Renate looks up from reading "Durch die Wüste" on her non-rooted ZTE Awe (Jellybean) ... "Huh?"

You need a couple of library files from the Nook 1.2.1 release.

On a rooted device you can copy them to /system/lib

On an unrooted device you can unzip the app, stick them in lib/armeabi, zip and sign.

There is also the issue of a problem with a required font (despite the font not necessarily being used).

The 4 Malabar files can be copied to /system/fonts on a rooted device.

See later posts

Another thing that is helpful is the hyphenDicts which could be installed on rooted devices.

This version is more accommodating to lib files packed in the apk.

It does not include the lib files.
[Nook Touch Themes and Apps] Darrian:
Oh, ok. I have yet to ever successfully sign an apk, so I just downloaded the 1.2.1 update from B&N, extracted the files I needed and copied the lib files to /system/lib and the fonts to /system/fonts, installed the app and rebooted. That didn't work, so I uninstalled the app and then reinstalled it again. That didn't work, either. I don't know what I'm doing wrong.
[Nook Touch Themes and Apps] Renate:
Ok, more developments.

One of the lib files you need is exactly 9,695,904 bytes long. :D

You can modify this file so it no longer needs any specific fonts.

You can make do with whatever stock fonts are on your rooted (or not) device.

C:\>modfile mysteryfile 002263EC /d EAFFFFFF
[002263ec] EB002C30 => EAFFFFFF

The other file you need is exactly 9,484 bytes long. :D

You don't need to modify that.

Whenever you have a problem with anything on an Android, include the logcat, trimmed down to the important part.

Oh, by first start this app might pick a random font with dingbats for the font.

Simply go into setup and select a sane font.
[Nook Touch Themes and Apps] kazakore:
Thank you for taking my last post so well, it wasn't meant as abrupt as it sounded to myself when reading back later. Currently only getting a couple of hours internet time a week or thereabouts and had written it quickly and then my friend was trying to get us to leave the cafe we were in post haste, plus the connection had been so temperamental any internet work that day had been quite painful.

Respect for the work you are putting in! Although at present it doesn't seem to fulfil my needs unfortunately (see previous post as to why.) Although no pdf reader I've yet tried really does! eBookReader is the closet (have you considered looking at or modifying their code? The version that works on the NOOK ST is open source and it does fine with the pdf I link your reader wont display past the first few pages and its auto-crop seems better than most.) I'm yet to try Orion but have downloaded it today so will give that one a whirl when I'm back at home.

Also, can you please not call every upload the same name! The first version may have been "Reader-1.0" but surely by now we are at at least "Reader-1.5" or something... Version numbers in the filename (and as filename is different to program name I assume this must be allowed in Android apps) can be very useful for knowing if you are up to date!! (As can the links and release notes being added to the first post of the thread! ;) )

Anyway I plan to keep abreast of the progress made here so thanks once again and please don't take my criticism harshly.
[Nook Touch Themes and Apps] Renate:
There's a new utility in the signature.

It will tell you when an APK was actually made and not when it was downloaded.

C:\>apkstamp Reader-1.0.apk
Signed 2014-07-03 08:27
Classes 2014-07-03 08:27
Resources 2014-07-03 08:27
[Nook Touch Themes and Apps] wozhere:
https://www.youtube.com/watch?v=MwJaSXb_PoI
[Nook Touch Themes and Apps] OverByter:
:p :thumbup:

OB
[Nook Touch Themes and Apps] Renate:
I'm working on a new concept to clean up the options and to add new ones.

Edit: Moving along, just a few more bugs to clean up.
[Nook Touch Themes and Apps] wozhere:
This guy was spot on:
[Nook Touch Themes and Apps] wozhere:
Also for goto page & going through books a gauge bar is indispensable.
[Nook Touch Themes and Apps] Renate:
It's coming.
[Nook Touch Themes and Apps] wozhere:
Super.
[Nook Touch Themes and Apps] Renate:
I think that I got most of the style blemishes.

Here's the version with "Invert colors" in the "Scr(een)" tab.
[Nook Touch Themes and Apps] Renate:
Sorry, already first bug fix.

Not major, just unnecessary updating on switching tabs.
[Nook Touch Themes and Apps] wozhere:
Thanks Renate,

Working well with few epub files I tried. Couple of suggestions:

* Screen regions options are a bit of minefield, if ignoring my previous recommendations I would say restrict main menu popup to central section still, but get rid of the TOC popping up. It is like a crackerjack. There can be a big button on the front page of popup menu box which brings up TOC. And pressing back button can send it away as well as a button on the bottom of TOC to close it? Currently pressing the back button closes the app. Also clicking outside TOC closing it still remaining functional.

* Also a settings file so the font settings we set in previous session of the app are maintained for future plus page read last or auto bookmark.

The landscape mode worked once but never worked till now. Also it would be nice if clicking outside the popup menu closes it.

And a page navigation gauge bar still would be good. The main problem is not getting used to page regions functions: page up, down, menu, TOC. It's like playing battleship minefield. All in all very good display and thanks for the good work. Thanks for the night mode too. :good:

P.S. The landscape bug occurs once invert screen is selected apparently.
[Nook Touch Themes and Apps] richardcoop:
Big improvement in eliminating image debris that accumulated on the screen in the previous version.

Thanks for the work.
[Nook Touch Themes and Apps] geopapa:
I installed the .apk over a previous one choose templast reader over other readers when I open an .epub from my file manager and then nothing happens :crying: