diff --git a/defaults.ini b/defaults.ini index d74bb8e7..1aad439e 100644 --- a/defaults.ini +++ b/defaults.ini @@ -320,12 +320,13 @@ background_color: ffffff ## Allow customization of CSS. Make sure to keep at least one space ## at the start of each line and to escape % to %%. Also need ## background_color to be in the same section, if included in CSS. -## 'adobe-text-layout: optimizeSpeed;' prevents hyphenation on newer Nooks +## 'adobe-hyphenate: none;' prevents hyphenation on newer Nooks +## STR(wG) (1.2.1+ for sure) output_css: body { background-color: #%(background_color)s; text-align: justify; margin: 2%%; - adobe-text-layout: optimizeSpeed; } + adobe-hyphenate: none; } pre { font-size: x-small; } sml { font-size: small; } h1 { text-align: center; } diff --git a/fanficdownloader/adapters/adapter_test1.py b/fanficdownloader/adapters/adapter_test1.py index 9306626e..59610ad0 100644 --- a/fanficdownloader/adapters/adapter_test1.py +++ b/fanficdownloader/adapters/adapter_test1.py @@ -102,9 +102,9 @@ Some more longer description. "I suck at summaries!" "Better than it sounds!" self.story.setMetadata('language',langs[idnum%len(langs)]) self.setSeries('The Great Test',idnum) if idnum == 0: - self.setSeries('0 The Great Test',idnum) + self.setSeries("A Nook Hyphen Test "+self.story.getMetadata('dateCreated'),idnum) + self.story.setMetadata('rating','Tweenie') - if self.story.getMetadata('storyId') == '673': self.story.addToList('author','Author From List') @@ -206,27 +206,24 @@ Some more longer description. "I suck at summaries!" "Better than it sounds!"

http://test1.com?sid=668 - raises FailedToLogin unless username='Me'

http://test1.com?sid=669 - Succeeds with Updated Date=now

http://test1.com?sid=670 - Succeeds, but sleeps 2sec on each chapter

+ + + +

http://test1.com?sid=671 - Succeeds, but sleeps 2sec metadata only

-

http://test1.com?sid=672 - Succeeds, quick meta, sleeps 2sec chapters only

-

http://test1.com?sid=673 - Succeeds, multiple authors

-

Odd sid's will be In-Progress, evens complete. sid<10 will be assigned one of four languages and included in a series.

+

http://test1.com?sid=672 - Succeeds, quick meta, sleeps 2sec chapters only

http://test1.com?sid=0 - Succeeds, generates some text specifically for testing hyphenation problems with Nook STR/STRwG

Odd sid's will be In-Progress, evens complete. sid<10 will be assigned one of four languages and included in a series.

''' elif self.story.getMetadata('storyId') == '0': text=u''' -
- Those things in the bar could be genetic mutations.
-
+

45. Pronglet Returns to Hogwarts: Chapter 7

+
eyes… but I’m not convinced we should automatically
-
- eyes… but I’m not convinced we should automatically.
-
-

Those things in the bar could be genetic mutations.

-

t I’m not convinced we should automatically

-

ut I’m not convinced we should automatically

-

but I’m not convinced we should automatically

-

but I’m not convinced we should automatically

-

Those things in the bar could be genetic mutations.

+

+Thanks to the latest to recommend me: Alastor
+

+ “Sure, invite her along. Does she have children?”
+
''' else: text=u''' diff --git a/plugin-defaults.ini b/plugin-defaults.ini index fd3a885b..7d2ddee7 100644 --- a/plugin-defaults.ini +++ b/plugin-defaults.ini @@ -296,12 +296,13 @@ background_color: ffffff ## Allow customization of CSS. Make sure to keep at least one space ## at the start of each line and to escape % to %%. Also need ## background_color to be in the same section, if included in CSS. -## 'adobe-text-layout: optimizeSpeed;' prevents hyphenation on newer Nooks +## 'adobe-hyphenate: none;' prevents hyphenation on newer Nooks +## STR(wG) (1.2.1+ for sure) output_css: body { background-color: #%(background_color)s; text-align: justify; margin: 2%%; - adobe-text-layout: optimizeSpeed; } + adobe-hyphenate: none; } pre { font-size: x-small; } sml { font-size: small; } h1 { text-align: center; }