LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-05-2025, 09:19 AM   #16
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,969

Rep: Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034Reputation: 1034

Maybe install batik package in Ubuntu and use the converter tool
https://xmlgraphics.apache.org/batik...converter.html
Edit: Sorry it doesn't convert to svg images, it converts to svg font

Last edited by keefaz; 08-05-2025 at 10:37 AM.
 
Old 08-05-2025, 05:51 PM   #17
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 22.04
Posts: 2,209

Original Poster
Rep: Reputation: 73
If anyone is still there:

I think I found the problem, but I have no idea how to overcome it!

This is my original template file, which, after modification, is supposed to show the colourful emoji, but shows it black:

new_string

Output:

Quote:
'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg\n width="265"\n height="265"\n viewBox="0 0 70.114582 70.114585"\n version="1.1"\n id="svg1909"\n xmlns="http://www.w3.org/2000/svg">\n <defs\n id="defs1906">\n <rect\n x="25.34241"\n y="41.74044"\n width="240.00753"\n height="177.39687"\n id="rect41737"/>\n <rect\n x="31.30533"\n y="49.19409"\n width="196.77636"\n height="168.45249"\n id="rect3710"/>\n </defs>\n <text\n xml:space="preserve"\n transform="matrix(0.26458333,0,0,0.26458333,0.76196943,27.023706)"\n id="text-box"\n style="font-style:normal;font-weight:normal;font-size:300px;line-height:0px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-spacere;shape-inside:url(#rect3710);display:inline;fill:#000000;fill-opacity:1;stroke:none"\n x="56.777344"\n y="0"><tspan\n x="32.94043"\n y="135.39245"\n id="letter"><tspan\n style="font-family:\'NotoColorEmoji\';-inkscape-font-specification:\'NotoColorEmoji\';text-align:center;text-anchor:middle"\n id="tspan50637">☀</tspan></tspan></text>\n</svg>\n'
If you look a style = you see:

Output:

Quote:
style="font-style:normal;font-weight:normal;font-size:300px;line-height:0px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;white-spacere;shape-inside:url(#rect3710);display:inline;fill:#000000;fill-opacity:1;stroke:none"
and you see:

Output:

Quote:
fill:#000000
which is, I believe, black! This template started life as a black letter A.

Any brilliant ideas how to overcome this please??

What could I put in fill: to make it show a multi-coloured emoji?

In bash I see this error:

Quote:
peterr@peterr-Modern-15-B7M:~/PVE/emoji2svg2png$ python3 export-all-emojiV4.py
Exporting all emoji...
/usr/bin/inkscape --export-overwrite --export-type="svg" --actions="select-by-id:text-box; object-to-path; export-id:text-box; export-id:text-box; export-do; " /home/peterr/PVE/emoji2svg2png/svg/Animals_Nature-9728-black_sun_with_rays.svg

** (org.inkscape.Inkscape:4550): WARNING **: 06:48:09.171: shape reference on non-text object: 7SPGroup

** (org.inkscape.Inkscape:4550): WARNING **: 06:48:09.172: shape reference on non-text object: 7SPGroup

** (org.inkscape.Inkscape:4550): WARNING **: 06:48:09.175: shape reference on non-text object: 7SPGroup
New symbol: /home/peterr/PVE/emoji2svg2png/svg/Animals_Nature-9728-black_sun_with_rays.svg
What is 7SPGroup??
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Inkscape 1.1.2 Delivers More Bug Fixes, Inkscape 1.2 Promises Major UX Changes LXer Syndicated Linux News 0 02-06-2022 02:15 PM
Print all PID folders from /proc line-by-line with this format (( PID: command-line )) courteous Linux - Newbie 7 12-12-2010 04:47 PM
awk command line: blank line record sep, new line field sep robertmarkbram Programming 4 02-21-2010 05:25 AM
DVD burning on a headless, command-line-only system sleddog Linux - Server 3 12-30-2008 06:01 AM
grab the line below a blank line and the line above the next blank line awk or perl? Pantomime Linux - General 7 06-26-2008 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:10 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions