View Single Post
Old 07-18-2017, 06:47 PM   #156
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by DiapDealer View Post
I've been meaning to track down where the commented-out declaration comes from. I'm pretty sure it's Sigil (or Sigil + Sigil plugins) and/or the Gumbo parser that makes it happen under certain conditions. I just haven't sat down and figured out the particulars.
I get the commented-out XML declaration in EPUBs output straight from Finereader. Haven't really noticed it before yesterday.... maybe because previous versions of Sigil auto-cleaned it upon opening or mending?

I'll definitely keep an eye out now that I noticed it.

Quote:
Originally Posted by DiapDealer View Post
As far as Smarten Punctuation goes, I assumed the SmartyPants algorithm could handle html comments. Perhaps I was wrong. But if it (or my plugin) can be easily tweaked to accommodate the issue, I'll certainly try to incorporate a fix into a new release when I get a chance.


Quote:
Originally Posted by Rev. Bob View Post
While I agree with you in general, I feel obliged to point out that the case you cite is an oddball. A proper XML declaration - which would require dumb quotes - doesn't use the HTML comment markers. It looks like, in your case, someone manually commented out the declaration for some reason. In short, the change looks weird, but it doesn't actually affect anything.
Yeah, I just posted the example that made me notice the issue. I probably could have concocted a similar issue where dumb quotes would have been important. I sometimes use HTML comments to future-proof Math Formulas by leaving the TeX code there:

Before:

Code:
<-- f'(x) = x + y -->
<div class="formula"><img src="Formula1.png"/></div>
After:

Code:
<!--f’(x) = x + y-->
<div class="formula"><img src="Formula1.png"/></div>
In the future, that can be used to easily generate the formula again or be converted to MathML, etc. etc. But smartening the dumb quote would break the equation when fed back into TeX (TeX turns a dumb quote into a prime while in TeX's math mode).

Last edited by Tex2002ans; 07-18-2017 at 06:54 PM.
Tex2002ans is offline   Reply With Quote