From 9ec5de8fcf8a1953c2eaa16a7fd362f6169342e2 Mon Sep 17 00:00:00 2001 From: Johannes Telle Date: Wed, 23 Oct 2024 14:51:12 +0200 Subject: [PATCH 1/5] Changed flange symbol --- www/RunGuide.md | 53 ++++++++++++++++++++++++++++++++++++------ www/dexpisvgNoaka.xslt | 3 ++- 2 files changed, 48 insertions(+), 8 deletions(-) diff --git a/www/RunGuide.md b/www/RunGuide.md index 0d0d7f8..ef477ab 100644 --- a/www/RunGuide.md +++ b/www/RunGuide.md @@ -34,13 +34,52 @@ Before you start, ensure that you have the following repository structure on you ```xml - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + ``` Name this file `PV001A_Origio.svg`. diff --git a/www/dexpisvgNoaka.xslt b/www/dexpisvgNoaka.xslt index 81ee40d..2974d62 100644 --- a/www/dexpisvgNoaka.xslt +++ b/www/dexpisvgNoaka.xslt @@ -77,7 +77,8 @@ #000000 - + + 0.25 From 1df32a7f74091ddb80327501b29b2fcc50cb663d Mon Sep 17 00:00:00 2001 From: Johannes Telle Date: Fri, 25 Oct 2024 09:57:57 +0200 Subject: [PATCH 2/5] Commented out template that is not needed. Added a new template thar macthes labels for nozzeles. --- www/dexpisvgNoaka.xslt | 120 +++++++++++++++++++---------------------- 1 file changed, 55 insertions(+), 65 deletions(-) diff --git a/www/dexpisvgNoaka.xslt b/www/dexpisvgNoaka.xslt index f98a14a..a38e89e 100644 --- a/www/dexpisvgNoaka.xslt +++ b/www/dexpisvgNoaka.xslt @@ -198,7 +198,7 @@ - + @@ -291,76 +291,15 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + test="string-length($labelParam) > 0 and not(contains($idValue, 'Nozzle'))"> @@ -415,4 +354,55 @@ + + + + + + + + + + + + + + + + 3.3px + Arial + middle + + + + + + + + + 270 + 0 + 0 + + + + + + + + + + \ No newline at end of file From 7ef3d49c583c2de29fd9222f95516a45ef85c1a4 Mon Sep 17 00:00:00 2001 From: Johannes Telle Date: Fri, 25 Oct 2024 12:25:45 +0200 Subject: [PATCH 3/5] Fix suggestions from review --- www/dexpisvgNoaka.xslt | 44 ++++++++++++++++-------------------------- 1 file changed, 17 insertions(+), 27 deletions(-) diff --git a/www/dexpisvgNoaka.xslt b/www/dexpisvgNoaka.xslt index a38e89e..a8ee043 100644 --- a/www/dexpisvgNoaka.xslt +++ b/www/dexpisvgNoaka.xslt @@ -197,32 +197,12 @@ - - - + @@ -272,6 +252,7 @@ select="$doc//svg:g/*"> + @@ -298,8 +279,9 @@ + + test="string-length($labelParam) > 0 and not(contains($componentClass, 'Nozzle'))"> @@ -373,9 +355,17 @@ - 3.3px - Arial - middle + + + + + + + + + @@ -384,9 +374,9 @@ + name="posX" select="Text/Position/Location/@X" /> + name="posY" select="Text/Position/Location/@Y" /> From 5cef03738e3e23d3b81617bb2fcf5c86e83e2474 Mon Sep 17 00:00:00 2001 From: Dag Hovland Date: Fri, 25 Oct 2024 12:58:55 +0200 Subject: [PATCH 4/5] Fixed translation of TextAngle from proteus --- www/dexpisvgNoaka.xslt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/www/dexpisvgNoaka.xslt b/www/dexpisvgNoaka.xslt index a8ee043..e9ff91f 100644 --- a/www/dexpisvgNoaka.xslt +++ b/www/dexpisvgNoaka.xslt @@ -363,6 +363,9 @@ select="Text/@Font" /> + if Justification = CenterCenter output middle + If Justification = RightCenter output right + @@ -379,15 +382,10 @@ name="posY" select="Text/Position/Location/@Y" /> - - 270 - 0 - 0 - + + select="concat('rotate(', 360 - $textRotationAngle, ' ', $posX, ' ', $height - $posY, ')')" /> From 8e352ceb0de1c8cefc17e9ab0821dbbb956c082e Mon Sep 17 00:00:00 2001 From: Johannes Telle Date: Fri, 25 Oct 2024 15:22:40 +0200 Subject: [PATCH 5/5] COrrect placement of nozzeles --- www/dexpisvgNoaka.xslt | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/www/dexpisvgNoaka.xslt b/www/dexpisvgNoaka.xslt index e9ff91f..28f509e 100644 --- a/www/dexpisvgNoaka.xslt +++ b/www/dexpisvgNoaka.xslt @@ -363,11 +363,20 @@ select="Text/@Font" /> - if Justification = CenterCenter output middle - If Justification = RightCenter output right - - + + + End + + + Start + + + Middle + + + Middle + +