Move jetbook import. Add note that 72 pts = 1 inch.

This commit is contained in:
John Schember 2009-05-02 08:15:26 -04:00
parent 5ce22bb6ba
commit 88bafa75e2
2 changed files with 11 additions and 6 deletions

View File

@ -7,7 +7,7 @@ Device driver for Ectaco Jetbook firmware >= JL04_v030e
import os, re, sys, shutil import os, re, sys, shutil
from itertools import cycle from itertools import cycle
from calibre.devices.usbms.driver import USBMS, metadata_from_formats from calibre.devices.usbms.driver import USBMS
from calibre import sanitize_file_name as sanitize from calibre import sanitize_file_name as sanitize
class JETBOOK(USBMS): class JETBOOK(USBMS):
@ -99,6 +99,7 @@ class JETBOOK(USBMS):
return txt return txt
from calibre.devices.usbms.driver import metadata_from_formats
mi = metadata_from_formats([path]) mi = metadata_from_formats([path])
if (mi.title==_('Unknown') or mi.authors==[_('Unknown')]) \ if (mi.title==_('Unknown') or mi.authors==[_('Unknown')]) \

View File

@ -251,19 +251,23 @@ OptionRecommendation(name='page_breaks_before',
OptionRecommendation(name='margin_top', OptionRecommendation(name='margin_top',
recommended_value=5.0, level=OptionRecommendation.LOW, recommended_value=5.0, level=OptionRecommendation.LOW,
help=_('Set the top margin in pts. Default is %default')), help=_('Set the top margin in pts. Default is %default. '
'Note: 72 pts equals 1 inch')),
OptionRecommendation(name='margin_bottom', OptionRecommendation(name='margin_bottom',
recommended_value=5.0, level=OptionRecommendation.LOW, recommended_value=5.0, level=OptionRecommendation.LOW,
help=_('Set the bottom margin in pts. Default is %default')), help=_('Set the bottom margin in pts. Default is %default. '
'Note: 72 pts equals 1 inch')),
OptionRecommendation(name='margin_left', OptionRecommendation(name='margin_left',
recommended_value=5.0, level=OptionRecommendation.LOW, recommended_value=5.0, level=OptionRecommendation.LOW,
help=_('Set the left margin in pts. Default is %default')), help=_('Set the left margin in pts. Default is %default. '
'Note: 72 pts equals 1 inch')),
OptionRecommendation(name='margin_right', OptionRecommendation(name='margin_right',
recommended_value=5.0, level=OptionRecommendation.LOW, recommended_value=5.0, level=OptionRecommendation.LOW,
help=_('Set the right margin in pts. Default is %default')), help=_('Set the right margin in pts. Default is %default. '
'Note: 72 pts equals 1 inch')),
OptionRecommendation(name='dont_justify', OptionRecommendation(name='dont_justify',
recommended_value=False, level=OptionRecommendation.LOW, recommended_value=False, level=OptionRecommendation.LOW,