X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Date: Thu, 30 Jun 2016 20:47:34 +0200 (CEST) From: Roland Lutz To: "Atommann (atommann AT gmail DOT com) [via geda-user AT delorie DOT com]" Subject: Re: [geda-user] Image search mode for gedasymbols site In-Reply-To: Message-ID: References: User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 30 Jun 2016, gedau AT igor2 DOT repo DOT hu wrote: > On Thu, 30 Jun 2016, Atommann (atommann AT gmail DOT com) [via > geda-user AT delorie DOT com] wrote: >> How about if we have a footprint/symbol search system which works like >> the google image search mode? > > Are you going to implement that? I've been working on that a while ago. The problem is how to process symbol or schematic files best in order to present them on the result page. Processing can either be done server-side using a modified version of gEDA which outputs one or several image files (this is how it is done in the current version of gedasymbols). Or, the files can be stored in an XML-based format which can be rendered in a variety of ways in the browser using XSL transformations. The advantage of this approach is that information isn't duplicated; both metadata and graphical representation are stored in a single file which is equivalent to and can be transformed back into the original .sym/.fp file. Conversion to the web format could either be done manually by the uploader using a special command or automatically by the server. The almost-finished code for the symbol part has been sitting around in a branch for quite a while; maybe I'll take this as a motivation to finally merge it. For footprints, there is a bit more work to be done as the PCB file reading and writing code couldn't easily be used outside of the main PCB application last time I looked. Maybe Igor2 has worked on this while modularizing the PCB code, though.