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

Go Back   MobileRead Forums > E-Book Readers > Sony Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 08-19-2008, 07:25 PM   #1
ShineOn
Member
ShineOn has a complete set of Star Wars action figures.ShineOn has a complete set of Star Wars action figures.ShineOn has a complete set of Star Wars action figures.ShineOn has a complete set of Star Wars action figures.ShineOn has a complete set of Star Wars action figures.
 
Posts: 10
Karma: 474
Join Date: Aug 2008
Device: Sony PRS-505
BookDesigner v5 and regular expressions

Hi everyone, it's my first post in this forum.
I have a PRS-505 (great) and I need fix a lot of text from a BookDesigner interface.

The problem is:

I need get all paragraphs that contents 3 or more dashes. I tried bookdesigner's regular expressions but don't work...

I need something like

^*—*—*—*[\n$\r]

but is not working (I have the checkbok RegExp checked)

are the regular expressions working fine in BookDesigner????
Thank you and good day for everybody!!!
ShineOn is offline   Reply With Quote
Old 08-19-2008, 08:03 PM   #2
Nate the great
Sir Penguin of Edinburgh
Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.
 
Nate the great's Avatar
 
Posts: 10,608
Karma: 3586209
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
RegEx work fine in Book Designer. I had a post here on this a while back. Just a second while I go find it.


Here:
http://www.mobileread.com/forums/sho...554#post105554
Nate the great is offline   Reply With Quote
Old 08-19-2008, 08:20 PM   #3
Nate the great
Sir Penguin of Edinburgh
Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.Nate the great ought to be getting tired of karma fortunes by now.
 
Nate the great's Avatar
 
Posts: 10,608
Karma: 3586209
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
This should do what you want:

---\n{1}
Nate the great is offline   Reply With Quote
Old 08-19-2008, 11:28 PM   #4
ShineOn
Member
ShineOn has a complete set of Star Wars action figures.ShineOn has a complete set of Star Wars action figures.ShineOn has a complete set of Star Wars action figures.ShineOn has a complete set of Star Wars action figures.ShineOn has a complete set of Star Wars action figures.
 
Posts: 10
Karma: 474
Join Date: Aug 2008
Device: Sony PRS-505
Thank you, but didn't work :-(
It's strange, because BD can't match with a end of line, \n , or $, or \r, etc...


example, I have just three text lines in BD:

- Hello -Good Morning -Bye -Thanks
- One Oneee
- Two -Three

If I search - BD find all dash
If I search e{3} BD match eee
If I search \s BD match nothing
If I search \sOne BD match One (not match Oneee)
If i search \n BD match nothing
If i search Three\n BD match nothing
ShineOn is offline   Reply With Quote
Old 08-20-2008, 08:54 AM   #5
Patricia
Reader
Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.Patricia ought to be getting tired of karma fortunes by now.
 
Patricia's Avatar
 
Posts: 11,509
Karma: 2199070
Join Date: May 2007
Location: South Wales, UK
Device: Sony PRS-500, PRS-505, Asus EEEpc 4G
So, perhaps you could edit the book in Word (or whatever) first, then drop it into Book Designer.
Patricia is offline   Reply With Quote
Old 08-20-2008, 09:02 AM   #6
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 65,522
Karma: 43957509
Join Date: Nov 2006
Location: UK
Device: Kindle Voyage, iPad Mini, iPhone 4, MS Surface Pro, N7
I've not been able to make "end of line" RegEx matching work in BD either. Most other RegEx stuff works fine, though.
HarryT is offline   Reply With Quote
Old 08-20-2008, 10:13 AM   #7
igorsk
Wizard
igorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfoldedigorsk reads XML... blindfolded
 
Posts: 3,443
Karma: 52235
Join Date: Sep 2006
Location: Belgium
Device: PRS-500/505/700, Kindle, Cybook Gen3, Words Gear
Maybe try \r\n instead of just \n.
igorsk is offline   Reply With Quote
Old 08-20-2008, 11:30 AM   #8
ShineOn
Member
ShineOn has a complete set of Star Wars action figures.ShineOn has a complete set of Star Wars action figures.ShineOn has a complete set of Star Wars action figures.ShineOn has a complete set of Star Wars action figures.ShineOn has a complete set of Star Wars action figures.
 
Posts: 10
Karma: 474
Join Date: Aug 2008
Device: Sony PRS-505
Ok thanks everyone... finally I tried the text in UltraEdit
ShineOn is offline   Reply With Quote
Old 08-25-2008, 12:28 AM   #9
Madam Broshkina
Manic Do Fuse
Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.
 
Madam Broshkina's Avatar
 
Posts: 2,312
Karma: 1159112
Join Date: Oct 2006
Device: Sony 500, 505, 350, Kindle 3, DXG, nook, Irex DR800SG, iPad
I want to use the regular expressions to delete page numbers in a book. I use \[Pg [0-9]*\] which works well but the footnotes links look just like the page number except they are blue. ( [12] vs [12] )Is there an easy way to tell it not to delete the footnotes using BD or Word?
Madam Broshkina is offline   Reply With Quote
Old 08-25-2008, 12:49 PM   #10
ShineOn
Member
ShineOn has a complete set of Star Wars action figures.ShineOn has a complete set of Star Wars action figures.ShineOn has a complete set of Star Wars action figures.ShineOn has a complete set of Star Wars action figures.ShineOn has a complete set of Star Wars action figures.
 
Posts: 10
Karma: 474
Join Date: Aug 2008
Device: Sony PRS-505
Quote:
Originally Posted by Madam Broshkina View Post
I want to use the regular expressions to delete page numbers in a book. I use \[Pg [0-9]*\] which works well but the footnotes links look just like the page number except they are blue. ( [12] vs [12] )Is there an easy way to tell it not to delete the footnotes using BD or Word?
are there many footnotes?
Maybe you can replace temporarily footnotes by others characters... [1] by [x] .... [12] by [xx]
Then, you delete all pages and finally restore footnotes.

Another way is using regular expressions directly in html file with a plane text editor. In word, you can go to "View-->html code" and work directly.
So, you can find footnotes like links (a href="xxxxxx") and Page numbers like just text and use regular expressions for filter them.

Last edited by ShineOn; 08-25-2008 at 04:07 PM.
ShineOn is offline   Reply With Quote
Old 08-25-2008, 04:00 PM   #11
comtrjl
Connoisseur
comtrjl ought to be getting tired of karma fortunes by now.comtrjl ought to be getting tired of karma fortunes by now.comtrjl ought to be getting tired of karma fortunes by now.comtrjl ought to be getting tired of karma fortunes by now.comtrjl ought to be getting tired of karma fortunes by now.comtrjl ought to be getting tired of karma fortunes by now.comtrjl ought to be getting tired of karma fortunes by now.comtrjl ought to be getting tired of karma fortunes by now.comtrjl ought to be getting tired of karma fortunes by now.comtrjl ought to be getting tired of karma fortunes by now.comtrjl ought to be getting tired of karma fortunes by now.
 
Posts: 75
Karma: 204999
Join Date: Aug 2006
Location: London
Quote:
I want to use the regular expressions to delete page numbers in a book. I use \[Pg [0-9]*\] which works well but the footnotes links look just like the page number except they are blue. ( [12] vs [12] )Is there an easy way to tell it not to delete the footnotes using BD or Word?
In Word if you set the font colour to 'Auto' (but don't change anything else about the font) it finds 'black' [12] but not blue ones.

(That's the Format, and Font buttons within the Search/Replace window; setting it to Black doesn't work)

bob

Last edited by comtrjl; 08-25-2008 at 04:43 PM.
comtrjl is offline   Reply With Quote
Old 08-25-2008, 05:06 PM   #12
Madam Broshkina
Manic Do Fuse
Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.Madam Broshkina ought to be getting tired of karma fortunes by now.
 
Madam Broshkina's Avatar
 
Posts: 2,312
Karma: 1159112
Join Date: Oct 2006
Device: Sony 500, 505, 350, Kindle 3, DXG, nook, Irex DR800SG, iPad
Thanks for the suggestions above, I will give these a try. There are about 800 footnotes.
Madam Broshkina is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with regular expressions Manichean Conversion 10 02-03-2011 03:27 PM
Custom Regular Expressions for adding book information bigbot3 Calibre 1 12-25-2010 07:28 PM
Regular expressions, Calibre and you- an introduction (Archived) Manichean Conversion 80 11-11-2010 08:37 AM
Help with Regular Expressions ghostyjack Workshop 2 01-08-2010 12:04 PM
Regular Expressions help needed Phil_C Workshop 20 10-03-2009 01:14 AM


All times are GMT -4. The time now is 07:34 PM.


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