| View previous topic :: View next topic |
| Author |
Message |
iana Member

Joined: 27 Jul 2010 Posts: 191
|
Posted: Fri Apr 13, 2012 4:50 pm Post subject: |
|
|
| Quote: | | 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: | | 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") |
|
|
| Back to top |
|
 |
MaxX Senior Member


Joined: 23 Mar 2012 Posts: 311
|
Posted: Sat Apr 14, 2012 6:56 am Post subject: |
|
|
Even more, you forgot zipped fb2:
| Quote: | | "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. |
|
| Back to top |
|
 |
iana Member

Joined: 27 Jul 2010 Posts: 191
|
Posted: Sat Apr 14, 2012 8:31 am Post subject: |
|
|
| Quote: |
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. |
|
| Back to top |
|
 |
MaxX Senior Member


Joined: 23 Mar 2012 Posts: 311
|
Posted: Sat Apr 14, 2012 9:29 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
sgp Senior Member

Joined: 31 Jan 2005 Posts: 305
|
Posted: Sun Apr 15, 2012 2:59 pm Post subject: |
|
|
| iana wrote: | | Quote: | | 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. |
|
| Back to top |
|
 |
MaxX Senior Member


Joined: 23 Mar 2012 Posts: 311
|
Posted: Sun Apr 15, 2012 3:25 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
iana Member

Joined: 27 Jul 2010 Posts: 191
|
Posted: Sun Apr 15, 2012 3:37 pm Post subject: |
|
|
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: | [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. |
|
| Back to top |
|
 |
sgp Senior Member

Joined: 31 Jan 2005 Posts: 305
|
|
| Back to top |
|
 |
MaxX Senior Member


Joined: 23 Mar 2012 Posts: 311
|
Posted: Mon Apr 16, 2012 2:52 pm Post subject: |
|
|
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? |
|
| Back to top |
|
 |
iana Member

Joined: 27 Jul 2010 Posts: 191
|
Posted: Wed Apr 18, 2012 6:38 am Post subject: |
|
|
| Quote: | | 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) |
|
| Back to top |
|
 |
EricB Senior Member


Joined: 25 Mar 2008 Posts: 233 Location: The Netherlands
|
Posted: Wed Apr 18, 2012 2:11 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
iana Member

Joined: 27 Jul 2010 Posts: 191
|
Posted: Wed Apr 18, 2012 5:00 pm Post subject: |
|
|
| Quote: | | 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. |
|
| Back to top |
|
 |
EricB Senior Member


Joined: 25 Mar 2008 Posts: 233 Location: The Netherlands
|
Posted: Thu Apr 19, 2012 1:30 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
iana Member

Joined: 27 Jul 2010 Posts: 191
|
Posted: Thu Apr 19, 2012 6:58 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
EricB Senior Member


Joined: 25 Mar 2008 Posts: 233 Location: The Netherlands
|
Posted: Thu Apr 19, 2012 7:08 am Post subject: |
|
|
Hi iana,
| Quote: | | 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.
| Quote: | | 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 |
|
| Back to top |
|
 |
|