Re: Several questions - Fonts - special Characters

Word-2-Web Converter

Several questions - Fonts - special Characters


Sam 09-25-2009, 1:15 PM
Is there a way to specify the default font for the contents / search sections ?

For the content section is the font derived from the word documents font ?

When I post the converted document to the web server (I believe its linux) I see a number of 'special characters' that are inserted in place of spaces or quotes in my word document.  It looks like a diamond with a question mark inside. If I manually edit the html file in hex and replace;
xA0 with x20
x92 with x27
x93 with x22
x94 with x22
the page appears correctly - is there a way to automate this conversion ?

Re: Several questions - Fonts - special Characters


David 09-27-2009, 6:01 PM
Please add the following code to  <Addins>  node of .word2web project file and try again:

    <Addin __File="HtmlReplace.Addin" __Path="Addins\HtmlReplace\" UseRegex="True" __Enabled="True" FindHTML="[\xA0]" ReplaceHTML="&#20;"/>
    <Addin __File="HtmlReplace.Addin" __Path="Addins\HtmlReplace\" UseRegex="True" __Enabled="True" FindHTML="[\x92]" ReplaceHTML="&#27;"/>
    <Addin __File="HtmlReplace.Addin" __Path="Addins\HtmlReplace\" UseRegex="True" __Enabled="True" FindHTML="[\x93\x94]" ReplaceHTML="&#22;"/>

Re: Several questions - Fonts - special Characters


cspt 03-10-2010, 10:13 PM
Tried this in both Default.word2web and also my saved project file, which now looks like this:

<?xml version="1.0" encoding="utf-8"?>
<Word2Web FileVersion="2">
  <WordFile>.\Word.docx</WordFile>
  <OutPath>P:\x\base\help\loc\de</OutPath>
  <WebTitle>Software Help</WebTitle>
  <WebFileExt>.html</WebFileExt>
  <FirstPage>index.html</FirstPage>
  <Template>WebTemplates\NoSearch\RL</Template>
  <Options RelatedTopicTitle="Related Topics" Language="-1" PageFileNameRule="Default" ShowNavigator="True" ShowRelatedTopic="False" RefToLink="True" UsePNG="False" CoverPageTitle="Cover" ShowChapterNo="False" MergeAtLevel="1" Engine="Auto"/>
  <Settings BackColor="#666666" BorderColor="#666666" PageTitleColor="#FFFFFF" NodeColor="#EEEEEE" HotNodeColor="#FFFFFF" IsLocalHelp="True" ShowHomeLink="False" HomeText="Home" PrevText="Prev" NextText="Next" PrintText="Print" Copyright="Copyright © 2004-2010 Company Name" ShowTreeTooptip="False" AutoCollapseTree="False" AutoCollapseOIC="False" WrapHeading="True" AutoSync="True" LeftPanelWidth="240"/>
  <Addins>
    <Addin __File="HtmlReplace.Addin" __Path="Addins\HtmlReplace\" UseRegex="True" __Enabled="True" FindHTML="[\xA0]" ReplaceHTML=""/>
    <Addin __File="HtmlReplace.Addin" __Path="Addins\HtmlReplace\" UseRegex="True" __Enabled="True" FindHTML="[\x92]" ReplaceHTML=""/>
    <Addin __File="HtmlReplace.Addin" __Path="Addins\HtmlReplace\" UseRegex="True" __Enabled="True" FindHTML="[\x93\x94]" ReplaceHTML=""/>
  </Addins>
  <Themes/>
</Word2Web>

Both generate an error on loading:
"(6742~FD5A~A87C~CBB0~B8D3A7),ecc3r11c34ws31wf3,E,-I600, IE7.0:Invalid unicode character."

Is there something I'm missing?

Re: Several questions - Fonts - special Characters


David 03-11-2010, 9:57 PM
Please replace the ReplaceHTML as &#xx; instead of the unicode character.

Re: Several questions - Fonts - special Characters


cspt 03-15-2010, 8:24 PM
That's actually what I cut directly from your example above.  It's only the forum software tool encoded the characters wrong.

Re: Several questions - Fonts - special Characters


Peter 03-17-2010, 5:07 PM
Could you please send the .word2web file and a sample Word document to supports@macrobject.com for test?

Re: Several questions - Fonts - special Characters


csrwild 05-15-2010, 12:40 PM
I think you need to use the HTML special entity &amp;  (ampersand+amp+semicolon) followed by the #20; in the ReplaceHTML parameter to get it to work.

ReplaceHTML="&amp;#20;"

Powered by Community Server, by Telligent Systems