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 04-28-2012, 03:55 AM   #316
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 medwatt View Post
Thanks all for the chm support. The CHM support has been working with some books but its crashing with this. The document is attached.
I tried to open it with cool reader and it also crashes. Seems like an upstream bug, can anyone else confirm that?
dave2008 is offline   Reply With Quote
Old 04-28-2012, 06:56 AM   #317
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
great release and great last-second changes
Thanks
eLiNK is offline   Reply With Quote
Advert
Old 04-28-2012, 08:04 AM   #318
NuPogodi
Connoisseur
NuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the end
 
Posts: 58
Karma: 31942
Join Date: Feb 2012
Device: Kindle 3, Tolino Shine, Kobo Glo
Thanks for new release. I do not need add 'lost' extentions by myself anymore. So I've made only a couple of minor improvements which make my life more comportable:

1. The default font in crereader.lua (line 54, "FreeSerif") is still worth of replacing by "Droid Sans"

2. As zip-extentions are now allowed, crereader.lua feeds non-existing zip.css to crengine. The best way to solve this problem is to unzip the selected file & to look for the extention of the contained filestream. As I have no ideas how to realize this feature in terms of lua, I've solved this problem in a 'dirty' way, i.e. I've added few lines which allow me to localize the needed style.css for files like "anyfile.extention.zip"

Just insert in crereader.lua (line 34, just before your comment "these two format use the same css file")
Quote:
-- try to find double extentions like filename.extention.zip
if file_type == "zip" then
-- store filename without zip-extention to fn
local fn = string.lower(string.sub(filename,0,-4))
-- if no double extention then default file_type
file_type = string.lower(string.match(fn, ".+%.([^.]+)") or "fb2")
end
BTW, I'm afraid that already reported problem of the font selection is somehow related to absent css-styles. At least, adding the above code solves this problem for *.fb2.zip-files (see absolutely adequate screenshot, the cff-fonts are not deleted)

3. It should also be useful (say, for illustration & debug purposes) to make screenshots. I've again used the 'dirty' method - just added a hotkey (Shift-P) which stored the /dev/fb0-content to raw-file (crereader.lua, line 315)
Quote:
self.commands:del(KEY_P, MOD_SHIFT, "P") -- screenshot

-- make screenshot
self.commands:add(KEY_P, MOD_SHIFT, "P",
"make screenshot",
function(cr)
os.execute("mkdir ".."/mnt/us/kindlepdfviewer/screenshots")
local d = os.date("%Y%m%d%H%M%S")
showInfoMsgWithDelay("making screenshot...", 2000, 1)
os.execute("dd ".."if=/dev/fb0 ".."of=/mnt/us/kindlepdfviewer/screenshots/" .. d .. ".raw")
end
But I still hope that I'll have an opportunity to make screenshots directly (*.png or *.bmp), rather than raw-files that require succeeding conversion.

Last edited by NuPogodi; 04-28-2012 at 08:22 AM.
NuPogodi is offline   Reply With Quote
Old 04-28-2012, 09:11 AM   #319
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 dave2008 View Post
I tried to open it with cool reader and it also crashes. Seems like an upstream bug, can anyone else confirm that?
I tried opening it with a couple desktop viewers.
It did open and display.
Trying to print-to-pdf hung the viewers that I was trying.

Note: these where Linux system viewers (didn't notice which ones) not the Windows native viewer for chm format.

So there might be something funky about that file's format. Hard to say for sure.
knc1 is offline   Reply With Quote
Old 04-29-2012, 08:49 AM   #320
SP777
Junior Member
SP777 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2012
Device: K3 3G
Several remarks.

In the doc view:

1. When opening the "go to page" it's better to show the progress bar with current/total pages (currently invoked by the Menu key) than just print the current page number. It's important to see the total number of pages as well.

2. Finer steps in zoom/pan (2%, 5%) sometimes are needed.

3. Columns sometimes are not recognized properly in the two column view.

There is a good way to recognize any number of columns (not just two) and their exact boundaries. View the page as rasterized bitmap. Sum up the number of active pixels in each pixelwide column of the page. Zero or low values will show all the blank space (page and intercolumn margins).

4. The current way of text highlighting (gray underlining) is very weak, it doesn't really highlight. Maybe black underlining should be used or full background marking (as in the native viewer).

In the file browser:

1. Screen saver behaves differently than in the doc view. It freezes the current view not showing the screen saver picture.

2. It would be good to have some file manipulation abilities. At least file deletion (Del key) and renaming (maybe Aa key).
SP777 is offline   Reply With Quote
Advert
Old 04-29-2012, 02:27 PM   #321
medwatt
Zealot
medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.
 
Posts: 147
Karma: 87723
Join Date: Jan 2011
Location: Kuiper Belt
Device: Kindle 3 (dead); Nook ST (dead); Sony PRS-T1; Onyx i86+
My kindle 3 just froze up today. The upper half displays the screensaver while the lower half works. What a shame ! !
medwatt is offline   Reply With Quote
Old 04-29-2012, 02:50 PM   #322
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: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by medwatt View Post
My kindle 3 just froze up today. The upper half displays the screensaver while the lower half works. What a shame ! !
That sounds like a broken glass substrate on the physical eink display, and not a "froze up" problem. I recently broke a screen like this on one of my k3g kindles.
geekmaster is offline   Reply With Quote
Old 04-29-2012, 03:15 PM   #323
medwatt
Zealot
medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.medwatt knows better than to ask about the Gravitic Imploder Lance.
 
Posts: 147
Karma: 87723
Join Date: Jan 2011
Location: Kuiper Belt
Device: Kindle 3 (dead); Nook ST (dead); Sony PRS-T1; Onyx i86+
The lower part is working though.
medwatt is offline   Reply With Quote
Old 04-29-2012, 03:21 PM   #324
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: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by medwatt View Post
The lower part is working though.
That is normal for broken displays. Everything below and to the right of the damage still works. I wrote a scroll program to let you rotate the part of the display covered by damage (like menus) down to the working area. It was published in this forum some time ago. You probably should turn on voice navigation, which makes the kindle read the hidden menus to you in the TTS voice you selected. It helps a LOT when you have a damaged display.


Last edited by geekmaster; 04-29-2012 at 03:25 PM.
geekmaster is offline   Reply With Quote
Old 04-30-2012, 02:13 AM   #325
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 NuPogodi View Post
Thanks for new release. I do not need add 'lost' extentions by myself anymore. So I've made only a couple of minor improvements which make my life more comportable:

1. The default font in crereader.lua (line 54, "FreeSerif") is still worth of replacing by "Droid Sans"
Could you give a reason for switching to Droid Sans as default font?

Quote:
Originally Posted by NuPogodi View Post
2. As zip-extentions are now allowed, crereader.lua feeds non-existing zip.css to crengine. The best way to solve this problem is to unzip the selected file & to look for the extention of the contained filestream. As I have no ideas how to realize this feature in terms of lua, I've solved this problem in a 'dirty' way, i.e. I've added few lines which allow me to localize the needed style.css for files like "anyfile.extention.zip"

Just insert in crereader.lua (line 34, just before your comment "these two format use the same css file")

BTW, I'm afraid that already reported problem of the font selection is somehow related to absent css-styles. At least, adding the above code solves this problem for *.fb2.zip-files (see absolutely adequate screenshot, the cff-fonts are not deleted)

3. It should also be useful (say, for illustration & debug purposes) to make screenshots. I've again used the 'dirty' method - just added a hotkey (Shift-P) which stored the /dev/fb0-content to raw-file (crereader.lua, line 315)

But I still hope that I'll have an opportunity to make screenshots directly (*.png or *.bmp), rather than raw-files that require succeeding conversion.
Thanks for you patches, I will add it to master branch. It will be even better if you can send a pull request in github next time
dave2008 is offline   Reply With Quote
Old 04-30-2012, 02:16 AM   #326
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 knc1 View Post
I tried opening it with a couple desktop viewers.
It did open and display.
Trying to print-to-pdf hung the viewers that I was trying.

Note: these where Linux system viewers (didn't notice which ones) not the Windows native viewer for chm format.

So there might be something funky about that file's format. Hard to say for sure.
Yes, I also tried to open it with kchmviewer and the hh viewer come with wine. Both of them even fails to open it. But the native windows viewer has no problem.

I will report this to upstream.
dave2008 is offline   Reply With Quote
Old 04-30-2012, 02:24 AM   #327
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 SP777 View Post
Several remarks.
4. The current way of text highlighting (gray underlining) is very weak, it doesn't really highlight. Maybe black underlining should be used or full background marking (as in the native viewer).
Oh, I forgot to mention that the highlighting feature is configurable ;P

Just updated the user guide for it:
https://github.com/hwhw/kindlepdfviewer/wiki/Userguide

See if this meets your need.


Quote:
Originally Posted by SP777 View Post
In the file browser:

1. Screen saver behaves differently than in the doc view. It freezes the current view not showing the screen saver picture.

2. It would be good to have some file manipulation abilities. At least file deletion (Del key) and renaming (maybe Aa key).
Yes, Screen saver does not work for filebrowser (but works for file searcher). We left it unfixed so the release can be out earlier. ;P

File manipulation features will be included in the new UI framework, we are doing a major rewrite currently.
dave2008 is offline   Reply With Quote
Old 04-30-2012, 02:28 AM   #328
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 medwatt View Post
My kindle 3 just froze up today. The upper half displays the screensaver while the lower half works. What a shame ! !
OMG, did you remember how you trigger this? Does it also happen to the native system?

Quote:
Originally Posted by geekmaster View Post
That sounds like a broken glass substrate on the physical eink display, and not a "froze up" problem. I recently broke a screen like this on one of my k3g kindles.
Though I am not going to do that, I am curious about how to reproduce it ;P
dave2008 is offline   Reply With Quote
Old 04-30-2012, 04:05 AM   #329
NuPogodi
Connoisseur
NuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the endNuPogodi knows the complete value of PI to the end
 
Posts: 58
Karma: 31942
Join Date: Feb 2012
Device: Kindle 3, Tolino Shine, Kobo Glo
Quote:
Originally Posted by dave2008 View Post
Could you give a reason for switching to Droid Sans as default font?
AFAIK, FreeSerif is just not included in the release, so setting FreeSerif as the default font is a nonsense, isn't it? Well, I do not insist on exactly Droid Sans, but the default font should nevertheless be distributed with the kindlepdfviewer-release.
PS. I guess the title "kindlepdfviewer" should eventually be replaced by something more universal. What do you think about unireader? Most users will think that this name means UNIversalReader (and it's the case), but only advanced ones will understand that the program is named after UNIversitätstadt Göttingen

Last edited by NuPogodi; 04-30-2012 at 05:38 AM.
NuPogodi is offline   Reply With Quote
Old 04-30-2012, 05:21 AM   #330
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 NuPogodi View Post
AFAIK, FreeSerif is just not included in the release, so setting FreeSerif as the default font is a nonsense, isn't it? Well, I do not insist on exactly Droid Sans, but the default font should nevertheless be distributed with the kindlepdfviewer-release.
Oh, I see. I have changed it, thanks for pointing out this
dave2008 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) hawhill Kindle Developer's Corner 1289 04-07-2025 10:18 AM
Librerator - multi-format e-reader, fork of KPV Kai771 Kindle Developer's Corner 433 05-25-2024 03:34 AM
Yet another PDF viewer (muPDF based) melihron PocketBook 66 09-02-2014 03:03 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 04:56 PM.


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