maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [OS2008, Maemo 5] kchmviewer (https://talk.maemo.org/showthread.php?t=30576)

maxkiva 2010-02-01 13:00

Re: kchmviewer for Mameo
 
thanks, requested invitation

codeMonkey 2010-02-01 13:27

Re: KCHMviewer
 
Maxkiva is working on it here. Show him some love :)

mtjioe 2010-02-01 15:56

Re: kchmviewer for Mameo
 
Hi Maxkiva,

looking forward to test your version! I really needed a program like this. Even decided to install karatchov's version on my n900, which works, but some dependencies are incorrect.

Flandry 2010-02-01 16:01

Re: kchmviewer for Mameo
 
Quote:

Originally Posted by maxkiva (Post 504950)
I got the package ready, whats the best way to host it ?
I had to follow similar path to yours and include libchm directly into source, as I could not find the package for it build for arm.

You can also create library packages and upload them if it's a library that is likely to be used by another app. In this case maybe inclusion is an okay approach.

Did you optify it?

For the sake of avoiding confusion, could i please get the Install link that enables the Diablo Extras-devel repo removed from the first post of this thread or ask that you create a new thread for your Maemo 5 version? In the meantime, i've changed the thread title to indicate it's just for OS2008 so random N900 users don't click that install icon. (They probably will, anyway, but ah, well.)

maxkiva 2010-02-01 17:16

Re: kchmviewer for Mameo
 
Thanks

Will do that for libchm later on.

Not sure I follow your second para. Sorry :-P.

Just to reiterate :This version is specifically for N900.

Flandry 2010-02-01 17:37

Re: kchmviewer for Mameo
 
Quote:

Originally Posted by maxkiva (Post 505416)
Thanks

Will do that for libchm later on.

Not sure I follow your second para. Sorry :-P.

Just to reiterate :This version is specifically for N900.

There's an install file linked with the http://static.maemo.org/style_maemo2...on_install.png arrow icon in the first post of this thread. It enables the Extras-devel repository for the Diablo (OS2008) distribution, all of which is bad mojo for N900 users who happen upon this thread. I renamed the thread for now, but when your N900 version is ready, you should probably create a separate thread for discussion of it...or get the OP to remove that link on the first post so i can rename the thread to include Maemo 5.

maxkiva 2010-02-01 21:39

Re: [OS2008] kchmviewer
 
puzzled slightly by this error in the garage builder log:

cd builddir && /opt/qt4-maemo5/bin/qmake PREFIX=/usr ../kchmviewer.pro
/scratchbox/tools/bin/sh: line 1: /opt/qt4-maemo5/bin/qmake: No such file or directory

does it suggest that /opt/qt4-maemo5/bin/qmake is not available there ?

thanks

karatchov 2010-02-02 06:31

Re: [OS2008] kchmviewer
 
Hello
Great work
Unfortunately I cant help about build error.

But once the fremantle build is ready, I can update the install button.

maxkiva 2010-02-02 12:02

Re: [OS2008] kchmviewer
 
package has been successfully built now and is in extras-devel

Name of the package: kchmviewer-maemo5

filologen 2010-02-02 12:40

Re: [OS2008] kchmviewer
 
If I go to

http://maemo.org/packages/package_in...aemo5/1.0.0-1/

I see the following warning:

"Warning: This package is not using one of the allowed user/* sections!"

What does this mean?

codeMonkey 2010-02-02 12:43

Re: [OS2008] kchmviewer
 
It means it's not been put into one of the pre-approved application manager sections, so it won't show up correctly in the application manager.

maxkiva 2010-02-02 12:47

Re: [OS2008] kchmviewer
 
I've addressed that. This message should go away in half hour or so.

karatchov 2010-02-02 13:13

Re: kchmviewer for Mameo
 
Quote:

Originally Posted by Flandry (Post 505289)
For the sake of avoiding confusion, could i please get the Install link that enables the Diablo Extras-devel repo removed from the first post of this thread or ask that you create a new thread for your Maemo 5 version? In the meantime, i've changed the thread title to indicate it's just for OS2008 so random N900 users don't click that install icon. (They probably will, anyway, but ah, well.)

I updated the first post, you can romve OS2008 from the title, let me know if I can make a better change.

Flandry 2010-02-02 17:52

Re: kchmviewer for Mameo
 
Quote:

Originally Posted by karatchov (Post 506777)
I updated the first post, you can romve OS2008 from the title, let me know if I can make a better change.

I appreciate that but direct links to install apps in Fremantle Extras-devel is not appropriate. The users are supposed to manually enable the repo if they want to install something, so they are aware that it's something "risky". When the app has been tested and shows up in Extras, you can point the install link there and i'll make the change to the title.

Sorry for the misunderstanding.

karatchov 2010-02-02 21:23

Re: [OS2008] kchmviewer
 
install buttons removed

mtjioe 2010-02-02 21:53

Re: [OS2008, Maemo 5] kchmviewer
 
hi Maxkiva,

thanks for the great work. Your version installs fine.
The problem now is that pictures are not displayed at all, just a placeholder icon.
Karatchovs version, although not fully compatible did show pictures in all files.

Correction: pictures are shown, but only in smaller files. This file is 500 mb and did work fine on Karatchovs version...

Some suggestions:
- Search would be nice
- also zoom in the index view would be nice
- an option to set something like favourite files, would also be nice.

keep up the good work!

qwerty12 2010-02-02 23:07

Re: [OS2008, Maemo 5] kchmviewer
 
maxkiva, could you please consider getting rid of the zoom buttons on the toolbar and allowing for the volume keys to be used instead?

maxkiva 2010-02-03 11:29

Re: [OS2008, Maemo 5] kchmviewer
 
Thanks for trying it out !

I did notice the image problem from teh beginning although it worked for some files which made me to shift it at the bottom of the things to do.

I've uploaded fresh revision which fixes that. Please take a look .

I'll be looking at the other suggestions as well.

thanks again

Quote:

Originally Posted by mtjioe (Post 507584)
hi Maxkiva,

thanks for the great work. Your version installs fine.
The problem now is that pictures are not displayed at all, just a placeholder icon.
Karatchovs version, although not fully compatible did show pictures in all files.

Correction: pictures are shown, but only in smaller files. This file is 500 mb and did work fine on Karatchovs version...

Some suggestions:
- Search would be nice
- also zoom in the index view would be nice
- an option to set something like favourite files, would also be nice.

keep up the good work!


maxkiva 2010-02-03 11:32

Re: [OS2008, Maemo 5] kchmviewer
 
Hi
thanks for your comments,
From the outset I was trying to emulate look and feel of pdf reader that ships with the phone. Thats has zoom through both toolbar and the volume buttons.

I will most certainly add zooming through the buttons as probably one of the high priority things. However I'd be inclined to keep zoom on the toolbar as well for the uniformity reasons .



Quote:

Originally Posted by qwerty12 (Post 507678)
maxkiva, could you please consider getting rid of the zoom buttons on the toolbar and allowing for the volume keys to be used instead?


mtjioe 2010-02-03 13:10

Re: [OS2008, Maemo 5] kchmviewer
 
Hi Maxkiva,

pictures work now. Great!! Thank you.

Now several suggestions more.
- scroll by page with: cursorkey up/down, or even with left/right. or spacebar (like webbrowser).
- Karatchovs version allowed for searches. the only problem was that with large files it took quite some time to create the search database. Perhaps there is a fast workaround. You could add an option to save the created search database as a seperate file in the same directory as the source chm file. Creation of the search database is then only required the first time, but after that this file is loaded whenever the search function is called upon with that chm file.
- also incremental search in the index would be great.

if I think of anything else I will let you know.

Keep up the good work!!

maxkiva 2010-02-03 21:12

Re: [OS2008, Maemo 5] kchmviewer
 
zooming with volume buttons is now working

revision:
kchmviewer-maemo5-1.0.0-5

mtjioe 2010-02-03 22:32

Re: [OS2008, Maemo 5] kchmviewer
 
Indeed works like a charm

Addison 2010-02-03 23:40

Re: [OS2008, Maemo 5] kchmviewer
 
Ah nuts.

Now that Kchmviewer has been ported to Fremantle, I'm thinking of getting a N900.

Why did you have to do that? :p

maxkiva 2010-03-06 20:27

Re: [OS2008, Maemo 5] kchmviewer
 
Hi all
next revision has been published - kchmviewer-maemo5 1.0.1-1

Added:
* search
* bookmarks
* recent documents list
* persistent last document directory

Removed dependency on libqt4-maemo5 ( qt 4.6 ) which is not yet officially released onto the handset to the best of my knowledge.

enjoy ;-)

bal 2010-03-07 20:24

Re: [OS2008, Maemo 5] kchmviewer
 
hi maxkiva,

thanks for the updated version.the new ui is better .

but for me,(on N900) while trying to view a chm version of harrison,it shows only the first 3 pages ,the list of content is there ,but on clicking the content do not show up ,only a page stating that the page contains large images and tables and you have to print in landscape mode.what could be the problem?file is 175.8mb .Both versions of viewer have the same issue.

The new version does not need the libraries,but i cant get the ones which came with the old version to un install.Can you tell me their file names and a way to safely remove them as they take about 20 mb of rootfs?
Thanks in advace,
bal

mtjioe 2010-03-07 23:44

Re: [OS2008, Maemo 5] kchmviewer
 
Thank you,

just a few comments.
- previous version allowed for scrolling the index by character. e.g. clicking 'H' on the keyboard resulted in fast scrolling to the first item in the index starting with H, clicking several times and the index scolled to the next item with the same character. Please reinstate that function.
- searching takes quite a long time, even through small documents. I have to cancel the search, and reclick the search button to display the results.
- Could you implement some smarter way of scrolling with the keyboard. Something like 'spacebar' = screen/page down.
Left is page up
right is page down.
- the latest used documents list is nice. Perhaps defining a favourites folder would also be great.

Regards and thanx for the great work!

maxkiva 2010-03-08 12:53

Re: [OS2008, Maemo 5] kchmviewer
 
Quote:

Originally Posted by bal (Post 559062)
hi maxkiva,

thanks for the updated version.the new ui is better .

but for me,(on N900) while trying to view a chm version of harrison,it shows only the first 3 pages ,the list of content is there ,but on clicking the content do not show up ,only a page stating that the page contains large images and tables and you have to print in landscape mode.what could be the problem?file is 175.8mb .Both versions of viewer have the same issue.

The new version does not need the libraries,but i cant get the ones which came with the old version to un install.Can you tell me their file names and a way to safely remove them as they take about 20 mb of rootfs?
Thanks in advace,
bal

@bal
Thanks for your comments,
Could you give me exact name of the document, I'll try to find it and have a look.

to remove libraries :
open terminal on the handset or through ssh
run 'sudo gainroot' to get root shell

run 'dpkg --list | grep libqt4-maemo5'
this will give you the list of packages to remove

bal 2010-03-08 14:22

Re: [OS2008, Maemo 5] kchmviewer
 
Thanks for the information i will try that..Harrison's Principles of Internal medicine 17th edition.(file size 166.8mb)

bal

maxkiva 2010-03-09 10:14

Re: [OS2008, Maemo 5] kchmviewer
 
Quote:

Originally Posted by mtjioe (Post 559261)
Thank you,

just a few comments.
- previous version allowed for scrolling the index by character. e.g. clicking 'H' on the keyboard resulted in fast scrolling to the first item in the index starting with H, clicking several times and the index scolled to the next item with the same character. Please reinstate that function.
- searching takes quite a long time, even through small documents. I have to cancel the search, and reclick the search button to display the results.
- Could you implement some smarter way of scrolling with the keyboard. Something like 'spacebar' = screen/page down.
Left is page up
right is page down.
- the latest used documents list is nice. Perhaps defining a favourites folder would also be great.

Regards and thanx for the great work!

Hi,
thanks for the comments

I'll try to improve search , but there might be a limit on what is possible given hardware capabilities.

Scrolling contents using initial character should now be possible - see revision 4

Scrolling the document with the keyboard is working as follows:
spacebar - page down
shift spacebar - page up

One unfortunate regression - lack of finger scrolling. This is because of revertion to qt 4.5. PR 1.2 Will fix that , whenever that comes. However finger scrolling with scrollbars is quite workable.


And Favorites - yes on the list of things to do.

Addison 2010-03-10 02:29

Re: [OS2008, Maemo 5] kchmviewer
 
Heya max!

Any chance of back porting your updated changes for Diablo as well or is that too much trouble for you?

Cheers.

mtjioe 2010-03-10 04:23

Re: [OS2008, Maemo 5] kchmviewer
 
thanks for making the changes
one thing though, scrolling pages only work when you have tapped the screen so the focus is away from the iconbar and on the document.

This happens when having selected an item in the index and wanting to scroll immediately with the spacebar.

maxkiva 2010-03-12 06:40

Re: [OS2008, Maemo 5] kchmviewer
 
thanks once again for keeping an eye on things ;-)

1.0.1-5 is up there

keys to navigate should be working as follows
(please post if they are not )
space - scroll screen down
shift space - scroll screen up
shift left arrow - next page
shift right arrow - prev page

I've also added progress wheels for time consuming ops
and some other fixes.


Quote:

Originally Posted by mtjioe (Post 562077)
thanks for making the changes
one thing though, scrolling pages only work when you have tapped the screen so the focus is away from the iconbar and on the document.

This happens when having selected an item in the index and wanting to scroll immediately with the spacebar.


maxkiva 2010-03-12 06:50

Re: [OS2008, Maemo 5] kchmviewer
 
Hey

Sure, I'll need to set myself up for the diablo dev. Also note that I dont have a diablo device so will be able to test only in the emulator.


Quote:

Originally Posted by Addison (Post 562041)
Heya max!

Any chance of back porting your updated changes for Diablo as well or is that too much trouble for you?

Cheers.


Addison 2010-03-12 08:13

Re: [OS2008, Maemo 5] kchmviewer
 
Thank you! Thank you! Thank you! :D

I have to warn you though, I think karatchov and myself are the only ones that use this on the N8x0 model.

But yeah, having Harrison, Cecil, Nelson, etc. books on the tablet is a huge deal for me so this comes as wonderful news. :)

ceefour 2010-03-31 22:40

Re: [OS2008, Maemo 5] kchmviewer
 
kchmviewer-maemo5 Package for N900 is now available in Extras-Testing :

http://repository.maemo.org/extras-t...viewer-maemo5/

I'm checking this out now...

It's under Utilities category.

AndyTitan 2013-09-15 09:00

Re: [OS2008, Maemo 5] kchmviewer
 
Hello, please tell me how i can add "utf-8" to kchmviewer ?

AndyTitan 2013-09-15 09:06

Re: [OS2008, Maemo 5] kchmviewer
 
http://img199.imageshack.us/img199/2812/60ra.png


All times are GMT. The time now is 02:07.

vBulletin® Version 3.8.8