View Single Post
Old 08-28-2014, 08:31 PM   #1
rpspringuel
Enthusiast
rpspringuel began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Feb 2014
Device: Kindle 4
Non-Boolean Options in Kindle Driver

I'm trying to modify the Kindle driver plugin to include a new option which needs to be pointed at a column like the custom page counts option. However, when I try to create this option by copying and modifying the information for the page counts column (in EXTRA_CUSTOMIZATION_MESSAGE, EXTRA_CUSTOMIZATION_DEFAULT, and the list of OPT identifiers) the option which is created is boolean, not a text field.

My interpretation of this behavior is that by default Calibre assumes that options are boolean, needs to be told explicitly when they are not, and the modifications I've made thus far have not told it that this new option is to be a text field. However, I can't find in the Kindle driver code where Calibre is told that the custom page count column is a text option, not a boolean one.

Am I right in my interpretation of the behavior? If so, what should I be looking for in the code to get my option to show up correctly?
rpspringuel is offline   Reply With Quote