Re: Problem converting some svgz

2023-09-22 Thread Dan via lyx-users


> On Fri, Sep 15, 2023 at 07:25:44PM +0200, Dan via lyx-users wrote:
>
>> Yes, I did, that's why I suspect the problem is actually with these 
>> third-party apps rather than LyX.
>> Generate PDF files (attached) from redo.svgz
>>  1. Cairosvg: "cairosvg -f pdf -o redo_cairosvg.pdf lib/images/redo.svgz"
>>  2. Inkscape: "inkscape -D -o redo_inkscape.pdf lib/images/redo.svgz"
>>
>
> I could reproduce the problem with Inkscape. I can actually open the file in 
> Inkscape and it looks fine (though there are Warning on the console about svg 
> content).
> It's the export when it breaks completely. I suggest to file bug against 
> inkscape itself.
>
Asked for peer confirmation on IRC as well. A person replied to me confirming 
the problem with version 1.3; but also told me that this problem does not 
happen in the upstream version (1.4-dev) of Inkscape.

That person recommended me to file a bug so that the "fix" is backported to the 
next release of Inkscape (1.3.1).


> For LyX purposes you could bypass this problem by using rsvg-convert instead 
> of inkscape (works fine here).
> Another way could by to try luck in different vector editor, resave it and 
> try again.
>
> Pavel
>
Thanks for the suggestion! I stopped using Inkscape because the packaged 
AppImage is quite slow compared to other options, such as cairosvg. Will give 
it a try.


Daniel.
--
Enviat amb Tutanota.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting some svgz

2023-09-18 Thread Pavel Sanda
On Fri, Sep 15, 2023 at 07:25:44PM +0200, Dan via lyx-users wrote:
> Yes, I did, that's why I suspect the problem is actually with these 
> third-party apps rather than LyX.
> Generate PDF files (attached) from redo.svgz
>  1. Cairosvg: "cairosvg -f pdf -o redo_cairosvg.pdf lib/images/redo.svgz"
>  2. Inkscape: "inkscape -D -o redo_inkscape.pdf lib/images/redo.svgz"

I could reproduce the problem with Inkscape. I can actually open the file in 
Inkscape and it looks fine (though there are Warning on the console about svg 
content).
It's the export when it breaks completely. I suggest to file bug against 
inkscape itself.

For LyX purposes you could bypass this problem by using rsvg-convert instead of 
inkscape (works fine here).
Another way could by to try luck in different vector editor, resave it and try 
again.

Pavel
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting some svgz

2023-09-15 Thread Scott Kostyshak
On Fri, Sep 15, 2023 at 07:31:01PM +0200, Dan via lyx-users wrote:
> 
> 
> > Both PDFs (attached) display only the shadow of the arrow, not the arrow 
> > itself.
> >
> Forgot to add the attachments, I am dumb :(.

Thanks, this is helpful. This way if we hear of a report of the problem we know 
what the root issue is.

Scott


signature.asc
Description: PGP signature
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting some svgz

2023-09-15 Thread Dan via lyx-users


> Both PDFs (attached) display only the shadow of the arrow, not the arrow 
> itself.
>
Forgot to add the attachments, I am dumb :(.



Daniel.

Enviat amb Tutanota.



redo_cairosvg.pdf
Description: Adobe PDF document


redo_inkscape.pdf
Description: Adobe PDF document
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting some svgz

2023-09-15 Thread Dan via lyx-users


>> > I have replaced cairosvg (version 2.5.2) for Inkscape (version 1.3, the 
>> > latest AppImage(d)), but the problem partially persists: now the Undo icon 
>> > displays properly in workarea and PDF, but Redo does not in neither of 
>> > them. See the attached images.
>> >
>> Sorry, I meant now Redo is not showing properly
>>  1. Neither in LyX workarea nor in PDF output when cache is enabled.
>>  2. Only in PDF output when cache is disabled.
>>
>
> Can you reproduce the problem directly on the command line with cairosvg and 
> inkscape?
>
> Scott
>
Yes, I did, that's why I suspect the problem is actually with these third-party 
apps rather than LyX.
Generate PDF files (attached) from redo.svgz
 1. Cairosvg: "cairosvg -f pdf -o redo_cairosvg.pdf lib/images/redo.svgz"
 2. Inkscape: "inkscape -D -o redo_inkscape.pdf lib/images/redo.svgz"

Both PDFs (attached) display only the shadow of the arrow, not the arrow 
itself. I tested this with other icons (cut, paste, undo)
 - Inkscape gave no problems.
 - Cairosvg gave no problems with the first two, but the latter yielded an 
empty pdf.


Daniel.
--
Enviat amb Tutanota.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting some svgz

2023-09-15 Thread Scott Kostyshak
On Tue, Sep 12, 2023 at 06:05:50PM +0200, Dan via lyx-users wrote:
> 
> 
> > I have replaced cairosvg (version 2.5.2) for Inkscape (version 1.3, the 
> > latest AppImage(d)), but the problem partially persists: now the Undo icon 
> > displays properly in workarea and PDF, but Redo does not in neither of 
> > them. See the attached images.
> >
> Sorry, I meant now Redo is not showing properly
>  1. Neither in LyX workarea nor in PDF output when cache is enabled.
>  2. Only in PDF output when cache is disabled.

Can you reproduce the problem directly on the command line with cairosvg and 
inkscape?

Scott


signature.asc
Description: PGP signature
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Problem converting some svgz

2023-09-12 Thread Dan via lyx-users


> I have replaced cairosvg (version 2.5.2) for Inkscape (version 1.3, the 
> latest AppImage(d)), but the problem partially persists: now the Undo icon 
> displays properly in workarea and PDF, but Redo does not in neither of them. 
> See the attached images.
>
Sorry, I meant now Redo is not showing properly
 1. Neither in LyX workarea nor in PDF output when cache is enabled.
 2. Only in PDF output when cache is disabled.


Daniel.
--
Enviat amb Tutanota.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users