Re: Problems with npm?

Robert Moskowitz via users <[email protected]>
Newsgroups gmane.linux.redhat.fedora.general
Message-ID <[email protected]>
Here is the author's response----

On 5/26/26 6:02 PM, Samuel Sieb wrote:
> On 5/26/26 2:39 PM, Robert Moskowitz wrote:
>> On 5/26/26 5:16 PM, Samuel Sieb wrote:
>>> On 5/26/26 1:51 PM, Robert Moskowitz via users wrote:
>>>> I am using an IETF tool to cover ascii txt art to svg:
>>>>
>>>> https://github.com/martinthomson/aasvg
>>>>
>>>> This uses the json tool npm to:
>>>>
>>>> npm install -g aasvg
>>>>
>>>> I have attached an ascii art text file and the svg output from my 
>>>> F41 system.  The -not svg output is what my F44 system is generating.
>>>
>>> The "not svg" is definitely SVG.  Why do you think it isn't? The 
>>> only issue I see is that the top row of numbers isn't quite aligned 
>>> like the other image.
>>>
>> Open them both with some viewer.  Something is wrong with the -not; 
>> the content does not show.  I suppose I will have to do a diff on the 
>> two to see.
>>
>> And it definitely does not insert in Libreoffice Write .docx properly.
>
> It looks like the new version is using some style shortcuts that 
> aren't universally supported.  Thunderbird shows it fine, but image 
> viewer and inkscape don't.  Inkscape will show everything if I select 
> all and give it a stroke style.
>
> The issue is with this part of the style:
> :root { color-scheme: light dark; --aasvg-b: light-dark(black, white); 
> --aasvg-w: light-dark(white, black); }
> * { fill: none; stroke: var(--aasvg-b); stroke-linecap: round; }
>
> This is standard SVG, but it seems `var()` isn't supported by 
> everything.  In particular, there's this issue:
> https://gitlab.gnome.org/GNOME/librsvg/-/work_items/459
> That's the library used by a lot of things in Fedora.
>
> If you're talking to the author of the tool, you can mention the 
> alignment issue as well.
>


-------- Forwarded Message --------
Subject: 	Re: [martinthomson/aasvg] Problems with current version (Issue 
#26)
Date: 	Tue, 26 May 2026 18:05:17 -0700
From: 	Martin Thomson <[email protected]>
Reply-To: 	martinthomson/aasvg 
<reply+ABODW4FP3ARS6MTBBBI5ZRLKR6GU3EVBNHHQAAAAAEG6ALXJ@reply.github.com>
To: 	martinthomson/aasvg <[email protected]>
CC: 	Bob <[email protected]>, Author <[email protected]>



*martinthomson* left a comment (martinthomson/aasvg#26) 
<https://github.com/martinthomson/aasvg/issues/26#issuecomment-4550344078>

This is something I've noticed. The changes in 0.5 are to use styling 
rules that are necessary for light/dark modes. You can work around this 
by invoking the tool using:

|aasvg compatible <ICAO-SP-ADSB-Auth3-Fig02-PO.txt 
 >ICAO-SP-ADSB-Auth3-Fig02-PO.svg |

One of the changes this introduces is disabling the light/dark mode 
support. Because inkscape (and gimp) seem to struggle with CSS |var()| 
as you note.

(Yes, it's an incompatible change to the interface, but it's a major 
release. I'll have to up my game on release notes at some point, I know.)

==========================

and this works..

As for alignment, the spaces=1 option is needed.

-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.