From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79783 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: drops module (draft) Date: Thu, 6 Dec 2012 19:18:27 +0100 Message-ID: <623B1771-3294-4217-BD86-7313F68374A8@gmail.com> References: <50C0D0F4.3020806@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1354817918 3845 80.91.229.3 (6 Dec 2012 18:18:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Dec 2012 18:18:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Dec 06 19:18:51 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tgg27-00086g-Cp for gctc-ntg-context-518@m.gmane.org; Thu, 06 Dec 2012 19:18:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 176FC1029D; Thu, 6 Dec 2012 19:18:39 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id K8-C3sscfyFM; Thu, 6 Dec 2012 19:18:36 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 9243010237; Thu, 6 Dec 2012 19:18:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0CC9410237 for ; Thu, 6 Dec 2012 19:18:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 8uNRLhdl-JL3 for ; Thu, 6 Dec 2012 19:18:33 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 48BBA10233 for ; Thu, 6 Dec 2012 19:18:33 +0100 (CET) Original-Received: from mail-bk0-f41.google.com (mail-bk0-f41.google.com [209.85.214.41]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qB6IIW5j026734 for ; Thu, 6 Dec 2012 19:18:32 +0100 Original-Received: by mail-bk0-f41.google.com with SMTP id jg9so3391729bkc.14 for ; Thu, 06 Dec 2012 10:18:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=I4rfNQ3oG6XDeuKhNuRnuePg2t13SW1Z0V8Kc51pXM4=; b=cHzaRpU1Bz4mrgLf/Bn2evu/GhdEAyDQxoPjIAb4FlVAMHWL7y0+8/+7cyZdo4Wd+/ +uhtbKhnT9pTTJQXx1tebfiQGaliLkRBOuR11OApxQH8J+90Ii9XWoLOKp154YYCNZTR lh/JyGZcpbCDhLupOeER0sXYRB2rYmaFAEcPjWCJ3fCHz1+n9Sxd1EVVMg94Ic4E2QMD JJq7Hl3A0MWXCqUfxHEB3AgNRXwRVOIlLEsSARjYQakEzaWv63DzgXzb0W7FCr+C/vnF 9FszRaQrQ/kAlGuvVThR9AhNmvsCVH9nW/4vD82xkd0RLBXs9Eev1HdGF92GVKcyXZR2 ArfA== Original-Received: by 10.204.153.27 with SMTP id i27mr977549bkw.116.1354817911865; Thu, 06 Dec 2012 10:18:31 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4d07311d.pool.mediaWays.net. [77.7.49.29]) by mx.google.com with ESMTPS id 18sm7315129bkv.0.2012.12.06.10.18.30 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 06 Dec 2012 10:18:31 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07IwiiwyJ - e4759263d313 - 20121206 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:79783 Archived-At: Am 06.12.2012 um 19:05 schrieb Aditya Mahajan : > On Thu, 6 Dec 2012, Peter Rolf wrote: > = >> Hi all, >> = >> a first version of the 'drops'-module (MkIV only) is available at >> = >> https://www.wuala.com/indiego/public/ConTeXt/drops/?key=3DcaiCGLasLFmJ >> = >> = >> Taken from the included documentation.. >> [..] >> 'drops' is a small extension for ConTeXt, that allows you to add drop >> shadows to rectangular regions (so called boxshadows). A working >> installation of ImageMagick (IM) is required to create the shadow >> graphics. The supported color spaces are CMYK, RGB and Gray, the file >> formats are limited to PNG and JPG. >> [..] >> Read the manual for detailed information. > = > Nice. The module would be cleaner with a MkIV rewrite and I would drop the option to accept each module parameter with \usemodule. I would also create a new namespace for the \setupdrops command because currently it uses the =93module=94 namespace. \def\dosetupdrops[#1]% {\iffirstargument\getparameters[\??module drops:][#1,{\c!setup=3D}]\else = % never parameter 'setup' \ctxlua{thirddata.drops.resetdrops()}\fi} % reset all parameters to thei= r default, when no argument is given Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________