Issue 87171 - Create Names doesn't work properly for 'rho'
Summary: Create Names doesn't work properly for 'rho'
Status: CLOSED FIXED
Alias: None
Product: Calc
Classification: Application
Component: ui (show other issues)
Version: OOo 2.4 RC5
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: oc
QA Contact: issues@sc
URL: https://bugs.edge.launchpad.net/ubunt...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-18 04:46 UTC by ccheney
Modified: 2017-05-20 11:41 UTC (History)
1 user (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
patch 1. (1.96 KB, text/plain)
2009-04-16 03:37 UTC, lvyue
no flags Details
patch 2. (2.74 KB, text/plain)
2009-04-24 06:12 UTC, lvyue
no flags Details
testcase, some names, select data and menu Insert->Names->Create (7.83 KB, application/vnd.oasis.opendocument.spreadsheet)
2009-09-09 15:23 UTC, ooo
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description ccheney 2008-03-18 04:46:30 UTC
1. create new spreadsheet.
2. In A1, enter 'rho'.
3. In B1, enter 1
4. Select A1 and B1 then Insert->Names->Create - Left column
5. Somewhere else in the spreadsheet enter '=rho'
6. Notice it shows 0 instead of 1
7. Look in Insert->Names->Define and notice it added '_rho' instead of 'rho'

If this is done for some other text string eg 'bar' in Define it shows up as
'bar' not as '_bar'.
Comment 1 jdpipe 2008-08-18 07:59:23 UTC
ping?
Comment 2 amy2008 2008-09-02 08:26:13 UTC
I can reproduce it, but don't know it is a bug or some special operations 
to 'rho'. 
So, Would you like telling me what it is?

Li Meiying
Comment 3 Joost Andrae 2008-09-02 09:06:26 UTC
how about to check if =sum(rho) works ? Remember, you define a named range
Comment 4 frank 2008-09-02 09:41:34 UTC
reopened as it is confirmed.

Daniel, please have a look at this one.

Frank
Comment 5 frank 2008-09-02 09:42:04 UTC
re-opened
Comment 6 frank 2008-09-02 09:42:40 UTC
and new
Comment 7 daniel.rentz 2008-09-02 10:30:06 UTC
DR->ER: in ScRangeData::MakeValidName(), the string 'rho' is considered a valid
cell address using address convention CONV_XL_R1C1 which is not the case.
Comment 8 ooo 2009-01-21 23:33:45 UTC
Won't make it for 3.1, targeting to 3.2
Comment 9 lvyue 2009-04-10 10:00:12 UTC
to Eike,
I find some problems.
besides the string starts with 'r', 'R', 'c' or 'C',
those string contains valid address will also be converted.
for example, if I enter 'a1a' or 'a1:a2a' in A1,
enter 1 in B1, and repeat the operations in the comment.
the name is converted into '_a1a' or '_a1_a2a'.
they are parsed as valid when the convertion is CONV_XL_A1.

and there are conflicts in it.
if I input name directly in "Define Names" dialog,
then 'a1:a2a' is valid, and won't be converted.

another thing is that, in Excel, ':' is a invalid symbol,
our OOo don't treat ':' that way, should we be the same?
Comment 10 lvyue 2009-04-13 02:41:30 UTC
I'm sorry about my last comment,
that is the phenomenon in old version, please ignore that comment.
Comment 11 lvyue 2009-04-16 03:37:28 UTC
Created attachment 61593 [details]
patch 1.
Comment 12 lvyue 2009-04-16 03:47:16 UTC
another question is that
in ScRangeData::IsNameValid(),
why it check the name only with formula::FormulaGrammar::CONV_OOO?
that means if we direct input a name "r1c1", it will be valid.
I feel it confusing, do we need to change that?
Comment 13 ooo 2009-04-22 09:27:53 UTC
As discussed on IRC: IsNameValid() IMHO should check all known address conventions.
Comment 14 lvyue 2009-04-24 06:12:59 UTC
Created attachment 61768 [details]
patch 2.
Comment 15 ooo 2009-09-09 10:17:29 UTC
In cws dr69:

revision 275976
sc/inc/compiler.hxx
sc/source/core/tool/address.cxx
sc/source/core/tool/compiler.cxx
sc/source/core/tool/rangenam.cxx
sc/source/filter/ftools/ftools.cxx

Reworked this quite a bit, the ScCompiler::IsWordChar() method allowed way too
many characters, introduced new SC_COMPILER_C_CHAR_NAME and SC_COMPILER_C_NAME
character flags, plus new ScCompiler::IsCharFlagAllConventions() method.
Comment 16 ooo 2009-09-09 15:23:50 UTC
Created attachment 64644 [details]
testcase, some names, select data and menu Insert->Names->Create
Comment 17 ooo 2009-09-09 15:28:10 UTC
Reassigning to QA for verification.

Note: we do currently have a problem with names such as Sheet1.xx that involve a
valid sheet name followed by '.' separator but otherwise are not a valid
reference. When using them in a formula expression they yield a #REF! error.
This is nothing new though and was the case already before.
Comment 18 oc 2009-09-11 13:55:28 UTC
verified in internal build cws_dr69