Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 11-24-2018, 05:38 AM   #1
thiago.eec
Connoisseur
thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.
 
Posts: 83
Karma: 71600
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Themes

Hello guys.

I am trying to use a dark theme for the editor. I've chosen "solarized-dark". But I would like to change a few things, so I tried to edit the theme. When I click the button to create/edit personalized color scheme, Calibre throws an error msg. This is the msg:

Code:
calibre, version 3.34.0
ERRO: Exceção sem tratamento: <b>ValueError</b>:cannot switch from automatic field numbering to manual field specification

calibre 3.34 [64bit]  embedded-python: True is64bit: True
Windows-10-10.0.17763-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.17763')
Python 2.7.12+
Windows: ('10', '10.0.17763', 'SP0', u'Multiprocessor Free')
Interface language: pt_BR
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 10, 0) && DeDRM (6, 6, 1) && Package KFX (from KFX Input) (1, 10, 0) && KindleUnpack - The Plugin (0, 81, 5) && EpubMerge (2, 4, 0) && Set KFX metadata (from KFX Output) (1, 24, 0) && KFX Output (1, 24, 0) && ScrambleEbook (0, 0, 5) && Diaps Editing Toolbag (0, 3, 5) && KFX metadata reader (from KFX Input) (1, 10, 0) && KFX Input (1, 10, 0) && EpubSplit (2, 5, 0) && EpubCheck (0, 1, 3) && TTS to MP3 (0, 1, 3)
Traceback (most recent call last):
  File "site-packages\calibre\gui2\tweak_book\preferences.py", line 259, in custom_theme
  File "site-packages\calibre\gui2\tweak_book\editor\themes.py", line 554, in __init__
  File "site-packages\calibre\gui2\tweak_book\widgets.py", line 48, in __init__
  File "site-packages\calibre\gui2\widgets2.py", line 171, in __init__
  File "site-packages\calibre\gui2\tweak_book\editor\themes.py", line 595, in setup_ui
ValueError: cannot switch from automatic field numbering to manual field specification
Righ now I don't know what I will find inside this option, because it fails to activate. Is it possible to choose a color for the selected line, just like on the default theme? All the other themes besides default lacks this functionality. When using "Solarized dark", it does change the color of the element you are inside (for instance, it will change the color o the <p> tag when you click that paragraph). But, the actual line is not highlighted like on the default theme.

Last edited by thiago.eec; 11-24-2018 at 08:39 AM.
thiago.eec is offline   Reply With Quote
Old 11-24-2018, 01:28 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,935
Karma: 10254170
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
that looks like abug in the calibre translation, try temporarily changing your calibre interface language to english and see if the error goes away
kovidgoyal is offline   Reply With Quote
Advert
Old 11-24-2018, 01:29 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,935
Karma: 10254170
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
ohand all themes are capable of all features, you just need to define a different color for the feature you want so that it shows up.
kovidgoyal is offline   Reply With Quote
Old 11-24-2018, 07:41 PM   #4
thiago.eec
Connoisseur
thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.
 
Posts: 83
Karma: 71600
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by kovidgoyal View Post
that looks like abug in the calibre translation, try temporarily changing your calibre interface language to english and see if the error goes away
Thanks, Kovid. It worked!

By the way, if you want, I could help translating Calibre to Brazilian Portuguese. The software is already translated, but there are two bugs that I can recall at the moment: this one you just pointed out and another one on the "Smart comment" menu item (looks like the h3 closing tag is falty), also on the Editor.

I think the Manual is what needs more work, since there are a lot of sections without translation.

Anyway, I would need some instructions, since I don't know anything about the translating process.

Quote:
Originally Posted by kovidgoyal View Post
ohand all themes are capable of all features, you just need to define a different color for the feature you want so that it shows up.
Once I changed it to English, I could see all the options there. Now it looks just the way I wanted. Thanks!
thiago.eec is offline   Reply With Quote
Old 11-25-2018, 12:30 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,935
Karma: 10254170
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Thanks, you ar emost welcome to help with translations: Instructions are at: https://calibre-ebook.com/get-involved
kovidgoyal is offline   Reply With Quote
Advert
Old 11-25-2018, 06:19 PM   #6
thiago.eec
Connoisseur
thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.
 
Posts: 83
Karma: 71600
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by kovidgoyal View Post
Thanks, you ar emost welcome to help with translations: Instructions are at: https://calibre-ebook.com/get-involved
Tweaking the translation did the trick. Now, the Theme Editing GUI is working fine. Thank you for the tip!

Now that I know how translating works, I'll keep helping translate other sections.

Just one last comment...

I've noticed a particular behavior: when I launch the Editor and go directly (whitout openning any file) to Theme settings, the "SpellError" rules do not apply to the live panel on the right. On the other hand, if a file is opened on the Editor, then the rules apply correctly. Is this because the dictionaries are not loaded before an actual file is opened?
thiago.eec is offline   Reply With Quote
Old 11-26-2018, 01:28 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,935
Karma: 10254170
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yeah without any book open, the spelling system is not intialized.
kovidgoyal is offline   Reply With Quote
Reply

Tags
editor, line highlighting, solarized-dark, themes

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Leaf Themes! Themes! Themes! issybird Book Clubs 143 08-23-2018 08:08 PM
Mantano Themes darryl Android Devices 1 04-06-2015 02:15 PM
Pocketbook-Themes Moredread PocketBook 38 11-18-2013 09:22 AM
Themes? ldrover Marvin 5 11-09-2013 08:04 AM
360 Themes etc MorganM PocketBook 14 09-29-2011 11:10 PM


All times are GMT -4. The time now is 08:55 PM.


MobileRead.com is a privately owned, operated and funded community.