Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 12-12-2010, 05:15 PM   #1
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Question Is it possible to create interlinear text epubs?

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?
Attached Files
File Type: zip Epub_Interlinear.zip (17.3 KB, 304 views)
Doitsu is offline   Reply With Quote
Old 12-18-2010, 08:03 AM   #2
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
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...
Jellby is offline   Reply With Quote
Advert
Old 12-18-2010, 08:14 AM   #3
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Jellby View Post
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).
I used <ruby> because I assumed that the ePub standard would support it for Japanese texts.

Quote:
Originally Posted by Jellby View Post
maybe you can the same using <span class="ruby">, <span class="rb">, etc.
Thanks for the idea. I'll give it a try.

Quote:
Originally Posted by Jellby View Post
The main drawback I see is that you have to translate word by word, which is seldom appropriate.
I'm aware of the drawbacks, but I found interlinear texts occasionally more helpful than translations of whole sentences.

Quote:
Originally Posted by Jellby View Post
I really don't see any way to make it look right with current ePUB spec and readers...
Thanks for confirming my suspicions.
Doitsu is offline   Reply With Quote
Old 11-20-2011, 02:34 PM   #4
Waya
Junior Member
Waya knows the difference between 'who' and 'whom'Waya knows the difference between 'who' and 'whom'Waya knows the difference between 'who' and 'whom'Waya knows the difference between 'who' and 'whom'Waya knows the difference between 'who' and 'whom'Waya knows the difference between 'who' and 'whom'Waya knows the difference between 'who' and 'whom'Waya knows the difference between 'who' and 'whom'Waya knows the difference between 'who' and 'whom'Waya knows the difference between 'who' and 'whom'Waya knows the difference between 'who' and 'whom'
 
Posts: 4
Karma: 10000
Join Date: Oct 2011
Location: Georgia, US
Device: Nook 1st Gen
How is your working with interlinears progressing?
Waya is offline   Reply With Quote
Old 11-22-2011, 06:16 AM   #5
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Waya View Post
How is your working with interlinears progressing?
It's on hold until reader are available that can actually display interlinear ePubs.
Doitsu is offline   Reply With Quote
Advert
Old 05-24-2012, 05:33 AM   #6
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
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.
Attached Files
File Type: epub interlinear_test.epub (2.5 KB, 494 views)
Doitsu is offline   Reply With Quote
Old 05-24-2012, 07:50 AM   #7
pholy
Booklegger
pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.pholy ought to be getting tired of karma fortunes by now.
 
pholy's Avatar
 
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.
pholy is offline   Reply With Quote
Old 05-24-2012, 08:23 AM   #8
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,582
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by pholy View Post
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.
Thanks for testing my ePub. It's good to know that even some older devices will display this ePub correctly.

Quote:
Originally Posted by pholy View Post
A lot of Canadian legal docs are published in two columns ...
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.
Doitsu is offline   Reply With Quote
Old 05-24-2012, 11:12 AM   #9
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,514
Karma: 18512745
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.
Jellby is offline   Reply With Quote
Reply

Tags
bilingual, epub, interlinear

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 05:22 AM.


MobileRead.com is a privately owned, operated and funded community.