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

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-28-2012, 10:13 PM   #91
dave2008
Addict
dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.
 
Posts: 230
Karma: 183457
Join Date: Jan 2012
Device: k3G(broken), KDXG, paperwhite
Quote:
Originally Posted by eLiNK View Post
Actually, that's how it works in Duokan. You press ALT + some number, and an input box with the number already pressed pops up.
But it does not matter.

An input box fired up by some shortcut would be fine as well.
Could you also provide some information on current page / total number of pages and incorporate three buttons "GoTo", "Goto Start", "GotoEnd"?

That would be sweet.
No problem, but we need to first add button system to current UI. This may take some time.
dave2008 is offline   Reply With Quote
Old 02-29-2012, 11:49 PM   #92
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by knc1 View Post
One less process creation.
shebang takes two (shell and shell proc'ing lua) sometimes three, depending on how it got called.

kernel binfmt_misc only has to proc' one process (lua) and that is probably in the kernel's cache buffers (a single process clone call).

Too bad tcc doesn't do ARM code (just x86 and a bit of MIPS).
tcc DOES do arm code. lrizzo posted it on his web page with his first kiterm a long time ago. I also built it from source (static and lib-dependent versions) that work in the kindle without optware, and generate arm code. I have a static nano too. Like lrizzo, I do not have all the headers I need though... hello.c worked fine. To find the latest arm stuff, you need to search for tinycc, not tcc...

The nice thing about static linking is they work on all kindle models. Lib-dependent versions complain about wrong or missing libs when you move them to a different kindle model.

Last edited by geekmaster; 02-29-2012 at 11:55 PM.
geekmaster is offline   Reply With Quote
Old 03-01-2012, 04:55 AM   #93
dpavlin
Connoisseur
dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.
 
dpavlin's Avatar
 
Posts: 59
Karma: 116622
Join Date: May 2011
Location: Zagreb, Croatia
Device: Kindle K3G and DXG
New two-column zoom mode (F)

I just finished implementation of two-column zoom mode which is very useful when reading articles on kindle (and frequently requested in this thread).

When you press F, you will be zoomed to top-left column of page. This will also switch you to pan mode, so you can use fiveway to move up/down in current column and left/right to switch columns (and change pages if needed).

Pressing left will always position you to bottom of previous column, while pressing right will move you to top of next one which is consistent with reading flow (even when scanning document backwards).

At any time you can press a/s/d keys to get whole page overview and exit pan mode.

Until changes are merged to main repository, you can download new version at:

https://github.com/downloads/dpavlin...er-de1725d.zip
dpavlin is offline   Reply With Quote
Old 03-01-2012, 06:01 AM   #94
dave2008
Addict
dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.
 
Posts: 230
Karma: 183457
Join Date: Jan 2012
Device: k3G(broken), KDXG, paperwhite
Quote:
Originally Posted by dpavlin View Post
I just finished implementation of two-column zoom mode which is very useful when reading articles on kindle (and frequently requested in this thread).

When you press F, you will be zoomed to top-left column of page. This will also switch you to pan mode, so you can use fiveway to move up/down in current column and left/right to switch columns (and change pages if needed).

Pressing left will always position you to bottom of previous column, while pressing right will move you to top of next one which is consistent with reading flow (even when scanning document backwards).

At any time you can press a/s/d keys to get whole page overview and exit pan mode.

Until changes are merged to main repository, you can download new version at:

https://github.com/downloads/dpavlin...er-de1725d.zip

Works great on my K3! This is a killing feature for reading papers :-) Thanks dpavlin.
dave2008 is offline   Reply With Quote
Old 03-01-2012, 06:57 AM   #95
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,563
Karma: 5840130
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by geekmaster View Post
tcc DOES do arm code. lrizzo posted it on his web page with his first kiterm a long time ago.
I must have been looking at an old copy I had on hand here.
No, wait, I don't have that excuse. I have the tests of its x86_64 code generation posted and the ARM code generation went in before x86_64 was completed.

Does this mean that Robert Landley and Fabrice Bellard have settled their long running dispute?
I don't see Rob mentioned:
http://savannah.nongnu.org/projects/tinycc/

But since the project has been moved to a git repository and the project lead has changed...
http://bellard.org/tcc/
http://repo.or.cz/w/tinycc.git

Perhaps the long running war just died due to lack of interest on the parts of Landley and Bellard (or they both ran out of ammunition).
knc1 is offline   Reply With Quote
Old 03-01-2012, 07:10 AM   #96
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,563
Karma: 5840130
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by knc1 View Post
Perhaps the long running war just died due to lack of interest on the parts of Landley and Bellard (or they both ran out of ammunition).
While on the subject of Robert and building code for ARM -

He has his Aboriginal Linux project to the point that it will build (native, in a QEMU environment) LFS-6.8 for all supported target processors (with the exception of a few remaining problems with Sparc).
http://landley.net/aboriginal/

Just select ARM{v6} as the target in his build system, it will churn out a complete, working, native build system image for QEMU. (or use one of his pre-built binaries).
http://landley.net/aboriginal/about.html

With a decent x86{,_64} system of a few cores, faster than on the real hardware.

The only header files that might be missing from the image would be Kindle I/O devices (eink and touch screen - keyboard is in the FreeScale kernel tree).

Last edited by knc1; 03-01-2012 at 07:15 AM.
knc1 is offline   Reply With Quote
Old 03-01-2012, 05:57 PM   #97
dpavlin
Connoisseur
dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.
 
dpavlin's Avatar
 
Posts: 59
Karma: 116622
Join Date: May 2011
Location: Zagreb, Croatia
Device: Kindle K3G and DXG
demo of two-column zoom and pan

Quote:
Originally Posted by dave2008 View Post
Works great on my K3! This is a killing feature for reading papers :-) Thanks dpavlin.
I made a small video which tries to explain how to use it:
dpavlin is offline   Reply With Quote
Old 03-01-2012, 06:47 PM   #98
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
That is MUCH better than rotating to landscape mode for two-column documents. Thanks!
geekmaster is offline   Reply With Quote
Old 03-02-2012, 01:31 AM   #99
dave2008
Addict
dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.
 
Posts: 230
Karma: 183457
Join Date: Jan 2012
Device: k3G(broken), KDXG, paperwhite
Quote:
Originally Posted by eLiNK View Post
2) TOC: nothing big, but some lines contain a special symbol at the end of the line (an empty box), others don't. Maybe it is just me.
Hi eLiNK, I just checked the special symbols in one of my pdf book. It turns out that these symbols are caused by wrong formated title enties in the pdf. So, for my case, it is not a bug in kindlepdfviewer nor muPDF. I add a workaround to fix these boxes for my book, not sure it will work for you though. Your boxes mighty be caused by other reasons.

The fixes will be included in next new version after hw merged pull requests I guess.

Last edited by dave2008; 03-02-2012 at 01:34 AM.
dave2008 is offline   Reply With Quote
Old 03-02-2012, 04:09 AM   #100
dave2008
Addict
dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.dave2008 can program the VCR without an owner's manual.
 
Posts: 230
Karma: 183457
Join Date: Jan 2012
Device: k3G(broken), KDXG, paperwhite
OK, I added a down page in kindlepdfviewer's wiki:
https://github.com/hwhw/kindlepdfviewer/wiki/Download

So now you know what has been changed in every version.
dave2008 is offline   Reply With Quote
Old 03-02-2012, 06:04 AM   #101
eLiNK
Addict
eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.
 
Posts: 344
Karma: 6494
Join Date: Jan 2008
Device: PRS-505, KDXG
Quote:
Originally Posted by dpavlin View Post
I just finished implementation of two-column zoom mode ...
Nice. I'll give it a try.
Thanks.
eLiNK is offline   Reply With Quote
Old 03-02-2012, 06:05 AM   #102
eLiNK
Addict
eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.
 
Posts: 344
Karma: 6494
Join Date: Jan 2008
Device: PRS-505, KDXG
Quote:
Originally Posted by dave2008 View Post
OK, I added a down page in kindlepdfviewer's wiki:
https://github.com/hwhw/kindlepdfviewer/wiki/Download

So now you know what has been changed in every version.
Looks good.

BTW, you've got a message.
eLiNK is offline   Reply With Quote
Old 03-02-2012, 06:07 AM   #103
eLiNK
Addict
eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.eLiNK got an A in P-Chem.
 
Posts: 344
Karma: 6494
Join Date: Jan 2008
Device: PRS-505, KDXG
Quote:
Originally Posted by dave2008 View Post
Hi eLiNK, I just checked the special symbols in one of my pdf book. It turns out that these symbols are caused by wrong formated title enties in the pdf. So, for my case, it is not a bug in kindlepdfviewer nor muPDF. I add a workaround to fix these boxes for my book, not sure it will work for you though. Your boxes mighty be caused by other reasons.

The fixes will be included in next new version after hw merged pull requests I guess.
No problem,
in the meanwhile I'll check where those special symbols are coming from.
I have created bookmarks with the Pdf & DjVu Bookmarker (http://sourceforge.net/projects/djvubookmarker/).
eLiNK is offline   Reply With Quote
Old 03-02-2012, 12:51 PM   #104
Germanc
Member
Germanc is on a distinguished road
 
Posts: 15
Karma: 68
Join Date: Oct 2011
Device: Kindle Keyboard
This is great, and with djvu support it will be _perfect_. But I'm having a problem. Big pdfs (mostly scanned books) are really slow to open and to turn pages, up to 20 seconds. Is that expected ?
Keep up the good work, if the speed issue is solved I promise to hang up a poster with the developers names on it :P
Germanc is offline   Reply With Quote
Old 03-02-2012, 02:22 PM   #105
dpavlin
Connoisseur
dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.
 
dpavlin's Avatar
 
Posts: 59
Karma: 116622
Join Date: May 2011
Location: Zagreb, Croatia
Device: Kindle K3G and DXG
Quote:
Originally Posted by Germanc View Post
This is great, and with djvu support it will be _perfect_. But I'm having a problem. Big pdfs (mostly scanned books) are really slow to open and to turn pages, up to 20 seconds. Is that expected ?
Keep up the good work, if the speed issue is solved I promise to hang up a poster with the developers names on it :P
It probably is. If you google for mupdf bugs, you will often find same complaint. Complex pages with lot of bitmaps (like Linux Journal pdf files) also take a while to render (and take a lot of memory, but we are much better at that lately).
dpavlin 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
Native KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) hawhill Kindle Developer's Corner 573 09-30-2014 01:51 AM
Yet another PDF viewer (muPDF based) melihron PocketBook 66 09-02-2014 03:03 AM
Librerator - multi-format e-reader, fork of KPV Kai771 Kindle Developer's Corner 326 04-18-2014 05:59 AM
Text-based PDF to Mobi, etc./Kindle 3 kidblue Calibre 41 07-20-2012 03:19 PM
muPDF on Kindle DX!! DairyKnight Kindle Developer's Corner 8 03-21-2010 03:39 AM


All times are GMT -4. The time now is 02:31 AM.


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