![]() |
#1 |
Junior Member
![]() 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? |
![]() |
![]() |
#2 |
Intentionally Left Blank
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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! |
![]() |
Advert | |
|
![]() |
#3 | |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jun 2007
Device: NZ90
|
Quote:
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 ![]() Ps. Yeah, polish paczki is very tasty :-) |
|
![]() |
![]() |
#4 |
Intentionally Left Blank
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |