From 8dc18fc9d401faca9b066d25d1a893528c9cacaa Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 10 May 2008 13:18:26 -0400 Subject: [PATCH 1/1] web commit by http://madduck.net/ --- doc/todo/more_customisable_titlepage_function.mdwn | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 doc/todo/more_customisable_titlepage_function.mdwn diff --git a/doc/todo/more_customisable_titlepage_function.mdwn b/doc/todo/more_customisable_titlepage_function.mdwn new file mode 100644 index 000000000..46f7f6a2a --- /dev/null +++ b/doc/todo/more_customisable_titlepage_function.mdwn @@ -0,0 +1,11 @@ +I understand the `IkiWiki::titlepage` function is used to generate filenames from titles. It would be nice if there were an easier way to override what it does. I suppose I could write an *external* plugin and call `inject`, but maybe this could instead be done via the configuration file? + +I imagine two things: a lookup hash and a template. + +Since `IkiWiki::titlepage` basically translates characters, it would be cool to be able to define a lookup hash in the configuration, which would be consulted before falling back to the generic `__xx__` `ord()` representation of a letter. For instance, in German, I might prefer to have 'ä' become 'ae' instead of something illegible. + +Second, maybe a template could be honoured. The template could have a slot `%s` where the calculated title goes, and it could contain `strftime` symbols as well as variables, which get interpolated on use. + +-- [[madduck]] + +[[wishlist]] -- 2.45.0