Problems with epub imports pushing words together

I did encounter something like this before but I don’t remember lingQ joining up 2 words into 1 after import. They usually end up with line break in the middle of sentences inside LingQ.

In the meantime, while waiting for LingQ to solve it automatically. Inside Calibre, you can use Find and Replace to replace " \n " with space.
To make the ePub html source look nice again. Go to tool → beautify all files.

Below are the things I do before importing into lingQ all this is done in edit book mode except for the Modify ePub plugins.

  • Remove those weird grey boxes and replace with space.
  • Remove line breaks between sentences, replace \n with space
  • Split each chapter/section into a separate file (the option is at the bottom of file preview window) after that I Build/edit the table of content.
  • I also remove unused CCS rules, fix html, check book, (all under tools menu)
  • Some books have these huge decorative first charater for the first word in each chapter, those I had to fix manually.
  • I also use a plugin called Modify ePub which can help to fix ePub files too. You can install it from under Preference.

Just to add, other plugins I use inside calibre

  • Quality Check plugin but I have only used it to fix stuff in my Calibre library of books.
  • EpubSplit, If you have huge series in 1 book you can use this to split them up. Sometime big books don’t import into LingQ.
  • I also use Count Pages plugin not for it feature to count pages but for it ability to display Readability score for each of my books. This help me sort the books according to difficulty. So I don’t waste time importing a book that is too difficult to read. I am not sure if the score is technically accurate for my TL(french) but it seems accurate when I try to read the books. Better than nothing. Screenshot below.

Maybe some day someone will create a plugin that cleans up and fix a ePub and upload it to LingQ directly from Calibre.

Calibre can also generate AI TTS audio for books which I currently have to upload to lingQ manually. Hope to see LingQ support ePub with embedded audio someday.