Bug 140729 - Cannot use digits in variable names
Summary: Cannot use digits in variable names
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: All All
: medium normal
Assignee: dante19031999
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2021-03-01 09:06 UTC by Kjell Edvard Medhaug
Modified: 2021-10-02 16:59 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
LibreOffice rendering of sample input (32.49 KB, application/pdf)
2021-03-01 09:06 UTC, Kjell Edvard Medhaug
Details
Apache OpenOffice Math rendering of sample input (46.80 KB, application/pdf)
2021-03-01 09:07 UTC, Kjell Edvard Medhaug
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kjell Edvard Medhaug 2021-03-01 09:06:23 UTC
Created attachment 170142 [details]
LibreOffice rendering of sample input

In Math, digits in variable names seem to have leading and trailing "implied separators". E.g. a variable named "r2d2" becomes "r 2 d 2" with italic letters and plain (no character emphasis/embellishment) digits.

This may be seen as a useability improvement in many cases. To me this "second guessing the users intent" is a regression, and typical of the reasons why I still prefer Apache OpenOffice in many cases. 

Sample input

c3po > r2d2 
newline
7of9 neq Agent355

Attached PDFs showing how sample input is rendered in LO and OO.
Comment 1 Kjell Edvard Medhaug 2021-03-01 09:07:46 UTC
Created attachment 170143 [details]
Apache OpenOffice Math rendering of sample input
Comment 2 Mike Kaganski 2021-03-01 09:31:42 UTC
Worked as expected in Version: 4.1.0.4
Build ID: 89ea49ddacd9aa532507cbf852f2bb22b1ace28

Problem reproducible in Version: 4.2.0.4
Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71

Although it could had been an intentional change, it is backward-incompatible and breaking existing data, so (tentatively) marking regression.
Comment 3 raal 2021-10-02 16:23:32 UTC
This seems to have begun at the below commit.
Adding Cc: to Frédéric Wang; Could you possibly take a look at this one?
Thanks

352223248b6d0c3198e3bd741e7a47b27e395aa4 is the first bad commit
commit 352223248b6d0c3198e3bd741e7a47b27e395aa4
Author: Matthew Francis <mjay.francis@gmail.com>
Date:   Sat Sep 5 18:36:17 2015 +0800

    source-hash-16a0d06f900027401716ddaba25e5c8998562b2d
    
    commit 16a0d06f900027401716ddaba25e5c8998562b2d
    Author:     Frédéric Wang <fred.wang@free.fr>
    AuthorDate: Mon Jun 24 23:14:42 2013 +0200
    Commit:     Fridrich Strba <fridrich@documentfoundation.org>
    CommitDate: Fri Jun 28 09:52:08 2013 +0000
    
        fdo#55853 - improve parsing of concatenated numbers and identifiers.