GNU TeXmacs - Bugs: bug #60386, css stylesheets are not honored...
You are not allowed to post comments on this tracker with your current authentication level.
bug #60386: css stylesheets are not honored when loading / importing html files
Submitter: | Mike <primer1> | ||
Submitted: | Tue 13 Apr 2021 01:05:30 AM UTC | ||
Category: | Conversion | Priority: | 3 - Low |
Item Group: | Wishlist | Status: | Postponed |
Privacy: | Public | Assigned to: | vdhoeven |
Originator Name: | Open/Closed: | Open | |
Release: | None | Release: | 1.99.19 |
Fixed Release: | None | Fixed Release: | |
Keywords: |
Sun 20 Jun 2021 05:06:02 PM UTC, comment #3: |
Joris van der Hoeven <vdhoeven> |
Tue 13 Apr 2021 02:18:01 PM UTC, comment #2:
|
Mike <primer1> |
Tue 13 Apr 2021 06:26:20 AM UTC, comment #1: Can you check if including by hand the CSS in the file HTML would work for you? I'm worried that a general solution would not be possible since CSS+HTML is a complex specification and one cannot hope easily to come up with a reliable converted which take into account style variations, it would mean essentially reimplement the flowing/styling algorithms of the browser. One can reasonably aim to interpret HTML into meaningful TeXmacs tags so that the styling can be done there. Maybe a more constructive discussion can be opened in the mailing list. |
Massimiliano Gubinelli <mgubi> |
Tue 13 Apr 2021 01:05:30 AM UTC, original submission:
With a .html file and associated stylesheet css file in the same directory, all browsers on my PC load the styles correctly. They are ignored with html load / import. This severely limits the usefulness of html import.
|
Mike <primer1> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2021-06-20 | vdhoeven | Priority | 5 - Normal | 3 - Low | |
Item Group | None | Wishlist | |||
Status | None | Postponed | |||
Assigned to | None | vdhoeven | |||
2021-04-13 | primer1 | Carbon-Copy | - | Added primer1 |
Powered by Savane 3.13-f8d8.
Corresponding source code
This is indeed an interesting topic for the mailing list. CSS is not part of Html and TeXmacs only has export support for CSS. It would be nice if we could have limited support for CSS import. For this, we would need a tool that preprocesses the CSS in order to produce explicit style parameters that could be used by TeXmacs. Otherwise, we would need to implement a CSS engine ourselves.