From 5e425b4c3d196d44da1391017c2d2fcf0c98a354 Mon Sep 17 00:00:00 2001
From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com>
Date: Wed, 15 Mar 2023 13:32:15 +0200
Subject: [PATCH] Use full name of component group for diodes, such as:
 Diode_Schotky..., Diode_Zener...

---
 fab.kicad_sym | 140 +++++++++++++++++++++++++-------------------------
 1 file changed, 70 insertions(+), 70 deletions(-)

diff --git a/fab.kicad_sym b/fab.kicad_sym
index c208819..4ac339f 100644
--- a/fab.kicad_sym
+++ b/fab.kicad_sym
@@ -5134,11 +5134,11 @@
       )
     )
   )
-  (symbol "D_Schottky_MiniSMA" (pin_numbers hide) (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
+  (symbol "Diode_Schottky_MiniSMA" (pin_numbers hide) (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
     (property "Reference" "D" (at 0 2.54 0)
       (effects (font (size 1.27 1.27)))
     )
-    (property "Value" "D_Schottky_MiniSMA" (at 0 -2.54 0)
+    (property "Value" "Diode_Schottky_MiniSMA" (at 0 -2.54 0)
       (effects (font (size 1.27 1.27)))
     )
     (property "Footprint" "fab:SOD-123T" (at 0 0 0)
@@ -5156,7 +5156,7 @@
     (property "ki_fp_filters" "*SOD?123T*" (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (symbol "D_Schottky_MiniSMA_0_1"
+    (symbol "Diode_Schottky_MiniSMA_0_1"
       (polyline
         (pts
           (xy 1.27 0)
@@ -5188,7 +5188,7 @@
         (fill (type none))
       )
     )
-    (symbol "D_Schottky_MiniSMA_1_1"
+    (symbol "Diode_Schottky_MiniSMA_1_1"
       (pin passive line (at -3.81 0 0) (length 2.54)
         (name "K" (effects (font (size 1.27 1.27))))
         (number "1" (effects (font (size 1.27 1.27))))
@@ -5199,11 +5199,11 @@
       )
     )
   )
-  (symbol "D_Schottky_SOD123" (pin_numbers hide) (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
+  (symbol "Diode_Schottky_SOD123" (pin_numbers hide) (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
     (property "Reference" "D" (at 0 2.54 0)
       (effects (font (size 1.27 1.27)))
     )
-    (property "Value" "D_Schottky_SOD123" (at 0 -2.54 0)
+    (property "Value" "Diode_Schottky_SOD123" (at 0 -2.54 0)
       (effects (font (size 1.27 1.27)))
     )
     (property "Footprint" "fab:SOD-123" (at 0 0 0)
@@ -5221,7 +5221,7 @@
     (property "ki_fp_filters" "*SOD?123*" (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (symbol "D_Schottky_SOD123_0_1"
+    (symbol "Diode_Schottky_SOD123_0_1"
       (polyline
         (pts
           (xy 1.27 0)
@@ -5253,7 +5253,69 @@
         (fill (type none))
       )
     )
-    (symbol "D_Schottky_SOD123_1_1"
+    (symbol "Diode_Schottky_SOD123_1_1"
+      (pin passive line (at -3.81 0 0) (length 2.54)
+        (name "K" (effects (font (size 1.27 1.27))))
+        (number "1" (effects (font (size 1.27 1.27))))
+      )
+      (pin passive line (at 3.81 0 180) (length 2.54)
+        (name "A" (effects (font (size 1.27 1.27))))
+        (number "2" (effects (font (size 1.27 1.27))))
+      )
+    )
+  )
+  (symbol "Diode_Zener_SOD123" (pin_numbers hide) (pin_names hide) (in_bom yes) (on_board yes)
+    (property "Reference" "Z" (at 0 2.54 0)
+      (effects (font (size 1.27 1.27)))
+    )
+    (property "Value" "Diode_Zener_SOD123" (at 0 -2.54 0)
+      (effects (font (size 1.27 1.27)))
+    )
+    (property "Footprint" "fab:SOD-123" (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "Datasheet" "https://www.diodes.com/assets/Datasheets/ds18004.pdf" (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "ki_keywords" "diode zener SOD-123 BZT52C3V3-7-F BZT52C4V7-13-F" (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "ki_description" "Zener diode, surface mount, SOD-123 footprint" (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "ki_fp_filters" "*SOD?123*" (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (symbol "Diode_Zener_SOD123_0_1"
+      (polyline
+        (pts
+          (xy 1.27 0)
+          (xy -1.27 0)
+        )
+        (stroke (width 0) (type default))
+        (fill (type none))
+      )
+      (polyline
+        (pts
+          (xy -1.27 -1.27)
+          (xy -1.27 1.27)
+          (xy -0.762 1.27)
+        )
+        (stroke (width 0.2032) (type default))
+        (fill (type none))
+      )
+      (polyline
+        (pts
+          (xy 1.27 -1.27)
+          (xy 1.27 1.27)
+          (xy -1.27 0)
+          (xy 1.27 -1.27)
+        )
+        (stroke (width 0.2032) (type default))
+        (fill (type none))
+      )
+    )
+    (symbol "Diode_Zener_SOD123_1_1"
       (pin passive line (at -3.81 0 0) (length 2.54)
         (name "K" (effects (font (size 1.27 1.27))))
         (number "1" (effects (font (size 1.27 1.27))))
@@ -12652,66 +12714,4 @@
       )
     )
   )
-  (symbol "Z_SOD123" (pin_numbers hide) (pin_names hide) (in_bom yes) (on_board yes)
-    (property "Reference" "Z" (at 0 2.54 0)
-      (effects (font (size 1.27 1.27)))
-    )
-    (property "Value" "Z_SOD123" (at 0 -2.54 0)
-      (effects (font (size 1.27 1.27)))
-    )
-    (property "Footprint" "fab:SOD-123" (at 0 0 0)
-      (effects (font (size 1.27 1.27)) hide)
-    )
-    (property "Datasheet" "https://www.diodes.com/assets/Datasheets/ds18004.pdf" (at 0 0 0)
-      (effects (font (size 1.27 1.27)) hide)
-    )
-    (property "ki_keywords" "diode zener SOD-123 BZT52C3V3-7-F BZT52C4V7-13-F" (at 0 0 0)
-      (effects (font (size 1.27 1.27)) hide)
-    )
-    (property "ki_description" "Zener diode, surface mount, SOD-123 footprint" (at 0 0 0)
-      (effects (font (size 1.27 1.27)) hide)
-    )
-    (property "ki_fp_filters" "*SOD?123*" (at 0 0 0)
-      (effects (font (size 1.27 1.27)) hide)
-    )
-    (symbol "Z_SOD123_0_1"
-      (polyline
-        (pts
-          (xy 1.27 0)
-          (xy -1.27 0)
-        )
-        (stroke (width 0) (type default))
-        (fill (type none))
-      )
-      (polyline
-        (pts
-          (xy -1.27 -1.27)
-          (xy -1.27 1.27)
-          (xy -0.762 1.27)
-        )
-        (stroke (width 0.2032) (type default))
-        (fill (type none))
-      )
-      (polyline
-        (pts
-          (xy 1.27 -1.27)
-          (xy 1.27 1.27)
-          (xy -1.27 0)
-          (xy 1.27 -1.27)
-        )
-        (stroke (width 0.2032) (type default))
-        (fill (type none))
-      )
-    )
-    (symbol "Z_SOD123_1_1"
-      (pin passive line (at -3.81 0 0) (length 2.54)
-        (name "K" (effects (font (size 1.27 1.27))))
-        (number "1" (effects (font (size 1.27 1.27))))
-      )
-      (pin passive line (at 3.81 0 180) (length 2.54)
-        (name "A" (effects (font (size 1.27 1.27))))
-        (number "2" (effects (font (size 1.27 1.27))))
-      )
-    )
-  )
 )
-- 
GitLab