From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] add web/mime support Date: Thu, 17 Jan 2013 16:17:01 +0800 Organization: HFG Message-ID: <1358410621.2720.8.camel@Renee-desktop.suse> References: <87vcaxiex3.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1358410635 23310 80.91.229.3 (17 Jan 2013 08:17:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jan 2013 08:17:15 +0000 (UTC) Cc: guile-devel To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jan 17 09:17:34 2013 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TvkfD-0005j2-6b for guile-devel@m.gmane.org; Thu, 17 Jan 2013 09:17:31 +0100 Original-Received: from localhost ([::1]:32920 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvkew-0004ds-L7 for guile-devel@m.gmane.org; Thu, 17 Jan 2013 03:17:14 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvkeu-0004dU-Mz for guile-devel@gnu.org; Thu, 17 Jan 2013 03:17:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tvket-0003Lw-Dp for guile-devel@gnu.org; Thu, 17 Jan 2013 03:17:12 -0500 Original-Received: from mail-da0-f49.google.com ([209.85.210.49]:43529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvket-0003Lq-5r for guile-devel@gnu.org; Thu, 17 Jan 2013 03:17:11 -0500 Original-Received: by mail-da0-f49.google.com with SMTP id v40so992614dad.22 for ; Thu, 17 Jan 2013 00:17:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:subject:from:to:cc:date:in-reply-to :references:organization:content-type:x-mailer:mime-version :content-transfer-encoding; bh=1nfrXbBVQf5Z9n8uT4kAHooOWFV3aDJNhioilsggtik=; b=AOBUzw+fZD/ZRTxFYif61eiPGnuZJGRfzKse21rUut3EozkVnnn18OMEiCCFl17XX4 SnCPoKAXGGBCQZfHmV+6QebUd0Gbu+uXsmOgnd4e5YHeBkDKe1B5qgO90GEUdkGbIOhN wivjKtQPet0Qp9cIqvgSyznV6Kr+YnSyrw9rXtoLrCM5qUZYYq3/svayd5bEfbOzryfc LqS/FAE9U9Qwp2eBtJk9irNpevNT+WeI2RDIOwql3gnnYsbEVkMJb3KSN4qYuOpWUYB7 3MG6c2Ny33Qr2LEs10fS8GMwhyLKk045T8lUgOt3L/WUZfvuJM/JPS54SNj8oydODNMQ H1gg== X-Received: by 10.68.125.201 with SMTP id ms9mr11129600pbb.78.1358410630466; Thu, 17 Jan 2013 00:17:10 -0800 (PST) Original-Received: from [147.2.147.112] ([61.14.130.226]) by mx.google.com with ESMTPS id o6sm884874paw.37.2013.01.17.00.17.06 (version=SSLv3 cipher=RC4-SHA bits=128/128); Thu, 17 Jan 2013 00:17:08 -0800 (PST) In-Reply-To: <87vcaxiex3.fsf@pobox.com> X-Mailer: Evolution 3.4.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.210.49 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:15461 Archived-At: On Wed, 2013-01-16 at 11:46 +0100, Andy Wingo wrote: > Hi, > > On Thu 23 Feb 2012 15:53, Nala Ginrut writes: > > > There's no mime support in Guile module, so I modified the mime code of > > my project Ragnarok and format a patch. > > > > It's easy to use: > > (use-modules (web mime)) > > (define mime (make )) > > (mime:guess mime 'pdf) > > ==> application/pdf > > (mime:guess mime 'php) > > ==> application/x-httpd-php > > Just a note to say that I liked this module, and that it would be a > great thing to have in the guildhall. > > It would be nice to use > http://freedesktop.org/wiki/Specifications/shared-mime-info-spec on free > software systems. > Are you suggesting use mime-info of freedesktop? I think we can write a parser for that XML files, but it makes Guile depends on desktop. Did I miss something? > Cheers, > > Andy