sLister WLX plugin

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
iana
Senior Member
Senior Member
Posts: 345
Joined: 2010-07-27, 22:00 UTC

Post by *iana »

Where can I get them to try this feature?
go to
http://manybooks.net/
find a book you like on the download page in the right corner in the download box select Mobipocket *.mobi as the preferred format click download
an example:
http://manybooks.net/titles/stokerbretext95dracu12.html

btw zeniko added support for palm doc format (extremely basic) and regular text files so you can add pdb and txt to the detection string

Code: Select all

MULTIMEDIA&(EXT="PDF" | EXT="DJVU" | EXT="DJV" | EXT="XPS"| EXT="CBZ" | EXT="CBR" | EXT="CHM" | EXT="PS" | EXT="EPS" | EXT="FB2" | EXT="EPUB" | EXT="MOBI" | EXT="PDB" | EXT="TXT")
User avatar
MaxX
Power Member
Power Member
Posts: 1096
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

Even more, you forgot zipped fb2:
"MULTIMEDIA& (EXT="PDF"|EXT="DJVU"|EXT="DJV"|EXT="XPS"|EXT="CBZ"|EXT="CBR"|EXT="CHM"|EXT="FB2"|EXT="FB2Z"|EXT="ZFB2"|EXT="EPUB"|EXT="MOBI"|EXT="PDB"|EXT="TXT")"
p.s.
I removed PS, EPS due to need of additional software for it.
Ukrainian Total Commander Translator. Feedback and discuss.
iana
Senior Member
Senior Member
Posts: 345
Joined: 2010-07-27, 22:00 UTC

Post by *iana »

Even more, you forgot zipped fb2
didn't forget it, first I wanted to test *.fb2.zip files but wasn't sure a detection string FB2.ZIP was supported, passing a FB2 zip file that didn't have the name .fb2.zip to slister would lock sumatra and I didn't want to pass all zips to slister, was planing to test it but didn't get to it.
User avatar
MaxX
Power Member
Power Member
Posts: 1096
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2iana
For zipped fb2's defult extensions are fb2z and zfb2. Multidotted is not original type now, but also can be opened in sumatra directly.
Ukrainian Total Commander Translator. Feedback and discuss.
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

Post by *sgp »

iana wrote:
The browser plugin works with a portable browser.
Yes and if you want a portable browser all you need is the portable version of sumatrapdf.exe and the npPdfViewer.dll, just copy these two files to your browsers plugin directory, newer browsers have an optional plugins dir in the Application Data.
Here are the updated SumatraPDF 2.1 rev 6064 files:
1. SumatraPDF 2.1 rev 6064 Portable 1,69 MB:
http://www.mediafire.com/?u85hexao36l7f5s
2. SumatraPDF 2.1 rev 6064 Installer 4,19 MB:
http://www.mediafire.com/?nd636adyqkgn3zs
3. Browser Plugin npPdfViewer 2.1 rev 6064 8,18 KB:
http://www.mediafire.com/?zv8naalw5lty9qr
@iana, I'm kind of confused as to what do I need to do to keep updating this sumatra version. I want both portable browser and TC slister support, with the latest epub and mobi formats. Which files do I need to download and keep an eye on for updates? Thanks
Currently I'm using the files that you posted above.
User avatar
MaxX
Power Member
Power Member
Posts: 1096
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2sgp
You can put your dll and program to browser's plugin-dir. Btw, in sLister's config you can write your way to the sumatrapdf.exe.
After this you'll get both working - browser plugin and tc's plugin with one copy of executable.
Ukrainian Total Commander Translator. Feedback and discuss.
iana
Senior Member
Senior Member
Posts: 345
Joined: 2010-07-27, 22:00 UTC

Post by *iana »

the npPdfViewer.dll doesn't really change it hasn't changed since version 1.x the only change is that the newer versions are linked to msvcrt.dll and are a bit smaller but you can use older versions with out a problem, get any version of this file (you can get it from the installer or the one I posted a few pages back) and get SumatraPDF.exe portable from zeniko
http://www.zeniko.ch/#SumatraPDF
place these two files in your browsers plugin directory for me that would be C:\Program Files\Mozilla Firefox\Plugins, edit slister.ini to point to SumatraPDF.exe for me

Code: Select all

[slister]
path=C:\Program Files\Mozilla Firefox\plugins\SumatraPDF.exe
you can create a shortcut to SumatraPDF.exe and put it somewhere you need it, open SumatraPDF and in settings->options enable automatic updates, zeniko's builds update from his page and will keep it up to date and portable, in a way that it won't write anything to the registry or in your %apdata% directory, plus only his builds work with new formats in slister Kris's builds don't.
I hope that explanation was simple.

edit:
you need the browser plugin you can use my old build as there has been no change in the browser plugin,
Browser Plugin npPdfViewer 2.1 rev 6064 8,18 KB:
http://www.mediafire.com/?zv8naalw5lty9qr
or get it from the installer you can use zeniko's build http://software.zeniko.ch/sumatrapdf/SumatraPDF-install.exe (open the installer with tc: ctr+pgdwn and extract npPdfViewer.dll), unfortunately zeniko names his portable build SumatraPDF-dev.exe so for the plugin to work you'll need to rename it back to SumatraPDF.exe you'll probably need to do this after every update.
sgp
Senior Member
Senior Member
Posts: 355
Joined: 2005-01-31, 16:04 UTC

Post by *sgp »

iana wrote:get SumatraPDF.exe portable from zeniko
http://www.zeniko.ch/#SumatraPDF
...
I hope that explanation was simple.
Thank you so much, iana, simple and complete. BTW, I found a more direct link to zeniko's build http://software.zeniko.ch/sumatrapdf/
User avatar
MaxX
Power Member
Power Member
Posts: 1096
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

Is it possible at zeniko's link get updates automatically if file changed?
E.g. New ver was uploaded -> I get rss or any other notification?
Ukrainian Total Commander Translator. Feedback and discuss.
iana
Senior Member
Senior Member
Posts: 345
Joined: 2010-07-27, 22:00 UTC

Post by *iana »

Is it possible at zeniko's link get updates automatically if file changed?
Well not the link as his builds names don't change but if you have checking for updates enabled settings->options his build will check for new versions and will update automatically (you'll have to select yes when a new version is found)
User avatar
EricB
Senior Member
Senior Member
Posts: 357
Joined: 2008-03-25, 22:21 UTC
Location: The Netherlands

Post by *EricB »

Hi,

I saw the post by iana on using npPdfviewer.dll and I have a related question. I noticed the dll will only find portable SumatraPDF.exe when it is in the same folder. Is it possible to 'redirect' to another directory, just as sLister does? I know sLister uses an ini file, I'm not sure if the npPdfviewer.dll can do the same?

Regards, EricB
iana
Senior Member
Senior Member
Posts: 345
Joined: 2010-07-27, 22:00 UTC

Post by *iana »

I noticed the dll will only find portable SumatraPDF.exe when it is in the same folder. Is it possible to 'redirect' to another directory, just as sLister does?
The short answer no.
The long one:
it's possible, the easy way is to use hardlinks and hard link sumatrapdf.exe to the browser plugin dir you can use http://www.totalcmd.net/plugring/ntfslinks.html
the hard way, get the browser plugin code from
http://code.google.com/p/sumatrapdf/source/browse/trunk/src/browserplugin/npPdfViewer.cpp
and edit it, so it knows where to find sumatrapdf.exe

ps. using hardlinks is not a bad idea, as zeniko names his builds sumatrapdf-dev.exe and the browser plugin needs an exe called sumatrapdf.exe, by using hardlinks you can use the auto update feature without the need to rename the file.
User avatar
EricB
Senior Member
Senior Member
Posts: 357
Joined: 2008-03-25, 22:21 UTC
Location: The Netherlands

Post by *EricB »

Thanks for your explanation iana.

I've been trying hardlinks using NTFSLinks (I use it quite often for folder junctions), but I had the impression you just get two physical copies of the exe, which remain unrelated. Removing or replacing one seemed to have no influence on the other. Turned out that I should refresh the target folder, before complaining.... Downside is that NTFSLinks work well, but are not portable since they do not work on some FAT USB Drive.

I've also checked the plugin code. Although I'm not a programmer, I could see in the code it expects the exe to be in the same folder or to have entries in the registry. The latter destroys portability, the former is very strict. Hardcoding some path in it would also not be good for portability, and I'm too limited a coder to make a nice solution, like reading an ini or using a relative path.

Well, it is not a huge problem. I was just interested how far I could go in terms of portability. No dependencies means I can just copy/synchronize folders to a stick and have a working system without any fiddling.

Regards, EricB
iana
Senior Member
Senior Member
Posts: 345
Joined: 2010-07-27, 22:00 UTC

Post by *iana »

I'm not a programer too but I've got some free time and maybe I'll learn some, btw hardlinks are great I recently replaced 5 versions of 7-zip.dll with one hard linked so when I update 1 all will be updated, and tweaking the code is not a good idea. Zeniko's build of sumatra is only 1.8M so the size is not a real issue but what I like about hardlinks is that if I upgrade 1 version all links (will be upgraded) and as I'm still running winXP there is no real way of making hardlinks (only fsutil.exe) and that's where tc and ntfslinks come in, one of the reasons I love tc is all the plugins and utils make it a real Swiss army knife of file management.
User avatar
EricB
Senior Member
Senior Member
Posts: 357
Joined: 2008-03-25, 22:21 UTC
Location: The Netherlands

Post by *EricB »

Hi iana,
one of the reasons I love tc is all the plugins and utils make it a real Swiss army knife of file management
Couldn't agree more. I've tons of plugins installed and still discover new ways to make use of them, many times because of forum posts.
hardlinks are great
Although you have to be on an NTFS file system I agree on this one too. The single update you have to make is very attractive when using hardlinks on files. For folders it is also convenient, especially when linking folders in Dropbox using a junction. Pity it doesn't work on FAT.

Regards, EricB
Post Reply