|
|
#31 |
|
ZCD BombShel
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,686
Karma: 5470144
Join Date: Jan 2009
Location: The Frozen North (aka Illinois, USA)
Device: Nook ST with GlowLight and iPhone 4
|
|
|
|
|
|
|
#32 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,994
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
|
|
|
|
Enthusiast
|
|
|
|
#33 |
|
Time Enough at Last
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 370
Karma: 551316
Join Date: Feb 2008
Location: New England
Device: Kindle 3, Sony PRS-350, HP TouchPad, Kindle Fire, Windows Phone
|
__________________
Quae Sursum Volo Videre |
|
|
|
|
|
#34 | ||
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,127
Karma: 77366
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Quote:
Code:
{|tags|/}{|series|/}{|series_index|- }{title}
{/|tags|/}{|series|/}{|series_index|- }{title}
{/|series|/}{title}
Quote:
__________________
I reject your reality and substitute my own. |
||
|
|
|
|
|
#35 |
|
Creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,496
Karma: 2944574
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Putting path separators into the expressions isn't going to work. Leave those outside. calibre takes care of empty path components automatically anyway.
__________________
Get calibre Notice to all: I can not provide assistance with DRM removal, for legal reasons, so please do not contact me about it. |
|
|
|
|
|
#36 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,713
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
,series_index is not blank, it always has a value (but is only displayed if Series has a value) The value is Series index default or set) For this to work, we would need blank (string) OR Zero (numeric)
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#37 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,127
Karma: 77366
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Quote:
Code:
{|series_index:0>2s|- }
Code:
{series_index:0>2s}
Also, I have a question: If a book has multiple tags, is it possible to use only a single tag in a template? I tried Code:
{tags[0]}
__________________
I reject your reality and substitute my own. |
|
|
|
|
|
|
#38 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,853
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
Quote:
If series is blank, then series_index is set to None. I tested with this expression and it works. {series}{ - |series_index|}/{author}/{title} I get a folder level for series if the series exists, otherwise I don't.
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
|
|
#39 | ||
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,853
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
Quote:
Quote:
Instead, I suggest you make a custom text field and put the correct tag in it. No ambiguity. Note: a last-minute optimization broke composite fields. The code changed from Code:
'%s%s%s'%(prefix, value, suffix) Code:
prefix + value + suffix.
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
||
|
|
|
|
|
#40 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,713
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
All entries in the series table have index values. Some of us have series that contain, both sequenced items and non-sequence (not in the main story placement) items . I usually assign 0 to the index. I thought that was what he (and I) was trying to suppress. My bad.
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#41 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,127
Karma: 77366
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
No big deal, I was just thinking about how to restructure my library to get rid of tags as folder assignments, something I've been wanting to do for some time now.
__________________
I reject your reality and substitute my own. |
|
|
|
|
|
#42 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,853
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
OK, I have fixed the format spec + template problem. (Yea, you have heard this before. But this time I really mean it.
)In addition, and because it was convenient, I did some more stuff. The FAQ isn't updated yet, but a summary (not so short) is under the spoiler. Summary: fully dynamic path generation, (some) functions in format specs, and direct editing of composite field format specifications on the library view. I also changed the prefix and suffix position, because it made things *much* simpler. A field now looks like {name:fspec|prefix|suffix}. Any of fspec, prefix, or suffix can be empty. It is permissible to have no bars, but if there is one bar, then there must be two and the ':' must be there. Summary: {field}, {field:2>0s}, {field:||suffix}, and the like. Documentation is: Spoiler:
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
|
#43 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,713
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
So !
Is there going to be a new Beta soon
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
#44 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,853
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
We plan on releasing one tomorrow (Friday).
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
|
#45 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,713
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sony collections and custom fields: how to handle duplicates? | chaley | Calibre | 13 | 09-02-2010 04:11 PM |
| Amazon integrates Video and Audio with Ebooks | luqmaninbmore | News | 22 | 06-28-2010 06:22 PM |
| PRC file doesn't fully import into Calibre | MSJim | Mobi | 1 | 06-01-2010 02:55 PM |
| Calibre custom news feed and python help. | harrynewman | Calibre | 4 | 10-08-2009 09:26 AM |
| Smashwords integrates with Stanza, optimized for iPhone | Smashwords | News | 1 | 11-29-2008 03:26 PM |