bugGNU 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: 

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.

Joris van der Hoeven <vdhoeven>
Group administrator
Tue 13 Apr 2021 02:18:01 PM UTC, comment #2: 

comment #1:

> Can you check if including by hand the CSS in the file HTML would work for you?


Do you have any idea of how I can programmatically do that?  My google-fu is failing me

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>
Group administrator
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.

I reproduced this under windows and Mint Linux.

Mike <primer1>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by vdhoeven (Posted a comment)
  • -email is unavailable- added by mgubi (Posted a comment)
  • -email is unavailable- added by primer1 (Submitted the item)
  • -email is unavailable- added by primer1
  •  

    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 Priority5 - Normal 3 - Low
        Item GroupNone Wishlist
        StatusNone Postponed
        Assigned toNone vdhoeven
    2021-04-13 primer1 Carbon-Copy- Added primer1

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code