Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > Miscellaneous > Archive > Sunrise

Notices

 
 
Thread Tools Search this Thread
Old 06-01-2007, 07:16 AM   #1
akfedux
Junior Member
akfedux began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2007
Device: NZ90
Printer-Friendly Versions on DI

Hi,

I've been trying to get the printer-friendly versions of DI News articles, with no luck, even though it looks simple.

I subscribe to http://rss.di.com.pl/all.rss

Some of the articles links are:
1. http://di.com.pl/news/16683,1.html
2. http://blog.di.com.pl/post/16659,1.html
3. http://di24.pl/16682,1.html

Its printer-friendly version is:
1. http://di.com.pl/n/tools/drukuj.php?lp=16683
2. http://di.com.pl/n/tools/drukuj.php?lp=16659
3. http://di.com.pl/n/tools/drukuj.php?lp=16682

I making the filter http://www\.*\.di*\.pl/*,1* and
the rewritten http://di.com.pl/n/tools/drukuj.php?lp=$1

Is that corect?
akfedux is offline  
Old 06-05-2007, 12:02 PM   #2
DTM
Intentionally Left Blank
DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.
 
DTM's Avatar
 
Posts: 172
Karma: 300106
Join Date: Feb 2006
Location: Royal Oak, MI, USA
Device: Nook STR
The following appears to work. I say "appears" because I don't speak a word of Polish (other than paczki), and the special characters are not converted properly on my PDA. I'm not sure what you'll end up with!

You need three rewrite rules. Each is a Regular Expression, set to filter all links and rewrite them.

The first pattern is:
.*/news/(.*),1\.html

The second is:
.*/post/(.*),1\.html

And the third is:
.*di24\.pl/(.*),1\.html

Notice that each pattern begins with a dot character.

Each of the rules uses the same rewrite pattern:
http://di.com.pl/n/tools/drukuj.php?lp=$1

Let me know how that works!
DTM is offline  
Old 07-04-2007, 09:30 AM   #3
akfedux
Junior Member
akfedux began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2007
Device: NZ90
Quote:
Originally Posted by DTM View Post
The following appears to work. I say "appears" because I don't speak a word of Polish (other than paczki), and the special characters are not converted properly on my PDA. I'm not sure what you'll end up with!

You need three rewrite rules. Each is a Regular Expression, set to filter all links and rewrite them.

The first pattern is:
.*/news/(.*),1\.html

The second is:
.*/post/(.*),1\.html

And the third is:
.*di24\.pl/(.*),1\.html

Notice that each pattern begins with a dot character.

Each of the rules uses the same rewrite pattern:
http://di.com.pl/n/tools/drukuj.php?lp=$1

Let me know how that works!
It's working very well. Thanks.

Maybe you know how it looks that rules for script in java version of Sunrise?

Something like that ?

document.onanchorlink = function(link) {
link.referrer = link.uri;
var filename =
link.uri =

And last question, how to remove word "drukuj" on the top of web page from article?
"<p><font face="Verdana" size="2"><a href="javascriptrint();">drukuj</a></font></p>"


Ps. Yeah, polish paczki is very tasty :-)
akfedux is offline  
Old 07-04-2007, 02:23 PM   #4
DTM
Intentionally Left Blank
DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.
 
DTM's Avatar
 
Posts: 172
Karma: 300106
Join Date: Feb 2006
Location: Royal Oak, MI, USA
Device: Nook STR
Good to hear that it's working for you. But, sorry, I can't help you with the other version. I used it only very briefly and never got very good at it.
DTM is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HP Starts Shipping iPad-Friendly Printer kjk Apple Devices 7 06-29-2010 04:19 PM
The most awesome printer EVER Delta Tango Lounge 6 06-09-2010 06:17 PM
Kindle 2 as a printer mowbray Amazon Kindle 10 02-21-2010 03:16 PM
About Printer for Librie mike007dog Sony Reader 0 12-14-2009 03:29 AM
Sur Amazon, des versions électroniques plus chères que les versions papier IreneDelse Amazon Kindle 8 08-29-2008 08:35 AM


All times are GMT -4. The time now is 05:40 AM.


MobileRead.com is a privately owned, operated and funded community.