Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-28-2012, 11: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: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
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 03-01-2012, 12:49 AM   #92
geekmaster
Carpe diem, c'est la vie.
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: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
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; 03-01-2012 at 12:55 AM.
geekmaster is offline   Reply With Quote
Advert
Old 03-01-2012, 05: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: 61
Karma: 116628
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, 07: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: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
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, 07:57 AM   #95
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
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
Advert
Old 03-01-2012, 08:10 AM   #96
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
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 08:15 AM.
knc1 is offline   Reply With Quote
Old 03-01-2012, 06: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: 61
Karma: 116628
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, 07:47 PM   #98
geekmaster
Carpe diem, c'est la vie.
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: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
That is MUCH better than rotating to landscape mode for two-column documents. Thanks!
geekmaster is offline   Reply With Quote
Old 03-02-2012, 02: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: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
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 02:34 AM.
dave2008 is offline   Reply With Quote
Old 03-02-2012, 05: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: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
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, 07: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, 07: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, 07: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, 01:51 PM   #104
Germanc
Member
Germanc is on a distinguished road
 
Posts: 23
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, 03: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: 61
Karma: 116628
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


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Librerator - multi-format e-reader, fork of KPV Kai771 Kindle Developer's Corner 433 05-25-2024 04:34 AM
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) hawhill Kindle Developer's Corner 1268 02-27-2024 12:49 PM
Yet another PDF viewer (muPDF based) melihron PocketBook 66 09-02-2014 04:03 AM
Text-based PDF to Mobi, etc./Kindle 3 kidblue Calibre 41 07-20-2012 04:19 PM
muPDF on Kindle DX!! DairyKnight Kindle Developer's Corner 8 03-21-2010 04:39 AM


All times are GMT -4. The time now is 01:49 AM.


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