Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-14-2011, 04:08 AM   #16
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by cybmole View Post
i have fixed up several more books & finally realised that all I should be testing is whether a "line" ends as a well formed sentence i.e. with a full stop, a quote, or an exclamation mark.
Or a quote mark (in any flavour: ', ", », ’, ”; including German versions: “, ‘, «), or a closing parenthesis (or bracket), or a dash, or a colon, or a question mark, or an ellipsis (…, as a single character), or the HTML entity for any of them (which ends in a semicolon)...
Jellby is offline   Reply With Quote
Old 01-14-2011, 04:24 AM   #17
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by Jellby View Post
Or a quote mark (in any flavour: ', ", », ’, ”; including German versions: “, ‘, «), or a closing parenthesis (or bracket), or a dash, or a colon, or a question mark, or an ellipsis (…, as a single character), or the HTML entity for any of them (which ends in a semicolon)...
well OK, but
I mentioned quote ( mark) -

I am not fussed about foreign version - I only read English text.....

question mark is a fair cop....

when I was taught English grammar at school, then colon and dash were not valid sentence endings -

I would not necessarily expect a line feed to follow either of those - the 3 dot ellipses will be caught by the test for a single full stop -

I am not convinced that a line feed should always follow an ellipses ( which is good as that would be a hard case to add to the regex ! )

I guess there will never be "one regex to rule them all" but I am happy if I can automate 99% of repairs

PS. according to this link
http://grammar.about.com/od/punctuat...punctrules.htm
there are only 3 valid ways to end an English sentence.

but of course - not all authors/publishers abide by the rules....

Last edited by cybmole; 01-14-2011 at 04:36 AM.
cybmole is offline   Reply With Quote
Advert
Old 01-14-2011, 06:10 AM   #18
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by cybmole View Post
I mentioned quote ( mark)
True, I missed it, sorry.

Quote:
when I was taught English grammar at school, then colon and dash were not valid sentence endings
Yet you'll find them in many books, often to introduce a character's speech or some song or poetry.

Quote:
I would not necessarily expect a line feed to follow either of those - the 3 dot ellipses will be caught by the test for a single full stop
I don't say that a line feed must follow them, but that it may, without being incorrect. And with ellipsis I mean the single character for the three dots, not the three dots as three characters, this is not found with the full stop.

Quote:
I guess there will never be "one regex to rule them all" but I am happy if I can automate 99% of repairs
I agree. My point is that it's always good to check each occurrence, and not trust automatic search and replace.

Quote:
PS. according to this link
http://grammar.about.com/od/punctuat...punctrules.htm
there are only 3 valid ways to end an English sentence.
I'd say that is overly simplistic in the context of a full book, at least for considering where a "paragraph break" can occur.
Jellby is offline   Reply With Quote
Old 01-23-2011, 12:45 PM   #19
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
i thought I had this all figure out & them I come across

Mr.
Smith and Mrs.
Jones

which should be one line not 3.

( names have been changed ). I have a book with line feeds after both Mr. and Mrs. - not sure If I put them there or if they were there all along... or if calibre structure detect did it...

I guess there's also Doc. Smith & Prof. Jones to worry about but let's not get too carried way...

Last edited by cybmole; 01-23-2011 at 12:47 PM.
cybmole is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fixing broken button (guide) ashadocat Sony Reader Dev Corner 0 10-01-2009 01:52 AM
Unutterably Silly Memorable FIRST SENTENCES - Only Yours, please Dr. Drib Lounge 431 02-13-2009 04:57 AM
Unutterably Silly Final sentences pshrynk Lounge 97 02-08-2009 11:45 AM
Sentences We Love Dr. Drib Sony Reader 110 07-13-2007 10:44 PM


All times are GMT -4. The time now is 02:11 AM.


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