View Single Post
Old 02-13-2014, 12:01 PM   #8
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,647
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Probably wouldn't hurt to toss in hooks to the NCX and OPF as well.

Would it make sense to be able to access all files in the ebook via some sort of iterable dictionary or class structure?
Code:
for sheet in book.css:
  if sheet.name == file_name_parsed_from_link_in_current_xml:
    do_stuff
With the ability to add/remove files to the ebook's structure?

Just spitballin'.
DiapDealer is online now   Reply With Quote