diff --git a/src/calibre/customize/profiles.py b/src/calibre/customize/profiles.py index f60f7b5e7b..12debef5cc 100644 --- a/src/calibre/customize/profiles.py +++ b/src/calibre/customize/profiles.py @@ -151,6 +151,10 @@ class OutputProfile(Plugin): # The image size for comics comic_screen_size = (584, 754) + @classmethod + def tags_to_string(cls, tags): + return ', '.join(tags) + class SonyReaderOutput(OutputProfile): name = 'Sony Reader' @@ -236,6 +240,11 @@ class KindleOutput(OutputProfile): fbase = 16 fsizes = [12, 12, 14, 16, 18, 20, 22, 24] + @classmethod + def tags_to_string(cls, tags): + return 'ttt '.join(tags)+'ttt ' + + output_profiles = [OutputProfile, SonyReaderOutput, MSReaderOutput, MobipocketOutput, HanlinV3Output, CybookG3Output, KindleOutput, SonyReaderLandscapeOutput] diff --git a/src/calibre/ebooks/oeb/transforms/jacket.py b/src/calibre/ebooks/oeb/transforms/jacket.py index 78f4ab871e..8c995dadec 100644 --- a/src/calibre/ebooks/oeb/transforms/jacket.py +++ b/src/calibre/ebooks/oeb/transforms/jacket.py @@ -70,9 +70,8 @@ class Jacket(object): tags = map(unicode, self.oeb.metadata.subject) except: tags = [] - tags = u'/'.join(tags) if tags: - tags = 'Tags: ' + u'/%s/'%tags + tags = 'Tags: ' + self.opts.dest.tags_to_string(tags) else: tags = '' try: