×

Mes naudojame slapukus, kad padėtume pagerinti LingQ. Apsilankę avetainėje Jūs sutinkate su mūsų cookie policy.

us   United States

How to remove furigana when importing .epub files

October 2020

Issue:

When importing an .epub file into Lingq the furigana is added after the kanji which affects reading and translation.

*NEW* (Easier) Solution:

1. Using Calibre go to CONVERT from existing file format (eg. epub, azw3, pdf, etc)

2. In the CONVERT menu there is a Search and Replace Option, go there

3. Add the following regex to the SEARCH bar:

<ruby>(.*?)<rt>.*?</rt></ruby>

4.) Add the following regex in the REPLACE bar:

\1

5. Click the ADD button

6. Continue with the file conversion to epub

*OLD* Solution:

  1. Using an archive editor such as 7zip (https://www.7-zip.org/) open the epub file as if it were a .zip. (NOTE: you may need to rename the epub file extension to .zip first if using a different archive editor but no rename is necessary when using 7zip)
  2. Each epub can be different but you should see various folders, look around until you find a style sheet file usually named 'book-style.css'. Open this in a text editor.
  3. You should see some code at the top similar to this:
    1. @charset "UTF-8";
    2. @import "style-reset.css";
    3. @import "style-standard.css";
    4. @import "style-advance.css";@charset "UTF-8";
    5. @import "style-reset.css";
    6. @import "style-standard.css";
    7. @import "style-advance.css";
  4. Add this line of code after those @import commands:
    1. ruby rt { visibility: hidden; }
  5. Make sure to save the file and let 7zip update the archive with the save. (you will be prompted to do this when you try to close the archive)
  6. Using free software such as Calibre (https://calibre-ebook.com/) you should convert the epub file now to a .docx file
  7. This docx file will not have the furigana and can be imported into lingq