View Single Post
Old 05-18-2023, 02:00 PM   #1
Britpunk
Junior Member
Britpunk began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2023
Device: Fire
CHM -> EPUB conversion not finding right content

I have been tasked with converting some CHM files to EPUB. I suspect the CHM may have an unusual structure as it seems to be causing Calibre some problems. The CHM file opens as expected if I use the Windows Help application, so I am certain the file itself is intact.

If I unpack the .chm file I see the following files at root:
#IDXHDR
#ITBITS
#STRINGS
#SYSTEM
#TOPICS
#URLSTR
#URLTBL
#WINDOWS
cbr.css

and the directories:
chmfile
images

Within the 'chmfile' directory is the actual core content - approximately 1,250 HTM files, a 'Downloads' directory containing some Word documents, and an 'images' directory containing some JPG images.

Calibre appears to be detecting the wrong structure, as what gets produced is an .epub file, but all of the content is just the contents of the cbr.css file from the root. I'm certain there's some way to get it to pick up the correct content from the chmfile directory, but I'm not familiar enough with the tool yet.

Any help will be tremendously appreciated.

David
Britpunk is offline   Reply With Quote