From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cFLZMf1z12JECAAAbAwnHQ (envelope-from ) for ; Wed, 20 Jul 2022 05:18:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mFbzMf1z12KhsQAA9RJhRA (envelope-from ) for ; Wed, 20 Jul 2022 05:18:21 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 605BD8AC2 for ; Wed, 20 Jul 2022 05:18:21 +0200 (CEST) Received: from localhost ([::1]:43714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE0E8-00013k-26 for larch@yhetil.org; Tue, 19 Jul 2022 23:18:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE0Dk-00013Y-Gh for emacs-orgmode@gnu.org; Tue, 19 Jul 2022 23:17:56 -0400 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]:44017) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oE0Di-0006Ac-VO for emacs-orgmode@gnu.org; Tue, 19 Jul 2022 23:17:56 -0400 Received: by mail-pg1-x52c.google.com with SMTP id h132so15216659pgc.10 for ; Tue, 19 Jul 2022 20:17:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=GtYprPofiMa5kssCuCl2dpQaGLThmB1J+jt6feXyJoA=; b=GdByafLYxgHNiSVVIvLyQ1D8NC1294/ksWfyLXzIVOm5/OUg15mdNPYBrKdyKROl+8 lk42rm/G2KE3a0CkaJm15aTsmF20tp+eeaXOw4ZQ9sSOun8xy/XvSIl+ht0st2FKAaB3 uhrSZcIr1LQRg9Koh5S4CmlTNAqlofm0BkyXiR10j411kYROdO5tciJx9rpUElApsQxI WCS4QsUT2pUMUxGho3JgZyI1G5w+xC1CwRd5larAQN4klxaNOs28LboG6etZisAp+XA0 KvQLo+M8W3W3dhEJokpwxBbr5YELfmlpSzhRHcQfFlFb8d4ixFUFxk0KXwI4j+TBNx1A JGvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=GtYprPofiMa5kssCuCl2dpQaGLThmB1J+jt6feXyJoA=; b=L40KgD2qYhzJ690C9n5Ws4q3cPhead5eioAQSFjJ+RzVkj1lwe+zepTyKzoussPW/O WdEiA2SgXRUULoVAJScPwOZKeafR4FuC4/4eJIhIB74GC+7AGNMwRpN+ULXP+lxNWn1b Euqk06f1QxXXCEeE2ZMWc1c0JU1LJibp0EYMOUP4M9MqUFXqR95JDrPQQy7/tyFncnm+ L5Am09ZFnk2mFYbYpNS+YWFHhMXbCdBii/zi/aCWVHe7jn61MA9BUJ1FFHqY8c5gI3UC 0Eb/M+orHHHNh5xkGm4sKy57YKPA5WKgCzWz7QHOnW5cA6omh3zIkas9yPLpztbuAif8 x6Ow== X-Gm-Message-State: AJIora/5EseO99XSs5zWgqyvKB1KzD8dwyngUDO6TfzX5RzxJZBRWyJy 6tlRmLJtcMNc5L0jz2Vu4Q0= X-Google-Smtp-Source: AGRyM1sbB1/MWmiFJO+3J2IXXCed5v20K3ShYzITMRK2UkqProHaxr81wwmnVYJznnWSIV9ESi92wg== X-Received: by 2002:a63:86c8:0:b0:415:366c:f287 with SMTP id x191-20020a6386c8000000b00415366cf287mr31554244pgd.309.1658287072257; Tue, 19 Jul 2022 20:17:52 -0700 (PDT) Received: from localhost ([115.154.175.57]) by smtp.gmail.com with ESMTPSA id y15-20020a17090322cf00b0015e8d4eb231sm12510979plg.123.2022.07.19.20.17.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 20:17:51 -0700 (PDT) From: Ihor Radchenko To: Uwe Brauer Cc: emacs-orgmode@gnu.org Subject: [feature] Allow "," decimal point in table cells (was: org-table with different conventions: decimals) In-Reply-To: <87fsix6uaq.fsf@mat.ucm.es> References: <87zgh6gb78.fsf@mat.ucm.es> <87y1wp44bk.fsf@localhost> <87fsix6uaq.fsf@mat.ucm.es> Date: Wed, 20 Jul 2022 11:18:57 +0800 Message-ID: <87fsiw4gke.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::52c; envelope-from=yantar92@gmail.com; helo=mail-pg1-x52c.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658287101; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=GtYprPofiMa5kssCuCl2dpQaGLThmB1J+jt6feXyJoA=; b=Ln0xJWAL/Tqb8PLEp9+GP+s/or4ZZeU1ZJRx1cSWEElhe0z7lfJTJaYUUtHsUnzbyiZN+O Yyt7vfPuNpdw2YQCOa/BqDQo8eXQnDjzwgIvBTfa7SY0WZzdXk3tir+gL0isbzthbYNqtR ngSi8K4YRLmGdDLcOaqqb4cDytK7/c41uefZl41NUK8UuDO97mfWClQXWoZuJ1ZuNdDpSy /Z3Pc+/a5nR2OTLUi3ESFuVogacgsWvZxOrzXQ7n5Hybc8KgwV0XsZkwbSNSsbR8Rr2sfs jNhGbEb/QHkUPkVqSs1OHBGD33JXAPOEl5q0yfpQER0LUe+ix51a+csRBpeQ/w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658287101; a=rsa-sha256; cv=none; b=NJOlHeXSfVBSN2lf8rnbhdEy2ueaw1ynK5rDirxJg9pu+R+MXIxM0j72TH/lm4BhgQvidW Tgb7Oe1fOtmp0TqD/X8Q9W8I3t3qCIcTQh2U3gtiXA7e4i8kqx23sUL1DgPlVGwcUPKF83 UFSihVeMYDbgaRwe0c/e6y0sozxnKzVYsgXtGutEmrnYVdTHH5hoBZkD2WdszZCOISK7+X Fagxq/N66gB2U16FfuaTQP4XePI+kZVrHl6eFsuSYPaV+JEa5Eb4u/+UAswBKmHIEyfdab YjnAQQTmZQ8gvtuau6fzamAkKe1S3199mqosRRXEQPNORSLlXNx8PYCjMu3sSQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GdByafLY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.44 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=GdByafLY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 605BD8AC2 X-Spam-Score: -3.44 X-Migadu-Scanner: scn1.migadu.com X-TUID: 6TKBKL2gX6rn Uwe Brauer writes: >> Uwe Brauer writes: > >> Org tables use Emacs' calc under the hood by default. >> AFAIK, calc is unable to use "," as decimal point because it is reserved >> as a vector separator. Which is why you got the vector addition in your >> example. > > Thanks. I was afraid that the issue was with calc not with org-mode. Note that you can instead use Elisp formulas. See 3.5.3 Emacs Lisp forms as formulas. It is more flexible. Alternatively, we may implement the comma separators as a built-in feature. Org table formulas already support notations like | 3,5 | 4,2 | 7 | #+TBLFM: $3=$1+$2;N or #+TBLFM: $3=$1+$2;E #+TBLFM: $3=$1+$2;L (see 3.5.2 Formula syntax for Calc) we may as well implement something like ";Nc" that will interpret cells as numbers with "," as decimal point separator. Is there such a demand? Best, Ihor