emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: emacs-orgmode@gnu.org
Subject: Re: [feature] Allow "," decimal point in table cells
Date: Wed, 20 Jul 2022 07:56:26 +0200	[thread overview]
Message-ID: <87edyg499x.fsf@mat.ucm.es> (raw)
In-Reply-To: 87fsiw4gke.fsf@localhost

[-- Attachment #1: Type: text/plain, Size: 1894 bytes --]

>>> "IR" == Ihor Radchenko <yantar92@gmail.com> writes:

> Uwe Brauer <oub@mat.ucm.es> writes:
>>> Uwe Brauer <oub@mat.ucm.es> 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.

Can you give me an example?

> 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

Not sure I understand this 

| 3,5 | 4,2 | 7 | (7, 7) | (7, 7) |
|     |     |   |        |        |
#+TBLFM: $3=$1+$2;N::$4=$1+$2;E::$5=$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?

> (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?

I think others should speak up, all I can say

    1. «,» is the standard in German speaking countries, while

    2. «'» is the standard in Spanish speaking countries 

For the separator.

In my use case  I need to generate  ods documents that use the
German language setting, org-mode however relying on calc needs the
notation that the «.» Separate digits while in German it is the «,».

I solve this issue by exporting my org-table to csv, set scalc to German
as a default language, and then import the csv file, using American
English.


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

  reply	other threads:[~2022-07-20  5:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-18  6:57 org-table with different conventions: decimals Uwe Brauer
2022-07-18 23:02 ` Juan Manuel Macías
2022-07-19  6:20   ` [export to CSV] (was: org-table with different conventions: decimals) Uwe Brauer
2022-07-19 11:07     ` [export to CSV] Juan Manuel Macías
2022-07-19 13:31 ` org-table with different conventions: decimals Ihor Radchenko
2022-07-19 14:39   ` Uwe Brauer
2022-07-20  3:18     ` [feature] Allow "," decimal point in table cells (was: org-table with different conventions: decimals) Ihor Radchenko
2022-07-20  5:56       ` Uwe Brauer [this message]
2022-07-20 13:19         ` [feature] Allow "," decimal point in table cells Ihor Radchenko
2022-07-20 14:00       ` [feature] Allow "," decimal point in table cells (was: org-table with different conventions: decimals) Christian Moe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87edyg499x.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).