From 6cb0edbf9834da788a6e27c5568069a90d8926f8 Mon Sep 17 00:00:00 2001 From: Rich Date: Wed, 8 Jan 2014 20:03:55 +0000 Subject: [PATCH] Added code to handle fNarrator and Non-Supported vertical tab in ReplaceWords --- PROMS/fmtxml/FmtToXml.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PROMS/fmtxml/FmtToXml.cs b/PROMS/fmtxml/FmtToXml.cs index 57cf41d7..be7b4e5b 100644 --- a/PROMS/fmtxml/FmtToXml.cs +++ b/PROMS/fmtxml/FmtToXml.cs @@ -1316,11 +1316,13 @@ namespace fmtxml wkstr = Regex.Replace(wkstr, @"\x16([^\x16 ]*?)(?:[\x16]|(?= )|\Z)(.*?)", @"\ul $1\ulnone $2"); //narrator - wkstr = Regex.Replace(wkstr, @"\x86([^\x86 ]*?)(?:[\x86]|(?= )|\Z)(.*?)", @"\f{Narrator}$1\f0$2"); + //wkstr = Regex.Replace(wkstr, @"\x86([^\x86 ]*?)(?:[\x86]|(?= )|\Z)(.*?)", @"\f{Narrator}$1\f0$2"); + wkstr = Regex.Replace(wkstr, @"\x86([^\x86 ]*?)(?:[\x86]|(?= )|\Z)(.*?)", @"$1$2"); // remove hanging indent, vertical tab wkstr = Regex.Replace(wkstr, @"\x02", @"\NonSupported Hanging Indent (Hex x02)"); - wkstr = Regex.Replace(wkstr, @"\x0B", @"\NonSupported Vertical Tab (Hex x0b"); + //wkstr = Regex.Replace(wkstr, @"\x0B", @"\NonSupported Vertical Tab (Hex x0b"); + wkstr = Regex.Replace(wkstr, @"\x0B", @""); // remove some unknown chars for ano & fpl - these plants are not supported // as of conversion date.