![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Sep 2021
Device: Kobo Libra H2O
|
Kobo and interlinear epub documents
I currently have a Kindle Paperwhite for language learning but find it slow and tedious to look up individual words. So I looked into interlinear texts and found this thread by @Doitsu as well as source code to generate interlinear epub documents through Google translate.
Now I'm considering getting a Kobo Libra H2O but I'm wondering if they support interlinear books. Or does maybe KOReader support it if I install it on Kobo? |
![]() |
![]() |
![]() |
#2 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 43,482
Karma: 165170834
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I ran into this a couple of years back and thought it looked interesting. I played with Doitsu's original idea of using <ruby> since I knew that worked with Kobo's webkit based renderer. I converted his original to an epub3 document and using this in combination with Kobo's alternate renderer worked quite happily after sending it to my Kobo using the KoboTouchExtended driver to send as a kepub. I've attached a screenshot from a Kobo Forma.
Edit: Finding that document makes me realize that I really need to do some cleanup. Last edited by DNSB; 09-28-2021 at 06:42 PM. |
![]() |
![]() |
![]() |
#3 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Sep 2021
Device: Kobo Libra H2O
|
I appreciate the response @DNSB.
So I went ahead and purchased a Kobo device and wrote a software in Rust to accomplish this. It automatically fetches all the words, translates them and then export a bilingual epub. I then use Calibre with Kobo Touch Extended Driver installed to convert the book into kepub while transferring it to my device. <ruby> looks great but unfortunately I ran into two issues:
I assume it's due to how Kobo parse <ruby>. Code example: Code:
<p> <ruby> Die <rt>the</rt> </ruby> <ruby> Unglücksfälle <rt>accidents</rt> </ruby> <ruby> des <rt>of the</rt> </ruby> <ruby> Studenten <rt>students</rt> </ruby> <ruby> Anselmus. <rt>*</rt> </ruby> </p> Code:
<p> <ruby> <span class="koboSpan" id="kobo.13.1">Die</span> <rt><span class="koboSpan" id="kobo.13.2">the</span></rt> </ruby> <span class="koboSpan" id="kobo.13.3"> </span> <ruby> <span class="koboSpan" id="kobo.13.4">Unglücksfälle</span> <rt><span class="koboSpan" id="kobo.13.5">accidents</span></rt> </ruby> <span class="koboSpan" id="kobo.13.6"> </span> <ruby> <span class="koboSpan" id="kobo.13.7">des</span> <rt><span class="koboSpan" id="kobo.13.8">of the</span></rt> </ruby> <span class="koboSpan" id="kobo.13.9"> </span> <ruby> <span class="koboSpan" id="kobo.13.10">Studenten</span> <rt><span class="koboSpan" id="kobo.13.11">students</span></rt> </ruby> <span class="koboSpan" id="kobo.13.12"> </span> <ruby> <span class="koboSpan" id="kobo.13.13">Anselmus.</span> <rt>*</rt> </ruby> </p> Is there anything else I could try to fix the issues? |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is it possible to create interlinear text epubs? | Doitsu | ePub | 8 | 05-24-2012 11:12 AM |
[Old Thread] Problems with creating epubs w/ interlinear text | Doitsu | Calibre | 6 | 11-20-2011 07:51 PM |
Créer des documents ePub | Thomas_ | Software | 3 | 04-17-2010 07:36 AM |
ePub documents much slower? | Matth3w | Sony Reader | 9 | 12-22-2009 12:58 PM |
Producing ePub documents from Adobe InDesign | Alexander Turcic | Deals and Resources (No Self-Promotion or Affiliate Links) | 12 | 09-07-2007 12:36 PM |