is anybody can help me about epub quick viewer?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

netsking
Junior Member
Junior Member
Posts: 20
Joined: 2003-12-17, 16:46 UTC

is anybody can help me about epub quick viewer?

Post by *netsking »

I have a problem quick view (Ctrl+q) epub, mobi, fb2 files with TC.
Here is my wincmd.ini lines of slister plugins and slister.ini
wincmd.ini
20=%COMMANDER_PATH%\PLUGINS\wlx\slister\slister.wlx
20_detect=MULTIMEDIA& (EXT="DJVU" | EXT="DJV"| EXT="XPS" | EXT="EPUB" | EXT="MOBI" | EXT="CBZ" | EXT="CBR")
silister.ini
[slister]
path=%COMMANDER_PATH%\utils\sumatrapdf\SumatraPDF.exe

the updated sumatraPDF.exe (v3.1) is in the slister plugin folder.
There is no problem for SumatraPDF to open epub, fb2 and mobil files.

I can use quick view to read "djvu" file, but not epub, fb2 and mobi files.

Any suggestion? Thanks a lot in advance for your help.
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Post by *milo1012 »

There's not much you can do.
It doesn't work for me too, and never did.

The problem is that slister "hooks" into the SumatraPDF window,
but in case of epub files SumatraPDF realigns the window to allow epub navigation.
Slister wasn't designed for that and doesn't find the window it expects.
So either contact the author of the plugin to fix it,
or the author of SumatraPDF to allow turning off that navigation mode.
TC plugins: PCREsearch and RegXtract
netsking
Junior Member
Junior Member
Posts: 20
Joined: 2003-12-17, 16:46 UTC

Post by *netsking »

Milo1012, thanks a lot for your reply.
That's too bad if this is the real reason.
I guess it may cause by other reasons, i.e., too many plugins.
I tried to limit plugins with tc plugin manager which I got in here.
So far, has a little progress.
I can only view mobi which was downloaded from manybooks.net.
Actually, other two were download from the same site of the same novel in epub and fb2.

A little bit wired.
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Post by *milo1012 »

Believe me, I've seen the source code of slister, and there is no doubt about it.
Having many plugins isn't the problem, since Lister plugins are only loaded when needed,
and I can reproduce the problem with any configuration

The author *may* fix this by observing what SumatraPdf does in the newer versions,
but considering that the plugin wasn't updated in more than three years I doubt that.
TC plugins: PCREsearch and RegXtract
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

The actual SumatraPDF together with SLister has no problems to show EPUB files.
I use the x64 version 1.1.2 of SLister.

SumatraPDF is downloaded and installed from:
http://xhmikosr.1f0.de/sumatrapdf/

SLister.ini just contains:

[slister]
path=c:\Program Files\SumatraPDF\SumatraPDF.exe
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3854
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

netsking: Is it really slister who opens the epub file?
I ask, because your wincmd.ini entry is 20th in row.
May another lister plugin feels responsible for epub first!

Just press F3 on the epub file to open lister.
The name of the currently used plugin is shown at the window title ...
#5767 Personal license
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Post by *milo1012 »

Horst.Epp wrote:The actual SumatraPDF together with SLister has no problems to show EPUB files.
I use the x64 version 1.1.2 of SLister.
No it doesn't, no matter if using 3.0 or 3.1 pre.
I don't know what epub files you're using, but none of mine works.
I haven't tested the x64 version yet, but the 32bit version,
but there shouldn't be any difference since it's the same source.

The problem remains as I described it.
CBZ files are zip files, just like epub, but the first one work w/o problems
while the latter can't be hooked with slister due to the different window setup.

And to clarify: we're talking about quick view (CTRL+Q), F3 lister works normally.
sqa_wizard wrote:Is it really slister who opens the epub file?...May another lister plugin feels responsible for epub first!
I tested under a clean TC install with slister being the only plugin -> no difference.
TC plugins: PCREsearch and RegXtract
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

milo1012 wrote: No it doesn't, no matter if using 3.0 or 3.1 pre.
I don't know what epub files you're using, but none of mine works.
.......
I tested under a clean TC install with slister being the only plugin -> no difference.
I'm using sumatrapdf from zeniko it is version 3.1 32bit. It is installed on the same folder as slister !
All works for most of my epub but the one that contain bookmarks from calibre (META-INF\calibre_bookmarks.txt) are viewed corectly with F3 but not in Quickview.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Quickview of mobi files works fine, but not epub.
I guess he reason is that epubs are zip files.

The same plugins work fine with QuickView in FreeCommander
UnrealCommander and DoubleCommander.

So the problem is TC itself and its handling of such files.
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Post by *milo1012 »

Horst.Epp wrote:I guess he reason is that epubs are zip files.
I already said that this can't be the reason, since CBZ files are zip too.
Also it wouldn't work for some rare epub files if it would be some general "detection" problem.
Horst.Epp wrote:The same plugins work fine with QuickView in FreeCommander
UnrealCommander and DoubleCommander.
Compatibility with these program count, because...?
Horst.Epp wrote:So the problem is TC itself and its handling of such files.
You don't know that. I think it's some glitch in slister interfacing with TC.
In any case, only the author can investigate it, but one could debug the source code though.
From a first look at the source it seems that some epub files trigger different functions in SumatraPDF,
which makes the Window handles created by CreateWindow() unable to hook in TC's lister context.
TC plugins: PCREsearch and RegXtract
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

milo1012 wrote:.
...
Horst.Epp wrote:The same plugins work fine with QuickView in FreeCommander
UnrealCommander and DoubleCommander.
Compatibility with these program count, because...?
Because they are using the same SLister plugin and SumatraPDF combination.
netsking
Junior Member
Junior Member
Posts: 20
Joined: 2003-12-17, 16:46 UTC

Post by *netsking »

sqa_wizard wrote:netsking: Is it really slister who opens the epub file?
I ask, because your wincmd.ini entry is 20th in row.
May another lister plugin feels responsible for epub first!

Just press F3 on the epub file to open lister.
The name of the currently used plugin is shown at the window title ...
I've searched epub in wincmd.ini, only in slister has this.
netsking
Junior Member
Junior Member
Posts: 20
Joined: 2003-12-17, 16:46 UTC

Post by *netsking »

milo1012 wrote:
Horst.Epp wrote:... the 32bit version,
but there shouldn't be any difference since it's the same source.

The problem remains as I described it.

And to clarify: we're talking about quick view (CTRL+Q), F3 lister works normally.
I use 32bit version on 64 bit computer. Does this cause the problem?
netsking
Junior Member
Junior Member
Posts: 20
Joined: 2003-12-17, 16:46 UTC

Post by *netsking »

milo1012, Thanks a lot. I will give up to continue try unenable other plugins. Just accept it as is. Maybe when new TC release, there is a way to quick view epub file.
netsking
Junior Member
Junior Member
Posts: 20
Joined: 2003-12-17, 16:46 UTC

Post by *netsking »

Thanks all of you to answer my question.
Post Reply