Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-28-2011, 01:20 AM   #1
Ozric
Zealot
Ozric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watch
 
Posts: 146
Karma: 10671
Join Date: Nov 2007
Device: way too many =)
understanding template expressions

I'm sure this has been answered somewhere, but I haven't had any luck finding it for myself.

Anyway, I'm experimenting with some template expressions that I found in another thread. What purpose does the | symbol serve in the following?

{author_sort}{series:| - | }{series_index:0>2s}
{series}{series_index:0>2s|| - }{title}
Ozric is offline   Reply With Quote
Old 10-28-2011, 02:41 AM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,895
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by Ozric View Post
What purpose does the | symbol serve in the following?

{author_sort}{series:| - | }{series_index:0>2s}
{series}{series_index:0>2s|| - }{title}
{series:| - | -}

My understanding is that red - would be placed before the series name and the orange - would show after the series name (along with the spaces). If there is no series the the dashes and the series name would not be inserted.

The same applies to {series_index:0>2s|| - } items after the first | are placed previous to the field name the items placed after the second | are placed following the field name.

If the field doesn't exist any items in the brackets are not used.

Last edited by DoctorOhh; 10-28-2011 at 02:43 AM.
DoctorOhh is offline   Reply With Quote
Advert
Old 10-28-2011, 04:17 AM   #3
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,364
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
See this section in the calibre manual for details on what the vertical bars do.
chaley is offline   Reply With Quote
Old 10-28-2011, 04:39 AM   #4
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,895
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by chaley View Post
See this section in the calibre manual for details on what the vertical bars do.
Thanks for the link. I was closer than I thought.
DoctorOhh is offline   Reply With Quote
Old 10-28-2011, 01:36 PM   #5
Ozric
Zealot
Ozric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watchOzric is clearly one to watch
 
Posts: 146
Karma: 10671
Join Date: Nov 2007
Device: way too many =)
Quote:
Originally Posted by chaley View Post
See this section in the calibre manual for details on what the vertical bars do.
Thanks for the link--there's all sorts of informative stuff on that page. I had no idea you could do so much with Calibre.
Ozric is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regular Expressions geormes Calibre 4 08-04-2011 07:09 AM
Another help with regular expressions encapuchado Library Management 6 06-21-2011 03:14 PM
Help with regular expressions jevonbrady Library Management 6 06-21-2011 10:16 AM
Need help with expressions MMAC Library Management 2 04-25-2011 05:49 AM
Help with Regular Expressions ghostyjack Workshop 2 01-08-2010 11:04 AM


All times are GMT -4. The time now is 09:47 PM.


MobileRead.com is a privately owned, operated and funded community.