mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Start work on snips
This commit is contained in:
parent
1410194a0d
commit
1e8309a4a3
25
src/calibre/gui2/tweak_book/snips.py
Normal file
25
src/calibre/gui2/tweak_book/snips.py
Normal file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env python
|
||||
# vim:fileencoding=utf-8
|
||||
from __future__ import (unicode_literals, division, absolute_import,
|
||||
print_function)
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2014, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||
|
||||
builtin_snips = {
|
||||
'<<' : {
|
||||
'description': _('Insert a HTML tag'),
|
||||
'template': '<$1>${2*}</$1>',
|
||||
},
|
||||
|
||||
'</' : {
|
||||
'description': _('Insert a self closing HTML tag'),
|
||||
'template': '<$1/>$2',
|
||||
},
|
||||
|
||||
'<a' : {
|
||||
'description': _('Insert a HTML link'),
|
||||
'template': '<a href="$1">${2*}</a>',
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user