#!/usr/bin/env python # # extractuicbdoc.py - extract uicb documentation from awesome source code # Copyright (C) 2008 Julien Danjou # Copyright (C) 2008 Marco Candrian # # This indeed crappy. Any better version, even with awk, would be welcome. print """Note: when there is no whitespace, quotes are optional. -> true or false -> Color in X format or hexadecimal (e.g. #aabbcc) -> Floating numbers (e.g 0.2) -> Pango font: [FAMILY-LIST] [STYLE-OPTIONS] [SIZE] (e.g Sans Italic 12) -> A name used to identify (e.g foobar) -> A path to an image (e.g. /home/user/image.jpg) -> A signed integer -> A KeySym (e.g. F10) or a KeyCodea (e.g #120) -> A key modifier list (e.g. Mod1) -> Regular expression -> A string -> A string list (e.g. {a, b, c, ...}) -> Argument to an uicb function -> Uicb function, see UICB FUNCTIONS