Separate hours' names and long names by a new line

Started by Željko Vrabec, April 29, 2025, 05:05:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Željko Vrabec

Hi guys!

It seems that in version 7.1.8 option Separate hours' names and long names by a new line doesn't do what it suppose to. In some of previous versions it worked just fine.

Cheers!

Liviu Lalescu

Thank you, Zeljko,

It is a typo. It never worked correctly, I think. I use the setting from the days also for hours. So, until the release, please enable the option for days.

I might put a snapshot for you to check, but I am not sure. I am not home. I will release the final version when home (in 3-5 days maybe). Please tell me, do you only need the tar.bz2 to test?

Željko Vrabec

Hi Liviu!

Yes tar.bz2 is ok. I build package myself anyway

Liviu Lalescu

The snapshot: https://lalescu.ro/liviu/Backup-fet/ (get the latest snapshot, always, I might put more files there).

Please confirm it is OK now.

Željko Vrabec


Liviu Lalescu


Liviu Lalescu

I am sorry that I cannot correct this bug right away, but I am not home and the internet here is bad. Also, I prefer to compile on my desktop the Windows and GNU/Linux versions.

I hope to release the version FET-7.1.9 on Friday, 9 May 2025. Anyway, thankfully, the bug is minor.

Željko Vrabec

Hi Liviu!

No need to hurry. Snapshot version solves my problem. Few months ago I made custom css based on features of the fet version that was up to date back then. In that css i style header of the table based on linebreak. That's why I needed this feature back.


Speaking of which, is there any plan to clear html structure?  :)

Liviu Lalescu

It is Volker's responsibility :)

And how would you suggest to clear it?

Željko Vrabec

  • Use HTML5 document structure:
    <!DOCTYPE html>
    <html>
      <head>
        <title>My Web Page</title>
        <meta charset="UTF-8">
        <link rel="stylesheet" href="styles.css">
      </head>
      <body>
        <h1>Welcome to my web page!</h1>
        <p>This is the content of my web page.</p>
      </body>
    </html>
  • Move tr with foot class into tfoot (out of tbody)

Liviu Lalescu

Thank you for your suggestions, Zeljko! I will add these in the TODO, also asking @Volker Dirr to have a look and tell me what he thinks. Volker, if these are easy to do changes, maybe you could be ready before the hopefully Friday FET release?

Zeljko, I am not sure about your point 2., because Volker did this because some programs did not handle correctly this tfoot. Again, I need Volker's advice and maybe code.

Volker Dirr

Yes and no.

About 1: Your example is not valid html 5. You forgot the lang attribute.
But yes, I can change the header easy to valid html 5. But you won't see difference in a web browser. It will still look the same.

About 2: No, that is not possible. If you see the source, then you will notice that it is already written in the source many years ago. We use that foot workaround, because Qt doesn't support tfoot. Even not in Qt 6.9. See https://doc.qt.io/qt-6/richtext-html-subset.html
So we might only support it, if we keep the old style for the Qt Interface and code an new /optional variant for the export. But in my opinion it doesn't make much sense to do that.

Liviu Lalescu

Volker, you are the person deciding the HTML stuff in FET. So, should I only add in the TODO?

Volker Dirr

About 2: I think to much work to support both at the same time. In fact the workaround is also not "wrong". It only mean that the foot will not repeated if you print a single table on a second (or more) sheet(s). In fact i guess it is even "good" to not repeat it, since I don't think people will only print it and put it into a binder. I guess most guys will cut it, fix it together and paste it on the wall. In that case repeating is even "bad".

About 1: HTML 5 is now a bit over 10 years old. I guess nearly all guys should have web browsers now that can read HTML 5. It will be easy to it. I will do it tonight or on Wednesday. Please upload the latest snapshot of FET if you haven't done that already. (Is there a newer one than https://lalescu.ro/liviu/Backup-fet/fet-7.1.9-snapshot-29-apr-2025-19_58.tar.bz2 ? )

Liviu Lalescu

Great! It is the latest snapshot, and I think I won't have anything to change to it (apart from the TODO, where I will add the point (2) from Zeljko, and from the ChangeLog).

Please don't forget also about the statistics HTML.