03-27-2010, 05:57 PM | #16 |
Guru
Posts: 687
Karma: 5700000
Join Date: Dec 2009
Device: kindle
|
Typically, you need something extra to do that on WinMo (registry editor, or some tweaking program like sktools) as it's not an option in regular old file explorer. However, AFAIK, Resco does allow one to easily manipulate file associations.
|
03-28-2010, 06:11 AM | #17 | |
Groupie
Posts: 193
Karma: 192
Join Date: Apr 2009
Location: Vanuatu
Device: HTC touch Diamond, Ipaq 3115
|
Quote:
What you are talking about is called command line functionality which I added to ZR just last week. It hasn't been released yet as I am in the middle of a major update so that ZR can resize itself to fit wvga format (800 x 480 pixels) screens such as on the JE series readers. Keep an eye on this forum or the download page on the site in about a week or so and you will then be able to open an ePub with ZR by double tapping in File Explorer, native or Resco. You will also be able to open an ePub from the command line using the syntax "Program Files\ZuluReader.exe yourbook.ePub". If you don't want ZR to manage your library or extract cover images for the bookshelf then all you need to do is NOT put your ePubs in the "My Documents\ZuluLibrary" folder as ZR only "catalogues" ePubs found there (or the folder you specify in options). JoinTech actually asked me to add that as they will be including ZR on the devices ex-factory and starting it just that way from their JTOS eBook UI. Most people opt to boot straight to WinCE and run ZR from an Icon, but it's the choice of the individual user and I'm happy to accommodate everyone's wishes if at all possible. If you can bear with me until the update comes out then I will be keen for some more user input on ways to improve the program further. Cheers and thanks for the input, Steve. |
|
03-28-2010, 06:27 AM | #18 | |
Groupie
Posts: 193
Karma: 192
Join Date: Apr 2009
Location: Vanuatu
Device: HTC touch Diamond, Ipaq 3115
|
Quote:
I am actually rewriting the decode and render engines entirely to address the performance issue from two fronts. This is neccessary because the JE's are built for battery life as opposed to performance. Once these two critical issues have been addressed then I will be actively seeking ideas and suggestions on other ways to improve ZR such as the formatting options you mentioned. Cheers, Steve. |
|
03-28-2010, 06:46 AM | #19 | |
Guru
Posts: 694
Karma: 2383012
Join Date: Aug 2007
Location: Schiedam (The Netherlands)
Device: Lots of eInk devices and iOS stuff
|
Quote:
To solve rendering speed problems most common techniques are double buffering (you can direct enable by reflection in .NET -at least in PC, I do not know if it works in CE) and background screen composing: you compose in background the next screens and brings to front via blt copy and double buffering. The other things are less important. Other future improvement could be columns support. I will stay tunned to test all your improvements. :-) |
|
03-28-2010, 11:19 AM | #20 | |
Punctuation Fetishist
Posts: 557
Karma: 1070000
Join Date: Nov 2008
Location: The Bluest Commonwealth In East America
Device: Kindle PW, Nexus 7 (2013), Galaxy S5 phone, Galaxy Tab 4 8.0
|
Quote:
By the way, I looked at your website. It no longer makes my eyes bleed. Good choice. Regards, Jack Tingle |
|
03-29-2010, 06:48 AM | #21 | |
Groupie
Posts: 193
Karma: 192
Join Date: Apr 2009
Location: Vanuatu
Device: HTC touch Diamond, Ipaq 3115
|
Quote:
Yes, rendering off screen is step one for sure. I have that happening now but it hasn't made anywhere near enough of an improvement yet. I will look into blt copying and double buffering in .net CF tomorrow. Most of the commonly used .net classes etc are available in compact framework, so hopefully those graphics methods will be supported as well. The code module that decodes an ePub's content files into 'objects' (words and pictures etc) to be rendered is already quite fast even with the battery friendly processor of the JE's. Also, due to the architecture of this module, adding support for container type elements such as tables etc is only a formality as each object to be rendered can itself contain other objects with no limit on the depth of nesting. Each object has many properties, width, height, x & y render coordinates, font and image attributes and so on. Then I create a graphics object to render onto like this: pageBmp = New Bitmap(MaxWidth, MaxHeight) Dim e As Graphics = Graphics.FromImage(pageBmp) Next I use the e.graphics.drawstring and e.graphics.drawimage methods to render the objects to the 'off-screen' image according to their properties. In .net on PC everything happens at a blistering pace, so much so in fact that I will be a able to add wysiwyg editing at a later date. The limited grunt in handheld devices however means that I'm going to have to use every trick in the book to speed the rendering module up as much as possible. I'm hoping that wrapping the rendering module into a dll will improve the performace, that and converting it from VB into C, might have to shell out $100 and buy a code converter for that though. Feel free to send any code snippets you think might help Cheers, steve. |
|
03-29-2010, 06:59 AM | #22 | |
Groupie
Posts: 193
Karma: 192
Join Date: Apr 2009
Location: Vanuatu
Device: HTC touch Diamond, Ipaq 3115
|
Quote:
Thanks Jack, yes it was rather gaudy wasn't it. I think I was in the wrong line when they were handing out the graphics design genes |
|
04-03-2010, 06:14 PM | #23 |
Addict
Posts: 309
Karma: 2025434
Join Date: Oct 2009
Device: Lumia 950 Phone
|
Hi Steve,
Take a look at the off-screen bitmap manipulation in Freda (you can find the source code by following the link in the manual http://www.turnip.demon.co.uk/jim/fr...nual/index.htm). The important class to look at is BitmapCache - and the way that the GetBitmapForPage method uses it. What's going on is that if a bitmap is needed for a given page number (plus 'render' attributes like font face/size and page geometry) then that bitmap is drawn using drawstring/drawimage, *unless it's already been drawn and cached* ... in which case the bitmap is copied from the cache. There may be some ideas you can reuse there. Anyhow, I'm in the middle of re-writing all this code to remove various bits of ad-hoccery and improve the general level of abstraction - so the next version might be more re-usable. One word of warning: I have found out the hard way that in .NetCF (depending on which Bitmap constructor signature you use) you will get either: Device Independent Bitmap: you can create a large number of these, but they render very slowly; or: Device Dependent Bitmap: these render acceptably fast, but creating more than ten of these will exhaust the resources in your GDI DLL (you'll get an OOM exception). I found that 'ten' limit by trial and error - and it varies from phone to phone (and ROM to ROM). Happy Hacking! Jim Last edited by Jim Chapman; 04-03-2010 at 06:16 PM. |
04-04-2010, 03:22 AM | #24 |
Groupie
Posts: 193
Karma: 192
Join Date: Apr 2009
Location: Vanuatu
Device: HTC touch Diamond, Ipaq 3115
|
Hi Jim,
Thanks for info, I am rendering off screen with drawstring and drawimage already, the problem is in my html parsing code which I am rewriting now to speed things up. Cheers, Steve. |
04-10-2010, 09:29 PM | #25 |
Groupie
Posts: 193
Karma: 192
Join Date: Apr 2009
Location: Vanuatu
Device: HTC touch Diamond, Ipaq 3115
|
Hi all,
I have just put a new update for ZuluReader on the site. All screens now display correctly on the JE's 480x800 screen. Also, there is a new button which gives direct access to the backlight control when reading. I will now focus on speeding up page turning for these and other slow devices. Cheers, Steve. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
DRAFT - A Beginner's Guide to WinCE Ebook Reader Software | Nate the great | Alternative Devices | 35 | 08-01-2011 08:38 AM |
ePub reader for Maemo devices | mikelv | Alternative Devices | 4 | 01-21-2011 08:35 AM |
I can read mobi eBooks in a WinCE reader? | Ariel | Kindle Formats | 2 | 02-20-2010 12:52 PM |
Better Video on WinCE devices | Nate the great | Alternative Devices | 0 | 12-05-2008 05:29 PM |
New eBook Reader: WinCE SmartBook G168A | Bob Russell | Legacy E-Book Devices | 3 | 03-07-2005 04:35 PM |