home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_285 < prev    next >
Text File  |  2011-01-18  |  1KB  |  42 lines

  1. #!/usr/bin/env python
  2. # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
  3.  
  4. __license__   = 'GPL v3'
  5. __copyright__ = '2010, Kovid Goyal <kovid@kovidgoyal.net>'
  6. __docformat__ = 'restructuredtext en'
  7.  
  8. '''
  9.     These templates control the content of titles displayed in the various sections
  10.  
  11.     Available fields:
  12.     {title}          Title of the book
  13.     {series}         Series name
  14.     {series_index}   Number of the book in the series
  15.     {rating}         Rating
  16.     {rating_parens}  Rating, in parentheses
  17.     {pubyear}        Year the book was published
  18.     {pubyear_parens} Year the book was published, in parentheses
  19.  
  20. '''
  21. # Books by Author
  22. by_authors_normal_title_template = '{title} {pubyear_parens}'
  23. by_authors_series_title_template = '[{series_index}] {title} {pubyear_parens}'
  24.  
  25. # Books by Title
  26. by_titles_normal_title_template = '{title}'
  27. by_titles_series_title_template = '{title} ({series} [{series_index}])'
  28.  
  29. # Books by Series
  30. by_series_title_template = '[{series_index}] {title} {pubyear_parens}'
  31.  
  32. # Books by Genre
  33. by_genres_normal_title_template = '{title} {pubyear_parens}'
  34. by_genres_series_title_template = '{series_index}. {title} {pubyear_parens}'
  35.  
  36. # Recently Added
  37. by_recently_added_normal_title_template = '{title}'
  38. by_recently_added_series_title_template = '{title} ({series} [{series_index}])'
  39.  
  40. # By Month added
  41. by_month_added_normal_title_template = '{title} {pubyear_parens}'
  42. by_month_added_series_title_template = '[{series_index}] {title} {pubyear_parens}'