From 399fdbee95a6a8cb3b5104226abba96be8cee0d7 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 23 Mar 2023 20:03:26 +0000 Subject: [PATCH] =?UTF-8?q?B2023-013=20Added=20logic=20to=20convert=20cert?= =?UTF-8?q?ain=20character=20sequences=20to=20symbols.=20=E2=80=9C+/-?= =?UTF-8?q?=E2=80=9C=20or=20=E2=80=9C+-=E2=80=9C=20to=20plus=20minus=20sym?= =?UTF-8?q?bol,=20=E2=80=9C>=3D=E2=80=9D=20to=20greater=20than=20or=20equa?= =?UTF-8?q?l=20symbol,=20=E2=80=9C<=3D=E2=80=9D=20to=20less=20than=20or=20?= =?UTF-8?q?equal=20symbol,=20=E2=80=9C->=E2=80=9D=20to=20right=20arrow=20s?= =?UTF-8?q?ymbol,=20and=20=E2=80=9C<-=E2=80=9C=20to=20left=20arrow=20symbo?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Print.Library/VlnSvgPageHelper.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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)