merge with John's branch

This commit is contained in:
Tomasz Długosz 2011-08-05 20:45:24 +02:00
commit 80fff01cf1
105 changed files with 35797 additions and 29180 deletions

View File

@ -19,6 +19,65 @@
# new recipes: # new recipes:
# - title: # - title:
- version: 0.8.12
date: 2011-07-29
new features:
- title: "Content server: Return the correct last modified date when serving ebook files. Also allow getting of book metadata as /get/opf/<book_id>"
- title: "Driver for the COBY MP977"
- title: "Get Books: Remove epub bud store. Add Ozon.ru and e-knigni.net stores. Fix broken amazon UK and DE stores."
tickets: [816091]
- title: "Add a new tweak to Preferences->Tweaks that allows auto generation of series numbers when importing books with a series name, but no number"
tickets: [815573]
bug fixes:
- title: "Fix a regression in 0.8.11 that broke calibre on linux systems that use a file system encoding that cannot support cyrillic characters"
tickets: [815224]
- title: "Fix long titles not wrapping in cover browser"
tickets: [816595]
- title: "When adding books, handle the case of files without read permission more gracefully."
tickets: [814771]
- title: "When changing metadata in EPUB files do not use the opf: namespace prefix on newly created elements. Apparently, FBReaderJ doesn't understand XML namespaces."
tickets: [814722]
- title: "Prevent metadata download from returning published dates earlier than 101 A.D."
- title: "Fix a bug where dates before 101AD in the database could cause errors"
tickets: [814964]
- title: "Fix an error in the book details panel if the user sets the default author link to blank"
improved recipes:
- The Economist
- Instapaper
- Corren
new recipes:
- title: Counterpunch
author: O. Emmerson
- title: National Geographic (PL)
author: Marcin Urban
- title: Caros Amigos
author: Pablo Aldama
- title: Aksiyon Dergisi
author: thomass
- title: Dnevnik (MK) and +Info
author: Darko Spasovski
- title: Dagens Industri
author: Jonas Svensson
- version: 0.8.11 - version: 0.8.11
date: 2011-07-22 date: 2011-07-22

View File

@ -0,0 +1,53 @@
# -*- coding: utf-8 -*-
from calibre.web.feeds.news import BasicNewsRecipe
class Aksiyon (BasicNewsRecipe):
title = u'Aksiyon Dergisi'
__author__ = u'thomass'
description = 'Haftalık haber dergisi '
oldest_article =13
max_articles_per_feed =100
no_stylesheets = True
#delay = 1
#use_embedded_content = False
encoding = 'utf-8'
publisher = 'Aksiyon'
category = 'news, haberler,TR,gazete'
language = 'tr'
publication_type = 'magazine'
#extra_css = ' body{ font-family: Verdana,Helvetica,Arial,sans-serif } .introduction{font-weight: bold} .story-feature{display: block; padding: 0; border: 1px solid; width: 40%; font-size: small} .story-feature h2{text-align: center; text-transform: uppercase} '
#keep_only_tags = [dict(name='font', attrs={'class':['newsDetail','agenda2NewsSpot']}),dict(name='span', attrs={'class':['agenda2Title']}),dict(name='div', attrs={'id':['gallery']})]
remove_tags = [dict(name='img', attrs={'src':[ 'http://medya.aksiyon.com.tr/aksiyon/images/logo/logo.bmp','/aksiyon/images/template/green/baslik0.gif','mobile/home.jpg']}) ]
cover_img_url = 'http://www.aksiyon.com.tr/aksiyon/images/aksiyon/top-page/aksiyon_top_r2_c1.jpg'
masthead_url = 'http://aksiyon.com.tr/aksiyon/images/aksiyon/top-page/aksiyon_top_r2_c1.jpg'
remove_empty_feeds= True
remove_attributes = ['width','height']
feeds = [
( u'ANASAYFA', u'http://www.aksiyon.com.tr/aksiyon/rss?sectionId=0'),
( u'KARAKUTU', u'http://www.aksiyon.com.tr/aksiyon/rss?sectionId=11'),
( u'EKONOMİ', u'http://www.aksiyon.com.tr/aksiyon/rss?sectionId=35'),
( u'EKOANALİZ', u'http://www.aksiyon.com.tr/aksiyon/rss?sectionId=284'),
( u'YAZARLAR', u'http://www.aksiyon.com.tr/aksiyon/rss?sectionId=17'),
( u'KİTAPLIK', u'http://www.aksiyon.com.tr/aksiyon/rss?sectionId=13'),
( u'SİNEMA', u'http://www.aksiyon.com.tr/aksiyon/rss?sectionId=14'),
( u'ARKA PENCERE', u'http://www.aksiyon.com.tr/aksiyon/rss?sectionId=27'),
( u'DÜNYA', u'http://www.aksiyon.com.tr/aksiyon/rss?sectionId=32'),
( u'DOSYALAR', u'http://www.aksiyon.com.tr/aksiyon/rss?sectionId=34'),
( u'KÜLTÜR & SANAT', u'http://www.aksiyon.com.tr/aksiyon/rss?sectionId=12'),
( u'KAPAK', u'http://www.aksiyon.com.tr/aksiyon/rss?sectionId=26'),
( u'SPOR', u'http://www.aksiyon.com.tr/aksiyon/rss?sectionId=38'),
( u'BİLİŞİM - TEKNOLOJİ', u'http://www.aksiyon.com.tr/aksiyon/rss?sectionId=39'),
( u'3. BOYUT', u'http://www.aksiyon.com.tr/aksiyon/rss?sectionId=172'),
( u'HAYAT BİLGİSİ', u'http://www.aksiyon.com.tr/aksiyon/rss?sectionId=283'),
( u'İŞ DÜNYASI', u'http://www.aksiyon.com.tr/aksiyon/rss?sectionId=283'),
]
def print_version(self, url):
return url.replace('http://www.aksiyon.com.tr/aksiyon/newsDetail_getNewsById.action?load=detay&', 'http://www.aksiyon.com.tr/aksiyon/mobile_detailn.action?')

View File

@ -0,0 +1,17 @@
__copyright__ = '2011, Pablo Aldama <pabloaldama at gmail.com>'
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1311839910(BasicNewsRecipe):
title = u'Caros Amigos'
oldest_article = 20
max_articles_per_feed = 100
language = 'pt_BR'
__author__ = 'Pablo Aldama'
feeds = [(u'Caros Amigos', u'http://carosamigos.terra.com.br/index/index.php?format=feed&type=rss')]
keep_only_tags = [dict(name='div', attrs={'class':['blog']})
,dict(name='div', attrs={'class':['blogcontent']})
]
remove_tags = [dict(name='div', attrs={'class':'addtoany'})]

View File

@ -0,0 +1,40 @@
import re
from lxml.html import parse
from calibre.web.feeds.news import BasicNewsRecipe
class Counterpunch(BasicNewsRecipe):
'''
Parses counterpunch.com for articles
'''
title = 'Counterpunch'
description = 'Daily political opinion from www.Counterpunch.com'
language = 'en'
__author__ = 'O. Emmerson'
keep_only_tags = [dict(name='td', attrs={'width': '522'})]
max_articles_per_feed = 10
def parse_index(self):
feeds = []
title, url = 'Counterpunch', 'http://www.counterpunch.com'
articles = self.parse_page(url)
if articles:
feeds.append((title, articles))
return feeds
def parse_page(self, url):
parsed_page = parse(url).getroot()
articles = []
unwanted_text = re.compile('Website\ of\ the|I\ urge\ you|Subscribe\ now|DONATE|\@asis\.com|donation\ button|click\ over\ to\ our')
parsed_articles = [a for a in parsed_page.cssselect("html>body>table tr>td>p[class='style2']") if not unwanted_text.search(a.text_content())]
for art in parsed_articles:
try:
author = art.text
title = art.cssselect("a")[0].text + ' by {0}'.format(author)
art_url = 'http://www.counterpunch.com/' + art.cssselect("a")[0].attrib['href']
articles.append({'title': title, 'url': art_url})
except Exception as e:
e
#print('Handler Error: ', e, 'title :', a.text_content())
pass
return articles

98
recipes/dnevnik_mk.recipe Normal file
View File

@ -0,0 +1,98 @@
#!/usr/bin/env python
__author__ = 'Darko Spasovski'
__license__ = 'GPL v3'
__copyright__ = '2011, Darko Spasovski <darko.spasovski at gmail.com>'
'''
dnevnik.com.mk
'''
import re
import datetime
from calibre.web.feeds.news import BasicNewsRecipe
from calibre import browser
from calibre.ebooks.BeautifulSoup import BeautifulSoup
class Dnevnik(BasicNewsRecipe):
INDEX = 'http://www.dnevnik.com.mk'
__author__ = 'Darko Spasovski'
title = 'Dnevnik - mk'
description = 'Daily Macedonian newspaper'
masthead_url = 'http://www.dnevnik.com.mk/images/re-logo.gif'
language = 'mk'
publication_type = 'newspaper'
category = 'news, Macedonia'
max_articles_per_feed = 100
remove_javascript = True
no_stylesheets = True
use_embedded_content = False
preprocess_regexps = [(re.compile(i[0], re.IGNORECASE | re.DOTALL), i[1]) for i in
[
## Remove anything before the start of the article.
(r'<body.*?<\?xml version=\"1.0\"\?><!--Article start-->', lambda match: '<body>'),
## Remove anything after the end of the article.
(r'<!--Article end.*?</body>', lambda match : '</body>'),
]
]
extra_css = """
body{font-family: Arial,Helvetica,sans-serif}
.WB_DNEVNIK_Naslov{FONT-WEIGHT: bold; FONT-SIZE: 18px; FONT-FAMILY: Arial, Verdana, Tahoma; TEXT-DECORATION: none}
"""
conversion_options = {
'comment' : description,
'tags' : category,
'language' : language,
'linearize_tables' : True
}
def parse_index(self):
datum = datetime.datetime.today().strftime('%d.%m.%Y')
soup = self.index_to_soup(self.INDEX + '/default.asp?section=arhiva&arhDatum=' + datum)
feeds = []
for section in soup.findAll('td', attrs={'class':'WB_DNEVNIK_ArhivaFormTitle'}):
sectionTitle = section.contents[0].string
if sectionTitle.lower().startswith('online'):
# Skip online articles
continue
containerTable = section.findPrevious(name='table').findNextSibling(name='table')
if containerTable==None:
print 'No container table found - page layout may have been changed.'
continue
articles = []
for article in containerTable.findAll('a', attrs={'class': 'WB_DNEVNIK_ArhivaFormText'}):
title = self.tag_to_string(article, use_alt=True).strip()
articles.append({'title': title, 'url':'http://www.dnevnik.com.mk/' + article['href'], 'description':'', 'date':''})
if articles:
feeds.append((sectionTitle, articles))
return sorted(feeds, key=lambda section: self.get_weight(section))
def get_weight(self, section):
"""
Returns 'weight' of a section.
Used for sorting the sections based on their 'natural' order in the printed edition.
"""
natural_order = { u'во фокусот': 1, u'актуелно': 2, u'економија': 3,
u'отворена': 4, u'свет': 5, u'интервју': 6, u'џубокс': 7,
u'репортажа': 8, u'наш туризам': 9, u'живот': 10,
u'автомобилизам': 11, u'спорт': 12, u'омнибус': 13 }
if section[0].string.lower() in natural_order:
return natural_order[section[0].string.lower()]
else:
return 999 # section names not on the list go to the bottom
def get_cover_url(self):
datum = datetime.datetime.today().strftime('%d.%m.%Y')
soup = self.index_to_soup(self.INDEX + '/default.asp?section=arhiva&arhDatum=' + datum)
anchor = soup.find('a', attrs={'class': 'WB_DNEVNIK_MoreLink'})
if anchor != None:
raw = browser().open_novisit(self.INDEX + '/' + anchor['href']).read()
cover_soup = BeautifulSoup(raw)
url = cover_soup.find('div', attrs={'class':'WB_DNEVNIK_Datum2'}).findNext('img')['src']
return self.INDEX + '/' + url
return ''

View File

@ -6,10 +6,10 @@ __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
economist.com economist.com
''' '''
from calibre.web.feeds.news import BasicNewsRecipe from calibre.web.feeds.news import BasicNewsRecipe
from calibre.ebooks.BeautifulSoup import BeautifulSoup
from calibre.ebooks.BeautifulSoup import Tag, NavigableString from calibre.ebooks.BeautifulSoup import Tag, NavigableString
from collections import OrderedDict
import string, time, re import time, re
class Economist(BasicNewsRecipe): class Economist(BasicNewsRecipe):
@ -22,10 +22,12 @@ class Economist(BasicNewsRecipe):
' perspective. Best downloaded on Friday mornings (GMT)') ' perspective. Best downloaded on Friday mornings (GMT)')
extra_css = '.headline {font-size: x-large;} \n h2 { font-size: small; } \n h1 { font-size: medium; }' extra_css = '.headline {font-size: x-large;} \n h2 { font-size: small; } \n h1 { font-size: medium; }'
oldest_article = 7.0 oldest_article = 7.0
cover_url = 'http://www.economist.com/images/covers/currentcoverus_large.jpg' cover_url = 'http://media.economist.com/sites/default/files/imagecache/print-cover-thumbnail/print-covers/currentcoverus_large.jpg'
#cover_url = 'http://www.economist.com/images/covers/currentcoverus_large.jpg'
remove_tags = [ remove_tags = [
dict(name=['script', 'noscript', 'title', 'iframe', 'cf_floatingcontent']), dict(name=['script', 'noscript', 'title', 'iframe', 'cf_floatingcontent']),
dict(attrs={'class':['dblClkTrk', 'ec-article-info', 'share_inline_header']}), dict(attrs={'class':['dblClkTrk', 'ec-article-info',
'share_inline_header', 'related-items']}),
{'class': lambda x: x and 'share-links-header' in x}, {'class': lambda x: x and 'share-links-header' in x},
] ]
keep_only_tags = [dict(id='ec-article-body')] keep_only_tags = [dict(id='ec-article-body')]
@ -67,52 +69,54 @@ class Economist(BasicNewsRecipe):
return self.economist_parse_index() return self.economist_parse_index()
def economist_parse_index(self): def economist_parse_index(self):
soup = BeautifulSoup(self.browser.open(self.INDEX).read(), soup = self.index_to_soup(self.INDEX)
convertEntities=BeautifulSoup.HTML_ENTITIES) feeds = OrderedDict()
index_started = False for section in soup.findAll(attrs={'class':lambda x: x and 'section' in
feeds = {} x}):
ans = [] h4 = section.find('h4')
key = None if h4 is None:
for tag in soup.findAll(['h1', 'h2']):
text = ''.join(tag.findAll(text=True))
if tag.name in ('h1', 'h2') and 'Classified ads' in text:
break
if tag.name == 'h1':
if 'The world this week' in text or 'The world this year' in text:
index_started = True
if not index_started:
continue continue
text = string.capwords(text) section_title = self.tag_to_string(h4).strip()
if text not in feeds.keys(): if not section_title:
feeds[text] = []
if text not in ans:
ans.append(text)
key = text
continue continue
if key is None: self.log('Found section: %s'%section_title)
articles = []
for h5 in section.findAll('h5'):
article_title = self.tag_to_string(h5).strip()
if not article_title:
continue continue
a = tag.find('a', href=True) data = h5.findNextSibling(attrs={'class':'article'})
if data is None: continue
a = data.find('a', href=True)
if a is None: continue
url = a['href']
if url.startswith('/'): url = 'http://www.economist.com'+url
url += '/print'
article_title += ': %s'%self.tag_to_string(a).strip()
articles.append({'title':article_title, 'url':url,
'description':'', 'date':''})
if not articles:
# We have last or first section
for art in section.findAll(attrs={'class':'article'}):
a = art.find('a', href=True)
if a is not None: if a is not None:
url=a['href'] url = a['href']
id_ = re.search(r'story_id=(\d+)', url).group(1) if url.startswith('/'): url = 'http://www.economist.com'+url
url = 'http://www.economist.com/node/%s/print'%id_ url += '/print'
if url.startswith('Printer'): title = self.tag_to_string(a)
url = '/'+url if title:
if url.startswith('/'): articles.append({'title':title, 'url':url,
url = 'http://www.economist.com' + url 'description':'', 'date':''})
try:
subtitle = tag.previousSibling.contents[0].contents[0]
text = subtitle + ': ' + text
except:
pass
article = dict(title=text,
url = url,
description='', content='', date='')
feeds[key].append(article)
ans = [(key, feeds[key]) for key in ans if feeds.has_key(key)] if articles:
feeds[section_title] = articles
ans = [(key, val) for key, val in feeds.iteritems()]
if not ans: if not ans:
raise Exception('Could not find any articles. Has your subscription expired?') raise Exception('Could not find any articles, either the '
'economist.com server is having trouble and you should '
'try later or the website format has changed and the '
'recipe needs to be updated.')
return ans return ans
def eco_find_image_tables(self, soup): def eco_find_image_tables(self, soup):

View File

@ -16,11 +16,12 @@ class Economist(BasicNewsRecipe):
' Much slower than the print edition based version.') ' Much slower than the print edition based version.')
extra_css = '.headline {font-size: x-large;} \n h2 { font-size: small; } \n h1 { font-size: medium; }' extra_css = '.headline {font-size: x-large;} \n h2 { font-size: small; } \n h1 { font-size: medium; }'
oldest_article = 7.0 oldest_article = 7.0
cover_url = 'http://www.economist.com/images/covers/currentcoverus_large.jpg' cover_url = 'http://media.economist.com/sites/default/files/imagecache/print-cover-thumbnail/print-covers/currentcoverus_large.jpg'
#cover_url = 'http://www.economist.com/images/covers/currentcoverus_large.jpg'
remove_tags = [ remove_tags = [
dict(name=['script', 'noscript', 'title', 'iframe', 'cf_floatingcontent']), dict(name=['script', 'noscript', 'title', 'iframe', 'cf_floatingcontent']),
dict(attrs={'class':['dblClkTrk', 'ec-article-info', dict(attrs={'class':['dblClkTrk', 'ec-article-info',
'share_inline_header']}), 'share_inline_header', 'related-items']}),
{'class': lambda x: x and 'share-links-header' in x}, {'class': lambda x: x and 'share-links-header' in x},
] ]
keep_only_tags = [dict(id='ec-article-body')] keep_only_tags = [dict(id='ec-article-body')]

View File

@ -0,0 +1,58 @@
# -*- coding: utf-8 -*-
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1311790237(BasicNewsRecipe):
title = u'Periódico El Colombiano'
language = 'es_CO'
__author__ = 'BIGO-CAVA'
cover_url = 'http://www.elcolombiano.com/images/logoElColombiano348x46.gif'
remove_tags_before = dict(id='contenidoArt')
remove_tags_after = dict(id='enviaTips')
remove_tags_after = dict(id='zonaPata')
oldest_article = 1
max_articles_per_feed = 100
remove_javascript = True
no_stylesheets = True
use_embedded_content = False
remove_empty_feeds = True
masthead_url = 'http://www.elcolombiano.com/images/logoElColombiano348x46.gif'
publication_type = 'newspaper'
extra_css = """
p{text-align: justify; font-size: 100%}
body{ text-align: left; font-size:100% }
h1{font-family: sans-serif; font-size:150%; font-weight:bold; text-align: justify; }
h3{font-family: sans-serif; font-size:100%; font-style: italic; text-align: justify; }
"""
feeds = [(u'Portada', u'http://www.elcolombiano.com/rss/portada.xml'),
(u'Antioquia', u'http://www.elcolombiano.com/rss/Antioquia.xml'),
(u'Colombia', u'http://www.elcolombiano.com/rss/Colombia.xml'),
(u'Economia', u'http://www.elcolombiano.com/rss/Economia.xml'),
(u'Internacional', u'http://www.elcolombiano.com/rss/Internacional.xml'),
(u'Politica', u'http://www.elcolombiano.com/rss/Politica.xml'),
(u'Cultura', u'http://www.elcolombiano.com/rss/Cultura.xml'),
(u'Entretenimiento', u'http://www.elcolombiano.com/rss/Farandula.xml'),
(u'Tecnologia', u'http://www.elcolombiano.com/rss/Tecnologia.xml'),
(u'Television', u'http://www.elcolombiano.com/rss/Television.xml'),
(u'Vida y Sociedad', u'http://www.elcolombiano.com/rss/Vida.xml'),
(u'Turismo', u'http://www.elcolombiano.com/rss/Turismo.xm'),
(u'Salud', u'http://www.elcolombiano.com/rss/Salud.xml'),
(u'Ciencia', u'http://www.elcolombiano.com/rss/Ciencia.xml')]
remove_tags = [dict(name='div', attrs={'class':'objetosRelacionados'}),
dict(name='div', attrs={'class':'notasRelacionadas contenedor'}),
dict(name='div', attrs={'class':'comentarios'}),
dict(name='div', attrs={'class':'mapaDelSitio'}),
dict(name='div', attrs={'class':'creditos'}),
dict(name='div', attrs={'class':'votos'}),
dict(name='div', attrs={'class':'divopt2'}),
dict(name='div', attrs={'class':'comentarios'}),
dict(name='div', attrs={'class':'pestanasLateral'}),
dict(name='div', attrs={'class':'resumenSeccion'}),
dict(name='div', attrs={'class':'zonaComercial'}),
dict(name='div', attrs={'id':'zonaPata'})]

53
recipes/el_tiempo.recipe Normal file
View File

@ -0,0 +1,53 @@
# -*- coding: utf-8 -*-
from calibre.web.feeds.news import BasicNewsRecipe
class ColombiaElTiempo02(BasicNewsRecipe):
title = u'Periódico el Tiempo'
language = 'es_CO'
__author__ = 'BIGO-CAVA'
cover_url = 'http://www.eltiempo.com/media/css/images/logo_footer.png'
remove_tags_before = dict(id='fb-root')
remove_tags_after = [dict(name='div', attrs={'class':'modulo reporte'})]
keep_only_tags = [dict(name='div', id='contenidoArt')]
remove_tags = [dict(name='div', attrs={'class':'social-media'}),
dict(name='div', attrs={'class':'caja-facebook'}),
dict(name='div', attrs={'class':'caja-twitter'}),
dict(name='div', attrs={'class':'caja-buzz'}),
dict(name='div', attrs={'class':'ico-mail2'}),
dict(name='div', attrs={'id':'caja-instapaper'}),
dict(name='div', attrs={'class':'modulo herramientas'})]
oldest_article = 2
max_articles_per_feed = 100
remove_javascript = True
no_stylesheets = True
use_embedded_content = False
remove_empty_feeds = True
masthead_url = 'http://www.eltiempo.com/media/css/images/logo_footer.png'
publication_type = 'newspaper'
extra_css = """
p{text-align: justify; font-size: 100%}
body{ text-align: left; font-size:100% }
h1{font-family: sans-serif; font-size:150%; font-weight:bold; text-align: justify; }
h3{font-family: sans-serif; font-size:100%; font-style: italic; text-align: justify; }
"""
feeds = [(u'Colombia', u'http://www.eltiempo.com/colombia/rss.xml'),
(u'Medellin', u'http://www.eltiempo.com/colombia/medellin/rss.xml'),
(u'Economia', u'http://www.eltiempo.com/economia/rss.xml'),
(u'Deportes', u'http://www.eltiempo.com/deportes/rss.xml'),
(u'Mundo', u'http://www.eltiempo.com/mundo/rss.xml'),
(u'Gente', u'http://www.eltiempo.com/gente/rss.xml'),
(u'Vida de Hoy', u'http://www.eltiempo.com/vida-de-hoy/rss.xml'),
(u'EEUU', u'http://www.eltiempo.com/mundo/estados-unidos/rss.xml'),
(u'LatinoAmerica', u'http://www.eltiempo.com/mundo/latinoamerica/rss.xml'),
(u'Europa', u'http://www.eltiempo.com/mundo/europa/rss.xml'),
(u'Medio Oriente', u'http://www.eltiempo.com/mundo/medio-oriente/rss.xml'),
(u'Vive in Medellin', u'http://medellin.vive.in/medellin/rss.xml'),
(u'Don Juan', u'http://www.revistadonjuan.com/feedrss/'),
(u'Alo', u'http://www.eltiempo.com/alo/rss.xml')]

Binary file not shown.

After

Width:  |  Height:  |  Size: 894 B

View File

@ -0,0 +1,52 @@
# -*- coding: utf-8 -*-
__license__ = 'GPL v3'
__copyright__ = 'Marcin Urban 2011'
import re
from calibre.web.feeds.recipes import BasicNewsRecipe
class recipeMagic(BasicNewsRecipe):
title = 'National Geographic PL'
__author__ = 'Marcin Urban 2011'
description = 'legenda wśród magazynów z historią sięgającą 120 lat'
cover_url = 'http://www.guj.pl/var/guj/storage/images/media/nasze_magazyny/national_geographic/logo/ng_logo/2606-1-pol-PL/ng_logo.jpg'
oldest_article = 7
max_articles_per_feed = 100
no_stylesheets = True
#delay = 1
use_embedded_content = False
encoding = 'utf8'
publisher = 'G+J Gruner+Jahr Polska'
category = 'news, PL,'
language = 'pl'
publication_type = 'newsportal'
extra_css = ''' body {font-family: verdana, arial, helvetica, geneva, sans-serif ;}
h1{text-align: center;}
h2{font-size: medium; font-weight: bold;}
.authordate {font-size: small; color: #696969;}
p.lead {font-weight: bold; text-align: center;}
.fot{font-size: x-small; color: #666666;} '''
preprocess_regexps = [(re.compile(r'<!--.*?-->', re.DOTALL), lambda m: '')]
conversion_options = {
'comments' : description
,'tags' : category
,'language' : language
,'publisher' : publisher
,'linearize_tables': True
}
remove_tags = [
dict(name='div', attrs={'class':'add_inf'}),
dict(name='div', attrs={'class':'add_f'}),
]
remove_attributes = ['width','height']
feeds = [
('National Geographic PL', 'http://www.national-geographic.pl/rss/'),
]
def print_version(self, url):
return url.replace('artykuly0Cpokaz', 'drukuj-artykul')

47
recipes/plus_info.recipe Normal file
View File

@ -0,0 +1,47 @@
#!/usr/bin/env python
__author__ = 'Darko Spasovski'
__license__ = 'GPL v3'
__copyright__ = '2011, Darko Spasovski <darko.spasovski at gmail.com>'
'''
www.plusinfo.mk
'''
from calibre.web.feeds.news import BasicNewsRecipe
class PlusInfo(BasicNewsRecipe):
INDEX = 'www.plusinfo.mk'
title = u'+info'
__author__ = 'Darko Spasovski'
description = 'Macedonian news portal'
publication_type = 'newsportal'
category = 'news, Macedonia'
language = 'mk'
masthead_url = 'http://www.plusinfo.mk/style/images/logo.jpg'
remove_javascript = True
no_stylesheets = True
use_embedded_content = False
remove_empty_feeds = True
oldest_article = 1
max_articles_per_feed = 100
keep_only_tags = [dict(name='div', attrs={'class': 'vest'})]
remove_tags = [dict(name='div', attrs={'class':['komentari_holder', 'objava']})]
feeds = [(u'Македонија', u'http://www.plusinfo.mk/rss/makedonija'),
(u'Бизнис', u'http://www.plusinfo.mk/rss/biznis'),
(u'Скопје', u'http://www.plusinfo.mk/rss/skopje'),
(u'Култура', u'http://www.plusinfo.mk/rss/kultura'),
(u'Свет', u'http://www.plusinfo.mk/rss/svet'),
(u'Сцена', u'http://www.plusinfo.mk/rss/scena'),
(u'Здравје', u'http://www.plusinfo.mk/rss/zdravje'),
(u'Магазин', u'http://www.plusinfo.mk/rss/magazin'),
(u'Спорт', u'http://www.plusinfo.mk/rss/sport')]
# uncomment the following block if you want the print version (note: it lacks photos)
# def print_version(self,url):
# segments = url.split('/')
# printURL = '/'.join(segments[0:3]) + '/print/' + '/'.join(segments[5:])
# return printURL

36
recipes/portafolio.recipe Normal file
View File

@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1311799898(BasicNewsRecipe):
title = u'Periódico Portafolio Colombia'
language = 'es_CO'
__author__ = 'BIGO-CAVA'
cover_url = 'http://www.portafolio.co/sites/portafolio.co/themes/portafolio_2011/logo.png'
remove_tags_before = dict(id='contenidoArt')
remove_tags_after = [dict(name='div', attrs={'class':'articulo-mas'})]
keep_only_tags = [dict(name='div', id='contenidoArt')]
oldest_article = 1
max_articles_per_feed = 100
remove_javascript = True
no_stylesheets = True
use_embedded_content = False
remove_empty_feeds = True
masthead_url = 'http://www.portafolio.co/sites/portafolio.co/themes/portafolio_2011/logo.png'
publication_type = 'newspaper'
extra_css = """
p{text-align: justify; font-size: 100%}
body{ text-align: left; font-size:100% }
h1{font-family: sans-serif; font-size:150%; font-weight:bold; text-align: justify; }
h3{font-family: sans-serif; font-size:100%; font-style: italic; text-align: justify; }
"""
feeds = [(u'Negocios', u'http://www.portafolio.co/negocios/feed'),
(u'Economia', u'http://www.portafolio.co/economia/feed'),
(u'Internacional', u'http://www.portafolio.co/internacional/feed'),
(u'Indicadores', u'http://www.portafolio.co/indicadores/feed'),
(u'Opinion', u'http://www.portafolio.co/opinion/feed'),
(u'Finanzas Personales', u'http://www.portafolio.co/finanzas-personales/feed'),
(u'Herramientas', u'http://www.portafolio.co/herramientas/feed')]

View File

@ -373,7 +373,7 @@ class Win32Freeze(Command, WixMixIn):
src = self.j(self.src_root, 'setup', 'installer', 'windows', src = self.j(self.src_root, 'setup', 'installer', 'windows',
'portable.c') 'portable.c')
obj = self.j(self.obj_dir, self.b(src)+'.obj') obj = self.j(self.obj_dir, self.b(src)+'.obj')
cflags = '/c /EHsc /MT /W3 /Ox /nologo /D_UNICODE'.split() cflags = '/c /EHsc /MT /W3 /Ox /nologo /D_UNICODE /DUNICODE'.split()
if self.newer(obj, [src]): if self.newer(obj, [src]):
self.info('Compiling', obj) self.info('Compiling', obj)
@ -386,6 +386,7 @@ class Win32Freeze(Command, WixMixIn):
cmd = [msvc.linker] + ['/INCREMENTAL:NO', '/MACHINE:X86', cmd = [msvc.linker] + ['/INCREMENTAL:NO', '/MACHINE:X86',
'/LIBPATH:'+self.obj_dir, '/SUBSYSTEM:WINDOWS', '/LIBPATH:'+self.obj_dir, '/SUBSYSTEM:WINDOWS',
'/RELEASE', '/RELEASE',
'/ENTRY:wWinMainCRTStartup',
'/OUT:'+exe, self.embed_resources(exe), '/OUT:'+exe, self.embed_resources(exe),
obj, 'User32.lib'] obj, 'User32.lib']
self.run_builder(cmd) self.run_builder(cmd)

View File

@ -2,15 +2,21 @@
#define UNICODE #define UNICODE
#endif #endif
#ifndef _UNICODE
#define _UNICODE
#endif
#include <windows.h> #include <windows.h>
#include <tchar.h> #include <tchar.h>
#include <wchar.h>
#include <stdio.h> #include <stdio.h>
#define BUFSIZE 4096 #define BUFSIZE 4096
void show_error(LPCTSTR msg) { void show_error(LPCTSTR msg) {
MessageBeep(MB_ICONERROR); MessageBeep(MB_ICONERROR);
MessageBox(NULL, msg, TEXT("Error"), MB_OK|MB_ICONERROR); MessageBox(NULL, msg, _T("Error"), MB_OK|MB_ICONERROR);
} }
void show_detailed_error(LPCTSTR preamble, LPCTSTR msg, int code) { void show_detailed_error(LPCTSTR preamble, LPCTSTR msg, int code) {
@ -20,7 +26,7 @@ void show_detailed_error(LPCTSTR preamble, LPCTSTR msg, int code) {
_sntprintf_s(buf, _sntprintf_s(buf,
LocalSize(buf) / sizeof(TCHAR), _TRUNCATE, LocalSize(buf) / sizeof(TCHAR), _TRUNCATE,
TEXT("%s\r\n %s (Error Code: %d)\r\n"), _T("%s\r\n %s (Error Code: %d)\r\n"),
preamble, msg, code); preamble, msg, code);
show_error(buf); show_error(buf);
@ -32,7 +38,7 @@ void show_last_error_crt(LPCTSTR preamble) {
int err = 0; int err = 0;
_get_errno(&err); _get_errno(&err);
_wcserror_s(buf, BUFSIZE, err); _tcserror_s(buf, BUFSIZE, err);
show_detailed_error(preamble, buf, err); show_detailed_error(preamble, buf, err);
} }
@ -57,7 +63,7 @@ void show_last_error(LPCTSTR preamble) {
LPTSTR get_app_dir() { LPTSTR get_app_dir() {
LPTSTR buf, buf2, buf3; LPTSTR buf, buf2, buf3;
DWORD sz; DWORD sz;
TCHAR drive[4] = TEXT("\0\0\0"); TCHAR drive[4] = _T("\0\0\0");
errno_t err; errno_t err;
buf = (LPTSTR)calloc(BUFSIZE, sizeof(TCHAR)); buf = (LPTSTR)calloc(BUFSIZE, sizeof(TCHAR));
@ -67,18 +73,18 @@ LPTSTR get_app_dir() {
sz = GetModuleFileName(NULL, buf, BUFSIZE); sz = GetModuleFileName(NULL, buf, BUFSIZE);
if (sz == 0 || sz > BUFSIZE-1) { if (sz == 0 || sz > BUFSIZE-1) {
show_error(TEXT("Failed to get path to calibre-portable.exe")); show_error(_T("Failed to get path to calibre-portable.exe"));
ExitProcess(1); ExitProcess(1);
} }
err = _tsplitpath_s(buf, drive, 4, buf2, BUFSIZE, NULL, 0, NULL, 0); err = _tsplitpath_s(buf, drive, 4, buf2, BUFSIZE, NULL, 0, NULL, 0);
if (err != 0) { if (err != 0) {
show_last_error_crt(TEXT("Failed to split path to calibre-portable.exe")); show_last_error_crt(_T("Failed to split path to calibre-portable.exe"));
ExitProcess(1); ExitProcess(1);
} }
_sntprintf_s(buf3, BUFSIZE-1, _TRUNCATE, TEXT("%s%s"), drive, buf2); _sntprintf_s(buf3, BUFSIZE-1, _TRUNCATE, _T("%s%s"), drive, buf2);
free(buf); free(buf2); free(buf); free(buf2);
return buf3; return buf3;
} }
@ -90,18 +96,18 @@ void launch_calibre(LPCTSTR exe, LPCTSTR config_dir, LPCTSTR library_dir) {
BOOL fSuccess; BOOL fSuccess;
TCHAR cmdline[BUFSIZE]; TCHAR cmdline[BUFSIZE];
if (! SetEnvironmentVariable(TEXT("CALIBRE_CONFIG_DIRECTORY"), config_dir)) { if (! SetEnvironmentVariable(_T("CALIBRE_CONFIG_DIRECTORY"), config_dir)) {
show_last_error(TEXT("Failed to set environment variables")); show_last_error(_T("Failed to set environment variables"));
ExitProcess(1); ExitProcess(1);
} }
if (! SetEnvironmentVariable(TEXT("CALIBRE_PORTABLE_BUILD"), exe)) { if (! SetEnvironmentVariable(_T("CALIBRE_PORTABLE_BUILD"), exe)) {
show_last_error(TEXT("Failed to set environment variables")); show_last_error(_T("Failed to set environment variables"));
ExitProcess(1); ExitProcess(1);
} }
dwFlags = CREATE_UNICODE_ENVIRONMENT | CREATE_NEW_PROCESS_GROUP; dwFlags = CREATE_UNICODE_ENVIRONMENT | CREATE_NEW_PROCESS_GROUP;
_sntprintf_s(cmdline, BUFSIZE, _TRUNCATE, TEXT(" \"--with-library=%s\""), library_dir); _sntprintf_s(cmdline, BUFSIZE, _TRUNCATE, _T(" \"--with-library=%s\""), library_dir);
ZeroMemory( &si, sizeof(si) ); ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si); si.cb = sizeof(si);
@ -119,7 +125,7 @@ void launch_calibre(LPCTSTR exe, LPCTSTR config_dir, LPCTSTR library_dir) {
); );
if (fSuccess == 0) { if (fSuccess == 0) {
show_last_error(TEXT("Failed to launch the calibre program")); show_last_error(_T("Failed to launch the calibre program"));
} }
// Close process and thread handles. // Close process and thread handles.
@ -137,9 +143,9 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine
library_dir = (LPTSTR)calloc(BUFSIZE, sizeof(TCHAR)); library_dir = (LPTSTR)calloc(BUFSIZE, sizeof(TCHAR));
exe = (LPTSTR)calloc(BUFSIZE, sizeof(TCHAR)); exe = (LPTSTR)calloc(BUFSIZE, sizeof(TCHAR));
_sntprintf_s(config_dir, BUFSIZE, _TRUNCATE, TEXT("%sCalibre Settings"), app_dir); _sntprintf_s(config_dir, BUFSIZE, _TRUNCATE, _T("%sCalibre Settings"), app_dir);
_sntprintf_s(exe, BUFSIZE, _TRUNCATE, TEXT("%sCalibre\\calibre.exe"), app_dir); _sntprintf_s(exe, BUFSIZE, _TRUNCATE, _T("%sCalibre\\calibre.exe"), app_dir);
_sntprintf_s(library_dir, BUFSIZE, _TRUNCATE, TEXT("%sCalibre Library"), app_dir); _sntprintf_s(library_dir, BUFSIZE, _TRUNCATE, _T("%sCalibre Library"), app_dir);
launch_calibre(exe, config_dir, library_dir); launch_calibre(exe, config_dir, library_dir);

View File

@ -353,9 +353,14 @@ def browser(honor_time=True, max_time=2, mobile_browser=False, user_agent=None):
if user_agent is None: if user_agent is None:
user_agent = USER_AGENT_MOBILE if mobile_browser else USER_AGENT user_agent = USER_AGENT_MOBILE if mobile_browser else USER_AGENT
opener.addheaders = [('User-agent', user_agent)] opener.addheaders = [('User-agent', user_agent)]
http_proxy = get_proxies().get('http', None) proxies = get_proxies()
http_proxy = proxies.get('http', None)
if http_proxy: if http_proxy:
opener.set_proxies({'http':http_proxy}) opener.set_proxies({'http':http_proxy})
https_proxy = proxies.get('https', None)
if https_proxy:
opener.set_proxies({'https':https_proxy})
return opener return opener
def fit_image(width, height, pwidth, pheight): def fit_image(width, height, pwidth, pheight):

View File

@ -4,7 +4,7 @@ __license__ = 'GPL v3'
__copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net' __copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net'
__docformat__ = 'restructuredtext en' __docformat__ = 'restructuredtext en'
__appname__ = u'calibre' __appname__ = u'calibre'
numeric_version = (0, 8, 11) numeric_version = (0, 8, 12)
__version__ = u'.'.join(map(unicode, numeric_version)) __version__ = u'.'.join(map(unicode, numeric_version))
__author__ = u"Kovid Goyal <kovid@kovidgoyal.net>" __author__ = u"Kovid Goyal <kovid@kovidgoyal.net>"

View File

@ -9,6 +9,9 @@ __docformat__ = 'restructuredtext en'
import struct, datetime, sys, os, shutil import struct, datetime, sys, os, shutil
from collections import OrderedDict, defaultdict from collections import OrderedDict, defaultdict
from lxml import html
from calibre.utils.date import utc_tz from calibre.utils.date import utc_tz
from calibre.ebooks.mobi.langcodes import main_language, sub_language from calibre.ebooks.mobi.langcodes import main_language, sub_language
from calibre.ebooks.mobi.utils import (decode_hex_number, decint, from calibre.ebooks.mobi.utils import (decode_hex_number, decint,
@ -1065,7 +1068,7 @@ class TBSIndexing(object): # {{{
if eof != 0: if eof != 0:
raise ValueError('Unknown eof value %s when reading' raise ValueError('Unknown eof value %s when reading'
' starting section. All bytes: %r'%(eof, orig)) ' starting section. All bytes: %r'%(eof, orig))
ans.append('This record is spanned by an article from' ans.append('??This record has more than one article from '
' the section: %d'%si.index) ' the section: %d'%si.index)
return si, byts return si, byts
# }}} # }}}
@ -1208,6 +1211,19 @@ def inspect_mobi(path_or_stream, prefix='decompiled'):
for rec in getattr(f, attr): for rec in getattr(f, attr):
rec.dump(tdir) rec.dump(tdir)
alltext = os.path.join(ddir, 'text.html')
with open(alltext, 'wb') as of:
alltext = b''
for rec in f.text_records:
of.write(rec.raw)
alltext += rec.raw
of.seek(0)
root = html.fromstring(alltext.decode('utf-8'))
with open(os.path.join(ddir, 'pretty.html'), 'wb') as of:
of.write(html.tostring(root, pretty_print=True, encoding='utf-8',
include_meta_content_type=True))
print ('Debug data saved to:', ddir) print ('Debug data saved to:', ddir)
def main(): def main():

View File

@ -0,0 +1,86 @@
#!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
from __future__ import (unicode_literals, division, absolute_import,
print_function)
__license__ = 'GPL v3'
__copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import os, subprocess, shutil, tempfile
from lxml import etree
from calibre.constants import iswindows
from calibre.customize.ui import plugin_for_output_format
from calibre.ptempfile import TemporaryDirectory
from calibre.ebooks.mobi.utils import detect_periodical
from calibre import CurrentDir
exe = 'kindlegen.exe' if iswindows else 'kindlegen'
def refactor_opf(opf, is_periodical, toc):
with open(opf, 'rb') as f:
root = etree.fromstring(f.read())
'''
for spine in root.xpath('//*[local-name() = "spine" and @toc]'):
# Do not use the NCX toc as kindlegen requires the section structure
# in the TOC to be duplicated in the HTML, asinine!
del spine.attrib['toc']
'''
if is_periodical:
metadata = root.xpath('//*[local-name() = "metadata"]')[0]
xm = etree.SubElement(metadata, 'x-metadata')
xm.tail = '\n'
xm.text = '\n\t'
mobip = etree.SubElement(xm, 'output', attrib={'encoding':"utf-8",
'content-type':"application/x-mobipocket-subscription-magazine"})
mobip.tail = '\n\t'
with open(opf, 'wb') as f:
f.write(etree.tostring(root, method='xml', encoding='utf-8',
xml_declaration=True))
def refactor_guide(oeb):
for key in list(oeb.guide):
if key not in ('toc', 'start', 'masthead'):
oeb.guide.remove(key)
def run_kindlegen(opf, log):
log.info('Running kindlegen on MOBIML created by calibre')
oname = os.path.splitext(opf)[0] + '.mobi'
p = subprocess.Popen([exe, opf, '-c1', '-verbose', '-o', oname],
stderr=subprocess.STDOUT, stdout=subprocess.PIPE)
ko = p.stdout.read()
returncode = p.wait()
log.debug('kindlegen verbose output:')
log.debug(ko.decode('utf-8', 'replace'))
log.info('kindlegen returned returncode: %d'%returncode)
if not os.path.exists(oname) or os.stat(oname).st_size < 100:
raise RuntimeError('kindlegen did not produce any output. '
'kindlegen return code: %d'%returncode)
return oname
def kindlegen(oeb, opts, input_plugin, output_path):
is_periodical = detect_periodical(oeb.toc, oeb.log)
refactor_guide(oeb)
with TemporaryDirectory('_kindlegen_output') as tdir:
oeb_output = plugin_for_output_format('oeb')
oeb_output.convert(oeb, tdir, input_plugin, opts, oeb.log)
opf = [x for x in os.listdir(tdir) if x.endswith('.opf')][0]
refactor_opf(os.path.join(tdir, opf), is_periodical, oeb.toc)
try:
td = tempfile.gettempdir()
kd = os.path.join(td, 'kindlegen')
if os.path.exists(kd):
shutil.rmtree(kd)
shutil.copytree(tdir, kd)
oeb.log('kindlegen intermediate output stored in: %s'%kd)
except:
pass
with CurrentDir(tdir):
oname = run_kindlegen(opf, oeb.log)
shutil.copyfile(oname, output_path)

View File

@ -50,6 +50,19 @@ class MOBIOutput(OutputFormatPlugin):
help=_('When adding the Table of Contents to the book, add it at the start of the ' help=_('When adding the Table of Contents to the book, add it at the start of the '
'book instead of the end. Not recommended.') 'book instead of the end. Not recommended.')
), ),
OptionRecommendation(name='mobi_navpoints_only_deepest',
recommended_value=False,
help=_('When adding navpoints for the chapter-to-chapter'
' navigation on the kindle, use only the lowest level '
'of items in the TOC, instead of items at every level.')
),
OptionRecommendation(name='kindlegen',
recommended_value=False,
help=('Use kindlegen (must be in your PATH) to generate the'
' binary wrapper for the MOBI format. Useful to debug '
' the calibre MOBI output.')
),
]) ])
@ -164,6 +177,10 @@ class MOBIOutput(OutputFormatPlugin):
MobiWriter MobiWriter
else: else:
from calibre.ebooks.mobi.writer import MobiWriter from calibre.ebooks.mobi.writer import MobiWriter
if opts.kindlegen:
from calibre.ebooks.mobi.kindlegen import kindlegen
kindlegen(oeb, opts, input_plugin, output_path)
else:
writer = MobiWriter(opts, writer = MobiWriter(opts,
write_page_breaks_after_item=write_page_breaks_after_item) write_page_breaks_after_item=write_page_breaks_after_item)
writer(oeb, output_path) writer(oeb, output_path)

View File

@ -1231,6 +1231,9 @@ class MobiWriter(object):
self._oeb.logger.info(' Compressing markup content...') self._oeb.logger.info(' Compressing markup content...')
data, overlap = self._read_text_record(text) data, overlap = self._read_text_record(text)
if not self.opts.mobi_periodical:
self._flatten_toc()
# Evaluate toc for conformance # Evaluate toc for conformance
if self.opts.mobi_periodical : if self.opts.mobi_periodical :
self._oeb.logger.info(' MOBI periodical specified, evaluating TOC for periodical conformance ...') self._oeb.logger.info(' MOBI periodical specified, evaluating TOC for periodical conformance ...')
@ -1697,6 +1700,32 @@ class MobiWriter(object):
# Index {{{ # Index {{{
def _flatten_toc(self):
'''
Flatten and re-order entries in TOC so that chapter to chapter jumping
never fails on the Kindle.
'''
from calibre.ebooks.oeb.base import TOC
items = list(self._oeb.toc.iterdescendants())
if self.opts.mobi_navpoints_only_deepest:
items = [i for i in items if i.depth == 1]
offsets = {i:self._id_offsets.get(i.href, -1) for i in items if i.href}
items = [i for i in items if offsets[i] > -1]
items.sort(key=lambda i:offsets[i])
filt = []
seen = set()
for i in items:
off = offsets[i]
if off in seen: continue
seen.add(off)
filt.append(i)
items = filt
newtoc = TOC()
for c, i in enumerate(items):
newtoc.add(i.title, i.href, play_order=c+1, id=str(c),
klass='chapter')
self._oeb.toc = newtoc
def _generate_index(self): def _generate_index(self):
self._oeb.log('Generating INDX ...') self._oeb.log('Generating INDX ...')
self._primary_index_record = None self._primary_index_record = None

View File

@ -266,15 +266,15 @@ class TBS(object): # {{{
buf.write(typ) buf.write(typ)
if typ not in (self.type_110, self.type_111) and parent_section_index > 0: if typ not in (self.type_110, self.type_111) and parent_section_index > 0:
extra = {}
# Write starting section information # Write starting section information
if spanner is None: if spanner is None:
num_articles = len([a for a in depth_map[1] if a.parent_index num_articles = len([a for a in depth_map[1] if a.parent_index
== parent_section_index]) == parent_section_index])
extra = {} if not depth_map[1]:
extra = {0b0001: 0}
if num_articles > 1: if num_articles > 1:
extra = {0b0100: num_articles} extra = {0b0100: num_articles}
else:
extra = {0b0001: 0}
buf.write(encode_tbs(parent_section_index, extra)) buf.write(encode_tbs(parent_section_index, extra))
if spanner is None: if spanner is None:
@ -299,10 +299,10 @@ class TBS(object): # {{{
extra = {} extra = {}
if num > 1: if num > 1:
extra[0b0100] = num extra[0b0100] = num
if i == 0 and next_sec is not None: if False and i == 0 and next_sec is not None:
# Write offset to next section from start of record # Write offset to next section from start of record
# For some reason kindlegen only writes this offset # I can't figure out exactly when Kindlegen decides to
# for the first section transition. Imitate it. # write this so I have disabled it for now.
extra[0b0001] = next_sec.offset - data['offset'] extra[0b0001] = next_sec.offset - data['offset']
buf.write(encode_tbs(first_article.index-section.index, extra)) buf.write(encode_tbs(first_article.index-section.index, extra))

View File

@ -19,7 +19,7 @@ from calibre.ebooks.mobi.langcodes import iana2mobi
from calibre.utils.filenames import ascii_filename from calibre.utils.filenames import ascii_filename
from calibre.ebooks.mobi.writer2 import (PALMDOC, UNCOMPRESSED, RECORD_SIZE) from calibre.ebooks.mobi.writer2 import (PALMDOC, UNCOMPRESSED, RECORD_SIZE)
from calibre.ebooks.mobi.utils import (rescale_image, encint, from calibre.ebooks.mobi.utils import (rescale_image, encint,
encode_trailing_data) encode_trailing_data, align_block)
from calibre.ebooks.mobi.writer2.indexer import Indexer from calibre.ebooks.mobi.writer2.indexer import Indexer
EXTH_CODES = { EXTH_CODES = {
@ -366,7 +366,7 @@ class MobiWriter(object):
# 0x70 - 0x73 : EXTH flags # 0x70 - 0x73 : EXTH flags
# Bit 6 (0b1000000) being set indicates the presence of an EXTH header # Bit 6 (0b1000000) being set indicates the presence of an EXTH header
# The purpose of the other bits is unknown # The purpose of the other bits is unknown
exth_flags = 0b1011000 exth_flags = 0b1010000
if self.is_periodical: if self.is_periodical:
exth_flags |= 0b1000 exth_flags |= 0b1000
record0.write(pack(b'>I', exth_flags)) record0.write(pack(b'>I', exth_flags))
@ -434,7 +434,7 @@ class MobiWriter(object):
# Add some buffer so that Amazon can add encryption information if this # Add some buffer so that Amazon can add encryption information if this
# MOBI is submitted for publication # MOBI is submitted for publication
record0 += (b'\0' * (1024*8)) record0 += (b'\0' * (1024*8))
self.records[0] = record0 self.records[0] = align_block(record0)
# }}} # }}}
def build_exth(self): # EXTH Header {{{ def build_exth(self): # EXTH Header {{{
@ -506,7 +506,6 @@ class MobiWriter(object):
if datestr is not None: if datestr is not None:
datestr = bytes(datestr) datestr = bytes(datestr)
datestr = datestr.replace(b'+00:00', b'Z')
exth.write(pack(b'>II', EXTH_CODES['pubdate'], len(datestr) + 8)) exth.write(pack(b'>II', EXTH_CODES['pubdate'], len(datestr) + 8))
exth.write(datestr) exth.write(datestr)
nrecs += 1 nrecs += 1
@ -514,7 +513,7 @@ class MobiWriter(object):
raise NotImplementedError("missing date or timestamp needed for mobi_periodical") raise NotImplementedError("missing date or timestamp needed for mobi_periodical")
# Write the same creator info as kindlegen 1.2 # Write the same creator info as kindlegen 1.2
for code, val in [(204, 202), (205, 1), (206, 2), (207, 33307)]: for code, val in [(204, 201), (205, 1), (206, 2), (207, 33307)]:
exth.write(pack(b'>II', code, 12)) exth.write(pack(b'>II', code, 12))
exth.write(pack(b'>I', val)) exth.write(pack(b'>I', val))
nrecs += 1 nrecs += 1
@ -545,7 +544,8 @@ class MobiWriter(object):
''' '''
Write the PalmDB header Write the PalmDB header
''' '''
title = ascii_filename(unicode(self.oeb.metadata.title[0])) title = ascii_filename(unicode(self.oeb.metadata.title[0])).replace(
' ', '_')
title = title + (b'\0' * (32 - len(title))) title = title + (b'\0' * (32 - len(title)))
now = int(time.time()) now = int(time.time())
nrecords = len(self.records) nrecords = len(self.records)

View File

@ -53,6 +53,50 @@ class Serializer(object):
# become uncrossable breaks in the MOBI # become uncrossable breaks in the MOBI
self.breaks = [] self.breaks = []
self.find_blocks()
def find_blocks(self):
'''
Mark every item in the spine if it is the start/end of a
section/article, so that it can be wrapped in divs appropriately.
'''
for item in self.oeb.spine:
item.is_section_start = item.is_section_end = False
item.is_article_start = item.is_article_end = False
def spine_item(tocitem):
href = urldefrag(tocitem.href)[0]
for item in self.oeb.spine:
if item.href == href:
return item
for item in self.oeb.toc.iterdescendants():
if item.klass == 'section':
articles = list(item)
if not articles: continue
spine_item(item).is_section_start = True
for i, article in enumerate(articles):
si = spine_item(article)
si.is_article_start = True
items = list(self.oeb.spine)
in_sec = in_art = False
for i, item in enumerate(items):
try:
prev_item = items[i-1]
except:
prev_item = None
if in_art and item.is_article_start == True:
prev_item.is_article_end = True
in_art = False
if in_sec and item.is_section_start == True:
prev_item.is_section_end = True
in_sec = False
if item.is_section_start: in_sec = True
if item.is_article_start: in_art = True
item.is_section_end = item.is_article_end = True
def __call__(self): def __call__(self):
''' '''
Return the document serialized as a single UTF-8 encoded bytestring. Return the document serialized as a single UTF-8 encoded bytestring.
@ -155,14 +199,20 @@ class Serializer(object):
if not item.linear: if not item.linear:
self.breaks.append(buf.tell() - 1) self.breaks.append(buf.tell() - 1)
self.id_offsets[urlnormalize(item.href)] = buf.tell() self.id_offsets[urlnormalize(item.href)] = buf.tell()
# Kindle periodical articles are contained in a <div> tag if item.is_section_start:
buf.write(b'<div>')
if item.is_article_start:
buf.write(b'<div>') buf.write(b'<div>')
for elem in item.data.find(XHTML('body')): for elem in item.data.find(XHTML('body')):
self.serialize_elem(elem, item) self.serialize_elem(elem, item)
if item.is_article_end:
# Kindle periodical article end marker # Kindle periodical article end marker
buf.write(b'<div></div>') buf.write(b'<div></div>')
if self.write_page_breaks_after_item: if self.write_page_breaks_after_item:
buf.write(b'<mbp:pagebreak/>') buf.write(b'<mbp:pagebreak/>')
if item.is_article_end:
buf.write(b'</div>')
if item.is_section_end:
buf.write(b'</div>') buf.write(b'</div>')
self.anchor_offset = None self.anchor_offset = None

View File

@ -8,7 +8,8 @@ from functools import partial
from PyQt4.Qt import QThread, QObject, Qt, QProgressDialog, pyqtSignal, QTimer from PyQt4.Qt import QThread, QObject, Qt, QProgressDialog, pyqtSignal, QTimer
from calibre.gui2.dialogs.progress import ProgressDialog from calibre.gui2.dialogs.progress import ProgressDialog
from calibre.gui2 import question_dialog, error_dialog, info_dialog, gprefs from calibre.gui2 import (question_dialog, error_dialog, info_dialog, gprefs,
warning_dialog)
from calibre.ebooks.metadata.opf2 import OPF from calibre.ebooks.metadata.opf2 import OPF
from calibre.ebooks.metadata import MetaInformation from calibre.ebooks.metadata import MetaInformation
from calibre.constants import preferred_encoding, filesystem_encoding, DEBUG from calibre.constants import preferred_encoding, filesystem_encoding, DEBUG
@ -275,6 +276,24 @@ class Adder(QObject): # {{{
_('No books found'), show=True) _('No books found'), show=True)
return self.canceled() return self.canceled()
books = [[b] if isinstance(b, basestring) else b for b in books] books = [[b] if isinstance(b, basestring) else b for b in books]
restricted = set()
for i in xrange(len(books)):
files = books[i]
restrictedi = set(f for f in files if not os.access(f, os.R_OK))
if restrictedi:
files = [f for f in files if os.access(f, os.R_OK)]
books[i] = files
restricted |= restrictedi
if restrictedi:
det_msg = u'\n'.join(restrictedi)
warning_dialog(self.pd, _('No permission'),
_('Cannot add some files as you do not have '
' permission to access them. Click Show'
' Details to see the list of such files.'),
det_msg=det_msg, show=True)
books = list(filter(None, books))
if not books:
return self.canceled()
self.rfind = None self.rfind = None
from calibre.ebooks.metadata.worker import read_metadata from calibre.ebooks.metadata.worker import read_metadata
self.rq = Queue() self.rq = Queue()

View File

@ -25,7 +25,8 @@ class PluginWidget(Widget, Ui_Form):
Widget.__init__(self, parent, Widget.__init__(self, parent,
['prefer_author_sort', 'rescale_images', 'toc_title', ['prefer_author_sort', 'rescale_images', 'toc_title',
'mobi_ignore_margins', 'mobi_toc_at_start', 'mobi_ignore_margins', 'mobi_toc_at_start',
'dont_compress', 'no_inline_toc', 'masthead_font','personal_doc'] 'dont_compress', 'no_inline_toc',
'masthead_font','personal_doc', 'mobi_navpoints_only_deepest']
) )
from calibre.utils.fonts import fontconfig from calibre.utils.fonts import fontconfig
self.db, self.book_id = db, book_id self.db, self.book_id = db, book_id

View File

@ -55,7 +55,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="0" colspan="2"> <item row="9" column="0" colspan="2">
<widget class="QGroupBox" name="groupBox"> <widget class="QGroupBox" name="groupBox">
<property name="title"> <property name="title">
<string>Kindle options</string> <string>Kindle options</string>
@ -101,7 +101,7 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="9" column="0"> <item row="10" column="0">
<spacer name="verticalSpacer_2"> <spacer name="verticalSpacer_2">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
@ -128,6 +128,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="0" colspan="2">
<widget class="QCheckBox" name="opt_mobi_navpoints_only_deepest">
<property name="text">
<string>Use only &amp;lowest level of items in the TOC for chapter-to-chapter navigation</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
<resources/> <resources/>

View File

@ -29,12 +29,14 @@ if pictureflow is not None:
pictureflow.FlowImages.__init__(self) pictureflow.FlowImages.__init__(self)
self.images = [] self.images = []
self.captions = [] self.captions = []
self.subtitles = []
for f in os.listdir(dirpath): for f in os.listdir(dirpath):
f = os.path.join(dirpath, f) f = os.path.join(dirpath, f)
img = QImage(f) img = QImage(f)
if not img.isNull(): if not img.isNull():
self.images.append(img) self.images.append(img)
self.captions.append(os.path.basename(f)) self.captions.append(os.path.basename(f))
self.subtitles.append('%d bytes'%os.stat(f).st_size)
def count(self): def count(self):
return len(self.images) return len(self.images)
@ -45,6 +47,9 @@ if pictureflow is not None:
def caption(self, index): def caption(self, index):
return self.captions[index] return self.captions[index]
def subtitle(self, index):
return self.subtitles[index]
def currentChanged(self, index): def currentChanged(self, index):
print 'current changed:', index print 'current changed:', index

View File

@ -477,6 +477,8 @@ class BooksView(QTableView): # {{{
# arbitrary: scroll bar + header + some # arbitrary: scroll bar + header + some
max_width = self.width() - (self.verticalScrollBar().width() + max_width = self.width() - (self.verticalScrollBar().width() +
self.verticalHeader().width() + 10) self.verticalHeader().width() + 10)
if max_width < 200:
max_width = 200
if new_size > max_width: if new_size > max_width:
self.column_header.blockSignals(True) self.column_header.blockSignals(True)
self.setColumnWidth(col, max_width) self.setColumnWidth(col, max_width)
@ -567,7 +569,8 @@ class BooksView(QTableView): # {{{
if md.hasFormat('text/uri-list') and not \ if md.hasFormat('text/uri-list') and not \
md.hasFormat('application/calibre+from_library'): md.hasFormat('application/calibre+from_library'):
urls = [unicode(u.toLocalFile()) for u in md.urls()] urls = [unicode(u.toLocalFile()) for u in md.urls()]
return [u for u in urls if os.path.splitext(u)[1] and os.access(u, os.R_OK)] return [u for u in urls if os.path.splitext(u)[1] and
os.path.exists(u)]
def drag_icon(self, cover, multiple): def drag_icon(self, cover, multiple):
cover = cover.scaledToHeight(120, Qt.SmoothTransformation) cover = cover.scaledToHeight(120, Qt.SmoothTransformation)

View File

@ -99,6 +99,8 @@ typedef unsigned short QRgb565;
#define PFREAL_ONE (1 << PFREAL_SHIFT) #define PFREAL_ONE (1 << PFREAL_SHIFT)
#define PFREAL_HALF (PFREAL_ONE >> 1) #define PFREAL_HALF (PFREAL_ONE >> 1)
#define TEXT_FLAGS (Qt::TextWordWrap|Qt::TextWrapAnywhere|Qt::TextHideMnemonic|Qt::AlignCenter)
inline PFreal fmul(PFreal a, PFreal b) inline PFreal fmul(PFreal a, PFreal b)
{ {
return ((long long)(a))*((long long)(b)) >> PFREAL_SHIFT; return ((long long)(a))*((long long)(b)) >> PFREAL_SHIFT;
@ -401,6 +403,7 @@ private:
QImage* surface(int slideIndex); QImage* surface(int slideIndex);
void triggerRender(); void triggerRender();
void resetSlides(); void resetSlides();
void render_text(QPainter*, int);
}; };
PictureFlowPrivate::PictureFlowPrivate(PictureFlow* w, int queueLength_) PictureFlowPrivate::PictureFlowPrivate(PictureFlow* w, int queueLength_)
@ -663,6 +666,34 @@ void PictureFlowPrivate::triggerRender()
triggerTimer.start(); triggerTimer.start();
} }
void PictureFlowPrivate::render_text(QPainter *painter, int index) {
QRect brect, brect2;
int buffer_width, buffer_height;
QString caption, subtitle;
caption = slideImages->caption(index);
subtitle = slideImages->subtitle(index);
buffer_width = buffer.width(); buffer_height = buffer.height();
brect = painter->boundingRect(QRect(0, 0, buffer_width, fontSize), TEXT_FLAGS, caption);
brect2 = painter->boundingRect(QRect(0, 0, buffer_width, fontSize), TEXT_FLAGS, subtitle);
// So that if there is no subtitle, the caption is not flush with the bottom
if (brect2.height() < fontSize) brect2.setHeight(fontSize);
// So that the text does not occupy more than the lower half of the buffer
if (brect.height() > ((int)(buffer.height()/3.0)) - fontSize*2)
brect.setHeight(((int)buffer.height()/3.0) - fontSize*2);
brect.moveTop(buffer_height - (brect.height() + brect2.height()));
//printf("top: %d, height: %d\n", brect.top(), brect.height());
//
painter->drawText(brect, TEXT_FLAGS, caption);
brect2.moveTop(buffer_height - brect2.height());
painter->drawText(brect2, TEXT_FLAGS, slideImages->subtitle(index));
}
// Render the slides. Updates only the offscreen buffer. // Render the slides. Updates only the offscreen buffer.
void PictureFlowPrivate::render() void PictureFlowPrivate::render()
{ {
@ -708,10 +739,7 @@ void PictureFlowPrivate::render()
//painter.setPen(QColor(255,255,255,127)); //painter.setPen(QColor(255,255,255,127));
if (centerIndex < slideCount() && centerIndex > -1) { if (centerIndex < slideCount() && centerIndex > -1) {
painter.drawText( QRect(0,0, buffer.width(), buffer.height()*2-fontSize*4), render_text(&painter, centerIndex);
Qt::AlignCenter, slideImages->caption(centerIndex));
painter.drawText( QRect(0,0, buffer.width(), buffer.height()*2-fontSize*2),
Qt::AlignCenter, slideImages->subtitle(centerIndex));
} }
painter.end(); painter.end();
@ -764,20 +792,12 @@ void PictureFlowPrivate::render()
painter.setPen(QColor(255,255,255, (255-fade) )); painter.setPen(QColor(255,255,255, (255-fade) ));
if (leftTextIndex < sc && leftTextIndex > -1) { if (leftTextIndex < sc && leftTextIndex > -1) {
painter.drawText( QRect(0,0, buffer.width(), buffer.height()*2 - fontSize*4), render_text(&painter, leftTextIndex);
Qt::AlignCenter, slideImages->caption(leftTextIndex));
painter.drawText( QRect(0,0, buffer.width(), buffer.height()*2 - fontSize*2),
Qt::AlignCenter, slideImages->subtitle(leftTextIndex));
} }
painter.setPen(QColor(255,255,255, fade)); painter.setPen(QColor(255,255,255, fade));
if (leftTextIndex+1 < sc && leftTextIndex > -2) { if (leftTextIndex+1 < sc && leftTextIndex > -2) {
painter.drawText( QRect(0,0, buffer.width(), buffer.height()*2 - fontSize*4), render_text(&painter, leftTextIndex+1);
Qt::AlignCenter, slideImages->caption(leftTextIndex+1));
painter.drawText( QRect(0,0, buffer.width(), buffer.height()*2 - fontSize*2),
Qt::AlignCenter, slideImages->subtitle(leftTextIndex+1));
} }
painter.end(); painter.end();

View File

@ -6,7 +6,7 @@ __license__ = 'GPL 3'
__copyright__ = '2011, John Schember <john@nachtimwald.com>' __copyright__ = '2011, John Schember <john@nachtimwald.com>'
__docformat__ = 'restructuredtext en' __docformat__ = 'restructuredtext en'
import re, urllib import urllib
from contextlib import closing from contextlib import closing
from lxml import html from lxml import html

View File

@ -150,6 +150,8 @@ class CheckLibrary(object):
if not ext: if not ext:
return False return False
ext = ext[1:].lower() ext = ext[1:].lower()
if ext.startswith('original_'):
ext = ext[len('original_'):]
if ext in EBOOK_EXTENSIONS: if ext in EBOOK_EXTENSIONS:
return True return True
return False return False

View File

@ -10,13 +10,14 @@ import re, os, posixpath
import cherrypy import cherrypy
from calibre import fit_image, guess_type from calibre import fit_image, guess_type
from calibre.utils.date import fromtimestamp, utcnow from calibre.utils.date import fromtimestamp
from calibre.library.caches import SortKeyGenerator from calibre.library.caches import SortKeyGenerator
from calibre.library.save_to_disk import find_plugboard from calibre.library.save_to_disk import find_plugboard
from calibre.ebooks.metadata import authors_to_string from calibre.ebooks.metadata import authors_to_string
from calibre.utils.magick.draw import (save_cover_data_to, Image, from calibre.utils.magick.draw import (save_cover_data_to, Image,
thumbnail as generate_thumbnail) thumbnail as generate_thumbnail)
from calibre.utils.filenames import ascii_filename from calibre.utils.filenames import ascii_filename
from calibre.ebooks.metadata.opf2 import metadata_to_opf
plugboard_content_server_value = 'content_server' plugboard_content_server_value = 'content_server'
plugboard_content_server_formats = ['epub'] plugboard_content_server_formats = ['epub']
@ -32,7 +33,7 @@ class CSSortKeyGenerator(SortKeyGenerator):
class ContentServer(object): class ContentServer(object):
''' '''
Handles actually serving content files/covers. Also has Handles actually serving content files/covers/metadata. Also has
a few utility methods. a few utility methods.
''' '''
@ -68,9 +69,8 @@ class ContentServer(object):
# }}} # }}}
def get(self, what, id): def get(self, what, id):
'Serves files, covers, thumbnails from the calibre database' 'Serves files, covers, thumbnails, metadata from the calibre database'
try: try:
id = int(id) id = int(id)
except ValueError: except ValueError:
@ -90,6 +90,8 @@ class ContentServer(object):
thumb_height=height) thumb_height=height)
if what == 'cover': if what == 'cover':
return self.get_cover(id) return self.get_cover(id)
if what == 'opf':
return self.get_metadata_as_opf(id)
return self.get_format(id, what) return self.get_format(id, what)
def static(self, name): def static(self, name):
@ -180,6 +182,17 @@ class ContentServer(object):
cherrypy.log.error(traceback.print_exc()) cherrypy.log.error(traceback.print_exc())
raise cherrypy.HTTPError(404, 'Failed to generate cover: %r'%err) raise cherrypy.HTTPError(404, 'Failed to generate cover: %r'%err)
def get_metadata_as_opf(self, id_):
cherrypy.response.headers['Content-Type'] = \
'application/oebps-package+xml; charset=UTF-8'
mi = self.db.get_metadata(id_, index_is_id=True)
data = metadata_to_opf(mi)
cherrypy.response.timeout = 3600
cherrypy.response.headers['Last-Modified'] = \
self.last_modified(mi.last_modified)
return data
def get_format(self, id, format): def get_format(self, id, format):
format = format.upper() format = format.upper()
fmt = self.db.format(id, format, index_is_id=True, as_file=True, fmt = self.db.format(id, format, index_is_id=True, as_file=True,
@ -217,7 +230,8 @@ class ContentServer(object):
cherrypy.response.headers['Content-Disposition'] = \ cherrypy.response.headers['Content-Disposition'] = \
b'attachment; filename="%s"'%fname b'attachment; filename="%s"'%fname
cherrypy.response.timeout = 3600 cherrypy.response.timeout = 3600
cherrypy.response.headers['Last-Modified'] = self.last_modified(utcnow()) cherrypy.response.headers['Last-Modified'] = \
self.last_modified(self.db.format_last_modified(id, format))
return fmt return fmt
# }}} # }}}

View File

@ -45,7 +45,7 @@ static void sort_concat_step(sqlite3_context *context, int argc, sqlite3_value *
} }
if (list->count == list->length) { if (list->count == list->length) {
list->vals = (SortConcatItem**)realloc(list->vals, list->length + 100); list->vals = (SortConcatItem**)realloc(list->vals, sizeof(SortConcatItem*)*(list->length + 100));
if (list->vals == NULL) return; if (list->vals == NULL) return;
list->length = list->length + 100; list->length = list->length + 100;
} }
@ -122,7 +122,6 @@ static void sort_concat_finalize(sqlite3_context *context) {
free(ans); free(ans);
sort_concat_free(list); sort_concat_free(list);
} }
} }
static void sort_concat_finalize2(sqlite3_context *context) { static void sort_concat_finalize2(sqlite3_context *context) {
@ -190,7 +189,7 @@ static void identifiers_concat_step(sqlite3_context *context, int argc, sqlite3_
} }
if (list->count == list->length) { if (list->count == list->length) {
list->vals = (IdentifiersConcatItem**)realloc(list->vals, list->length + 100); list->vals = (IdentifiersConcatItem**)realloc(list->vals, sizeof(IdentifiersConcatItem*)*(list->length + 100));
if (list->vals == NULL) return; if (list->vals == NULL) return;
list->length = list->length + 100; list->length = list->length + 100;
} }

View File

@ -72,7 +72,7 @@ Regular expression mode has some differences from character mode, beyond (of cou
The third and most important is that the replace string can make reference to parts of the search string by using backreferences. A backreference is ``\\n`` where n is an integer that refers to the n'th parenthesized group in the search expression. For example, given the same example as above, `a bad cat`, a search expression `a (...) (...)`, and a replace expression `a \\2 \\1`, the result will be `a cat bad`. Please see the :ref:`regexptutorial` for more information on backreferences. The third and most important is that the replace string can make reference to parts of the search string by using backreferences. A backreference is ``\\n`` where n is an integer that refers to the n'th parenthesized group in the search expression. For example, given the same example as above, `a bad cat`, a search expression `a (...) (...)`, and a replace expression `a \\2 \\1`, the result will be `a cat bad`. Please see the :ref:`regexptutorial` for more information on backreferences.
One useful pattern: assume you want to change the case of an entire field. The easiest way to do this is to use character mode, but lets further assume you want to use regular expression mode. The search expression should be `(.*)` the replace expression should be `\1`, and the desired case change function should be selected. One useful pattern: assume you want to change the case of an entire field. The easiest way to do this is to use character mode, but lets further assume you want to use regular expression mode. The search expression should be `(.*)` the replace expression should be `\\1`, and the desired case change function should be selected.
Finally, in regular expression mode you can copy values from one field to another. Simply make the source and destination field different. The copy can replace the destination field, prepend to the field (add to the front), or append to the field (add at the end). The 'use comma' checkbox tells |app| to (or not to) add a comma between the text and the destination field in prepend and append modes. If the destination is multiple (e.g., tags), then you cannot uncheck this box. Finally, in regular expression mode you can copy values from one field to another. Simply make the source and destination field different. The copy can replace the destination field, prepend to the field (add to the front), or append to the field (add at the end). The 'use comma' checkbox tells |app| to (or not to) add a comma between the text and the destination field in prepend and append modes. If the destination is multiple (e.g., tags), then you cannot uncheck this box.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -4,9 +4,9 @@
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: calibre 0.8.11\n" "Project-Id-Version: calibre 0.8.12\n"
"POT-Creation-Date: 2011-07-22 09:50+MDT\n" "POT-Creation-Date: 2011-07-29 10:47+MDT\n"
"PO-Revision-Date: 2011-07-22 09:50+MDT\n" "PO-Revision-Date: 2011-07-29 10:47+MDT\n"
"Last-Translator: Automatically generated\n" "Last-Translator: Automatically generated\n"
"Language-Team: LANGUAGE\n" "Language-Team: LANGUAGE\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -57,15 +57,15 @@ msgstr ""
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/ereader.py:36 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/ereader.py:36
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/ereader.py:61 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/ereader.py:61
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/extz.py:23 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/extz.py:23
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/fb2.py:40 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/fb2.py:39
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/fb2.py:100 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/fb2.py:99
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/meta.py:36 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/meta.py:36
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/meta.py:64 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/meta.py:64
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/meta.py:66 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/meta.py:66
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/meta.py:124 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/meta.py:124
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/meta.py:126 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/meta.py:126
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/opf2.py:1072 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/opf2.py:1080
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/opf2.py:1182 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/opf2.py:1190
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/pdb.py:41 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/pdb.py:41
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/pdf.py:29 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/pdf.py:29
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/plucker.py:25 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/plucker.py:25
@ -81,10 +81,10 @@ msgstr ""
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/sources/covers.py:81 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/sources/covers.py:81
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/sources/douban.py:80 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/sources/douban.py:80
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/sources/google.py:81 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/sources/google.py:81
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/sources/identify.py:256 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/sources/identify.py:257
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/sources/identify.py:361 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/sources/identify.py:362
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/sources/identify.py:363 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/sources/identify.py:364
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/sources/identify.py:464 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/sources/identify.py:465
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/txt.py:18 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/txt.py:18
#: /home/kovid/work/calibre/src/calibre/ebooks/mobi/reader.py:43 #: /home/kovid/work/calibre/src/calibre/ebooks/mobi/reader.py:43
#: /home/kovid/work/calibre/src/calibre/ebooks/mobi/reader.py:69 #: /home/kovid/work/calibre/src/calibre/ebooks/mobi/reader.py:69
@ -95,6 +95,7 @@ msgstr ""
#: /home/kovid/work/calibre/src/calibre/ebooks/mobi/reader.py:964 #: /home/kovid/work/calibre/src/calibre/ebooks/mobi/reader.py:964
#: /home/kovid/work/calibre/src/calibre/ebooks/mobi/reader.py:966 #: /home/kovid/work/calibre/src/calibre/ebooks/mobi/reader.py:966
#: /home/kovid/work/calibre/src/calibre/ebooks/mobi/reader.py:968 #: /home/kovid/work/calibre/src/calibre/ebooks/mobi/reader.py:968
#: /home/kovid/work/calibre/src/calibre/ebooks/mobi/utils.py:292
#: /home/kovid/work/calibre/src/calibre/ebooks/odt/input.py:99 #: /home/kovid/work/calibre/src/calibre/ebooks/odt/input.py:99
#: /home/kovid/work/calibre/src/calibre/ebooks/odt/input.py:101 #: /home/kovid/work/calibre/src/calibre/ebooks/odt/input.py:101
#: /home/kovid/work/calibre/src/calibre/ebooks/oeb/base.py:1001 #: /home/kovid/work/calibre/src/calibre/ebooks/oeb/base.py:1001
@ -134,9 +135,9 @@ msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/actions/add.py:156 #: /home/kovid/work/calibre/src/calibre/gui2/actions/add.py:156
#: /home/kovid/work/calibre/src/calibre/gui2/actions/edit_metadata.py:376 #: /home/kovid/work/calibre/src/calibre/gui2/actions/edit_metadata.py:376
#: /home/kovid/work/calibre/src/calibre/gui2/actions/edit_metadata.py:379 #: /home/kovid/work/calibre/src/calibre/gui2/actions/edit_metadata.py:379
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:160 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:161
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:167 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:168
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:549 #: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:550
#: /home/kovid/work/calibre/src/calibre/gui2/convert/__init__.py:42 #: /home/kovid/work/calibre/src/calibre/gui2/convert/__init__.py:42
#: /home/kovid/work/calibre/src/calibre/gui2/convert/metadata.py:122 #: /home/kovid/work/calibre/src/calibre/gui2/convert/metadata.py:122
#: /home/kovid/work/calibre/src/calibre/gui2/convert/metadata.py:151 #: /home/kovid/work/calibre/src/calibre/gui2/convert/metadata.py:151
@ -164,21 +165,21 @@ msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:364 #: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:364
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single_download.py:161 #: /home/kovid/work/calibre/src/calibre/gui2/metadata/single_download.py:161
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single_download.py:165 #: /home/kovid/work/calibre/src/calibre/gui2/metadata/single_download.py:165
#: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:166 #: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:170
#: /home/kovid/work/calibre/src/calibre/gui2/store/stores/google_books_plugin.py:90 #: /home/kovid/work/calibre/src/calibre/gui2/store/stores/google_books_plugin.py:108
#: /home/kovid/work/calibre/src/calibre/gui2/viewer/main.py:200 #: /home/kovid/work/calibre/src/calibre/gui2/viewer/main.py:200
#: /home/kovid/work/calibre/src/calibre/library/cli.py:217 #: /home/kovid/work/calibre/src/calibre/library/cli.py:217
#: /home/kovid/work/calibre/src/calibre/library/database.py:914 #: /home/kovid/work/calibre/src/calibre/library/database.py:914
#: /home/kovid/work/calibre/src/calibre/library/database2.py:535 #: /home/kovid/work/calibre/src/calibre/library/database2.py:535
#: /home/kovid/work/calibre/src/calibre/library/database2.py:543 #: /home/kovid/work/calibre/src/calibre/library/database2.py:543
#: /home/kovid/work/calibre/src/calibre/library/database2.py:554 #: /home/kovid/work/calibre/src/calibre/library/database2.py:554
#: /home/kovid/work/calibre/src/calibre/library/database2.py:2003 #: /home/kovid/work/calibre/src/calibre/library/database2.py:2005
#: /home/kovid/work/calibre/src/calibre/library/database2.py:2150 #: /home/kovid/work/calibre/src/calibre/library/database2.py:2152
#: /home/kovid/work/calibre/src/calibre/library/database2.py:3164 #: /home/kovid/work/calibre/src/calibre/library/database2.py:3169
#: /home/kovid/work/calibre/src/calibre/library/database2.py:3166 #: /home/kovid/work/calibre/src/calibre/library/database2.py:3171
#: /home/kovid/work/calibre/src/calibre/library/database2.py:3299 #: /home/kovid/work/calibre/src/calibre/library/database2.py:3304
#: /home/kovid/work/calibre/src/calibre/library/server/content.py:212 #: /home/kovid/work/calibre/src/calibre/library/server/content.py:225
#: /home/kovid/work/calibre/src/calibre/library/server/content.py:213 #: /home/kovid/work/calibre/src/calibre/library/server/content.py:226
#: /home/kovid/work/calibre/src/calibre/library/server/mobile.py:243 #: /home/kovid/work/calibre/src/calibre/library/server/mobile.py:243
#: /home/kovid/work/calibre/src/calibre/library/server/opds.py:156 #: /home/kovid/work/calibre/src/calibre/library/server/opds.py:156
#: /home/kovid/work/calibre/src/calibre/library/server/opds.py:159 #: /home/kovid/work/calibre/src/calibre/library/server/opds.py:159
@ -238,7 +239,7 @@ msgid "Preferences"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/customize/__init__.py:609 #: /home/kovid/work/calibre/src/calibre/customize/__init__.py:609
#: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:37 #: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:41
msgid "Store" msgid "Store"
msgstr "" msgstr ""
@ -967,7 +968,7 @@ msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/tag_browser/model.py:1134 #: /home/kovid/work/calibre/src/calibre/gui2/tag_browser/model.py:1134
#: /home/kovid/work/calibre/src/calibre/library/database2.py:330 #: /home/kovid/work/calibre/src/calibre/library/database2.py:330
#: /home/kovid/work/calibre/src/calibre/library/database2.py:343 #: /home/kovid/work/calibre/src/calibre/library/database2.py:343
#: /home/kovid/work/calibre/src/calibre/library/database2.py:3028 #: /home/kovid/work/calibre/src/calibre/library/database2.py:3030
#: /home/kovid/work/calibre/src/calibre/library/field_metadata.py:171 #: /home/kovid/work/calibre/src/calibre/library/field_metadata.py:171
msgid "News" msgid "News"
msgstr "" msgstr ""
@ -975,8 +976,8 @@ msgstr ""
#: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:2685 #: /home/kovid/work/calibre/src/calibre/devices/apple/driver.py:2685
#: /home/kovid/work/calibre/src/calibre/gui2/catalog/catalog_epub_mobi.py:65 #: /home/kovid/work/calibre/src/calibre/gui2/catalog/catalog_epub_mobi.py:65
#: /home/kovid/work/calibre/src/calibre/library/catalog.py:652 #: /home/kovid/work/calibre/src/calibre/library/catalog.py:652
#: /home/kovid/work/calibre/src/calibre/library/database2.py:2988 #: /home/kovid/work/calibre/src/calibre/library/database2.py:2990
#: /home/kovid/work/calibre/src/calibre/library/database2.py:3006 #: /home/kovid/work/calibre/src/calibre/library/database2.py:3008
msgid "Catalog" msgid "Catalog"
msgstr "" msgstr ""
@ -1345,6 +1346,10 @@ msgstr ""
msgid "Communicate with the Moovybook Reader" msgid "Communicate with the Moovybook Reader"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/devices/misc.py:358
msgid "Communicate with the COBY"
msgstr ""
#: /home/kovid/work/calibre/src/calibre/devices/nokia/driver.py:17 #: /home/kovid/work/calibre/src/calibre/devices/nokia/driver.py:17
msgid "Communicate with the Nokia 770 internet tablet." msgid "Communicate with the Nokia 770 internet tablet."
msgstr "" msgstr ""
@ -1792,11 +1797,11 @@ msgstr ""
msgid "Options to help with debugging the conversion" msgid "Options to help with debugging the conversion"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:214 #: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:216
msgid "List builtin recipes" msgid "List builtin recipe names. You can create an ebook from a builtin recipe like this: ebook-convert \"Recipe Name.recipe\" output.epub"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:287 #: /home/kovid/work/calibre/src/calibre/ebooks/conversion/cli.py:288
msgid "Output saved to" msgid "Output saved to"
msgstr "" msgstr ""
@ -2589,7 +2594,7 @@ msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/library/models.py:1016 #: /home/kovid/work/calibre/src/calibre/gui2/library/models.py:1016
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single_download.py:133 #: /home/kovid/work/calibre/src/calibre/gui2/metadata/single_download.py:133
#: /home/kovid/work/calibre/src/calibre/gui2/preferences/metadata_sources.py:162 #: /home/kovid/work/calibre/src/calibre/gui2/preferences/metadata_sources.py:162
#: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:37 #: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:41
#: /home/kovid/work/calibre/src/calibre/gui2/store/stores/mobileread/models.py:23 #: /home/kovid/work/calibre/src/calibre/gui2/store/stores/mobileread/models.py:23
#: /home/kovid/work/calibre/src/calibre/library/field_metadata.py:349 #: /home/kovid/work/calibre/src/calibre/library/field_metadata.py:349
#: /home/kovid/work/calibre/src/calibre/library/server/opds.py:578 #: /home/kovid/work/calibre/src/calibre/library/server/opds.py:578
@ -2757,10 +2762,10 @@ msgid ""
"Fetch a cover image/social metadata for the book identified by ISBN from LibraryThing.com\n" "Fetch a cover image/social metadata for the book identified by ISBN from LibraryThing.com\n"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/ebooks/metadata/opf2.py:1366 #: /home/kovid/work/calibre/src/calibre/ebooks/metadata/opf2.py:1374
#: /home/kovid/work/calibre/src/calibre/ebooks/oeb/base.py:1498 #: /home/kovid/work/calibre/src/calibre/ebooks/oeb/base.py:1498
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:900 #: /home/kovid/work/calibre/src/calibre/gui2/metadata/single.py:900
#: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:37 #: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:41
msgid "Cover" msgid "Cover"
msgstr "" msgstr ""
@ -2881,7 +2886,7 @@ msgstr ""
msgid "When adding the Table of Contents to the book, add it at the start of the book instead of the end. Not recommended." msgid "When adding the Table of Contents to the book, add it at the start of the book instead of the end. Not recommended."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/ebooks/mobi/output.py:119 #: /home/kovid/work/calibre/src/calibre/ebooks/mobi/output.py:105
msgid "All articles" msgid "All articles"
msgstr "" msgstr ""
@ -3942,7 +3947,7 @@ msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/actions/choose_library.py:419 #: /home/kovid/work/calibre/src/calibre/gui2/actions/choose_library.py:419
#: /home/kovid/work/calibre/src/calibre/gui2/actions/copy_to_library.py:178 #: /home/kovid/work/calibre/src/calibre/gui2/actions/copy_to_library.py:178
#: /home/kovid/work/calibre/src/calibre/gui2/actions/save_to_disk.py:100 #: /home/kovid/work/calibre/src/calibre/gui2/actions/save_to_disk.py:100
#: /home/kovid/work/calibre/src/calibre/gui2/library/views.py:883 #: /home/kovid/work/calibre/src/calibre/gui2/library/views.py:886
msgid "Not allowed" msgid "Not allowed"
msgstr "" msgstr ""
@ -4744,68 +4749,77 @@ msgstr ""
msgid "%s has no available formats." msgid "%s has no available formats."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:68 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:69
msgid "Searching in" msgid "Searching in"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:245 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:246
msgid "Adding..." msgid "Adding..."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:258 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:259
msgid "Searching in all sub-directories..." msgid "Searching in all sub-directories..."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:269 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:270
msgid "Path error" msgid "Path error"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:270 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:271
msgid "The specified directory could not be processed." msgid "The specified directory could not be processed."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:274 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:275
#: /home/kovid/work/calibre/src/calibre/gui2/device.py:895 #: /home/kovid/work/calibre/src/calibre/gui2/device.py:895
msgid "No books" msgid "No books"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:275 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:276
msgid "No books found" msgid "No books found"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:339 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:289
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/basic_widgets.py:777
msgid "No permission"
msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:290
msgid "Cannot add some files as you do not have permission to access them. Click Show Details to see the list of such files."
msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:358
msgid "Added" msgid "Added"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:352 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:371
msgid "Adding failed" msgid "Adding failed"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:353 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:372
msgid "The add books process seems to have hung. Try restarting calibre and adding the books in smaller increments, until you find the problem book." msgid "The add books process seems to have hung. Try restarting calibre and adding the books in smaller increments, until you find the problem book."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:368 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:387
msgid "Duplicates found!" msgid "Duplicates found!"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:369 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:388
msgid "Books with the same title as the following already exist in the database. Add them anyway?" msgid "Books with the same title as the following already exist in the database. Add them anyway?"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:372 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:391
msgid "Adding duplicates..." msgid "Adding duplicates..."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:441 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:460
msgid "Saving..." msgid "Saving..."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:448 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:467
msgid "Collecting data, please wait..." msgid "Collecting data, please wait..."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/add.py:520 #: /home/kovid/work/calibre/src/calibre/gui2/add.py:539
msgid "Saved" msgid "Saved"
msgstr "" msgstr ""
@ -4958,37 +4972,37 @@ msgstr ""
msgid "Ids" msgid "Ids"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:162 #: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:163
#, python-format #, python-format
msgid "Book %(sidx)s of <span class=\"series_name\">%(series)s</span>" msgid "Book %(sidx)s of <span class=\"series_name\">%(series)s</span>"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:173 #: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:174
#: /home/kovid/work/calibre/src/calibre/gui2/library/models.py:1020 #: /home/kovid/work/calibre/src/calibre/gui2/library/models.py:1020
msgid "Collections" msgid "Collections"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:275 #: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:276
#: /home/kovid/work/calibre/src/calibre/gui2/widgets.py:247 #: /home/kovid/work/calibre/src/calibre/gui2/widgets.py:247
msgid "Paste Cover" msgid "Paste Cover"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:276 #: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:277
#: /home/kovid/work/calibre/src/calibre/gui2/widgets.py:248 #: /home/kovid/work/calibre/src/calibre/gui2/widgets.py:248
msgid "Copy Cover" msgid "Copy Cover"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:542 #: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:543
msgid "Double-click to open Book Details window" msgid "Double-click to open Book Details window"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:543 #: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:544
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/delete_matching_from_device.py:76 #: /home/kovid/work/calibre/src/calibre/gui2/dialogs/delete_matching_from_device.py:76
#: /home/kovid/work/calibre/src/calibre/library/field_metadata.py:279 #: /home/kovid/work/calibre/src/calibre/library/field_metadata.py:279
msgid "Path" msgid "Path"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:544 #: /home/kovid/work/calibre/src/calibre/gui2/book_details.py:545
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/book_info.py:109 #: /home/kovid/work/calibre/src/calibre/gui2/dialogs/book_info.py:109
#, python-format #, python-format
msgid "Cover size: %(width)d x %(height)d" msgid "Cover size: %(width)d x %(height)d"
@ -6624,11 +6638,11 @@ msgstr ""
msgid "<p>For example, to match all h2 tags that have class=\"chapter\", set tag to <i>h2</i>, attribute to <i>class</i> and value to <i>chapter</i>.</p><p>Leaving attribute blank will match any attribute and leaving value blank will match any value. Setting tag to * will match any tag.</p><p>To learn more advanced usage of XPath see the <a href=\"http://manual.calibre-ebook.com/xpath.html\">XPath Tutorial</a>." msgid "<p>For example, to match all h2 tags that have class=\"chapter\", set tag to <i>h2</i>, attribute to <i>class</i> and value to <i>chapter</i>.</p><p>Leaving attribute blank will match any attribute and leaving value blank will match any value. Setting tag to * will match any tag.</p><p>To learn more advanced usage of XPath see the <a href=\"http://manual.calibre-ebook.com/xpath.html\">XPath Tutorial</a>."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/cover_flow.py:140 #: /home/kovid/work/calibre/src/calibre/gui2/cover_flow.py:145
msgid "Browse by covers" msgid "Browse by covers"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/cover_flow.py:171 #: /home/kovid/work/calibre/src/calibre/gui2/cover_flow.py:176
msgid "Cover browser could not be loaded" msgid "Cover browser could not be loaded"
msgstr "" msgstr ""
@ -8314,19 +8328,19 @@ msgstr ""
msgid "Authors" msgid "Authors"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/quickview.py:189 #: /home/kovid/work/calibre/src/calibre/gui2/dialogs/quickview.py:188
msgid "**No items found**" msgid "**No items found**"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/quickview.py:190 #: /home/kovid/work/calibre/src/calibre/gui2/dialogs/quickview.py:189
msgid "Click in a column in the library view to see the information for that book" msgid "Click in a column in the library view to see the information for that book"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/quickview.py:206 #: /home/kovid/work/calibre/src/calibre/gui2/dialogs/quickview.py:205
msgid "Books with selected item \"{0}\": {1}" msgid "Books with selected item \"{0}\": {1}"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/dialogs/quickview.py:212 #: /home/kovid/work/calibre/src/calibre/gui2/dialogs/quickview.py:211
msgid "Double-click on a book to change the selection in the library view. Shift- or control-double-click to edit the metadata of a book" msgid "Double-click on a book to change the selection in the library view. Shift- or control-double-click to edit the metadata of a book"
msgstr "" msgstr ""
@ -9753,7 +9767,7 @@ msgstr ""
msgid "Restore default layout" msgid "Restore default layout"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/library/views.py:884 #: /home/kovid/work/calibre/src/calibre/gui2/library/views.py:887
msgid "Dropping onto a device is not supported. First add the book to the calibre library." msgid "Dropping onto a device is not supported. First add the book to the calibre library."
msgstr "" msgstr ""
@ -10061,10 +10075,6 @@ msgstr ""
msgid "Choose formats for " msgid "Choose formats for "
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/basic_widgets.py:777
msgid "No permission"
msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/metadata/basic_widgets.py:778 #: /home/kovid/work/calibre/src/calibre/gui2/metadata/basic_widgets.py:778
msgid "You do not have permission to read the following files:" msgid "You do not have permission to read the following files:"
msgstr "" msgstr ""
@ -12581,7 +12591,7 @@ msgid "Invert"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/store/config/chooser/models.py:21 #: /home/kovid/work/calibre/src/calibre/gui2/store/config/chooser/models.py:21
#: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:37 #: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:41
msgid "Affiliate" msgid "Affiliate"
msgstr "" msgstr ""
@ -12619,7 +12629,7 @@ msgid "This store is headquartered in %s. This is a good indication of what mark
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/store/config/chooser/models.py:143 #: /home/kovid/work/calibre/src/calibre/gui2/store/config/chooser/models.py:143
#: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:211 #: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:215
#, python-format #, python-format
msgid "Buying from this store supports the calibre developer: %s." msgid "Buying from this store supports the calibre developer: %s."
msgstr "" msgstr ""
@ -12735,36 +12745,36 @@ msgstr ""
msgid "Titl&e/Author/Price ..." msgid "Titl&e/Author/Price ..."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:37 #: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:41
msgid "DRM" msgid "DRM"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:37 #: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:41
msgid "Download" msgid "Download"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:37 #: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:41
msgid "Price" msgid "Price"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:196 #: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:200
#, python-format #, python-format
msgid "Detected price as: %s. Check with the store before making a purchase to verify this price is correct. This price often does not include promotions the store may be running." msgid "Detected price as: %s. Check with the store before making a purchase to verify this price is correct. This price often does not include promotions the store may be running."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:199 #: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:203
msgid "This book as been detected as having DRM restrictions. This book may not work with your reader and you will have limitations placed upon you as to what you can do with this book. Check with the store before making any purchases to ensure you can actually read this book." msgid "This book as been detected as having DRM restrictions. This book may not work with your reader and you will have limitations placed upon you as to what you can do with this book. Check with the store before making any purchases to ensure you can actually read this book."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:201 #: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:205
msgid "This book has been detected as being DRM Free. You should be able to use this book on any device provided it is in a format calibre supports for conversion. However, before making a purchase double check the DRM status with the store. The store may not be disclosing the use of DRM." msgid "This book has been detected as being DRM Free. You should be able to use this book on any device provided it is in a format calibre supports for conversion. However, before making a purchase double check the DRM status with the store. The store may not be disclosing the use of DRM."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:203 #: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:207
msgid "The DRM status of this book could not be determined. There is a very high likelihood that this book is actually DRM restricted." msgid "The DRM status of this book could not be determined. There is a very high likelihood that this book is actually DRM restricted."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:208 #: /home/kovid/work/calibre/src/calibre/gui2/store/search/models.py:212
#, python-format #, python-format
msgid "The following formats can be downloaded directly: %s." msgid "The following formats can be downloaded directly: %s."
msgstr "" msgstr ""
@ -13236,51 +13246,51 @@ msgstr ""
msgid "will keep running in the system tray. To close it, choose <b>Quit</b> in the context menu of the system tray." msgid "will keep running in the system tray. To close it, choose <b>Quit</b> in the context menu of the system tray."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/update.py:73 #: /home/kovid/work/calibre/src/calibre/gui2/update.py:74
#, python-format #, python-format
msgid "%(app)s has been updated to version <b>%(ver)s</b>. See the <a href=\"http://calibre-ebook.com/whats-new\">new features</a>." msgid "%(app)s has been updated to version <b>%(ver)s</b>. See the <a href=\"http://calibre-ebook.com/whats-new\">new features</a>."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/update.py:79 #: /home/kovid/work/calibre/src/calibre/gui2/update.py:80
msgid "Update available!" msgid "Update available!"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/update.py:84 #: /home/kovid/work/calibre/src/calibre/gui2/update.py:85
msgid "Show this notification for future updates" msgid "Show this notification for future updates"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/update.py:89 #: /home/kovid/work/calibre/src/calibre/gui2/update.py:90
msgid "&Get update" msgid "&Get update"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/update.py:93 #: /home/kovid/work/calibre/src/calibre/gui2/update.py:94
msgid "Update &plugins" msgid "Update &plugins"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/update.py:152 #: /home/kovid/work/calibre/src/calibre/gui2/update.py:153
#, python-format #, python-format
msgid " (%d plugin updates)" msgid " (%d plugin updates)"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/update.py:155 #: /home/kovid/work/calibre/src/calibre/gui2/update.py:156
msgid "Update found" msgid "Update found"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/update.py:158 #: /home/kovid/work/calibre/src/calibre/gui2/update.py:159
msgid "updated plugins" msgid "updated plugins"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/update.py:184 #: /home/kovid/work/calibre/src/calibre/gui2/update.py:185
#: /home/kovid/work/calibre/src/calibre/gui2/update.py:189 #: /home/kovid/work/calibre/src/calibre/gui2/update.py:190
msgid "Plugin Updates" msgid "Plugin Updates"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/update.py:187 #: /home/kovid/work/calibre/src/calibre/gui2/update.py:188
#, python-format #, python-format
msgid "There are %d plugin updates available" msgid "There are %d plugin updates available"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/gui2/update.py:191 #: /home/kovid/work/calibre/src/calibre/gui2/update.py:192
msgid "Install and configure user plugins" msgid "Install and configure user plugins"
msgstr "" msgstr ""
@ -14935,17 +14945,17 @@ msgstr ""
msgid "%(tt)sAverage rating is %(rating)3.1f" msgid "%(tt)sAverage rating is %(rating)3.1f"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/library/database2.py:3325 #: /home/kovid/work/calibre/src/calibre/library/database2.py:3330
#, python-format #, python-format
msgid "<p>Migrating old database to ebook library in %s<br><center>" msgid "<p>Migrating old database to ebook library in %s<br><center>"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/library/database2.py:3354 #: /home/kovid/work/calibre/src/calibre/library/database2.py:3359
#, python-format #, python-format
msgid "Copying <b>%s</b>" msgid "Copying <b>%s</b>"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/src/calibre/library/database2.py:3371 #: /home/kovid/work/calibre/src/calibre/library/database2.py:3376
msgid "Compacting database" msgid "Compacting database"
msgstr "" msgstr ""
@ -16229,225 +16239,225 @@ msgid "Auto increment series index"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:13 #: /home/kovid/work/calibre/resources/default_tweaks.py:13
msgid "The algorithm used to assign a new book in an existing series a series number.\nNew series numbers assigned using this tweak are always integer values, except\nif a constant non-integer is specified.\nPossible values are:\nnext - First available integer larger than the largest existing number\nfirst_free - First available integer larger than 0\nnext_free - First available integer larger than the smallest existing number\nlast_free - First available integer smaller than the largest existing number\nReturn largest existing + 1 if no free number is found\nconst - Assign the number 1 always\na number - Assign that number always. The number is not in quotes. Note that\n0.0 can be used here.\nExamples:\nseries_index_auto_increment = 'next'\nseries_index_auto_increment = 'next_free'\nseries_index_auto_increment = 16.5" msgid "The algorithm used to assign a book added to an existing series a series number.\nNew series numbers assigned using this tweak are always integer values, except\nif a constant non-integer is specified.\nPossible values are:\nnext - First available integer larger than the largest existing number\nfirst_free - First available integer larger than 0\nnext_free - First available integer larger than the smallest existing number\nlast_free - First available integer smaller than the largest existing number\nReturn largest existing + 1 if no free number is found\nconst - Assign the number 1 always\na number - Assign that number always. The number is not in quotes. Note that\n0.0 can be used here.\nExamples:\nseries_index_auto_increment = 'next'\nseries_index_auto_increment = 'next_free'\nseries_index_auto_increment = 16.5\n\nSet the use_series_auto_increment_tweak_when_importing tweak to True to\nuse the above values when importing/adding books. If this tweak is set to\nFalse (the default) then the series number will be set to 1 if it is not\nexplicitly set to during the import. If set to True, then the\nseries index will be set according to the series_index_auto_increment setting.\nNote that the use_series_auto_increment_tweak_when_importing tweak is used\nonly when a value is not provided during import. If the importing regular\nexpression produces a value for series_index, or if you are reading metadata\nfrom books and the import plugin produces a value, than that value will\nbe used irrespective of the setting of the tweak."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:31 #: /home/kovid/work/calibre/resources/default_tweaks.py:43
msgid "Add separator after completing an author name" msgid "Add separator after completing an author name"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:32 #: /home/kovid/work/calibre/resources/default_tweaks.py:44
msgid "Should the completion separator be append\nto the end of the completed text to\nautomatically begin a new completion operation\nfor authors.\nCan be either True or False" msgid "Should the completion separator be append\nto the end of the completed text to\nautomatically begin a new completion operation\nfor authors.\nCan be either True or False"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:39 #: /home/kovid/work/calibre/resources/default_tweaks.py:51
msgid "Author sort name algorithm" msgid "Author sort name algorithm"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:40 #: /home/kovid/work/calibre/resources/default_tweaks.py:52
msgid "The algorithm used to copy author to author_sort\nPossible values are:\ninvert: use \"fn ln\" -> \"ln, fn\"\ncopy : copy author to author_sort without modification\ncomma : use 'copy' if there is a ',' in the name, otherwise use 'invert'\nnocomma : \"fn ln\" -> \"ln fn\" (without the comma)\nWhen this tweak is changed, the author_sort values stored with each author\nmust be recomputed by right-clicking on an author in the left-hand tags pane,\nselecting 'manage authors', and pressing 'Recalculate all author sort values'.\nThe author name suffixes are words that are ignored when they occur at the\nend of an author name. The case of the suffix is ignored and trailing\nperiods are automatically handled." msgid "The algorithm used to copy author to author_sort\nPossible values are:\ninvert: use \"fn ln\" -> \"ln, fn\"\ncopy : copy author to author_sort without modification\ncomma : use 'copy' if there is a ',' in the name, otherwise use 'invert'\nnocomma : \"fn ln\" -> \"ln fn\" (without the comma)\nWhen this tweak is changed, the author_sort values stored with each author\nmust be recomputed by right-clicking on an author in the left-hand tags pane,\nselecting 'manage authors', and pressing 'Recalculate all author sort values'.\nThe author name suffixes are words that are ignored when they occur at the\nend of an author name. The case of the suffix is ignored and trailing\nperiods are automatically handled."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:57 #: /home/kovid/work/calibre/resources/default_tweaks.py:69
msgid "Use author sort in Tag Browser" msgid "Use author sort in Tag Browser"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:58 #: /home/kovid/work/calibre/resources/default_tweaks.py:70
msgid "Set which author field to display in the tags pane (the list of authors,\nseries, publishers etc on the left hand side). The choices are author and\nauthor_sort. This tweak affects only what is displayed under the authors\ncategory in the tags pane and content server. Please note that if you set this\nto author_sort, it is very possible to see duplicate names in the list because\nalthough it is guaranteed that author names are unique, there is no such\nguarantee for author_sort values. Showing duplicates won't break anything, but\nit could lead to some confusion. When using 'author_sort', the tooltip will\nshow the author's name.\nExamples:\ncategories_use_field_for_author_name = 'author'\ncategories_use_field_for_author_name = 'author_sort'" msgid "Set which author field to display in the tags pane (the list of authors,\nseries, publishers etc on the left hand side). The choices are author and\nauthor_sort. This tweak affects only what is displayed under the authors\ncategory in the tags pane and content server. Please note that if you set this\nto author_sort, it is very possible to see duplicate names in the list because\nalthough it is guaranteed that author names are unique, there is no such\nguarantee for author_sort values. Showing duplicates won't break anything, but\nit could lead to some confusion. When using 'author_sort', the tooltip will\nshow the author's name.\nExamples:\ncategories_use_field_for_author_name = 'author'\ncategories_use_field_for_author_name = 'author_sort'"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:72 #: /home/kovid/work/calibre/resources/default_tweaks.py:84
msgid "Completion sort order: choose when to change from lexicographic to ASCII-like" msgid "Completion sort order: choose when to change from lexicographic to ASCII-like"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:73 #: /home/kovid/work/calibre/resources/default_tweaks.py:85
msgid "Calibre normally uses locale-dependent lexicographic ordering when showing\ncompletion values. This means that the sort order is correct for the user's\nlanguage. However, this can be slow. Performance is improved by switching to\nascii ordering. This tweak controls when that switch happens. Set it to zero\nto always use ascii ordering. Set it to something larger than zero to switch\nto ascii ordering for performance reasons." msgid "Calibre normally uses locale-dependent lexicographic ordering when showing\ncompletion values. This means that the sort order is correct for the user's\nlanguage. However, this can be slow. Performance is improved by switching to\nascii ordering. This tweak controls when that switch happens. Set it to zero\nto always use ascii ordering. Set it to something larger than zero to switch\nto ascii ordering for performance reasons."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:81 #: /home/kovid/work/calibre/resources/default_tweaks.py:93
msgid "Control partitioning of Tag Browser" msgid "Control partitioning of Tag Browser"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:82 #: /home/kovid/work/calibre/resources/default_tweaks.py:94
msgid "When partitioning the tags browser, the format of the subcategory label is\ncontrolled by a template: categories_collapsed_name_template if sorting by\nname, categories_collapsed_rating_template if sorting by average rating, and\ncategories_collapsed_popularity_template if sorting by popularity. There are\ntwo variables available to the template: first and last. The variable 'first'\nis the initial item in the subcategory, and the variable 'last' is the final\nitem in the subcategory. Both variables are 'objects'; they each have multiple\nvalues that are obtained by using a suffix. For example, first.name for an\nauthor category will be the name of the author. The sub-values available are:\nname: the printable name of the item\ncount: the number of books that references this item\navg_rating: the average rating of all the books referencing this item\nsort: the sort value. For authors, this is the author_sort for that author\ncategory: the category (e.g., authors, series) that the item is in.\nNote that the \"r'\" in front of the { is necessary if there are backslashes\n(\\ characters) in the template. It doesn't hurt anything to leave it there\neven if there aren't any backslashes." msgid "When partitioning the tags browser, the format of the subcategory label is\ncontrolled by a template: categories_collapsed_name_template if sorting by\nname, categories_collapsed_rating_template if sorting by average rating, and\ncategories_collapsed_popularity_template if sorting by popularity. There are\ntwo variables available to the template: first and last. The variable 'first'\nis the initial item in the subcategory, and the variable 'last' is the final\nitem in the subcategory. Both variables are 'objects'; they each have multiple\nvalues that are obtained by using a suffix. For example, first.name for an\nauthor category will be the name of the author. The sub-values available are:\nname: the printable name of the item\ncount: the number of books that references this item\navg_rating: the average rating of all the books referencing this item\nsort: the sort value. For authors, this is the author_sort for that author\ncategory: the category (e.g., authors, series) that the item is in.\nNote that the \"r'\" in front of the { is necessary if there are backslashes\n(\\ characters) in the template. It doesn't hurt anything to leave it there\neven if there aren't any backslashes."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:103 #: /home/kovid/work/calibre/resources/default_tweaks.py:115
msgid "Specify columns to sort the booklist by on startup" msgid "Specify columns to sort the booklist by on startup"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:104 #: /home/kovid/work/calibre/resources/default_tweaks.py:116
msgid "Provide a set of columns to be sorted on when calibre starts\nThe argument is None if saved sort history is to be used\notherwise it is a list of column,order pairs. Column is the\nlookup/search name, found using the tooltip for the column\nOrder is 0 for ascending, 1 for descending\nFor example, set it to [('authors',0),('title',0)] to sort by\ntitle within authors." msgid "Provide a set of columns to be sorted on when calibre starts\nThe argument is None if saved sort history is to be used\notherwise it is a list of column,order pairs. Column is the\nlookup/search name, found using the tooltip for the column\nOrder is 0 for ascending, 1 for descending\nFor example, set it to [('authors',0),('title',0)] to sort by\ntitle within authors."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:113 #: /home/kovid/work/calibre/resources/default_tweaks.py:125
msgid "Control how dates are displayed" msgid "Control how dates are displayed"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:114 #: /home/kovid/work/calibre/resources/default_tweaks.py:126
msgid "Format to be used for publication date and the timestamp (date).\nA string controlling how the publication date is displayed in the GUI\nd the day as number without a leading zero (1 to 31)\ndd the day as number with a leading zero (01 to 31)\nddd the abbreviated localized day name (e.g. 'Mon' to 'Sun').\ndddd the long localized day name (e.g. 'Monday' to 'Qt::Sunday').\nM the month as number without a leading zero (1-12)\nMM the month as number with a leading zero (01-12)\nMMM the abbreviated localized month name (e.g. 'Jan' to 'Dec').\nMMMM the long localized month name (e.g. 'January' to 'December').\nyy the year as two digit number (00-99)\nyyyy the year as four digit number\nFor example, given the date of 9 Jan 2010, the following formats show\nMMM yyyy ==> Jan 2010 yyyy ==> 2010 dd MMM yyyy ==> 09 Jan 2010\nMM/yyyy ==> 01/2010 d/M/yy ==> 9/1/10 yy ==> 10\npublication default if not set: MMM yyyy\ntimestamp default if not set: dd MMM yyyy" msgid "Format to be used for publication date and the timestamp (date).\nA string controlling how the publication date is displayed in the GUI\nd the day as number without a leading zero (1 to 31)\ndd the day as number with a leading zero (01 to 31)\nddd the abbreviated localized day name (e.g. 'Mon' to 'Sun').\ndddd the long localized day name (e.g. 'Monday' to 'Qt::Sunday').\nM the month as number without a leading zero (1-12)\nMM the month as number with a leading zero (01-12)\nMMM the abbreviated localized month name (e.g. 'Jan' to 'Dec').\nMMMM the long localized month name (e.g. 'January' to 'December').\nyy the year as two digit number (00-99)\nyyyy the year as four digit number\nFor example, given the date of 9 Jan 2010, the following formats show\nMMM yyyy ==> Jan 2010 yyyy ==> 2010 dd MMM yyyy ==> 09 Jan 2010\nMM/yyyy ==> 01/2010 d/M/yy ==> 9/1/10 yy ==> 10\npublication default if not set: MMM yyyy\ntimestamp default if not set: dd MMM yyyy"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:135 #: /home/kovid/work/calibre/resources/default_tweaks.py:147
msgid "Control sorting of titles and series in the library display" msgid "Control sorting of titles and series in the library display"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:136 #: /home/kovid/work/calibre/resources/default_tweaks.py:148
msgid "Control title and series sorting in the library view. If set to\n'library_order', the title sort field will be used instead of the title.\nUnless you have manually edited the title sort field, leading articles such as\nThe and A will be ignored. If set to 'strictly_alphabetic', the titles will be\nsorted as-is (sort by title instead of title sort). For example, with\nlibrary_order, The Client will sort under 'C'. With strictly_alphabetic, the\nbook will sort under 'T'.\nThis flag affects Calibre's library display. It has no effect on devices. In\naddition, titles for books added before changing the flag will retain their\norder until the title is edited. Double-clicking on a title and hitting return\nwithout changing anything is sufficient to change the sort." msgid "Control title and series sorting in the library view. If set to\n'library_order', the title sort field will be used instead of the title.\nUnless you have manually edited the title sort field, leading articles such as\nThe and A will be ignored. If set to 'strictly_alphabetic', the titles will be\nsorted as-is (sort by title instead of title sort). For example, with\nlibrary_order, The Client will sort under 'C'. With strictly_alphabetic, the\nbook will sort under 'T'.\nThis flag affects Calibre's library display. It has no effect on devices. In\naddition, titles for books added before changing the flag will retain their\norder until the title is edited. Double-clicking on a title and hitting return\nwithout changing anything is sufficient to change the sort."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:149 #: /home/kovid/work/calibre/resources/default_tweaks.py:161
msgid "Control formatting of title and series when used in templates" msgid "Control formatting of title and series when used in templates"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:150 #: /home/kovid/work/calibre/resources/default_tweaks.py:162
msgid "Control how title and series names are formatted when saving to disk/sending\nto device. The behavior depends on the field being processed. If processing\ntitle, then if this tweak is set to 'library_order', the title will be\nreplaced with title_sort. If it is set to 'strictly_alphabetic', then the\ntitle will not be changed. If processing series, then if set to\n'library_order', articles such as 'The' and 'An' will be moved to the end. If\nset to 'strictly_alphabetic', the series will be sent without change.\nFor example, if the tweak is set to library_order, \"The Lord of the Rings\"\nwill become \"Lord of the Rings, The\". If the tweak is set to\nstrictly_alphabetic, it would remain \"The Lord of the Rings\"." msgid "Control how title and series names are formatted when saving to disk/sending\nto device. The behavior depends on the field being processed. If processing\ntitle, then if this tweak is set to 'library_order', the title will be\nreplaced with title_sort. If it is set to 'strictly_alphabetic', then the\ntitle will not be changed. If processing series, then if set to\n'library_order', articles such as 'The' and 'An' will be moved to the end. If\nset to 'strictly_alphabetic', the series will be sent without change.\nFor example, if the tweak is set to library_order, \"The Lord of the Rings\"\nwill become \"Lord of the Rings, The\". If the tweak is set to\nstrictly_alphabetic, it would remain \"The Lord of the Rings\"."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:162 #: /home/kovid/work/calibre/resources/default_tweaks.py:174
msgid "Set the list of words considered to be \"articles\" for sort strings" msgid "Set the list of words considered to be \"articles\" for sort strings"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:163 #: /home/kovid/work/calibre/resources/default_tweaks.py:175
msgid "Set the list of words that are to be considered 'articles' when computing the\ntitle sort strings. The list is a regular expression, with the articles\nseparated by 'or' bars. Comparisons are case insensitive, and that cannot be\nchanged. Changes to this tweak won't have an effect until the book is modified\nin some way. If you enter an invalid pattern, it is silently ignored.\nTo disable use the expression: '^$'\nDefault: '^(A|The|An)\\s+'" msgid "Set the list of words that are to be considered 'articles' when computing the\ntitle sort strings. The list is a regular expression, with the articles\nseparated by 'or' bars. Comparisons are case insensitive, and that cannot be\nchanged. Changes to this tweak won't have an effect until the book is modified\nin some way. If you enter an invalid pattern, it is silently ignored.\nTo disable use the expression: '^$'\nDefault: '^(A|The|An)\\s+'"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:172 #: /home/kovid/work/calibre/resources/default_tweaks.py:184
msgid "Specify a folder calibre should connect to at startup" msgid "Specify a folder calibre should connect to at startup"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:173 #: /home/kovid/work/calibre/resources/default_tweaks.py:185
msgid "Specify a folder that calibre should connect to at startup using\nconnect_to_folder. This must be a full path to the folder. If the folder does\nnot exist when calibre starts, it is ignored. If there are '\\' characters in\nthe path (such as in Windows paths), you must double them.\nExamples:\nauto_connect_to_folder = 'C:\\\\Users\\\\someone\\\\Desktop\\\\testlib'\nauto_connect_to_folder = '/home/dropbox/My Dropbox/someone/library'" msgid "Specify a folder that calibre should connect to at startup using\nconnect_to_folder. This must be a full path to the folder. If the folder does\nnot exist when calibre starts, it is ignored. If there are '\\' characters in\nthe path (such as in Windows paths), you must double them.\nExamples:\nauto_connect_to_folder = 'C:\\\\Users\\\\someone\\\\Desktop\\\\testlib'\nauto_connect_to_folder = '/home/dropbox/My Dropbox/someone/library'"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:182 #: /home/kovid/work/calibre/resources/default_tweaks.py:194
msgid "Specify renaming rules for SONY collections" msgid "Specify renaming rules for SONY collections"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:183 #: /home/kovid/work/calibre/resources/default_tweaks.py:195
msgid "Specify renaming rules for sony collections. This tweak is only applicable if\nmetadata management is set to automatic. Collections on Sonys are named\ndepending upon whether the field is standard or custom. A collection derived\nfrom a standard field is named for the value in that field. For example, if\nthe standard 'series' column contains the value 'Darkover', then the\ncollection name is 'Darkover'. A collection derived from a custom field will\nhave the name of the field added to the value. For example, if a custom series\ncolumn named 'My Series' contains the name 'Darkover', then the collection\nwill by default be named 'Darkover (My Series)'. For purposes of this\ndocumentation, 'Darkover' is called the value and 'My Series' is called the\ncategory. If two books have fields that generate the same collection name,\nthen both books will be in that collection.\nThis set of tweaks lets you specify for a standard or custom field how\nthe collections are to be named. You can use it to add a description to a\nstandard field, for example 'Foo (Tag)' instead of the 'Foo'. You can also use\nit to force multiple fields to end up in the same collection. For example, you\ncould force the values in 'series', '#my_series_1', and '#my_series_2' to\nappear in collections named 'some_value (Series)', thereby merging all of the\nfields into one set of collections.\nThere are two related tweaks. The first determines the category name to use\nfor a metadata field. The second is a template, used to determines how the\nvalue and category are combined to create the collection name.\nThe syntax of the first tweak, sony_collection_renaming_rules, is:\n{'field_lookup_name':'category_name_to_use', 'lookup_name':'name', ...}\nThe second tweak, sony_collection_name_template, is a template. It uses the\nsame template language as plugboards and save templates. This tweak controls\nhow the value and category are combined together to make the collection name.\nThe only two fields available are {category} and {value}. The {value} field is\nnever empty. The {category} field can be empty. The default is to put the\nvalue first, then the category enclosed in parentheses, it is isn't empty:\n'{value} {category:|(|)}'\nExamples: The first three examples assume that the second tweak\nhas not been changed.\n1: I want three series columns to be merged into one set of collections. The\ncolumn lookup names are 'series', '#series_1' and '#series_2'. I want nothing\nin the parenthesis. The value to use in the tweak value would be:\nsony_collection_renaming_rules={'series':'', '#series_1':'', '#series_2':''}\n2: I want the word '(Series)' to appear on collections made from series, and\nthe word '(Tag)' to appear on collections made from tags. Use:\nsony_collection_renaming_rules={'series':'Series', 'tags':'Tag'}\n3: I want 'series' and '#myseries' to be merged, and for the collection name\nto have '(Series)' appended. The renaming rule is:\nsony_collection_renaming_rules={'series':'Series', '#myseries':'Series'}\n4: Same as example 2, but instead of having the category name in parentheses\nand appended to the value, I want it prepended and separated by a colon, such\nas in Series: Darkover. I must change the template used to format the category name\nThe resulting two tweaks are:\nsony_collection_renaming_rules={'series':'Series', 'tags':'Tag'}\nsony_collection_name_template='{category:||: }{value}'" msgid "Specify renaming rules for sony collections. This tweak is only applicable if\nmetadata management is set to automatic. Collections on Sonys are named\ndepending upon whether the field is standard or custom. A collection derived\nfrom a standard field is named for the value in that field. For example, if\nthe standard 'series' column contains the value 'Darkover', then the\ncollection name is 'Darkover'. A collection derived from a custom field will\nhave the name of the field added to the value. For example, if a custom series\ncolumn named 'My Series' contains the name 'Darkover', then the collection\nwill by default be named 'Darkover (My Series)'. For purposes of this\ndocumentation, 'Darkover' is called the value and 'My Series' is called the\ncategory. If two books have fields that generate the same collection name,\nthen both books will be in that collection.\nThis set of tweaks lets you specify for a standard or custom field how\nthe collections are to be named. You can use it to add a description to a\nstandard field, for example 'Foo (Tag)' instead of the 'Foo'. You can also use\nit to force multiple fields to end up in the same collection. For example, you\ncould force the values in 'series', '#my_series_1', and '#my_series_2' to\nappear in collections named 'some_value (Series)', thereby merging all of the\nfields into one set of collections.\nThere are two related tweaks. The first determines the category name to use\nfor a metadata field. The second is a template, used to determines how the\nvalue and category are combined to create the collection name.\nThe syntax of the first tweak, sony_collection_renaming_rules, is:\n{'field_lookup_name':'category_name_to_use', 'lookup_name':'name', ...}\nThe second tweak, sony_collection_name_template, is a template. It uses the\nsame template language as plugboards and save templates. This tweak controls\nhow the value and category are combined together to make the collection name.\nThe only two fields available are {category} and {value}. The {value} field is\nnever empty. The {category} field can be empty. The default is to put the\nvalue first, then the category enclosed in parentheses, it is isn't empty:\n'{value} {category:|(|)}'\nExamples: The first three examples assume that the second tweak\nhas not been changed.\n1: I want three series columns to be merged into one set of collections. The\ncolumn lookup names are 'series', '#series_1' and '#series_2'. I want nothing\nin the parenthesis. The value to use in the tweak value would be:\nsony_collection_renaming_rules={'series':'', '#series_1':'', '#series_2':''}\n2: I want the word '(Series)' to appear on collections made from series, and\nthe word '(Tag)' to appear on collections made from tags. Use:\nsony_collection_renaming_rules={'series':'Series', 'tags':'Tag'}\n3: I want 'series' and '#myseries' to be merged, and for the collection name\nto have '(Series)' appended. The renaming rule is:\nsony_collection_renaming_rules={'series':'Series', '#myseries':'Series'}\n4: Same as example 2, but instead of having the category name in parentheses\nand appended to the value, I want it prepended and separated by a colon, such\nas in Series: Darkover. I must change the template used to format the category name\nThe resulting two tweaks are:\nsony_collection_renaming_rules={'series':'Series', 'tags':'Tag'}\nsony_collection_name_template='{category:||: }{value}'"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:235 #: /home/kovid/work/calibre/resources/default_tweaks.py:247
msgid "Specify how SONY collections are sorted" msgid "Specify how SONY collections are sorted"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:236 #: /home/kovid/work/calibre/resources/default_tweaks.py:248
msgid "Specify how sony collections are sorted. This tweak is only applicable if\nmetadata management is set to automatic. You can indicate which metadata is to\nbe used to sort on a collection-by-collection basis. The format of the tweak\nis a list of metadata fields from which collections are made, followed by the\nname of the metadata field containing the sort value.\nExample: The following indicates that collections built from pubdate and tags\nare to be sorted by the value in the custom column '#mydate', that collections\nbuilt from 'series' are to be sorted by 'series_index', and that all other\ncollections are to be sorted by title. If a collection metadata field is not\nnamed, then if it is a series- based collection it is sorted by series order,\notherwise it is sorted by title order.\n[(['pubdate', 'tags'],'#mydate'), (['series'],'series_index'), (['*'], 'title')]\nNote that the bracketing and parentheses are required. The syntax is\n[ ( [list of fields], sort field ) , ( [ list of fields ] , sort field ) ]\nDefault: empty (no rules), so no collection attributes are named." msgid "Specify how sony collections are sorted. This tweak is only applicable if\nmetadata management is set to automatic. You can indicate which metadata is to\nbe used to sort on a collection-by-collection basis. The format of the tweak\nis a list of metadata fields from which collections are made, followed by the\nname of the metadata field containing the sort value.\nExample: The following indicates that collections built from pubdate and tags\nare to be sorted by the value in the custom column '#mydate', that collections\nbuilt from 'series' are to be sorted by 'series_index', and that all other\ncollections are to be sorted by title. If a collection metadata field is not\nnamed, then if it is a series- based collection it is sorted by series order,\notherwise it is sorted by title order.\n[(['pubdate', 'tags'],'#mydate'), (['series'],'series_index'), (['*'], 'title')]\nNote that the bracketing and parentheses are required. The syntax is\n[ ( [list of fields], sort field ) , ( [ list of fields ] , sort field ) ]\nDefault: empty (no rules), so no collection attributes are named."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:253 #: /home/kovid/work/calibre/resources/default_tweaks.py:265
msgid "Control how tags are applied when copying books to another library" msgid "Control how tags are applied when copying books to another library"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:254 #: /home/kovid/work/calibre/resources/default_tweaks.py:266
msgid "Set this to True to ensure that tags in 'Tags to add when adding\na book' are added when copying books to another library" msgid "Set this to True to ensure that tags in 'Tags to add when adding\na book' are added when copying books to another library"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:258 #: /home/kovid/work/calibre/resources/default_tweaks.py:270
msgid "Set the maximum number of tags to show per book in the content server" msgid "Set the maximum number of tags to show per book in the content server"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:261 #: /home/kovid/work/calibre/resources/default_tweaks.py:273
msgid "Set custom metadata fields that the content server will or will not display." msgid "Set custom metadata fields that the content server will or will not display."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:262 #: /home/kovid/work/calibre/resources/default_tweaks.py:274
msgid "content_server_will_display is a list of custom fields to be displayed.\ncontent_server_wont_display is a list of custom fields not to be displayed.\nwont_display has priority over will_display.\nThe special value '*' means all custom fields. The value [] means no entries.\nDefaults:\ncontent_server_will_display = ['*']\ncontent_server_wont_display = []\nExamples:\nTo display only the custom fields #mytags and #genre:\ncontent_server_will_display = ['#mytags', '#genre']\ncontent_server_wont_display = []\nTo display all fields except #mycomments:\ncontent_server_will_display = ['*']\ncontent_server_wont_display['#mycomments']" msgid "content_server_will_display is a list of custom fields to be displayed.\ncontent_server_wont_display is a list of custom fields not to be displayed.\nwont_display has priority over will_display.\nThe special value '*' means all custom fields. The value [] means no entries.\nDefaults:\ncontent_server_will_display = ['*']\ncontent_server_wont_display = []\nExamples:\nTo display only the custom fields #mytags and #genre:\ncontent_server_will_display = ['#mytags', '#genre']\ncontent_server_wont_display = []\nTo display all fields except #mycomments:\ncontent_server_will_display = ['*']\ncontent_server_wont_display['#mycomments']"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:279 #: /home/kovid/work/calibre/resources/default_tweaks.py:291
msgid "Set the maximum number of sort 'levels'" msgid "Set the maximum number of sort 'levels'"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:280 #: /home/kovid/work/calibre/resources/default_tweaks.py:292
msgid "Set the maximum number of sort 'levels' that calibre will use to resort the\nlibrary after certain operations such as searches or device insertion. Each\nsort level adds a performance penalty. If the database is large (thousands of\nbooks) the penalty might be noticeable. If you are not concerned about multi-\nlevel sorts, and if you are seeing a slowdown, reduce the value of this tweak." msgid "Set the maximum number of sort 'levels' that calibre will use to resort the\nlibrary after certain operations such as searches or device insertion. Each\nsort level adds a performance penalty. If the database is large (thousands of\nbooks) the penalty might be noticeable. If you are not concerned about multi-\nlevel sorts, and if you are seeing a slowdown, reduce the value of this tweak."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:287 #: /home/kovid/work/calibre/resources/default_tweaks.py:299
msgid "Specify which font to use when generating a default cover" msgid "Specify which font to use when generating a default cover"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:288 #: /home/kovid/work/calibre/resources/default_tweaks.py:300
msgid "Absolute path to .ttf font files to use as the fonts for the title, author\nand footer when generating a default cover. Useful if the default font (Liberation\nSerif) does not contain glyphs for the language of the books in your library." msgid "Absolute path to .ttf font files to use as the fonts for the title, author\nand footer when generating a default cover. Useful if the default font (Liberation\nSerif) does not contain glyphs for the language of the books in your library."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:294 #: /home/kovid/work/calibre/resources/default_tweaks.py:306
msgid "Control behavior of the book list" msgid "Control behavior of the book list"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:295 #: /home/kovid/work/calibre/resources/default_tweaks.py:307
msgid "You can control the behavior of doubleclicks on the books list.\nChoices: open_viewer, do_nothing,\nedit_cell, edit_metadata. Selecting edit_metadata has the side effect of\ndisabling editing a field using a single click.\nDefault: open_viewer.\nExample: doubleclick_on_library_view = 'do_nothing'\nYou can also control whether the book list scrolls horizontal per column or\nper pixel. Default is per column." msgid "You can control the behavior of doubleclicks on the books list.\nChoices: open_viewer, do_nothing,\nedit_cell, edit_metadata. Selecting edit_metadata has the side effect of\ndisabling editing a field using a single click.\nDefault: open_viewer.\nExample: doubleclick_on_library_view = 'do_nothing'\nYou can also control whether the book list scrolls horizontal per column or\nper pixel. Default is per column."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:306 #: /home/kovid/work/calibre/resources/default_tweaks.py:318
msgid "Language to use when sorting." msgid "Language to use when sorting."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:307 #: /home/kovid/work/calibre/resources/default_tweaks.py:319
msgid "Setting this tweak will force sorting to use the\ncollating order for the specified language. This might be useful if you run\ncalibre in English but want sorting to work in the language where you live.\nSet the tweak to the desired ISO 639-1 language code, in lower case.\nYou can find the list of supported locales at\nhttp://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/nls/rbagsicusortsequencetables.htm\nDefault: locale_for_sorting = '' -- use the language calibre displays in\nExample: locale_for_sorting = 'fr' -- sort using French rules.\nExample: locale_for_sorting = 'nb' -- sort using Norwegian rules." msgid "Setting this tweak will force sorting to use the\ncollating order for the specified language. This might be useful if you run\ncalibre in English but want sorting to work in the language where you live.\nSet the tweak to the desired ISO 639-1 language code, in lower case.\nYou can find the list of supported locales at\nhttp://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/nls/rbagsicusortsequencetables.htm\nDefault: locale_for_sorting = '' -- use the language calibre displays in\nExample: locale_for_sorting = 'fr' -- sort using French rules.\nExample: locale_for_sorting = 'nb' -- sort using Norwegian rules."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:318 #: /home/kovid/work/calibre/resources/default_tweaks.py:330
msgid "Number of columns for custom metadata in the edit metadata dialog" msgid "Number of columns for custom metadata in the edit metadata dialog"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:319 #: /home/kovid/work/calibre/resources/default_tweaks.py:331
msgid "Set whether to use one or two columns for custom metadata when editing\nmetadata one book at a time. If True, then the fields are laid out using two\ncolumns. If False, one column is used." msgid "Set whether to use one or two columns for custom metadata when editing\nmetadata one book at a time. If True, then the fields are laid out using two\ncolumns. If False, one column is used."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:324 #: /home/kovid/work/calibre/resources/default_tweaks.py:336
msgid "The number of seconds to wait before sending emails" msgid "The number of seconds to wait before sending emails"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:325 #: /home/kovid/work/calibre/resources/default_tweaks.py:337
msgid "The number of seconds to wait before sending emails when using a\npublic email server like gmail or hotmail. Default is: 5 minutes\nSetting it to lower may cause the server's SPAM controls to kick in,\nmaking email sending fail. Changes will take effect only after a restart of\ncalibre." msgid "The number of seconds to wait before sending emails when using a\npublic email server like gmail or hotmail. Default is: 5 minutes\nSetting it to lower may cause the server's SPAM controls to kick in,\nmaking email sending fail. Changes will take effect only after a restart of\ncalibre."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:332 #: /home/kovid/work/calibre/resources/default_tweaks.py:344
msgid "Remove the bright yellow lines at the edges of the book list" msgid "Remove the bright yellow lines at the edges of the book list"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:333 #: /home/kovid/work/calibre/resources/default_tweaks.py:345
msgid "Control whether the bright yellow lines at the edges of book list are drawn\nwhen a section of the user interface is hidden. Changes will take effect\nafter a restart of calibre." msgid "Control whether the bright yellow lines at the edges of book list are drawn\nwhen a section of the user interface is hidden. Changes will take effect\nafter a restart of calibre."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:338 #: /home/kovid/work/calibre/resources/default_tweaks.py:350
msgid "The maximum width and height for covers saved in the calibre library" msgid "The maximum width and height for covers saved in the calibre library"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:339 #: /home/kovid/work/calibre/resources/default_tweaks.py:351
msgid "All covers in the calibre library will be resized, preserving aspect ratio,\nto fit within this size. This is to prevent slowdowns caused by extremely\nlarge covers" msgid "All covers in the calibre library will be resized, preserving aspect ratio,\nto fit within this size. This is to prevent slowdowns caused by extremely\nlarge covers"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:344 #: /home/kovid/work/calibre/resources/default_tweaks.py:356
msgid "Where to send downloaded news" msgid "Where to send downloaded news"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:345 #: /home/kovid/work/calibre/resources/default_tweaks.py:357
msgid "When automatically sending downloaded news to a connected device, calibre\nwill by default send it to the main memory. By changing this tweak, you can\ncontrol where it is sent. Valid values are \"main\", \"carda\", \"cardb\". Note\nthat if there isn't enough free space available on the location you choose,\nthe files will be sent to the location with the most free space." msgid "When automatically sending downloaded news to a connected device, calibre\nwill by default send it to the main memory. By changing this tweak, you can\ncontrol where it is sent. Valid values are \"main\", \"carda\", \"cardb\". Note\nthat if there isn't enough free space available on the location you choose,\nthe files will be sent to the location with the most free space."
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:352 #: /home/kovid/work/calibre/resources/default_tweaks.py:364
msgid "What interfaces should the content server listen on" msgid "What interfaces should the content server listen on"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:353 #: /home/kovid/work/calibre/resources/default_tweaks.py:365
msgid "By default, the calibre content server listens on '0.0.0.0' which means that it\naccepts IPv4 connections on all interfaces. You can change this to, for\nexample, '127.0.0.1' to only listen for connections from the local machine, or\nto '::' to listen to all incoming IPv6 and IPv4 connections (this may not\nwork on all operating systems)" msgid "By default, the calibre content server listens on '0.0.0.0' which means that it\naccepts IPv4 connections on all interfaces. You can change this to, for\nexample, '127.0.0.1' to only listen for connections from the local machine, or\nto '::' to listen to all incoming IPv6 and IPv4 connections (this may not\nwork on all operating systems)"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:360 #: /home/kovid/work/calibre/resources/default_tweaks.py:372
msgid "Unified toolbar on OS X" msgid "Unified toolbar on OS X"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:361 #: /home/kovid/work/calibre/resources/default_tweaks.py:373
msgid "If you enable this option and restart calibre, the toolbar will be 'unified'\nwith the titlebar as is normal for OS X applications. However, doing this has\nvarious bugs, for instance the minimum width of the toolbar becomes twice\nwhat it should be and it causes other random bugs on some systems, so turn it\non at your own risk!" msgid "If you enable this option and restart calibre, the toolbar will be 'unified'\nwith the titlebar as is normal for OS X applications. However, doing this has\nvarious bugs, for instance the minimum width of the toolbar becomes twice\nwhat it should be and it causes other random bugs on some systems, so turn it\non at your own risk!"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:368 #: /home/kovid/work/calibre/resources/default_tweaks.py:380
msgid "Save original file when converting from same format to same format" msgid "Save original file when converting from same format to same format"
msgstr "" msgstr ""
#: /home/kovid/work/calibre/resources/default_tweaks.py:369 #: /home/kovid/work/calibre/resources/default_tweaks.py:381
msgid "When calibre does a conversion from the same format to the same format, for\nexample, from EPUB to EPUB, the original file is saved, so that in case the\nconversion is poor, you can tweak the settings and run it again. By setting\nthis to False you can prevent calibre from saving the original file." msgid "When calibre does a conversion from the same format to the same format, for\nexample, from EPUB to EPUB, the original file is saved, so that in case the\nconversion is poor, you can tweak the settings and run it again. By setting\nthis to False you can prevent calibre from saving the original file."
msgstr "" msgstr ""

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More