From: SourceForge.net <no...@so...> - 2010-11-15 15:25:51
|
Feature Requests item #3049436, was opened at 2010-08-20 23:50 Message generated for change (Comment added) made by aditsu You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=363153&aid=3049436&group_id=13153 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Private: No Submitted By: Tobin Juday (tobinibot) Assigned to: Nobody/Anonymous (nobody) Summary: Curly quotes Initial Comment: I propose that the substitution of curly quotes and dashes into their regular ASCII versions be driven only by the asciiChars property. Currently, here is the if statement for running the substitution: if (this.configuration.makeClean && this.configuration.asciiChars || this.configuration.makeBare) I'm in the situation where I want to clean Word html (and so makeBare is true), but I want to leave in the curly quotes (because my html parser can handle them). Currently, there's no way I can do that. I would like the line to read: if (this.configuration.makeClean && this.configuration.asciiChars || this.configuration.makeBare && this.configuration.asciiChars) This would allow me to use makeBare (and makeClean), and still keep my curly quotes by setting asciiChars to false. I understand that this would break users who are using makeBare and counting on the curly quote substitution. To keep that old behavior, we could also add a new field, something like keepSpecialChars. In that case, the line would now look something like: if (this.configuration.makeClean && this.configuration.asciiChars || this.configuration.makeBare && !this.configuration.keepSpecialChars) However, it seems sort of silly to add a new property when we've already got the asciiChars property for exactly this reason. Basically, I just need to be able to clean Word html, but keep curly quotes. I don't really care how it's implemented. Thanks. ---------------------------------------------------------------------- >Comment By: Adrian Sandor (aditsu) Date: 2010-11-15 23:25 Message: Hi, are you able to achieve this using Tidy (the C program)? Or does it behave the same way? As far as I can tell, it has the same condition. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=363153&aid=3049436&group_id=13153 |