Clear all

[MODULE] ePubVersion

Page 9 / 9
Member Admin

ePub files can be corrupt when users use tags and don't close them properly.


Closed in the wrong order, this will crash some readers.

Special characters, only turskish or anything non-ANSI like äöüç ?

Posted : 05/03/2017 10:21 am

We have tinymce so tags aren't a problem. All Turkish characters öüğış are absent.

Posted : 06/03/2017 11:19 pm
Trusted Member

so today i installed this mod to our website. it's all fine, even though we had to hack our way in the database to change NONE setting to PURE, but it works nonetheless. now, two problems:

> some stories (not all of them) return a corrupt epub file.
> turkish characters don't exist at all. i tried the basic things from changing character settings to iso-8xxx-9 for turkish, to change the language from story settings etc. any suggestions?

Through lots of trial and error, what I've found is the Epub version seems to return invalid epubs when there is an ampersand(&) or any accented letter in the story title OR any of the chapter titles. I tried adding the code for ampersand to what appears to be an "allowed characters" section in the epubversion.php (I think) but no change. As far as I can tell, it's only when those characters appear in the Story and Chapter titles that is causes trouble, not in the rest of the story text.

It's an extra step but so far the program Calibre has been able to open all epub files I've downloaded from our archive even when iBooks or other apps won't. In Calibre it will let you convert the file to whatever, even "back" to an epub files, which will then open in the various eReader programs. If you're only having trouble with some stories, converting with Calibre may be an okay workaround?

Posted : 09/03/2017 9:28 am
Page 9 / 9