https://bugs.documentfoundation.org/show_bug.cgi?id=112279

--- Comment #12 from ady <adylo811...@gmail.com> ---
(In reply to BogdanB from comment #11)
> How do you think about this?
> 
> NC_("STR_ERR_NAME_INVALID", "Invalid name. Start with a letter or an
> underscore, and use only letters, numbers and underscore.")

The problem is that the name cannot start with a number nor be equivalent to an
address (in any form) either, and the message has to be short.

Starting always with an underscore would solve these naming conflicts, but Calc
should not impose that.

While not completely imposing the underscore as first character, the short
message could still hint such naming method as a simple solution for those
cases that trigger some naming conflict.

I do not know whether the possible conflict with cell address (A1 or R1C1 or
R[1]C[1], although brackets are not allowed) is also expected to be handled by
the same message, or there is a separate one for that instead.


So, some possibilities I write here for discussion (attention to the order of
terms):


1. Use only underscores, digits and letters. Do not start with digit. Cell
address not allowed.

2. Use only underscores, digits and letters. Do not start with digit. Avoid
cell address.

3. Use only underscores, digits and letters. Do not start with digit.

4. Use only "_", digits and letters. Do not start with digit.

5. Use only "_", [1-9] and letters. Do not start with digit.

6. Use only "_", [1-9] and letters. Do not start with digit. Avoid cell
address.

7. Use only "_", [1-9] and letters. Do not start with digit. Cell address not
allowed.



The first alternative covers more and is more clear, but longer (92 chars).

The third alternative is shorter (66 chars), in case the conflict with cell
addresses is handled by a separate message – I don't know the answer to that.

Others are compromises in some way or another, with different lengths.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to