Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-30-2014, 05:00 PM   #31
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by roger64 View Post
Well, I'll really need to buy magnifying glasses.
Yeah, you really can't eyeball the difference between the two in code view. Not with the fonts I use anyway!

Quote:
What about the "section" sign?
I don't know what you mean by "stopped the Compare algorithm." I've seen no adverse behavior with regard to the section sign when comparing the results of "smarten."

Note: there is a setting for "lines of context around each change" in the Compare Options if you're worried about not seeing the last two lines (that contain the section signs). I think the setting defaults to 3. Increase that setting and you should see them.
DiapDealer is offline   Reply With Quote
Old 04-30-2014, 05:55 PM   #32
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,741
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DiapDealer View Post
That's not what I'm experiencing at all (using your test epub) -- is converted to EM dash, --- is converted to EN dash. Consistently.
Which appears to be at odds with what's written on the Smarty Pants tin

See attachment - I found it easier to view the results in the viewer

Pardon my French

BR
Attached Thumbnails
Click image for larger version

Name:	Capture2.JPG
Views:	293
Size:	254.5 KB
ID:	122378  
BetterRed is offline   Reply With Quote
Advert
Old 04-30-2014, 06:47 PM   #33
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by BetterRed View Post
Which appears to be at odds with what's written on the Smarty Pants tin
It should be noted that the SmartyPants algorithm is customizable (the EM|EN dash behavior can be easily reversed, ellipses ignored, etc.). The calibre version has also had modifications/improvements made to it. calibre's implementation also does not result in html entities.

I say this because it's important to note that while calibre uses the SmartyPants script, there's a little more to "Smarten Punctuation" than SmartyPants.
DiapDealer is offline   Reply With Quote
Old 04-30-2014, 10:14 PM   #34
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,741
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DiapDealer View Post
It should be noted that the SmartyPants algorithm is customizable (the EM|EN dash behavior can be easily reversed, ellipses ignored, etc.). The calibre version has also had modifications/improvements made to it. calibre's implementation also does not result in html entities.

I say this because it's important to note that while calibre uses the SmartyPants script, there's a little more to "Smarten Punctuation" than SmartyPants.
Be nice if the details were documented, the user manual references the daringfireball site

Quote:
--smarten-punctuation

Convert plain quotes, dashes and ellipsis to their typographically correct equivalents. For details, see http://daringfireball.net/projects/smartypants
Which is the same link as DoctorOhh posted - and from which I posted a clip

BR
BetterRed is offline   Reply With Quote
Old 05-01-2014, 12:42 AM   #35
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Quote:
Originally Posted by DiapDealer View Post

Note: there is a setting for "lines of context around each change" in the Compare Options if you're worried about not seeing the last two lines (that contain the section signs). I think the setting defaults to 3. Increase that setting and you should see them.
OK thanks. I did not know.

@BetterRed

Thanks for your attachments -and inventive French.

Last edited by roger64; 05-01-2014 at 12:51 AM.
roger64 is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Punctuation - who knows where? gmw Writers' Corner 13 08-03-2013 01:16 AM
Strange punctuation gafitz Conversion 8 01-15-2012 07:07 PM
Punctuation problems Halk Calibre 0 10-13-2011 09:02 PM
Punctuation Dresden Calibre 7 08-31-2010 05:14 AM
Punctuation jgray Workshop 10 04-14-2010 07:38 AM


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


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