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 02-25-2011, 02:00 PM   #16
Sylver
Addict
Sylver began at the beginning.
 
Posts: 234
Karma: 40
Join Date: Apr 2010
Device: The Nook, iPad
Thank you so much for all your help, Perkin, after that fix, I got it work with both my nook and the iPad. The original text file is actually UTF-8 encoded Chinese, and your S&R regular expression still works (luckily, the notes are numbered in western numeric characters, not Chinese numbers which I would have no idea how to write a search string at all).
Sylver is offline   Reply With Quote
Old 02-25-2011, 02:10 PM   #17
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 642
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD
You're welcome.
I wouldn't have a clue either.
Perkin is offline   Reply With Quote
Old 02-25-2011, 02:23 PM   #18
Sylver
Addict
Sylver began at the beginning.
 
Posts: 234
Karma: 40
Join Date: Apr 2010
Device: The Nook, iPad
yeah, I actually had to modify your script a little bit, the second search "(\S+)\[(\d+)\]" only matched part of the intended main text notes numbers, I had to add an extra space before [ in the text file first, then use "^\s\[(\d+)\](\S+)" and "(\S+)\s\[(\d+)\]" to match all that I wanted to match, I guess some Chinese characters immediately before the "[" sign in the main text had screwed up the search. But it's not a big issue for me to do several passes of global S&R. Again, appreciate your help a lot.
Sylver 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
Preserving <br /> on epub -> txt conversion billingd Calibre 1 08-11-2010 06:24 AM
Conversion: EPUB to TXT Starson17 Calibre 11 05-29-2010 12:31 PM
TXT conversion to ePub or LRF - paragraph formatting Zapped Calibre 6 10-23-2009 05:06 PM
HTML to TXT conversion alkr Calibre 3 10-02-2009 09:54 AM
Batch conversion of txt BlackVoid Sony Reader 8 11-17-2007 09:53 PM


All times are GMT -4. The time now is 12:35 PM.


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