@KevinH:
Quote:
Originally Posted by KevinH
..In the meantime, you can select any file or group of files in the BookBrowser and use the context menu to run Move on them and set a new destination. So move one of your *.xhtml files into a new location, then move a second someplace else.
|
Thanks for this. I experimented with your suggestion and now see that other folders can be created in the epub file by moving them; I moved a file to
TestFolder and found
Code:
print(bk.group_to_folders("Text"))
returns
Code:
['OEBPS/Text', 'TestFolder']
With the older version of Sigil I could iterate through all the xhtml files using:
Code:
for (id, href) in bk.text_iter()
so I tried running the following code in Sigil 0.9.991
Code:
for (id, href) in bk.text_iter():
print("id= ", id)
print("href= ", href)
and this returned:
Code:
id= sec_01.xhtml
href= Text/sec_01.xhtml
id= Section0001.xhtml
href= ../TestFolder/Section0001.xhtml
id= Section0002.xhtml
href= Text/Section0002.xhtml
showing that the same code can still be used to iterate through all the xhtml files.
I hope this information may be of some use to other plugin developers.