mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -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
|
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')]) \
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user