diff --git a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs index 957d63f5..4312e5b2 100644 --- a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs +++ b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs @@ -1446,6 +1446,20 @@ i = 0; { DisplayText dt1 = new DisplayText(MyPromsPrinter.MyItem, ROLookupVal, false, true); ROLookupVal = dt1.StartText; + // B2023-013 translate character sequences for Plus Minus, Greater Than and Less Than or Equal, Right and Left Arrows + // currently only BNPP uses this - 03-23-2023 + if (MySection.ActiveFormat.PlantFormat.FormatData.SectData.ConvertGTELTEPMinROValue) + { + ROLookupVal = ROLookupVal.Replace("+/-", @"\'b1"); // Plus Minus + ROLookupVal = ROLookupVal.Replace("+-", @"\'b1"); // Plus Minus (without the forward slash - just in case) + ROLookupVal = ROLookupVal.Replace(">=", @"\u8805?"); // Greater than or equal + ROLookupVal = ROLookupVal.Replace("<=", @"\u8804?"); // Less than or equal + } + if (MySection.ActiveFormat.PlantFormat.FormatData.SectData.UseDashGreaterLessThenForArrowsInROValue) + { + ROLookupVal = ROLookupVal.Replace("->", @"\u8594?"); // Right Arrow + ROLookupVal = ROLookupVal.Replace("<-", @"\u8592?"); // Left Arrow + } } // replace the pagelist token with ROLookupVal pltok = pltok.Substring(0, idxstart) + ROLookupVal + ((idxstart + idxend < pltok.Length) ? pltok.Substring(idxstart + idxend + 1) : string.Empty); @@ -2761,6 +2775,8 @@ i = 0; SvgText.CompressSub = mySection.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.CompressHPSub; SvgText.CompressPropSubSup = mySection.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.CompressPropSubSup; svgText.Text = text; + //if (pageItem.TextColor != null && pageItem.TextColor != "") + // svgText.FillColor = System.Drawing.Color.FromName(pageItem.TextColor);// System.Drawing.Color.Red; VEPROMS.CSLA.Library.E_Justify justify = pageItem.Justify ?? VEPROMS.CSLA.Library.E_Justify.PSLeft; float colAdj16bit = 0; if ((justify & VEPROMS.CSLA.Library.E_Justify.PSLeft) == VEPROMS.CSLA.Library.E_Justify.PSLeft)