Jump to content

Recommended Posts

Posted

Hello,

I've likely overlooked something obvious, or perhaps it's an obscure setting tucked away, that has to do with how AfPub2 (v2.0.4 on Windows 10) is showing TIME-related fields.

image.png.46c9f7c02c69ebb7fd2f621a2ae3a184.png

The above is how AfPub2 shows cells that are formatted in Excel (& LibreOffice Calc) as Time; i.e., below:

image.png.99beff7e0314b50b673a797b5b229445.png

 

Posted

Hmm, can't reproduce that formating for the time column under APub1 MacOS here when placed in from an xlxs file ...

b1.jpg.f31cc9943f2630c0ae895a9e1d26258f.jpgb2.jpg.2af78cc00779690a3db2f9eb3a6ebcc5.jpg

... somebody with APub2 on Win has to tryout how it behaves there as default.

 

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Posted
48 minutes ago, v_kyr said:

can't reproduce that formating for the time column

Is the problem with the Time column, or with the weird dates? How does 04/09/23 become 16/09/23, for example? Or 04/10/23 become 16/20/23? Or 04/11/23 become 41/11/23?

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.3.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Posted
4 minutes ago, walt.farrell said:

Is the problem with the Time column, or with the weird dates?

AFAI understood the OP ...

Quote

...is showing TIME-related fields.

... so I assumed here values like "0959:30" in contrast to "09:59:30", aka the missing colon seperator!?

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Posted

That is certainly one oddity in what they showed us, but not the only one :)

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.3.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Posted
20 minutes ago, walt.farrell said:

but not the only one

Yes, but the OP explicitly mentioned the problem with the "TIME-related" function, not with the "DATE-related" function. So it is understandable that v_kyr react to this part of the problem.

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.5.7.2948 (Retail)
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Posted
3 hours ago, Kelly Bellis said:

The above is how AfPub2 shows cells that are formatted in Excel

How did you transfer the data from Excel to APub?
Doesn't Excel use a formula for such cell contents as date or time, while each alternatively can be just a number?

 

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Posted

Thank you all very much for responding.

Workflow began with LibreOffice Calc, entering the date and time data into a single cell and formatting the "Start UTC", "Stop UTC", and "Time" cells as Time. The "Time" values are calculated; = (Stop UTC) - (Start UTC)

In AfPub2, Ctrl + Shift M (Place) filtered out the .ods file, so I Saved As the .ods as an .xlsx, and then was able to place the table into the AfPub2 document without issue. Resized to fit. I didn't immediately notice that the time related fields had been chowdered up until I was examining the PDF. I went back and looked at their appearance while in AfPub which, as expected, revealed the issue of messed up values.

For the time being, I think the best the workaround for this issue is to export the table from LibreOffice as a PDF, and then place it into a new AfPub2 document.

@thomaso - Your first question is answered above. Your second question concerning how Excel deals with dates and time, I can't really speak to; however, I know from past experiences in dealing with OpenOffice Calc, and in more recent years, in LibreOffice Calc, that there is an internal procedure, transparent to the user, which converts date and time values into a number. And for it to be properly displayed, an appropriate format gets assigned by the user to the cell. The help page: https://help.libreoffice.org/6.2/en-US/text/scalc/01/04060102.html, explains this more fully, and also offers this notice:

image.png.e3fa5dab02c97f2b86f7ee192918ba68.png

I'm not sure if we can/  nor should we even think of an AfPub2 table as a spreadsheet, nor if the above notice is particularly relevant, but may be worth noting if Serif developers ever decide this issue is worth looking at.

DPOS [broadcast ephemeris] Summary for Project 17U 20230409.xlsx DPOS [broadcast ephemeris] Summary for Project 17U 20230409.ods 17U 20230409.pdf DPOS [broadcast ephemeris] Summary for Project 17U 20230409.pdf

Posted
8 minutes ago, Kelly Bellis said:

For the time being, I think the best the workaround for this issue is to export the table from LibreOffice as a PDF, and then place it into a new AfPub2 document.

Or try exporting as CSV.

By the way, I'm not sure that Publisher handles calculations in XLSX times.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.3.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Posted
25 minutes ago, walt.farrell said:

By the way, I'm not sure that Publisher handles calculations in XLSX times.

Does APub handle or notice in fact any formula of incoming table cells? If yes, wouldn't it enable us create/enter them, too?

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Posted

For dealing with CSV/TSV files via APub see related ...

In case of TSV format export (instead of CSV) from LibreOffice Calc see the add-on Calc Macros here ...

 

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Posted
1 hour ago, Kelly Bellis said:

I can't really speak to; however, I know from past experiences in dealing with OpenOffice Calc, and in more recent years, in LibreOffice Calc, that there is an internal procedure, transparent to the user, which converts date and time values into a number.

I doubt APub is coded to read / transfer all (some?) possible formulas correctly, otherwise it would enable us to use formulas inside APub (as "spreadsheet" / not "table" only).

Just notice what macOS "Quicklook" (a tiny preview app for multiple file formats) and "BBEdit" display in the Time column K in your .xlsx:

1939043305_exceltabletimequicklook.thumb.jpg.36aaaf6a80666389acb97be3a45c5ce1.jpg

1194239053_exceltabletimeBBEdit.thumb.jpg.c2ce122191ff09994d9727f54095bf65.jpg

 

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Posted
43 minutes ago, thomaso said:

Just notice what macOS "Quicklook" (a tiny preview app for multiple file formats) and "BBEdit" display in the Time column K in your .xlsx:

 

1 hour ago, Kelly Bellis said:

The "Time" values are calculated; = (Stop UTC) - (Start UTC)

 

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.5.7.2948 (Retail)
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Posted

This is with V1, I don't even see the hours in the Time column
So I changed the cell format from [hh]:mm:ss to one from the Excel Format Cells Time category and that's ok as long as the value is <24
N.B. hh:mm:ss doesn't work

Attached file revised as noted, hopefully it'll work

TimesToPub.png

DPOSmine.xlsx

Microsoft Windows 11 Home, Intel i7-1360P 2.20 GHz, 32 GB RAM, 1TB SSD, Intel Iris Xe
Affinity Photo - 24/05/20, Affinity Publisher - 06/12/20, KTM Superduke - 27/09/10

Posted
1 hour ago, thomaso said:

Just notice what macOS "Quicklook" (a tiny preview app for multiple file formats) and "BBEdit" display in the Time column K in your .xlsx:

And? - As you can see the xml part tells us here ...

-->  <c r="K3" s="8" t="n"><f aca="false">J3-I3</f><v>0.416319444444444</v></c>

... cell = K3; the autocalculation function (J3-I3) for it is set to false; and the cell's value is already given as = 0.416319444444444.

... so there is already a precalculated given value entry for that K3 cell! - As one can also see when opening that file inside some spreedsheet ...

xlxs-sample.jpg.8f491ebc79f503d6435df04351728f0e.jpg

BTW an xlxs file is just a zipped folder/container file with a bunch of xml definition and a xml based worksheet contents files, nothing more. So it can be treated and extracted like a ZIP file and then inspected with whatever editor etc.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Posted
15 minutes ago, v_kyr said:

And?

@v_kyr, @Pšenda, my goal was simply to illustrate two examples of different interpretation + display of the data in the .xlsx.

Accordingly, it was intended as a note to the OP as to why I simply would not expect the file to be imported correctly by APub but save it first in a file without formulas – unless "spreadsheet" functions (formulas) were an existing feature in APub tables. Besides various file formats also within Excel exist workflows to replace formulas by their calculated values.

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1

Posted
17 minutes ago, thomaso said:

...as to why I simply would not expect the file to be imported correctly by APub but save it first in a file without formulas...

As we don't know what parts the APub XLXS Parser, here it's XML content parser part, reads, skips, or may misinterpret, it's generally overall hard to tell. - However, exporting just final calculated and preformated values in a plain textual manner, should usually work. - So parsing (reading) in instead preformated CSV/TSV data should probably be more hazzle free here in contrast.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.