Code:
program:
# New value for title
title = field('title');
title = transliterate(title);
title = re(
title,
'[^a-zA-Z0-9]',
''
);
title = substr(title, 0, 100);
# Calculate any other bits needed
# Stuff goes here
# Stuff goes here
# Stuff goes here
strcat(
# add up all parts of template, if there is more than just the modified title
beginning_template_bits,
title,
end_template_bits
)
http://manual.calibre-ebook.com/temp...l-program-mode