AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Kindle previewer 3 not opening3/2/2024 ![]() The problem with this approach is that Kindle Previewer throws the error: And there are instructions here that advise converting the file to PRC using Mobipocket Creator and then opening it with Kindle Previewer. There is an apparently closed source script here that unfortunately doesn't support inflections, so does not work. Currently I am using Python, but I'd also use other languages if it is necessary. Maybe it would even be a good idea to output the words + inflections into some other easier dictionary format and then convert it to a MOBI using an existing library and leaving out the XHTML generation completely. ![]() So I thought there should maybe be an easier way to do this, or maybe a library that helps doing this. The generation of the epub file is also a bit complicated by the fact that you probably need to split the XHTML files into many smaller files, which should maybe be 250 kb in size, because e-readers tend to struggle with parsing larger files. I discovered that this is not trivial, and a check using epubcheck revealed many hard-to-understand errors in my generated file. Then I attempted to create the epub file myself, using a sample file taken from this tutorial. Calibre suggests to turn on the "heuristic mode" if you run into this error, which I tried, but which did not finish running after hours of runtime. The normal XHTML -> epub conversion failed because the XHTML file was too large, according to an error message. I tried using Pandoc to do the conversion, which did not work because it stripped out all the specific HTML tags and only left in paragraphs. They want you to create an intermediate epub file. ![]() However, Kindle Previewer does not let you export XHTML files to MOBI. So I created a large XHTML file (23 MB or so) according to the Amazon specifications and opened it in Kindle Previewer, and it looked fine. It basically says that you should:ġ) Create an XHTML file with their special markup specifying all inflections etc.Ĥ) Export it with Kindle Previewer to MOBI There is some documentation about this provided by Amazon. I am currently trying to create a Russian dictionary that has proper inflections sourced from Wiktionary because all current other dictionaries are not that great.
0 Comments
Read More
Leave a Reply. |