<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>.opf is also used in EPUB.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Best<o:p></o:p></p><p class=MsoNormal>George<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>You should find this in all DAISY 3 titles.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Best<o:p></o:p></p><p class=MsoNormal>George<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> athen-list <athen-list-bounces@mailman12.u.washington.edu> <b>On Behalf Of </b>Deborah Armstrong<br><b>Sent:</b> Tuesday, June 28, 2022 4:04 PM<br><b>To:</b> 'Access Technology Higher Education Network' <athen-list@u.washington.edu><br><b>Subject:</b> [Athen] Geeky Daisy question<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>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. <o:p></o:p></p><p class=MsoNormal>I thought a fun Python program to write that would practice file handling for me is this.<o:p></o:p></p><p class=MsoNormal>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.<o:p></o:p></p><p class=MsoNormal>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?<o:p></o:p></p><p class=MsoNormal>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. <o:p></o:p></p><p class=MsoNormal>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.<o:p></o:p></p><p class=MsoNormal>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. <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>--Debee<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>