|
@ -222,7 +222,7 @@ def unprefixed_title(title, prefixes): |
|
|
return match.group(2) |
|
|
return match.group(2) |
|
|
return title |
|
|
return title |
|
|
|
|
|
|
|
|
def search_image(image, chordprofile, config): |
|
|
def search_image(image, chordprofile, config, default=None): |
|
|
"""Return the file name of an image, so that LaTeX will find it. |
|
|
"""Return the file name of an image, so that LaTeX will find it. |
|
|
|
|
|
|
|
|
:param str image: The name, as provided in the chordpro file. |
|
|
:param str image: The name, as provided in the chordpro file. |
|
@ -256,4 +256,4 @@ def search_image(image, chordprofile, config): |
|
|
return os.path.join(directory, 'img', image) |
|
|
return os.path.join(directory, 'img', image) |
|
|
|
|
|
|
|
|
# Could not find image |
|
|
# Could not find image |
|
|
return image |
|
|
return default |
|
|