Shiny New E-Book Gizmo: The Amazon Kindle


View Full Version : Printer-Friendly Versions on DI


akfedux
06-01-2007, 06:16 AM
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?

DTM
06-05-2007, 11:02 AM
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!

akfedux
07-04-2007, 08:30 AM
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="javascript:print();">drukuj</a></font></p>"


Ps. Yeah, polish paczki is very tasty :-)

DTM
07-04-2007, 01:23 PM
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.