Bug 147050 - [FILEOPEN] NUMBERS table incorrect number formats
Summary: [FILEOPEN] NUMBERS table incorrect number formats
Status: NEW
Alias: None
Product: Document Liberation Project
Classification: Unclassified
Component: libetonyek (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Apple-iWork
  Show dependency treegraph
 
Reported: 2022-01-29 05:42 UTC by SheetJS
Modified: 2024-06-05 03:20 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
sample (235.74 KB, application/zip)
2022-01-29 05:44 UTC, SheetJS
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SheetJS 2022-01-29 05:42:58 UTC
Description:
The attached file was generated by open the "Charting Basics" template in Numbers 11.2 and saving without making changes.  When opening with the current release build (7.2.5.2), a number of formats are incorrect:

Table "Monthly Sales by Region" (original table in worksheet "Interactive Chart") should have months as column labels, but LO shows raw date codes.  A similar issue affects "Comparison of Units Sold by Year" (column headers should be year) 

Table "Monthly Sales by Region" (original table in worksheet "Interactive Chart") body cells (B2:E5) are formatted as number in Numbers, but LO shows currency.  This issue also affects "Comparison of Units Sold by Year" and "Average Rainfall"

Table "Average Rainfall" (original table in worksheet "2-Axis Chart") column B is formatted as Number with 2 decimal places, but LO shows integers.

Steps to Reproduce:
Open Attached File.

Actual Results:
See Description

Expected Results:
See Description


Reproducible: Always


User Profile Reset: Yes



Additional Info:
See Description
Comment 1 SheetJS 2022-01-29 05:44:12 UTC
Created attachment 177892 [details]
sample

File was generated by opening Numbers 11.2 and creating a new document from the template Basic > Charting Basics
Comment 2 raal 2022-01-29 12:11:29 UTC
I doesn't see any data on the sheet "Interactive Chart", only one text box.

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 2f4f4cbeb8e50081d607b86b0475b93971c40ab8
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: tr-TR (cs_CZ.UTF-8); UI: en-US
Calc: threaded Jumbo
Comment 3 SheetJS 2022-01-29 18:27:16 UTC
A "Sheet" in Numbers can contain multiple objects, including "Tables" and charts and text boxes.  LibreOffice projects each supported object into its own "worksheet".  If a table has a title, the generated worksheet uses the title as the worksheet name.  That decision loosely "makes sense" given that LO has no direct equivalent of a Numbers Sheet.

In the "Interactive Chart" Sheet in Numbers, there is a text box, a table and a chart.

LibreOffice put the text box in the "Interactive Chart" worksheet.  Since the table has a title "Monthly Sales by Region", LibreOffice actually generated a worksheet called "Monthly Sales by Region" and put the table there.

The phrase `Table "Monthly Sales by Region" (original table in worksheet "Interactive Chart")` should be parsed as 'LibreOffice generated a table "Monthly Sales by Region".  This table corresponds to the "Interactive Chart" Numbers sheet.'
Comment 4 Timur 2022-02-01 14:29:19 UTC
I don't know what Numbers is, but there, how are those cells formatted, as all, general numbers, date, specific date.. which format code exactly? 
Is this a bug against Calc or libetonyek as reported? MSO doesn't open it at all.
Comment 5 Alex Thurgood 2024-06-04 10:42:36 UTC
Confirming with

Version: 24.2.3.2 (AARCH64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 8; OS: macOS 14.5; UI render: Skia/Metal; VCL: osx
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

Confirming to everything reported.

Probably due to libetonyek filter.