Home
TeamSite
Removing SmartQuotes
mike_jaixen
Is there a way to disable Microsoft's "Smart Quotes" when users cut and paste Word documents into VisualFormat? I'm still on TS 5.5.2, and was hoping for a simple VF config change that would allow me to automatically convert those nasty &rsquo values to apostrophies without having to update every template.
Find more posts tagged with
Comments
DJ_At_Work
RTFM.
Preserving Tags When Office Content is Pasted
Within the XML configuration data, the style tag has a preservewordstyles attribute that determines whether class and style HTML tags are preserved when Microsoft Office 2000 or later content is pasted into the editor.
If you set this attribute to “true”, style attributes are preserved when pasting Word 2000 content. If set to “false”, the style attributes are removed.
Below is an example of how to implement this feature within the configuration data.
<features>
</external>
<standard autoclean="true" publish="xhtml">
<style preservewordstyles="
false
"/>
Hope it helps.
-DJ
mike_jaixen
RTFP.
The "SmartQuotes" are not word styles, but rather Word automatically replacing apostrophies with the &rsquo character, apparantly because "it looks nicer". Word styles are already off, but it's still letting the &rsquo pass through.
Adam Stoller
You can configure Word not to use SmartQuotes - and then you wouldn't have the problem - unfortunately I believe that SmartQuotes are enabled by default - which means training users to "fix" the settings on their desktop machines.
The only other alternative is to "fix" it in the PT by filtering for the explicit character sequences and performing replacements on them before outputing the data to the generated file (regex's are your friends;-)
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
DJ_At_Work
Ahh, I see. Don't think you can do this directly via VFE. We call a perl script in our .tpl that strips out certain characters we don't want.