PDA

View Full Version : Clipper for Opera


Oco
01-21-2005, 08:20 AM
Ok, I know I can use Isilox for converting html sites directly but... :rolleyes:
in my view Opera is the best internet browser and Isilo a great mobile format file so... why dont join them with clipper? maybe a divorce with Internet explorer would make Isilox more interesting :D

stobs
02-04-2005, 01:30 AM
Hallo,

Ok, I know I can use Isilox for converting html sites directly but...

I habe exactly the same problem to solve and I am on the way to do so..
I just posted my solution in another forum here http://www.mobileread.com/forums/showthread.php?t=3282.

My open issues are the title and some problems with special characters (see below)

I repeat it for completeness:
Hallo,

I like opera.

So I have a problem to convert the actual displayed Page to iSilo.
I wrote the following batch file to archive that task: wisilo.bat (Windows NT,2k,XP)
One needs some external programs for that:
wget.exe isiloc32.exe, optional: palmclis, rm (or use 'del')

In Opera I add an bottom with this html-command:

<html>
<a href='opera:/button/Execute program,&quot;wisilo.bat&quot;,&quot;%25u&quot;' title='iSilo'>convert actual page with isilo</a>
</html>


The problem is I did not manage to set a isilox-title to the Page, you can let isilo generate the title, but that is not stringently uniq.
So I just use the date and time (only one conversion per minute is uniq).

And a big Problem, it does not handle special characters like "? , ' \ %" in an URL correctly. So it is not possible to convert a link like: http://www.spiegel.de/0,1518,339957,00.html


Any hints?
Perhaps VBS would be a better choice?


@echo off

set uservz=d:\Programme\Palm\SchwinS\
set tmp=d:\tmp\
d:
cd \tmp

set url="%1"
set titel=%2
rem if "%titel%"=="" goto error
for /f "tokens=2,3,4* delims=. " %%i in ('date /t') do set datum=%%k_%%j_%%i
for /f "tokens=1,2* delims=: " %%i in ('time /t') do set zeit=%%i_%%j
if "%titel%"=="" set titel=%datum%_%zeit%


rm -f %tmp%%titel%
wget "%url%" -O %tmp%%titel%
isiloc32 -i%titel% -y %tmp%%titel%

rm -f %tmp%%titel%
mv %titel%.pdb %uservz%iSiloI\
palmclis -f -s
dir %uservz%iSiloI\
palmclis -lz
wait 10
goto ende

:error
echo use: %0 URL Titel
:ende

Oco
02-09-2005, 10:28 AM
Good work bud... looks a bit complicated but great job. Just wait if isilox team decide to add it :D

stobs
02-09-2005, 11:23 AM
Hallo,

I finally solved the problem:

< set url="%1"
> set url=%*

< set titel=%2
> rem set titel=%2

now I convert every Page with just a click!
Note: iSiloC32 seems not to be supported any longer.

-Stobs.