Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > Miscellaneous > Archive > Sunrise

Notices

 
 
Thread Tools Search this Thread
Old 01-06-2007, 02:17 PM   #1
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
Printer-Friendly Versions on Fox News

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

Example:

One of the business article links is:
http://www.foxnews.com/story/0,2933,241529,00.html

Its printer-friendly version is:
http://www.foxnews.com/printer_friendly_story/0,3566,241529,00.html

My attempted rewrite was as follows.

Filter:
.*story/0,2933.*

Rewritten as:
$1printer_friendly_story/0,3566$2

When I do this, all of the links are dead.

Any ideas?
DTM is offline  
Old 01-06-2007, 09:55 PM   #2
Jupiter
Junior Member
Jupiter began at the beginning.
 
Posts: 7
Karma: 41
Join Date: Nov 2006
Device: PalmOne Zire 31
I believe the problem is the "$2". Try making the filter http://www\.foxnews\.com/story/0,2933.* and the rewritten http://www.foxnews.com/printer_friendly_story/0,3566$1.
Jupiter is offline  
Advert
Old 01-06-2007, 10:09 PM   #3
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
Thanks, Jupiter, but unfortunately that doesn't work either. But it should. The mystery continues.
DTM is offline  
Old 01-07-2007, 04:33 PM   #4
Jupiter
Junior Member
Jupiter began at the beginning.
 
Posts: 7
Karma: 41
Join Date: Nov 2006
Device: PalmOne Zire 31
When you tap on the link, and the "link not found" dialog appeares, what does it say the link URL is?
Jupiter is offline  
Old 01-07-2007, 06:27 PM   #5
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
Interestingly enough, it's:

http://www.foxnews.com/printer_friendly_story/0,3566

just as though it ignored the $1, or it failed to pick up the .* portion.

I double-checked everything in the rewrite dialog, and I have the link depth set to 1 with no restriction.
DTM is offline  
Advert
Old 01-08-2007, 05:53 AM   #6
PippoPippini
Member
PippoPippini began at the beginning.
 
Posts: 19
Karma: 29
Join Date: Sep 2006
Device: Palm TX
Quote:
Originally Posted by DTM
Interestingly enough, it's:

http://www.foxnews.com/printer_friendly_story/0,3566

just as though it ignored the $1, or it failed to pick up the .* portion.

I double-checked everything in the rewrite dialog, and I have the link depth set to 1 with no restriction.
Hi DTM

It's very strange this behaviour.

I tried others rules, but it didn't works.

It looks like the number portion of the $1 parameter doesn't works.

Infact I tried this rule:
Pattern: http://www\.foxnews\.com/story/0,2933,.*,00.html
Rewrite rule: http://www.foxnews.com/printer_friendly_story/0,3566,$1,00.html

When I downloaded the articles, I get this broken link URL:
http://www.foxnews.com/printer_frien...,3566,,00.html

Tried also removing either commas before and after the parameter, but no success.

I'll continue trying.

Regards

Gaetano
PippoPippini is offline  
Old 01-08-2007, 11:55 AM   #7
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 plot thickens!

In an attempt to see if the issue is within Sunrise or if the Fox News links are just too odd to convert, I tried the following:

Filter:

.*

Rewrite as:

http://www.foxnews.com/printer_friendly_story/0,3566,242337,00.html

(Notice that the article number changed. The one we had been working with doesn't seem to be available any longer.)

This is obviously trivial, but should give you that story for every link on the page. They all fail. What you get is:
2337,00.htmlhttp://www.foxnews.com/printer_friendly_story/0,3566,242337,00.html

And I think it's going to take Laurens to figure out how that happened!
DTM is offline  
Old 01-12-2007, 12:13 PM   #8
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
How amazingly stupid of me!

It works just fine when I rid my filter expression of the syntax error! In each case, the .* in the filter should have been (.*).

Thanks to Jupiter and PippoPippini for your help, and sorry for leading you astray!
DTM is offline  
 


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
Fox News: Kindle may not "dominate" digital book market for long astrodad News 19 08-18-2009 04:30 PM
Kindle on Fox News Virag Amazon Kindle 9 12-12-2008 01:57 PM
Sur Amazon, des versions électroniques plus chères que les versions papier IreneDelse Amazon Kindle 8 08-29-2008 08:35 AM
Virtual Printer phyzjqk iRex 4 02-15-2007 02:43 PM


All times are GMT -4. The time now is 01:19 AM.


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