Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 06-04-2009, 05:16 PM   #31
Argel
Opinionated [but right]
Argel is no ebook tyro.Argel is no ebook tyro.Argel is no ebook tyro.Argel is no ebook tyro.Argel is no ebook tyro.Argel is no ebook tyro.Argel is no ebook tyro.Argel is no ebook tyro.Argel is no ebook tyro.Argel is no ebook tyro.
 
Argel's Avatar
 
Posts: 281
Karma: 1412
Join Date: Apr 2008
Location: UK
Device: Cybook Gen3, PRS 505, Kindle Int, Oasis, Paperwhite, Scribe
Quote:
Originally Posted by HarryT View Post
The reason that "textify" failed in Gideon's case is that his file has NO indication of "end of paragraph" - there is a carriage return at the end of every line, and no special indication of the start of a paragraph. There is literally nothing for any tool to "pick up on". It's a horribly-formatted file.
Thank you for making my point so perfectly.
Argel is offline   Reply With Quote
Old 06-04-2009, 06:54 PM   #32
ahi
Wizard
ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.
 
Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
I shall undertake this Quest!

Seriously though, I got a scrap of the file from Gideon, and I'm going to try to throw together a quick Python script that I shall post anon.

- Ahi

Last edited by ahi; 06-04-2009 at 07:54 PM. Reason: resolved to make only a slightly lesser fool of myself
ahi is offline   Reply With Quote
Advert
Old 06-04-2009, 07:21 PM   #33
Gideon
Wearer of Pants
Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.
 
Gideon's Avatar
 
Posts: 1,050
Karma: 7634
Join Date: Jan 2008
Location: Norman, OK
Device: Amazon Kindle DX / iPhone
Well, mjh215 nailed it. There was a space before the non-paragraph line endings that both Harry and I missed. If I had noticed it I could have done something, but I just didn't see it at all... but Mjh did! Well done! And Thanks!!!!!
Gideon is offline   Reply With Quote
Old 06-04-2009, 07:54 PM   #34
ahi
Wizard
ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.
 
Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
Quote:
Originally Posted by Gideon View Post
Well, mjh215 nailed it. There was a space before the non-paragraph line endings that both Harry and I missed. If I had noticed it I could have done something, but I just didn't see it at all... but Mjh did! Well done! And Thanks!!!!!
...

...



...

ahi is offline   Reply With Quote
Old 06-04-2009, 08:10 PM   #35
rogue_ronin
Banned
rogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-books
 
Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
Quote:
Originally Posted by Gideon View Post
Well, mjh215 nailed it. There was a space before the non-paragraph line endings that both Harry and I missed. If I had noticed it I could have done something, but I just didn't see it at all... but Mjh did! Well done! And Thanks!!!!!
Quote:
Originally Posted by rogue_ronin View Post
One of the things that you can search for, and may not be obvious to someone just looking at the text, is a space preceding a hard-return as a marker for end-of-paragraph. I'm surprised how frequently that has turned up.
Did I miss something? In another thread?

m a r
rogue_ronin is offline   Reply With Quote
Advert
Old 06-05-2009, 09:26 AM   #36
ahi
Wizard
ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.ahi ought to be getting tired of karma fortunes by now.
 
Posts: 1,790
Karma: 507333
Join Date: May 2009
Device: none
Quote:
Originally Posted by rogue_ronin View Post
Did I miss something? In another thread?

m a r
I don't think you missed anything, "mjh215".

I should note though that I am 99% certain that my previously described methodology would also have worked on this file.

Since the need ceased, I didn't force myself to figure out that python script yesterday after all... but when I have it, I will post it. I think it will be remarkably good at removing line-breaks while preserving paragraph breaks... (almost) regardless of what format is used.

In the case of Gideon's file, the second most common whitespace weight being 1001 (space + return) would have identified it as the linebreak sequence, while 1000 (return only) would have been identified as the paragraph break sequence by virtue of being third most common.

- Ahi
ahi is offline   Reply With Quote
Old 06-05-2009, 10:11 AM   #37
rogue_ronin
Banned
rogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-books
 
Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
Thanks, Ahi.

It's funny -- I see it the other way, too: sometimes the space is only at the paragraph hard-return. The other hard-returns are without.

Either way, useful, and not obvious.

Good luck with that script, and I'll gladly experiment with it.

m a r
rogue_ronin is offline   Reply With Quote
Old 06-05-2009, 05:09 PM   #38
Gideon
Wearer of Pants
Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.Gideon knows the square root of minus one.
 
Gideon's Avatar
 
Posts: 1,050
Karma: 7634
Join Date: Jan 2008
Location: Norman, OK
Device: Amazon Kindle DX / iPhone
Sorry Rogue.. mjh took a look at a piece of the file and actually fixed it. By the time you made your suggestion I had quit mucking about with it already. I then went ahead and fixed it myself. It was something I had a hard copy of so I wasn't willing to spend TOO much time on it, but glad it was resolved and now I know some new tricks. Thanks everyone!
Gideon is offline   Reply With Quote
Old 06-05-2009, 10:24 PM   #39
rogue_ronin
Banned
rogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-booksrogue_ronin has learned how to read e-books
 
Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
No worries. mjh even PM'd me to explain! Guess I came off a little prickly...



m a r
rogue_ronin is offline   Reply With Quote
Old 06-06-2009, 05:11 AM   #40
mjh215
Guru
mjh215 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermjh215 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermjh215 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermjh215 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermjh215 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermjh215 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermjh215 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermjh215 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermjh215 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermjh215 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermjh215 can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 988
Karma: 12653
Join Date: Apr 2008
Device: None of your business
Quote:
Originally Posted by rogue_ronin View Post
No worries. mjh even PM'd me to explain! Guess I came off a little prickly...
You didn't by any means come off prickly. I just thought I'd let you know the details on that file. I simply didn't post in the thread because I'm no longer posting publically for my own reasons. If you want proof that I didn't think you were being a prick, I'm breaking my own word just to post this... This just happened to be one of the last threads I was still reading at the time, heh.

Take care RN and sorry if I confused things...

-MJ
mjh215 is offline   Reply With Quote
Old 06-06-2009, 06:02 AM   #41
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: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Glad to hear that you got it sorted!
HarryT is offline   Reply With Quote
Old 06-19-2009, 05:07 AM   #42
alilxmas
Enthusiast
alilxmas has learned how to buy an e-book online
 
Posts: 32
Karma: 92
Join Date: Jun 2009
Device: SmartQ 7, VX787
I still do it the old fashion way, lol

Kind of hard to explain so I posted some pictures.

In word, I just paste the text

1. http://www.fileqube.com/file/UhjKpyQdK201072

Then add some symbol at the end of each paragraph manually
Something like
#@

2. http://www.fileqube.com/file/bGtkOzhn201073

I use File / Replace and put the symbol ^p
change all so it looks like this junk...

3. http://www.fileqube.com/file/FLOIaCe201074

Then replace again my #@ with ^p

4. http://www.fileqube.com/file/UfotRD201075

At the end I end up with this

5. http://www.fileqube.com/file/ZUQYTJCm201076


slower than an automated program but I still like the old way where I'm sure its doen the way I want. I also use a keyboard with a cup and paste macro key so makes it easier.

Last edited by alilxmas; 06-19-2009 at 05:15 AM.
alilxmas is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to reduce indents without "removing space between paragraphs" Skydog Calibre 5 06-05-2010 12:58 AM
removing spacing between paragraphs WITHOUT touching indent? ferossan Calibre 2 12-24-2009 02:12 PM
Removing blank lines between paragraphs? corroonb Workshop 3 08-13-2009 04:23 PM
Removing Line-breaks / Preserving Paragraphs ahi Workshop 5 06-08-2009 02:22 AM
Removing excess carriage returns Halk Calibre 5 05-17-2009 02:35 PM


All times are GMT -4. The time now is 09:49 AM.


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