|
|
#1 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,090
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Template suggestion?
A nice Sigil feature was the ability to have 'Templates' with placeholders that would be changed at insert time:
http://web.sigil.googlecode.com/git/...add_cover.html [Insert Cover] and if cover.xhtml was in the user's AppData folder, it would be used instead of a 'generic' xhtml It might be a useful feature to have templates xhtml files for Cover, TOC, New, Title, etc. Something like [Insert Special ...] Cover Title TOC New browse .... The Sigil Cover template had 3 placeholders ... SGC_IMAGE_FILENAME: this will be replaced by the path to the image in your EPUB. SGC_IMAGE_WIDTH: this will be replaced by the width in pixels of your image. SGC_IMAGE_HEIGHT: this will be replaced by the height in pixels of your image. but possible the different 'specials' would have their own as appropriate You can insert a file now of course, but the benefit IMHO would be the place holders and the generation of the semantics (I think that's the term for saying "This is the Cover")
Last edited by phossler; 06-20-2014 at 09:06 PM. |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I can see how an insert cover tool might be useful, but general templates, not so much. Templates are a subset of snips, so instead of creating an file pre-filled with template you create a blank file and then trigger the appropriate snip to fill it with boilerplate. Of course, I still have to implement snips
![]() What I'm saying is that I'd much rather implement snips, a more general tool than templates. |
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Delete template | imans314 | Library Management | 15 | 04-26-2023 10:01 PM |
| Help with template | KALKITO | Library Management | 1 | 07-02-2012 03:54 PM |
| New page template? | Artha | Sigil | 10 | 11-23-2011 06:54 PM |
| Kindle DX Template | Gideon | Calibre | 6 | 06-02-2009 01:52 AM |