forked from antiguru/rahmen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrahmen.toml
63 lines (46 loc) · 2 KB
/
rahmen.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Configuration for Rahmen
# these will be overridden if also given on the command line
# Font size of the status line
font_size = 32
# Delay between transitions
delay = 9
display_time = true
# Parameters to tune the information line below the image.
# The following are probably only useful when post-processing using the python snippet
# or the line_replace regex(es).
# What to insert between the metadata, default: insert ", ".
# separator = "|"
# use this Python script for postprocessing
py_postprocess = "postprocess"
# look for it in this path
py_path = ["."]
# status line metadata (in this order) as provided by the exiv2 library
[[status_line]]
exif_tags = ["Iptc.Application2.ObjectName"]
[[status_line]]
exif_tags = ["Iptc.Application2.SubLocation"]
replace = [{ regex = '-myeon', replace = '' },{ regex = '-dong', replace = '' }]
[[status_line]]
exif_tags = ["Iptc.Application2.City"]
replace = [{ regex = ' City', replace = '' }, { regex = '-si', replace = '' }, { regex = '(-gu)n*', replace = '' }, { regex = '-eup', replace = '' }]
[[status_line]]
exif_tags = ["Iptc.Application2.ProvinceState"]
replace = [{ regex = '-do', replace = '' }]
[[status_line]]
exif_tags = ["Iptc.Application2.CountryName"]
replace = [{ regex = '(?i)United\sStates\sOf\sAmerica', replace = 'USA' }, ]
[[status_line]]
exif_tags = ["Exif.Photo.DateTimeOriginal"]
# convert date to German format
[[status_line.replace]]
regex = '(?P<y>\d{4})[-:](?P<M>\d+)[-:](?P<d>\d+)\s+(?P<h>\d+:)(?P<m>\d+):(?P<s>\d{2})'
# e.g. with time: replace = '$y-$M-$d, $h:$m'
replace = '$y-$M-$d'
[[status_line]]
exif_tags = ["Xmp.dc.creator"]
# convert input from UPPER CASE to Title Case (there's also the more powerful case_conversion instruction)
#capitalize = true
# convert input from case to case (see https://github.com/rutrum/convert-case#cases)
case_conversion = { from = 'Upper', to = 'Title' }
# remove everything after the first word, add s/th before name
replace = [{ regex = '\s.*$', replace = '' }, { regex = '(?P<a>^.*$)', replace = 'by $a' }]