Go to file
jordi fita mas bba555be10 Replace SVG’s foreign attribute with a specific prefix for IDs
I decided to use a custom attribute for the campsite label in the SVG
because i was a bit wary of reusing ‘id’ for that, specially given that
most labels are number only and XML can not have IDs starting with a
number.

In fact, at least Inkscape and Affinity solve the problem by having an
additional foreign attribute to keep the “group label” in without that
restriction (‘inkscape:label’ and ‘serif:id’, respectively), thus i
thought of doing the same, but with a namespace that i control and be
independent of the design program.

However, it seems that Affinity does not have a way of editing the XML
attributes like Inkscape does[0], thus there is no way of adding or
editing that value from there; i can not ask Oriol to edit the SVG file
in a text editor each time.

We have agreed to reuse the ‘id’ attribute to contain the campsite’s
label by using a specific prefix, that we checked is editable without
issue in Affinity’s UI.

[0]: https://forum.affinity.serif.com/index.php?/topic/24318-xml-data/&do=findComment&comment=115609
2023-09-25 12:44:47 +02:00
cmd/camper Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
debian Add the sample campsite types to the demo file 2023-09-10 03:57:46 +02:00
demo Add campsite map in SVG 2023-09-24 03:17:13 +02:00
deploy Add campsite map in SVG 2023-09-24 03:17:13 +02:00
pkg Fix campground and campsite nomenclature for SVG map 2023-09-25 12:34:05 +02:00
po Add campsite map in SVG 2023-09-24 03:17:13 +02:00
revert Add campsite map in SVG 2023-09-24 03:17:13 +02:00
test Add campsite map in SVG 2023-09-24 03:17:13 +02:00
verify Add campsite map in SVG 2023-09-24 03:17:13 +02:00
web Replace SVG’s foreign attribute with a specific prefix for IDs 2023-09-25 12:44:47 +02:00
.gitignore Add the sample campsite types to the demo file 2023-09-10 03:57:46 +02:00
Makefile Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00
go.mod Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
go.sum Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
sqitch.conf Add empty Sqitch configuration anq plan files 2023-07-20 23:43:23 +02:00
sqitch.plan Manage all media uploads in a single place 2023-09-21 01:56:44 +02:00