[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: [RFC/PATCH] Nicer names for default component libs



Hi folks,

The attached patch uses some functionality I added a few months ago to change 
the names presented in the component dialog box to something less offensively 
cryptic.

Comments appreciated.

                          Peter


-- 
Peter Brett

Electronic Systems Engineer
Integral Informatics Ltd
From 09ab97a2744cd3d16d1d02d9a8805038f170fd8c Mon Sep 17 00:00:00 2001
From: Peter TB Brett <peter@xxxxxxxxxxxxx>
Date: Wed, 28 Nov 2007 21:16:46 +0000
Subject: [PATCH] symbols: Nicer names for default libraries

---
 symbols/geda-clib.scm |   91 +++++++++++++++++++++++++-----------------------
 1 files changed, 47 insertions(+), 44 deletions(-)

diff --git a/symbols/geda-clib.scm b/symbols/geda-clib.scm
index e3b33a5..c4f0460 100644
--- a/symbols/geda-clib.scm
+++ b/symbols/geda-clib.scm
@@ -10,53 +10,56 @@
 ;       libraries.  
 (for-each
  (lambda (dir)
-   (component-library (build-path geda-sym-path dir)))
+   (if (list? dir)
+       (component-library (build-path geda-sym-path (car dir)) (cadr dir))
+       (component-library (build-path geda-sym-path dir)))
+   )
 '(
-  "74"
-  "4000"
-  "IEC417"
-  "amphenol"
-  "analog"
-  "linear"
-  "altera"
-  "lattice"
-  "xilinx"
-  "idt"
-  "misc"
-  "power"
-  "philips"
-  "minicircuits"
-  "st"
-  "apex"
-  "allegro"
-  "irf"
-  "transistor"
-  "io"
-  "titleblock"
-  "memory"
-  "micro"
-  "maxim"
-  "national"
-  "radio"
-  "tube"
-  "connector"
-  "switch"
-  "switcap"
+  ("74" "74-series logic")
+  ("4000" "4000-series logic")
+  ("IEC417" "IEC 60417")
+  ("amphenol" "Amphenol connectors")
+  ("analog" "Generic basic devices")
+  ("linear" "Linear Technology")
+  ("altera" "Altera")
+  ("lattice" "Lattice Semiconductor")
+  ("xilinx" "Xilinx")
+  ("idt" "IDT")
+  ("misc" "Misc. unsorted symbols")
+  ("power" "Generic power rails")
+  ("philips" "Philips Electronics")
+  ("minicircuits" "Mini-Circuits")
+  ("st" "ST Microelectronics")
+  ("apex" "Apex Microtechnology")
+  ("allegro" "Allegro Microsystems")
+  ("irf" "International Rectifier")
+  ("transistor" "Misc. transistors")
+  ("io" "Generic input/output")
+  ("titleblock" "Generic titleblocks")
+  ("memory" "Misc. memory devices")
+  ("micro" "Misc. microcontrollers")
+  ("maxim" "Maxim/Dallas")
+  ("national" "National Semiconductor")
+  ("radio" "Generic radio elements")
+  ("tube" "Misc. vacuum tubes")
+  ("connector" "Generic connectors")
+  ("switch" "Generic switches")
+  ("switcap" "SWITCAP simulation elements")
   ;"verilog"
   ;"vhdl"
-  "spice"
-  "rf"
-  "bus"
-  "pla"
-  "ecl"
-  "dec"
-  "supervisor"
-  "opto"
-  "diode"
-  "relay"
-  "cascade"
-  "asic"
-  "asicpads"
+  ("spice" "SPICE simulation elements")
+  ("rf" "Misc. RF elements")
+  ("bus" "PC104 bus")
+  ("pla" "Misc. programmable logic arrays")
+  ("ecl" "ECL logic")
+  ("dec" "DEC")
+  ("supervisor" "Misc. microprocessor supervisors")
+  ("opto" "Misc. optocouplers")
+  ("diode" "Generic diodes")
+  ("relay" "Misc. relays")
+  ("cascade" "Cascade simulation elements")
+  ("asic" "ASIC basic devices")
+  ("asicpads" "ASIC contact pads")
   ;"gnetman"
   "local"
   ))
-- 
1.5.3.3

Attachment: signature.asc
Description: This is a digitally signed message part.


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user