Supporting logic to handle the use of the backslash character
This commit is contained in:
@@ -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;
|
||||
|
@@ -681,6 +681,10 @@ namespace Volian.Svg.Library
|
||||
// this will enable the hyphens to be found in a PDF search
|
||||
if(text.Contains("\\u8209?"))
|
||||
text = text.Replace("\\u8209?", "-");
|
||||
// Replace symbol backslash with a text backslash when printing pagelist items
|
||||
// this will enable the backslash to be found in a PDF search
|
||||
if (text.Contains("\\u9586?"))
|
||||
text = text.Replace("\\u9586?", "\\");
|
||||
SetupInheritance(myParent.MyInheritedSettings);
|
||||
float yScale = (myParent is SvgGroup && (myParent as SvgGroup).Description.ToUpper() == "ABSOLUTE") ? scale.AbsY(cb, Y): scale.Y(cb, Y);
|
||||
cb.SaveState();
|
||||
|
Reference in New Issue
Block a user