Created attachment 109923 [details] this file is displayed incorrectly The svg file applied is displayed as black area by plugin, see screenshot. This svg file is extracted from html page http://www.chilton-computing.org.uk/acl/applications/cc/p007.htm .
Created attachment 109924 [details] screenshot of Kate window
Can you check whether it conforms to SVG Tiny 1.2? See https://doc.qt.io/qt-5/svgrendering.html
Thanks for the report. First some technical background: The preview plugin relays the rendering in the respective format to a matching KParts plugin, based on the MIME type. Currently that KParts plugin is used which is the default one for the given MIME type. And right now the default can be only controlled via the Plasma System Settings ("Applications" > "File Assocications" > Select "image/svg+xml" > tab "Embedded"). Chance is that the KParts plugin "svgpart" is the currently top one there. Which internally uses Qt SVG (https://doc.qt.io/qt-5/qtsvg-index.html), which "s[S]upports a subset of the SVG 1.2 Tiny standard.". So might not be enough for your SVG files. To improve your situation, see if there is the KParts plugin webenginepart or kwebkitpart installed and then choose that one as the most preferred in the mentioned settings dialoig. These parts will use the SVG rendering engine of web*, which possibly supports more parts of the standard. Please tell if you could make this work and if it improved the preview for you. Future plan is to allow selecting the KParts plugin to use in Kate settings itself. So this is actually not a direct bug of the preview plugin, but a problem of the svgpart KParts plugin only supporting a subset of SVG. Seems that one has not yet an entry in bugs.kde,org, will see to create one and then move this bug report over there.
Created attachment 109958 [details] this file is displayed incorrectly, too Version of original file reduced to conform SVG 1.1 Tiny
(In reply to Kai Uwe Broulik from comment #2) > Can you check whether it conforms to SVG Tiny 1.2? No, it's not. But reduced version conforming SVG 1.1 Tiny is not displayed correctly too, result seems the same. Reduced svg version is attached.
Created attachment 109959 [details] my Plasma settings Plasma System Settings ("Applications" > "File Assocications" > Select "image/svg+xml" > tab "Embedded")
Created attachment 109960 [details] Plasma svg services available Plasma System Settings ("Applications" > "File Assocications" > Select "image/svg+xml" > tab "Embedded" > Press "+ Add" button
(In reply to Friedrich W. H. Kossebau from comment #3) > To improve your situation, see if there is the KParts plugin webenginepart > or kwebkitpart installed and then choose that one as the most preferred in > the mentioned settings dialoig. These parts will use the SVG rendering > engine of web*, which possibly supports more parts of the standard. I have kwebkitpart of version 1.3.4-1.1 installed. But there is no similar name neither in settings dialog you mentioned nor among possible alternative services (under "Add" button), see screenshots. I guess it is labeled "KHTML", but it is already atop.
(In reply to Igor Zhuravlov from comment #8) > I have kwebkitpart of version 1.3.4-1.1 installed. But there is no similar > name neither in settings dialog you mentioned nor among possible alternative > services (under "Add" button), see screenshots. I guess it is labeled > "KHTML", but it is already atop. Okay, so welcome to convoluted matters :) KHTML is a separate plugin from kwebkitpart(*), so the latter is still missing here. When it comes to kwebkitpart, I just saw that there is some issue with the version numnber: kwebkitpart got ported to qt5, but seems it never got officially released, with a new version number. Still at least openSUSE has packages of the ported code, but also using 1.3.4 as version. That needs some poking of people. For you it needs to check if your version of kwebkitpart is having qt4 or qt5 as dependency. If qt4 (which I assume), it sadly cannot be used, not compatible. Try to check if you can get hold of a package with the ported version. For webenginepart, that one is developed as part of Konqueror libraries/plugins. On openSUSE it is packaged into a separate package "webenginepart", other distributions might have thas as part of some konq-* package. (*) KHTML still being the original code of what once was forked into webkit by Apple engineers, which then again was wrapped in that separate kpart by some other KDE developers, who put their trust rather into webkit devs than the kthml devs... and we do not know who is more right, so both exist :) )
Igor I've just tested this on the latest Kate and with svgpart installed the "Early Translator Writing Systems" image works as expected, the same as it does in my browser. Can you please confirm if this is still an issue, thanks.
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!
The problem was fixed in the following environment: - openSUSE Leap 15.2 - Kate 20.04.2 - KDE Frameworks 5.71.0 - Qt 5.12.7 (built with version 5.12.7) - window system xcb by the steps you advised: 1) packages webenginepart and svgpart were installed (after that, a svgpart view component was appeared in the Plasma System Settings: "Applications" > "File Assocications" > Select "image/svg+xml" > tab "Embedded"), 2) the svgpart view component was moved to the top in the list. Thank you!