Kent Davis Posted August 7, 2023 Posted August 7, 2023 SVG not work open because Blender 3.6.1.app save .svg then go Affinity Designer.app open is error. https://imgur.com/4bO8Qpf 0001.svg
v_kyr Posted August 7, 2023 Posted August 7, 2023 That's easy to fix, just replace the first line in the SVG file ... <?xml version='1.0' encoding='ascii'?> ... inside an text editor to ... <?xml version='1.0' encoding="UTF-8"?> ... so 'ascii' to "UTF-8". 0001_fix.svg 0001_fix.afdesign ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2
R C-R Posted August 7, 2023 Posted August 7, 2023 For what very little it is worth, the file opens fine as is in Pixelmator Pro on my Mac, & from that app if I export it as a new SVG file, Affinity opens it without issues apparently because Pixelmator exports it with the UTF-8 encoding. Same thing with Inkscape & the default(?) SVG 'save as' option. All 3 1.10.8, & all 3 V2.6 Mac apps (currently 2.6.4); 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7
Kent Davis Posted August 7, 2023 Author Posted August 7, 2023 Oh I see many thanks for your help about .SVC ascii to UTF-8 I got you. Need to open feature appear. for example: alert notification said. .SVG is not support but do you want edit text 'ascii' to 'UTF-8' then (save) (cancel) button auto save .svg and open same time itself.
R C-R Posted August 7, 2023 Posted August 7, 2023 1 minute ago, Kent Davis said: Need to open feature appear. for example: alert notification said. .SVG is not support but do you want edit text 'ascii' to 'UTF-8' then (save) (cancel) button auto save .svg and open same time itself. Much better would be for Affinity to behave like for example Inkscape or Pixelmator & open the file even if it was saved with ascii encoding.... All 3 1.10.8, & all 3 V2.6 Mac apps (currently 2.6.4); 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7
Kent Davis Posted August 7, 2023 Author Posted August 7, 2023 Oh really I never see that before about inkscape and pixelmator. I do use Macintosh only. I mean appear alert from 'ascii' to 'UTF-8' do you want save? (save)(cancel)
R C-R Posted August 7, 2023 Posted August 7, 2023 1 minute ago, Kent Davis said: I mean appear alert There is no alert in either of those Mac apps, if that is what you mean. They just open SVG files with ascii encoding without problems. Affinity should do the same. All 3 1.10.8, & all 3 V2.6 Mac apps (currently 2.6.4); 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7
Kent Davis Posted August 7, 2023 Author Posted August 7, 2023 'ascii' cause problem open Affinity all app not work. hard for me to remember word rename from 'ascii' to 'UTF-8' Affinity all app never work on 'ascii' .svg Need add feature auto appear to ask want save button to appear itself.
v_kyr Posted August 7, 2023 Posted August 7, 2023 3 minutes ago, Kent Davis said: Need to open feature appear. for example: alert notification said. .SVG is not support but do you want edit text 'ascii' to 'UTF-8' then (save) (cancel) button auto save .svg and open same time itself. It's more a matter of how the Affinity SVG parser checks/interprets/parses the SVG/XML encoding setup from a SVG file, so in this case that it just has to accept "ascii" too here not just "UTF-8" as an setup encoding. For example the omission of the XML encoding specification would also open a SVG in ADe just fine ... <?xml version="1.0" standalone="no"?> <svg width="5cm" height="4cm" version="1.1" xmlns="http://www.w3.org/2000/svg"> <desc>Four separate rectangles </desc> <rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/> <rect x="0.5cm" y="2cm" width="1cm" height="1.5cm"/> <rect x="3cm" y="0.5cm" width="1.5cm" height="2cm"/> <rect x="3.5cm" y="3cm" width="1cm" height="0.5cm"/> <!-- Show outline of viewport using 'rect' element --> <rect x=".01cm" y=".01cm" width="4.98cm" height="3.98cm" fill="none" stroke="blue" stroke-width=".02cm" /> </svg> ... so it's only the 'ascii' encoding setting which it doesn't know to interpret here! ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2
Kent Davis Posted August 7, 2023 Author Posted August 7, 2023 Allright I know you never listen from me what I am try tell you. I am not good english. I do know American Sign Language. You said 'ASCII' it work to open Affinity???? You saw alert appear said not support because of 'ASCII' I make me many frustrate.
v_kyr Posted August 7, 2023 Posted August 7, 2023 9 hours ago, Kent Davis said: Allright I know you never listen from me what I am try tell you. I am not good english. I do know American Sign Language. You said 'ASCII' it work to open Affinity???? You saw alert appear said not support because of 'ASCII' I make me many frustrate. I know what you mean, but that's overall too complicated and unnecessary to show up a warning message in a panel and asking after using UTF-8 instead etc. - It's much easier for them to fix it by adding into their SVG parser the recognition of "UTF-8 | ascii" tokens and that's all about it. It's usually much easier & quicker to do! R C-R 1 ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2
R C-R Posted August 7, 2023 Posted August 7, 2023 12 minutes ago, Kent Davis said: 'ascii' cause problem open Affinity all app not work. hard for me to remember word rename from 'ascii' to 'UTF-8' You would not need to remember anything or edit the file in any way if the Affinity SVG parser could correctly interpret the ascii encoding, like @v_kyr mentioned. All 3 1.10.8, & all 3 V2.6 Mac apps (currently 2.6.4); 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7
R C-R Posted August 7, 2023 Posted August 7, 2023 9 minutes ago, Kent Davis said: I am not good english. If there is another language you are more comfortable using, just use that. There are translation services we can use to convert it to English if needed, although there may already be someone fluent in that language who will reply using it as well. All 3 1.10.8, & all 3 V2.6 Mac apps (currently 2.6.4); 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7 All 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7
Kent Davis Posted August 7, 2023 Author Posted August 7, 2023 I am english only USA and I do ASL. ASL is not as word. Hand move.
thomaso Posted August 8, 2023 Posted August 8, 2023 10 hours ago, v_kyr said: For example the omission of the XML encoding specification would also open a SVG in ADe just fine ... Just in case: This sample svg code appears to be missing something. AD (V1) opens an error message and Gapplin says " This page contains the following errors: error on line 1 at column 3: xmlParsePI : no target name error on line 1 at column 3: Encoding error @Kent Davis, you might know this site already but I am impressed that this dictionary gets created at all: https://www.handspeak.com/word/asl-eng/ Unfortunately its dictionary English -> ASL is not specialised yet for technical / computer terms and does not know for instance ASCII, Unicode, parser, encoding • MacBookPro Retina 15" | macOS 10.14.6 | Eizo 27" | Affinity V1 • iPad 10.Gen. | iOS 18.6.2 | Affinity V2.6.3
Kent Davis Posted August 8, 2023 Author Posted August 8, 2023 No no. I am not talk about ASL computer. I talk about "I am full deaf and I do know sign language" myself. ASL = American Sign Language (person with hand movement). ASL is not as word. SVG yes many problem because they said "not need" make me upset. They must to fix add feature 'ascii' -VS- 'UFT-8' everyone don't know. I has been frustrate SVG not work all Affinity for many years until finally yesterday they told me. I know everyone don't know too.
Dan C Posted August 8, 2023 Posted August 8, 2023 Hi Kent Davis, This is an issue we're aware of and hope to resolve soon. Lee
thomaso Posted August 8, 2023 Posted August 8, 2023 11 hours ago, Kent Davis said: hard for me to remember word rename from 'ascii' to 'UTF-8' It also works if I just delete in your file encoding='ascii' so the first line is <?xml version='1.0' ?> • MacBookPro Retina 15" | macOS 10.14.6 | Eizo 27" | Affinity V1 • iPad 10.Gen. | iOS 18.6.2 | Affinity V2.6.3
v_kyr Posted August 8, 2023 Posted August 8, 2023 24 minutes ago, thomaso said: Just in case: This sample svg code appears to be missing something. AD (V1) opens an error message and Gapplin says " Nope, not for me in ADe v1 ... test1.svg ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2
v_kyr Posted August 8, 2023 Posted August 8, 2023 34 minutes ago, thomaso said: Just in case: This sample svg code appears to be missing something. AD (V1) opens an error message and Gapplin says " This page contains the following errors: error on line 1 at column 3: xmlParsePI : no target name error on line 1 at column 3: Encoding error Well if you look closer at your stupidly to german TRANSLATED "SVG code" that's no wonder, since that generated text/code gaps which will generated syntax errors on parsing in as SVG! ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2
Kent Davis Posted August 8, 2023 Author Posted August 8, 2023 allright. Yes I agree with you AD1 but I have AD2.
v_kyr Posted August 8, 2023 Posted August 8, 2023 5 minutes ago, Kent Davis said: Yes I agree with you AD1 but I have AD2. There shouldn't usually be a difference between ADe v1 & ADe v2 here, also thomaso feeded in pretty wrong formated (to german translated with massive gaps) SVG code above, which either way wouldn't work that way in any SVG parser. ☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan ☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2
thomaso Posted August 8, 2023 Posted August 8, 2023 40 minutes ago, v_kyr said: Well if you look closer at your stupidly to german TRANSLATED "SVG code" that's no wonder, since that generated text/code gaps which will generated syntax errors on parsing in as SVG! Thanks, that's it indeed. Although I did neither "TRANSLATE" nor edit the copy/pasted code it got its single space characters multiplied in an odd way when pasting it into an open TextEdit window. While your test1.svg works to me as expected I am unable to reproduce the copy/paste spaces issue once more. • MacBookPro Retina 15" | macOS 10.14.6 | Eizo 27" | Affinity V1 • iPad 10.Gen. | iOS 18.6.2 | Affinity V2.6.3
Kent Davis Posted August 8, 2023 Author Posted August 8, 2023 You can download Visual Studio Code.app because DreamWeaver.app -VS- Visual Studio Code.app Visual Studio Code.app is 100% free forever. Download Visual Studio Code - Mac, Linux, Windows I do use many times there is highest quality. You can open .svg to Visual Studio Code.app is much better than TextEdit.app thomaso 1
Recommended Posts