mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Move jetbook import. Add note that 72 pts = 1 inch.
This commit is contained in:
parent
5ce22bb6ba
commit
88bafa75e2
@ -7,7 +7,7 @@ Device driver for Ectaco Jetbook firmware >= JL04_v030e
|
||||
import os, re, sys, shutil
|
||||
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
|
||||
|
||||
class JETBOOK(USBMS):
|
||||
@ -98,7 +98,8 @@ class JETBOOK(USBMS):
|
||||
return txt.decode(sys.getfilesystemencoding(), 'replace')
|
||||
|
||||
return txt
|
||||
|
||||
|
||||
from calibre.devices.usbms.driver import metadata_from_formats
|
||||
mi = metadata_from_formats([path])
|
||||
|
||||
if (mi.title==_('Unknown') or mi.authors==[_('Unknown')]) \
|
||||
|
@ -251,19 +251,23 @@ OptionRecommendation(name='page_breaks_before',
|
||||
|
||||
OptionRecommendation(name='margin_top',
|
||||
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',
|
||||
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',
|
||||
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',
|
||||
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',
|
||||
recommended_value=False, level=OptionRecommendation.LOW,
|
||||
|
Loading…
x
Reference in New Issue
Block a user