View Single Post
Old 11-14-2009, 02:41 PM   #17
Punksmurf
Member
Punksmurf began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Nov 2009
Device: Sony PRS-600
I'm having the same trouble here. Here's a piece of what I'm working trough:

Code:
There was a lot of art in the supposedly natural falling of women's hair. Her features were even and possessed the particular properties and proportions that appealed to him, though he could not define precisely what these were. His shyness loomed up inside him, so that he did not trust himself to speak. </p><p>
"I am Sheen," she said. "I would like to challenge you to a Game." </p><p>
<a href="http://www.abbyy.com/buy"><b>PDF Transform</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>PDF Transform</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>Y</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>Y</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>Y</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>er</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>Y</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>er</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>B</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>2</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>B</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>2</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>B</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>.0</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>B</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>.0</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>A</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>A</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>Click here to buy</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>Click here to buy</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>w</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>w</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>w</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>w</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>w</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>o m</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>. </b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>w</b></a></p><p>
<a href="http://www.abbyy.com/buy"><b>A B B YY.c </b>She could </a>not be a top player. Stile knew every ranking player on every a<a href="http://www.abbyy.com/buy">ge-ladder by sight and style, </a></p><p>
<a href="http://www.abbyy.com/buy"><b>.A B BYY.com</b></a></p><p>
<a href="http://www.abbyy.com/buy">and she was on no </a>ladder. Therefore she was a dilettante, an occasional participant, possibly of some skill in selected modes but in no way a serious competitor. Her body was too lush for most physical sports; the top females in track, ball games and swimming were small breasted, lean-fleshed, and lanky, and this in no way described Sheen. Therefore he would have no physical competition here. </p><p>
Yet she was beautiful, and he was unable to speak. So he nodded acquiescence. She took his arm in an easy gesture of familiarity that startled him. Stile had known women, of course; they came to him seeking the notoriety of his company, and the known fact of his hesitancy lent them compensating</p><p>
I've a little experience with regexp, but I am by no means a pro. However, I managed to come up with the following:

Code:
<p>\s*<a href="http://www.abbyy.com/buy">(<b>.*?</b>)?|</a>(</p>)?
...which works perfectly over at our friends at http://regexpal.com (which is a lot quicker to work with than Calibre).

In Calibre, however, this seems not to be working. To narrow it down, I can't manage to select

Code:
<p>
<a
even with

Code:
<p>\s<a
or even
Code:
<p>\s?<a
Does anyone of you have any idea? Thank you and all!

Related: can anyone tell me where to find the 'debug' button mentioned at http://calibre.kovidgoyal.net/user_m...l#introduction? Tried starting calibre-debug.exe which does give some insights though in things I am not currently interested in.


...After that, I'm going to have to figure out how to get the document flow right again as every line ends with </p><p>... sigh, why do people insist on using PDF's to share eBooks... after all the trouble they've gone trough to scan and ocr it and all!

Last edited by Punksmurf; 11-14-2009 at 04:07 PM. Reason: First posting a good-for-nothing post and then pasting in the text I originally typed doesn't make it all vanish...!
Punksmurf is offline   Reply With Quote