![]() |
#16 |
Addict
![]() 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).
|
![]() |
![]() |
![]() |
#17 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
You're welcome.
I wouldn't have a clue either. |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Addict
![]() 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.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |