Bug 72039 - TABLE: Differences between English and German Number Recognition
Summary: TABLE: Differences between English and German Number Recognition
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks: User-Locale Writer-Tables-Number-Recognition
  Show dependency treegraph
 
Reported: 2013-11-26 14:24 UTC by Harald Koester
Modified: 2023-01-16 14:38 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Updated example file (14.73 KB, application/vnd.oasis.opendocument.text)
2018-11-08 11:07 UTC, Harald Koester
Details
Test document updated with results of LO 7.4 on Ubuntu (30.55 KB, application/vnd.oasis.opendocument.text)
2023-01-12 17:24 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Koester 2013-11-26 14:24:31 UTC
Problem description: 

The number recognition in tables works different in English and German. In attachment 70935 [details] are some examples. The differences are marked in red. Expected: Equal number recognition in German and English. 
Hint: In English a dot is used as decimal mark and a comma is used as thousands separator. In German it 's exactly the other way round. 

I described this problem already in bug 48758. Hence in that bug several problems are described, I split those problems into different bug reports. This report is one of them.
              
Operating System: Windows 7
Version: 4.1.3.2 release
Comment 1 sophie 2013-12-06 16:30:22 UTC
Confirmed using your document. I don't reproduce with French, it produces the same as in English.
Version: 4.1.3.2
Build ID: 70feb7d99726f064edab4605a8ab840c50ec57a Ubuntu 13.10. - Set to New, change plateform to all - Sophie
Comment 2 QA Administrators 2015-04-19 03:23:16 UTC Comment hidden (obsolete)
Comment 3 Harald Koester 2015-05-09 17:15:56 UTC
Bug already existed in version 3.3.0 and still exists in version 4.4.3.2 with Win7.
Comment 4 QA Administrators 2016-09-20 09:42:29 UTC Comment hidden (obsolete)
Comment 5 Harald Koester 2016-09-30 09:23:07 UTC
Bug still exists in version 5.2.1 with Win7.
Comment 6 QA Administrators 2017-10-23 14:00:25 UTC Comment hidden (obsolete)
Comment 7 Harald Koester 2017-11-03 10:38:03 UTC
Bug still exists in version 5.4.2. 

In German the behaviour is a bit different now: There is a special space character between the number and the percent sign.
Comment 8 QA Administrators 2018-11-04 03:58:33 UTC Comment hidden (obsolete)
Comment 9 Harald Koester 2018-11-08 11:07:14 UTC
Created attachment 146429 [details]
Updated example file

Bug still exists in version 6.1.3 (64 bit, Win 10).
Comment 10 QA Administrators 2019-11-09 03:53:22 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2021-11-09 04:38:26 UTC Comment hidden (obsolete)
Comment 12 Stéphane Guillou (stragu) 2023-01-12 17:24:26 UTC Comment hidden (obsolete)
Comment 13 Stéphane Guillou (stragu) 2023-01-16 14:38:58 UTC
(In reply to Stéphane Guillou (stragu) from comment #12)
> Created attachment 184622 [details]
> Test document updated with results of LO 7.4 on Ubuntu
> 
> Still the case, in 7.4.4.2 and beyond:

I take that back. Testing again from a new document, trying to reproduce Harald's example, I get the same percent formatting for both English (USA) and German (Germany).

Steps:
1. Open Writer
2. Tools > Options > Language Settings > Formats > Local setting: set to English (USA) (and make sure the decimal separator is the same as locale setting)
3. Tools > Options > LibreOffice Writer > Table > Input in Tables: turn "Number recognition" on (and keep "Number format recognition" off)
4. Insert a table with 11 rows and 2 columns
5. Input these values in a column:

0.1
0.12
0.123
0.1234
1.1
1.12
1.123
1.1234
0,1
0,123
0,1234

Most number should be recognised automatically, and 2 decimal places displayed only. "0,123" is recognised as 123, because of the thousands separator.

6. Copy whole column into second column
7. Select the second column, got to Table > Number format. It should be "Text" by default. Change it to Percent, using the default -12.95%

Result:

10.00%
12.00%
12.30%
12.34%
110.00%
112.00%
112.30%
112.34%
0,1
12300.00%
0,1234

Repeat the whole thing for the German (Germany) locale, in a new table, with the following number sequence so the results are ordered in the same way as English:

0,1
0,12
0,123
0,1234
1,1
1,12
1,123
1,1234
0.1
0.123
0.1234

Result is the same:

10,00 %
12,00 %
12,30 %
12,34 %
110,00 %
112,00 %
112,30 %
112,34 %
0.1
12300,00 %
0.1234


Version:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d04c197b436094844abfa5fb7c12e095165d2bca
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: de-DE (en_AU.UTF-8); UI: en-US
Calc: threaded

Resolved as "Works for me", but please let me know if I am missing something in my steps.