|
|
#1 |
|
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,050
Karma: 2006208
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Editor does not seem to remember previous layout
Not a very big issue, but:
Recently, I resized the editor window from full size to something smaller, and then to full screen again. From that moment on, on opening the editor the file browser pane and the file preview pane are very small, so I have to resize them every time to be usable. The editor does not seem to remember my settings when I close the editor. Yes, I did use the checkbox in preferences to restore the state of the previous edited book. What can be the cause? |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,681
Karma: 28549304
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You could have a corrupted preferences file, look for the file tweak_book_gui.json in the calirbe config directory. Try renaming it and see if your problems go away.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,050
Karma: 2006208
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
That did the trick. I lost some settings though, but that can be fixed.
However, my "saved searches" are precious to me. I copied them over from the corrupted file, which seems to work, but it is a little bit of a "gray" area. Is it an idea as an calibre enhancement perhaps to place them in some separate file? |
|
|
|
|
|
#4 | |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,052
Karma: 30277960
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
|
|
|
|
|
#5 | |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,681
Karma: 28549304
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
What I would really like to figure out is the how and why of this happening. Unfortunately, I have never been able to reproduce. It is not at all clear to me why layout/geometry preferences should be the only preferences to get "stuck" in a particular config file. The config file is basicallya JSON dictionary, so corruption should prevent the entire dictionary from loading, not just cause a single setting to get stuck. |
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,050
Karma: 2006208
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
I spoke too soon.
When using "remove unused CSS rules", I now get an exception: Code:
calibre, version 2.49.0
ERROR: Unhandled exception: <b>ValueError</b>:Invalid namespace URI u'\u201dhttp://www.w3.org/1999/xlink\u201d'
calibre 2.49 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '7', '6.1.7601')
Python 2.7.9
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: Fantastic Fiction && Quality Check && BOL_NL && Goodreads && Find Duplicates && Kobo Utilities
Traceback (most recent call last):
File "site-packages\calibre\gui2\tweak_book\boss.py", line 536, in polish
File "site-packages\calibre\ebooks\oeb\polish\main.py", line 261, in tweak_polish
File "site-packages\calibre\ebooks\oeb\polish\main.py", line 210, in polish_one
File "site-packages\calibre\ebooks\oeb\polish\css.py", line 75, in remove_unused_css
File "site-packages\calibre\ebooks\oeb\polish\container.py", line 529, in parsed
File "site-packages\calibre\ebooks\oeb\polish\container.py", line 495, in parse
File "site-packages\calibre\ebooks\oeb\polish\container.py", line 481, in parse_xhtml
File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 671, in parse
File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 615, in parse_html5
File "site-packages\html5lib\html5parser.py", line 254, in parse
File "site-packages\html5lib\html5parser.py", line 105, in _parse
File "site-packages\html5lib\html5parser.py", line 217, in mainLoop
File "site-packages\html5lib\html5parser.py", line 431, in processStartTag
File "site-packages\html5lib\html5parser.py", line 1227, in startTagSvg
File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 375, in insertElementNormal
File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 352, in createElement
File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 274, in makeelement_ns
File "parser.pxi", line 971, in lxml.etree._BaseParser.makeelement (src\lxml\lxml.etree.c:95621)
File "apihelpers.pxi", line 133, in lxml.etree._makeElement (src\lxml\lxml.etree.c:14869)
File "apihelpers.pxi", line 120, in lxml.etree._makeElement (src\lxml\lxml.etree.c:14739)
File "apihelpers.pxi", line 232, in lxml.etree._initNodeNamespaces (src\lxml\lxml.etree.c:15816)
File "apihelpers.pxi", line 1600, in lxml.etree._uriValidOrRaise (src\lxml\lxml.etree.c:28996)
ValueError: Invalid namespace URI u'\u201dhttp://www.w3.org/1999/xlink\u201d'
Code:
calibre, version 2.49.0
ERROR: Unhandled exception: <b>ValueError</b>:Invalid namespace URI u'\u201dhttp://www.w3.org/1999/xlink\u201d'
calibre 2.49 isfrozen: True is64bit: False
Windows-7-6.1.7601-SP1 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '7', '6.1.7601')
Python 2.7.9
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Successfully initialized third party plugins: Fantastic Fiction && Quality Check && BOL_NL && Goodreads && Find Duplicates && Kobo Utilities
Traceback (most recent call last):
File "site-packages\calibre\gui2\tweak_book\boss.py", line 755, in pretty_print
File "site-packages\calibre\ebooks\oeb\polish\pretty.py", line 223, in pretty_all
File "site-packages\calibre\ebooks\oeb\polish\container.py", line 529, in parsed
File "site-packages\calibre\ebooks\oeb\polish\container.py", line 495, in parse
File "site-packages\calibre\ebooks\oeb\polish\container.py", line 481, in parse_xhtml
File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 671, in parse
File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 615, in parse_html5
File "site-packages\html5lib\html5parser.py", line 254, in parse
File "site-packages\html5lib\html5parser.py", line 105, in _parse
File "site-packages\html5lib\html5parser.py", line 217, in mainLoop
File "site-packages\html5lib\html5parser.py", line 431, in processStartTag
File "site-packages\html5lib\html5parser.py", line 1227, in startTagSvg
File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 375, in insertElementNormal
File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 352, in createElement
File "site-packages\calibre\ebooks\oeb\polish\parsing.py", line 274, in makeelement_ns
File "parser.pxi", line 971, in lxml.etree._BaseParser.makeelement (src\lxml\lxml.etree.c:95621)
File "apihelpers.pxi", line 133, in lxml.etree._makeElement (src\lxml\lxml.etree.c:14869)
File "apihelpers.pxi", line 120, in lxml.etree._makeElement (src\lxml\lxml.etree.c:14739)
File "apihelpers.pxi", line 232, in lxml.etree._initNodeNamespaces (src\lxml\lxml.etree.c:15816)
File "apihelpers.pxi", line 1600, in lxml.etree._uriValidOrRaise (src\lxml\lxml.etree.c:28996)
ValueError: Invalid namespace URI u'\u201dhttp://www.w3.org/1999/xlink\u201d'
|
|
|
|
|
|
#7 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,681
Karma: 28549304
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That just indicates you have replaced the quotes used for attribute values in html tags with curly quotes. Presumably a search and replace gone wrong. Run Check Book.
|
|
|
|
|
|
#8 |
|
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,050
Karma: 2006208
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Seems to be just 1 ebook, which I roughly had edited before without problems.
Can still be an issue of just that ebook, I investigate further. |
|
|
|
|
|
#9 |
|
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,050
Karma: 2006208
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Yep Kovid, something went wrong in a S&R action.
Pfeeeuw, that's good news. |
|
|
|
|
|
#10 | |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,052
Karma: 30277960
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
User would post log here, in a sticky thread - maybe a pattern will emerge, albeit over a long period. BR Last edited by BetterRed; 01-25-2016 at 08:26 AM. |
|
|
|
|
|
|
#11 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Mar 2016
Device: none
|
I had the same problem after tiling windows side-by-side - the file list and preview got smooshed to the outer edges, and resizing them didn't stick... it reoccurred every time I opened the editor.
Removing Code:
"image-editor-state": {
"__class__": "bytearray",
"__value__": "AAAA/wAAAAD9A etc. AAAAAA=="
},
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cailbre 2.0 - Editor Pane Layout | Paulie_D | Editor | 18 | 09-01-2014 09:42 PM |
| Editor: ToC Editor: Start entry | macnab69 | Editor | 2 | 06-25-2014 12:15 PM |
| Reset column layout in editor | allandale1 | Editor | 3 | 06-11-2014 03:27 PM |
| Book Editor TOC Editor Isue? | weberr | Editor | 2 | 04-17-2014 12:13 PM |
| Do You Believe in Previous Life? | DrDln | Lounge | 7 | 07-12-2011 01:21 AM |