![]() |
#1 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
![]()
I'm trying to create an epub with interlinear text in it for language learning purposes, but I'm not sure whether this is possible at all.
I created a small test epub (attached) with Calibre which displays fine with the Firefox epub plugin, but not so in ADE and ADE based hardware ebook readers. Has anyone ever succeeded in creating epubs with interlinear text without having to use images? If so what kind of markup did you use? |
![]() |
![]() |
![]() |
#2 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I see you are using <ruby>, which, from what I can tell of the specs, is not a required component, so there is no guarantee that it is supported by a reader (and I'd guess it will be unsupported by most readers).
Then you are using "display: inline-table" and "display: table-footer-group", which looks OK, and maybe you can the same using <span class="ruby">, <span class="rb">, etc. instead of the ruby tags, since you are alrady forcing the display type anyway... The main drawback I see is that you have to translate word by word, which is seldom appropriate. You could translate whole sentences, but then each sentence is a table and does not break across lines. I really don't see any way to make it look right with current ePUB spec and readers... |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Quote:
Quote:
Thanks for confirming my suspicions. |
|||
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4
Karma: 10000
Join Date: Oct 2011
Location: Georgia, US
Device: Nook 1st Gen
|
How is your working with interlinears progressing?
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
I recently stumbled upon Sean Boisen's 2006 article CSS for Interlinear Styling. Boisen suggested using the display: inline-block; property instead of tables. I decided to give it a try and found out that it actually works for ePubs, too.
I created a short test epub that validates and displays correctly in ADE; the compiled Kindle KF8 version also displays correctly, but the regular .mobi version doesn't. |
![]() |
![]() |
![]() |
#7 |
Booklegger
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,801
Karma: 7999816
Join Date: Jun 2009
Location: Toronto, Ontario, Canada
Device: BeBook(1 & 2010), PEZ, PRS-505, Kobo BT, PRS-T1, Playbook, Kobo Touch
|
That is pretty cool! It works on my old PRS505 as well as my PRS-T1, and on my BeBook-2010. It's not flummoxed by changing font sizes, too.
But I'd hate to have to do a long document by hand... I think I'd want to experiment with interleaving by line or paragraph, as well. A lot of Canadian legal docs are published in two columns, aligned by paragraph, French on one side, english on the other. Perhaps a wide right margin for one, and a wide left margin for the other would look OK. Ideas are free... it's the implementation that costs money. |
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
I don't think that this template would work for that. You'd probably be better of with the traditional 2 page layout or maybe two documents with interlinked paragraphs. I had more language learning in mind. I'm toying with the idea of parsing each paragraph in an .html file and then automatically adding interlinear translations from a tab-delimited dictionary. Of course, the result probably wouldn't be perfect, but should be helpful anyway. Unfortunately, the Kindle version of FBReader can't read this ePub format correctly. |
|
![]() |
![]() |
![]() |
#9 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Note that inline-block is not among the allowed display values in the ePub spec. This doesn't mean it's not valid, as the CSS spec says unknown/unsupported values should just be ignored, but it means you shouldn't rely on it being properly supported. In other words, perfectly compliant readers could simply ignore inline-block and you couldn't blame them.
|
![]() |
![]() |
![]() |
Tags |
bilingual, epub, interlinear |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Old Thread] Problems with creating epubs w/ interlinear text | Doitsu | Calibre | 6 | 11-20-2011 07:51 PM |
How to create text frame | superanima | ePub | 1 | 12-12-2010 04:19 PM |
Error text overwrites page text? | troymc | Sigil | 6 | 07-07-2010 09:07 PM |
Text tool for formatting Gutenberg text files | bob_ninja | Workshop | 5 | 11-13-2007 12:28 PM |
Good text to java midlet, to read text in phones | sucahyo | Workshop | 1 | 02-18-2005 12:56 PM |