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

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 10-12-2012, 07:43 AM   #1
Lamen
Junior Member
Lamen began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2012
Device: iPad
Search-and-Replace with a found number

Hi,
I tried to replace a situation in my text which need to get converted to MOBI:
(any number at the end of the line following a <br>) need to get replaced with (the found number WITHOUT the <br> at the end of the line).

I used the following search term:
((?P<zahl>[0-9])+ <br>)
and the following replacement text:
\g<zahl>

Unfortunately it doesn't work as expected. As a result, always the last number of the whole string of numberstring (ie 1995 only the 5) will be found in the converted text at the end.

I´m unsure where I made the mistake. Are somebody able to enlighten me here?

Thanks a lot!
Lamen is offline   Reply With Quote
Old 10-26-2012, 06:35 AM   #2
Lamen
Junior Member
Lamen began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2012
Device: iPad
Hi,
do I talk about a feature which is not present at all or are nobody out there who are able to help??

If this is a non-present feature please inform me as well as help me if the goal is reachable somehow.

Thanks a lot!
Lamen is offline   Reply With Quote
 
Enthusiast
Old 10-28-2012, 10:22 AM   #3
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 637
Karma: 436517
Join Date: Jul 2010
Location: UK
Device: PRS-300, PW2
What format is your source file? Are the <br>'s in the source? Perhaps you could attach an example which shows the problem. I don't know mobi format but maybe the problem can be fixed at source so that it doesn't present itself to the conversion process.
Agama is offline   Reply With Quote
Old 10-28-2012, 11:03 AM   #4
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,230
Karma: 5495470
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
does
Code:
((?P<zahl>[0-9]{4})+ <br>)
work for you?
I assume you want all (exactly) 4 digits
theducks is offline   Reply With Quote
Old 11-02-2012, 03:27 AM   #5
Lamen
Junior Member
Lamen began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2012
Device: iPad
Angry

Hi

@Agama
The Input format is PDF the export format is MOBI.
The Place where I found the <br> is the 'middle', the interim format Calibre uses during convertion. I'm able to reach it in the convertion options 'search & replace' wizzard. Sorry that I let this unclear in my first post.

@theducks
Thanks for the hint but there are all varieties of digit counts. It may be only one digit or more (0...50000...xxxxxxxxxxx). So any number should be possible.

Thanks a lot!!!
Lamen is offline   Reply With Quote
Old 11-02-2012, 06:17 AM   #6
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80446
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
I think this should work:
Code:
((?P<zahl>[0-9]+) <br>)
Note the difference in the position of the + sign.
Manichean is offline   Reply With Quote
Old 11-02-2012, 08:51 PM   #7
Lamen
Junior Member
Lamen began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Oct 2012
Device: iPad
Thanks a lot!
I am currently on vacation without my Computer but I'll try it as soon as possible and will come back with the result.

Cheers
Lamen 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
Search and Replace SOThunder Conversion 2 04-29-2012 08:29 AM
search and replace with incremental number pimpoum General Discussions 4 07-08-2011 02:41 PM
search and replace - drops blanks in replace ? cybmole Conversion 10 03-13-2011 03:07 AM
Why no search and replace? charleski Sigil 10 11-24-2009 04:13 PM
I finally found a device to replace my Palm PDA Nate the great Alternative Devices 50 12-10-2008 04:32 PM


All times are GMT -4. The time now is 11:42 PM.


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