Supporting logic to handle the use of the backslash character

This commit is contained in:
2016-06-21 15:16:12 +00:00
parent 4c6d09803d
commit 0d13585924
7 changed files with 99 additions and 8 deletions

View File

@@ -59,7 +59,8 @@ namespace Volian.Svg.Library
// replace the dash/hyphen or whatever you want to call it, with a hard hyphen. The 16-bit program
// treated the dash/hyphen as such. Translate back on any data saves.
text = text.Replace(@"-", @"\u8209?");
// Replace the backslash with a backslash symbol. Translate back on data saves.
text = text.Replace(@"\\", @"\u9586?"); // unicode hex 2572
// displayTextElement List items are created for anything that is handled differently in RTB, i.e.
// symbols, ros, trans, text.
int startIndex = 0;
@@ -174,6 +175,9 @@ namespace Volian.Svg.Library
noExtraRtfStr = noExtraRtfStr.Replace(@"\u8209? ", @"-");
noExtraRtfStr = noExtraRtfStr.Replace(@"\u8209?", @"-");
// change back the backslahs symbol to a regular backslash
noExtraRtfStr = noExtraRtfStr.Replace(@"\u9586?", @"\\");
DisplayTextElementList.Clear();
int startIndex = 0;
int index = -1;