Bug 114142

Summary: Decimal tab stop should allow for any defined character to be interpreted as decimal
Product: LibreOffice Reporter: w_s_how
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: enhancement CC: dgp-mail
Priority: medium    
Version: 5.4.3.2 release   
Hardware: x86-64 (AMD64)   
OS: macOS (All)   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=127951
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 107642    
Attachments: Example of faulty decimal tabs

Description w_s_how 2017-11-29 15:33:27 UTC
Description:
Decimal tab seems to align the right ends of first numerical values encountered rather than to a set character, such as "=". E.g. ("T" representing decimal tab),

...:.....T.....:.....:.....:.....:.....:
    $5,890 + 9% TAX = $6,420.10
      $200 + $500 + $300 = $1,000.00


Steps to Reproduce:
1. Insert tab in ruler.
2. Double click on it and in Paragraph->Tabs dialogue change to "Decimal" and instead of using the default ".", change it to "=".
3. Type numbers and equal signs to see how it behaves.

Actual Results:  
...:.....:.....:.....T.....:.....:.....:.....:
                $5,890 + 9% TAX = $6,420.10
                  $200 + $500 + $300 = $1,000.00


Expected Results:
...:.....:.....:.....T.....:.....:.....:.....:
     $5,890 + 9% TAX = $6,420.10
  $200 + $500 + $300 = $1,000.00



Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0.1 Safari/604.3.5
Comment 1 w_s_how 2017-11-29 15:35:46 UTC
Created attachment 138072 [details]
Example of faulty decimal tabs
Comment 2 Dieter 2017-11-29 17:03:07 UTC
I tried it in different ways. I think the setting "decimal" is only for numbers, so you only can choose between "." and ",". You also can use "=", but it is treated as a decimal sign, so you can use 46.2=738.7, but that makes no sence. So my proposal is to add a possiblity to choose between "," and "." and to skip the general "character".
So if you agree I would change this to enhancement.
Comment 3 Alex Thurgood 2017-11-30 08:51:24 UTC
My understanding is that the option "decimal" is intended only to align around the decimal point, whatever that character might be in the language of use. The possibility to change the character to be interpreted should thus only extend to characters used to define a decimal point. This is not the case with the "equals" sign.

In addition, the alignment functions only for number strings around the character used to represent the decimal. This is the designed functionality.

What you are asking for is a request for enhancement. Marking as such.