[Athen] Geeky Daisy question

kerscher at montana.com kerscher at montana.com
Tue Jun 28 15:41:19 PDT 2022


Hello,



In DAISY 3, the Dublin Core metadata, such as DC:title can be found in the
.opf file. Even if the book is encrypted, as in titles from NLS, this
control file should not be encrypted.



.opf is also used in EPUB.



Best

George





You should find this in all DAISY 3 titles.



Best

George





From: athen-list <athen-list-bounces at mailman12.u.washington.edu> On Behalf
Of Deborah Armstrong
Sent: Tuesday, June 28, 2022 4:04 PM
To: 'Access Technology Higher Education Network'
<athen-list at u.washington.edu>
Subject: [Athen] Geeky Daisy question



I'm learning Python and simultaneously impressed with how the Humanware
devices and most Daisy readers list books not by their filename but by their
titles.

I thought a fun Python program to write that would practice file handling
for me is this.

Take a directory of bookshare Daisy books (unzipped to make it easier) and
open each folder, find the book title and rename the book's folder with its
title. This is the way the Humanware companion and the Humanware devices do
it with Daisy files.

I know that in Daisy 2 audio the book title is in the NCC.HTML, but I can't
figure out where it hides in Daisy 3 files; does anyone know?

I do know it appears at the very start of the book when you open it in a
Daisy reader, but I'm pretty sure there's one file that has the title in a
specific file location.

My program would open each folder, open that particular file, extract the
title, then rename the parent folder with the book title, truncating it if
necessary.

This would be useful for anyone with a lot of Daisy books that have weird
filenames. And yes, I know the HumanWare companion software can do this
already in copying to a flash drive or SD card. I want to rename the files
in place.



--Debee



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman12.u.washington.edu/pipermail/athen-list/attachments/20220628/233d6e5f/attachment.html>


More information about the athen-list mailing list