deekayhd
dc31b221ef
fix username as nil
2026-04-11 14:36:30 +02:00
deekayhd
34b88490c2
fix assignment of empty variables derived from exit_datetime_taken
2026-04-11 14:30:29 +02:00
deekayhd
d9b77bb3a2
fix incomplete removal of datetime_taken in PR #653
2026-04-10 19:56:00 +02:00
deekayhd
4d3924939b
remove unnecessary variable datetime_taken
2026-03-29 23:45:40 +02:00
deekayhd
80ff1ef0aa
add warning message
2026-03-29 23:37:22 +02:00
deekayhd
af362315e8
set all vars derived from datetime_taken to ""
2026-03-29 23:22:04 +02:00
deekayhd
28f3e9f6a2
fix wrong month in EXIF.MONTH.LONG and EXIF_MONTH.SHORT when no date available
2026-03-29 14:29:39 +02:00
Bill Ferguson
d75f00daa0
lib/dtutils/string - fixed ROLL.NAME to support the original and
...
the ROLL.NAME[n] variant in the same variable
string
2025-12-03 20:54:47 -05:00
Bill Ferguson
3e430ee2be
lib/dtutils/string - converted element from string to number for use in test
2025-12-03 18:26:13 -05:00
Bill Ferguson
3856ae3449
lib/dtutils/string - added format_exposure function to take an
...
exif_exposure and return it as an exposure
string (exif_exposure = 500, string 1/500)
2025-12-02 20:40:03 -05:00
Bill Ferguson
d54a9f8b7e
lib/dtutils/string - implemented variable substitution for ROLL.NAME[n]
2025-12-02 19:54:10 -05:00
Bill Ferguson
8f6cc850fb
lib/dtutils/string - Added Xmp.darktable.version and Xmp.dc.[title,
...
description,publisher,rights,creator]
2025-12-02 18:57:05 -05:00
Bill Ferguson
e9f18a3d36
lib/dtutils/string - add IMAGE.ID and IMAGE.ID.NEXT variables
2025-12-02 18:34:18 -05:00
wpferguson
db505f1e0a
Merge pull request #608 from wpferguson/fix_metadata_string_substitution
...
lib/dtutils/string - image metadata may return a nil so check to
2025-11-14 20:04:29 -05:00
Bill Ferguson
57d15a3fa6
lib/dtutils/string - image metadata may return a nil so check to
...
see if there is a value and return it otherwise
return an empty string
2025-11-11 21:59:07 -05:00
Bill Ferguson
8af5476f8d
lib/dtutils/string - fixed string substitution sequence to accept
...
start argument of more than 1 digit
2025-11-02 16:59:32 -05:00
deekayhd
ea79d10b11
Update string.lua
...
initialize datetime_taken with proper value if no exif_datetime_taken can be found (e.g. in TIFF files)
2025-07-01 13:55:47 +02:00
Tasos Bakogiannis
0cb9a8872e
Update sequence variable order.
2025-04-10 19:26:45 +02:00
Tasos Bakogiannis
5309ff1726
Revert "Align sequence tooltip with code."
...
This reverts commit c6eee15d75 .
2025-04-10 19:25:01 +02:00
Tasos Bakogiannis
c6eee15d75
Align sequence tooltip with code.
2025-04-09 23:48:48 +02:00
Krzysztof Kotowicz
da275c2a66
Fixed $(VERSION.IF_MULTI)
...
Variable substitution actually errored out when duplicates were present.
2024-12-02 10:11:23 +01:00
Krzysztof Kotowicz
3fa913d68a
Fixed $ROLL.NAME substitution
...
Accd to 57d3ad4bd3/src/common/variables.c (L660) it should be a basename of the file path.
2024-12-02 09:56:45 +01:00
Krzysztof Kotowicz
e4e194b0ec
Fixed $(FILE.NAME) variable substitution
...
According to comments and https://docs.darktable.org/usermanual/4.6/en/special-topics/variables/ it should be a basename.
2024-12-02 09:01:48 +01:00
Bill Ferguson
e7dbd6e369
lib/dtutils/string - fixed constant names to correctly define the
...
patterns as the unsafe filename characters.
2024-10-28 20:41:02 -04:00
Bill Ferguson
1b5cb1ae6e
lib/dtutils/string - corrected constrant names in assignment
2024-10-28 20:18:22 -04:00
Bill Ferguson
300bb9d443
lib/dtutils/string - fixed _should_be_sanitized with new patterns
...
to detect non safe filename characters
2024-10-19 22:04:56 -04:00
Bill Ferguson
44da339202
alias gettext to darktable.gettext.gettext then change the call to gettext
...
to only pass the message to be translated
2024-10-17 22:17:38 -04:00
Bill Ferguson
99eb595f4c
lib/dtutils/string added end to if to ensure that ret_val has a value
2024-10-16 21:00:27 -04:00
Bill Ferguson
a835ab89bc
lib/dtutils/string - added new variable. Removed invalid variables.
...
Fixed build_substitute list call. Fixed invalid
category return.
2024-10-16 00:42:08 -04:00
Bill Ferguson
da7674ca51
lib/dtutils/string - updated tooltip to use same translatable strings
...
as gui/gtkentry.c for consistency and eas of
translation
2024-10-14 12:54:13 -04:00
Bill Ferguson
167620fadf
lib/dtutils/string - Added get_substitution_tooltip() function to return
...
the substitution pattern tooltip so it only has to be
translated in one place.
Spelled substitution properly to that calls to
build_substitution_list succeed.
2024-09-10 16:34:36 -04:00
Bill Ferguson
3e37c06b84
lib/dtutils/string - Added check to determine if string needs to be
...
sanitized. Check looks for unprintable characters
and spaces.
2024-07-13 14:44:01 -04:00
Bill Ferguson
fecbb39347
lib/dtutils/string - more embedded doc updates
2024-05-20 23:43:47 -04:00
Bill Ferguson
dcbe575e9c
lib/dtutils/string - updated embedded documentation
2024-05-20 22:13:29 -04:00
Bill Ferguson
417c165d16
lib/dtutils/string - updated documentation
2024-05-20 18:18:46 -04:00
Bill Ferguson
232baab86b
lib/dtutils/string - removed debugging statements
2024-05-20 10:07:13 -04:00
Bill Ferguson
3ed4219e6c
lib/dtutils/string - added [] to sanitize_lua().
...
added 4.8 syntax to CATEGORY
added 4.8 SEQUENCE changes (syntax, start, width)
2024-05-20 00:56:01 -04:00
Bill Ferguson
97e33672ea
lib/dtutils/string - fixed default formatting of sequence
2024-05-19 23:04:01 -04:00
Bill Ferguson
7b2018412a
lib/dtutils/string - Cleaned up code to make it more readable.
...
Fixed VERSION_IF_MULTI. Added safety check
in category to make sure we don't try and
read a tag field that doesn't exist.
2024-05-18 22:01:10 -04:00
Bill Ferguson
3e2afffed8
lib/dtutils/string - Added categories to substitution functionality.
...
This makes it feature complete. Some substitutions
aren't implemented since the current use case for
this is creating export directories. The results
from the not implemented substitutions wouldn't
work well in path/file names (such as comma
separated lists or newlines).
2024-05-18 21:59:11 -04:00
Bill Ferguson
ad10542b30
lib/dtutils/string - Added variable substitution functions that
...
are equivalent to the darktable variable
substitution functions.
2023-03-26 14:55:40 -04:00
Bill Ferguson
5331a38f10
lib/dtutils/string - added % and + to sanitize_lua() to prevent
...
pattern matching problems
2023-03-25 17:05:11 -04:00
Bill Ferguson
c9943a2065
lib/dtutils/string - Added logging capability with the ability to
...
set library logging level from a user script
2023-03-25 17:02:48 -04:00
Bill Ferguson
80147a9ebc
lib/dtugiles.file - Moved filename/path/extension string functions to string library. Left
...
the existing function calls in place for backward compatibility. They
now call the new functions in the string library
lib/dtutils.string - Moved the filename/path/extension string functions to the string library
to prevent a circular library depnedency. The file library includes the
string library. If the string library needed to manipulate filename
related strings then the string library would need to include the
file library which would lead to a stack overflow.
2023-03-24 13:40:34 -04:00
Bill Ferguson
1c9042c496
Added a sanitize_lua function to the string library for sanitizing
...
strings of lua "magic" characters before using the string in a string
function that involves matching.
script_manager needs the path to the lua directory sanitized of lua
"magic" characters to prevent failure to extract the category and script
names.
2020-06-09 20:22:02 -04:00
August Schwerdfeger
51eda4e755
Made Windows- and POSIX-specific sanitization functions local; moved the 'sanitize' functions after the 'is_not_sanitized' functions that they call.
2020-01-21 22:17:12 -06:00
August Schwerdfeger
847c39749d
Corrected escaping of command-line arguments in the 'sanitize' and 'is_not_sanitized' functions.
2020-01-21 00:29:18 -06:00
Bill Ferguson
5b977733b3
Rewrote sanitize and is_not_sanitized to handle strings with embedded operatings system quotes. Fixes #216 .
2020-01-19 23:11:41 -05:00
Bill Ferguson
e427294ec1
fix library problems found during unit testing
2019-12-16 22:42:32 -05:00
wpferguson
b7857c8462
Revert "Library fixes"
2019-12-16 22:30:50 -05:00