From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 45B42BBAF for ; Thu, 11 Mar 2010 20:00:54 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlsBALvMmEtDww+dkWdsb2JhbACOaoF1eYkeAQEBAQcNCgcTAx+IH6UCgWGFN4h4AQQEAYR2BIMX X-IronPort-AV: E=Sophos;i="4.49,622,1262559600"; d="scan'208";a="46370190" Received: from web111505.mail.gq1.yahoo.com ([67.195.15.157]) by mail3-smtp-sop.national.inria.fr with SMTP; 11 Mar 2010 20:00:53 +0100 Received: (qmail 62293 invoked by uid 60001); 11 Mar 2010 19:00:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1268334051; bh=a045fU96AzMGC/Mq8AhagdM9G1C5vl5Bhvl53Io1Xnk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=toUoDu/RgC40SA45QJvtC65xo2ydyQZBaZrPt4a+plNmkGYqJOdlk5b3pdvEryHEcYeMPe75FDyEIysd+m8bwI5FCB67bux6vTDq7kPHK/fUJvG7whtKQksAg1gSiLUjgO2s9s7B894xbHqKI1TMLUiSZBEJH6uQSPrzVg8jx2U= DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=zSho+ZbBO1dUpfIN7aU2QSPDcKXSIDGamqs+KYZ51xPXcik7mPwFzv30aLzmDzd6KhGNSZDj2vIxoXncT2ASqRsDpyt/yM/vW5ALLpzpwiEp4SktuKvWoMPeL60XLWGYw47LahyzE6scCg2/pQV3uWP6OeJUrohMpYC2W8DdJ78=; Message-ID: <270464.41732.qm@web111505.mail.gq1.yahoo.com> X-YMail-OSG: VcCbEwkVM1mWRk_65RkbmZrfqVxumRB5qd4PcqWVZ2PC5NS 8KS8zBxPN473G3y.ddMWkvjtYSQUhek9gpwoS5jqG4nNA.Ww.Uns6NEx5EIB jcZPF3fbpGKKcxxbtsD4KyXmhLA4tPzZtegAWivMN3w3YxibeyEdsJknAn.3 HeOsaIqxgFh7a8pfZfIauTSU4euoa4XVLuPIqu7axKhBkUVjdWj1vyv4HgXQ uyf7d16kjIo3cOruWRspknN4w5EAN6q4dWEM6.KGKAfpJjZgAx1TkuKN6Jcs eGUvLt7Fu4ErR68nZ.j6RCQ79wYFm41T9VuLINhMT4GD3Dfj_YDsi7JzErP. 9KNlEQPH9ALZknuCB6WldMs7Jj.ZXsbhMi0cY3GuE2WqpHc0DYGzc_X4shvg EmpbjdPrhpyQ- Received: from [213.205.71.57] by web111505.mail.gq1.yahoo.com via HTTP; Thu, 11 Mar 2010 11:00:51 PST X-Mailer: YahooMailClassic/9.2.12 YahooMailWebService/0.8.100.260964 Date: Thu, 11 Mar 2010 11:00:51 -0800 (PST) From: Dario Teixeira Subject: Re: [Caml-list] [ANN] CCSS 1.0 To: =?iso-8859-1?Q?Daniel_B=FCnzli?= Cc: caml-list@yquem.inria.fr In-Reply-To: <91a3da521003110654x37d8a551u948c39889b64fdba@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; foo:01 foo:01 1.0:98 height:98 photographic:98 scm:98 caml-list:01 operand:01 arithmetic:01 precisely:01 font:97 implemented:02 rarely:02 output:02 objects:02 Hi,=0A=0A> The problem is that different kind of objects naturally use diff= erent=0A> kind of units. A font size or line height for example is usually= =0A> expressed in pts and a standard paper or photographic print size will= =0A> be in cms (or inches).=0A=0ASure, and nothing stops you from using tho= se different units in different=0Acontexts. CCSS only constrains you if yo= u try doing *arithmetic* with=0Athose units, which I posit should rarely be= an issue, precisely because=0Athey live in different contexts.=0A=0ABut an= yway, I've implemented unit conversion, which you can find in SVN [1].=0AIn= the next release this feature may be activated at user discretion.=0A=0AUn= its are divided into four categories, and units within the same category=0A= may be mixed. The result gets the same unit as the first operand. The=0Ac= ategories are as follows:=0A=0A length: mm, cm, in, pt, pc=0A angle: d= eg, grad, rad=0A time: ms, s=0Afrequency: hz, khz=0A=0AIn the following= example, the output for all properties will be "2in":=0A=0Ah1=0A {=0A fo= o1: 1in + 1in;=0A foo2: 1in + 2.54cm;=0A foo3: 1in + 25.4mm;=0A foo4: 1i= n + 72pt;=0A foo5: 1in + 6pc;=0A }=0A=0A=0ABest regards,=0ADario Teixeira= =0A=0A[1] http://forge.ocamlcore.org/scm/viewvc.php/?root=3Dccss=0A=0A=0A= =0A