Are commas possible in darktable tags at all?

Hi everybody,
I’m using darktable for editing my photos and have recently started using dtMediaWiki to export them to Wikimedia Commons. This has, apart from a few hickups, greatly streamlined my workflow.
dtMediaWiki automatically turns tags in the form Category:Category into Wikimedia categories ([[Category]]). Wikimedia allows commas in category names, and I haven’t found a way to include commas in darktable tags. I’ve tried escaping them with \ without success and was wondering, if it is possible at all to have tags with commas in darktable, or whether darktable will always just split tags at commas.
Thank you!

Add a tag without a comma. In Windows (no idea other OSs) right click the tag in the bottom half of the tag module and choose ‘edit…’ Rewrite the tag with the comma (either without or with spaces before/after the comma). When searching for tags in the search bar, typing just a comma is ignored. However, if you added a space before the comma (or after), when searching and typing the space then comma (or comma then space), that will find all the tags with the space/comma (comma/space) without typing any tag words at all. You can also search using the usual method of typing just the tag name with the comma wherever you put it. I’m not sure if it causes problems anywhere in the program for other operations, though, since I don’t use commas in my tags.

2 Likes

That works wonderfully, thank you!

2 Likes

I would be very careful with that. The “,” is used in several places in darktable as a separator for tags. You could run into unpleasant problems sooner or later. See, for example, Tags shortened by re-importing image .

1 Like

I guess that is a risk; considering I only need the tags with commas for the export, I might just delete them after exporting to be safe.