![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: May 2023
Device: kindle
|
2 books in one epub (left - right column) help
Hi.
I don't know if this is for this forum or for recipes. I want to create an epub that contains one book (very old -the original- spelling is beautiful! <3) on the left column, and on the right the new version. I know how to do it in terms of design so it can work -visually- but, I want to do it properly, so the content won't mixed, etc. I think maybe there are some of this already done, perhaps in translations, original on the left, translation on the right? Could you please give me some ideas, etc... Thank you very much! (sorry by my English) |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
W3Schools has some examples for doing this. Two Column Layout
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,687
Karma: 103503695
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
Certainly in epub2, old mobi and azw3 they were only thinking of single column fiction. You can have two columns using a table, but it can work as badly or worse than you can imagine. I've not tried doing this yet, but I'd be interested in an epub2 solution that also converts (by Amazon and Calibre) to old mobi and azw3. Any ebooks I've seen with two columns used a table, but wasn't great. |
|
![]() |
![]() |
![]() |
#4 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 240
Karma: 3500000
Join Date: Sep 2009
Device: Sony PRS-300, PRS-T1, PRS-T3
|
Tables may be your best bet if you want specific paragraphs to line up side-by-side, not just the overall text.
|
![]() |
![]() |
![]() |
#5 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,687
Karma: 103503695
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
See https://www.gutenberg.org/ebooks/18761
The Circular Study. Download EPUB (older E-readers) Open in Calibre Editor Search all Text Files: First Letter (without Case Sensitive). Or if reading find Book II, Chapter III in TOC Spoiler:
Etc for many pages. A new row at each fresh heading. It doesn't work very well, so actually I edited it to be sequential without a table. However in your case you need a table with a new row for each heading / break to keep in sync and two columns in every row. I know it's poor, but it will sort of work. It may be improved with suitable CSS. EDIT: Or maybe even each paragraph in a new row of two columns. Last edited by Quoth; 05-14-2023 at 06:28 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
FYI: The Gutenberg epub3 version works fine after AZW3/KFX conversion.
|
![]() |
![]() |
![]() |
#7 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 313
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
|
I use a snippet:
<style>h1 {clear: both; font-size: 1.4em; margin: 0; padding: 1em 0 2em; text-align: center;} h2 { font-size: 1.2em; margin: 0; padding: 1em 0 2em; text-align: center;} p { font-size: 1em; text-align: justify; margin-bottom: 1em;} .col1, col2 {float: left; width:50%} div.col1 p, div.col2 p {margin-left:0; margin-right: 0.75em}</style> <h1></h1> <div class="col1"> <h2></h2> <p></p> <p></p> </div> <div class="col2"> <h2></h2> <p></p> <p></p> </div> Paste text of language one after the first h2. Paste text of language two after second h2. Adjust styles as needed. Can print out very well as pdf. Works well with calibre reader. Probably won't work with Amazon ebooks. To adjust for English being more compact than German, reset widths separately to 45% and 55%. Best regards, Pop |
![]() |
![]() |
![]() |
#8 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,687
Karma: 103503695
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
We were both reading that book on a Sage and decided in this case since you can only read one thing at a time and it's not a translation, putting the letter then the thought/narration worked better. But absolutely for parallel translations (Hebrew/Latin/Greek/Arabic in one column and English alongside) or say Chaucer and modern English. Or Beowulf or Old Irish MSS with Modern Irish and/or English (need 3 columns in landscape?). |
|
![]() |
![]() |
![]() |
#9 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,687
Karma: 103503695
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
|
![]() |
![]() |
![]() |
#10 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,636
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Maybe the OP can find useful the following solution for epub2:
Two Cols (Improved).epub Here there are two screenshots: I think the code employed is easy to understand but if there is any doubt, gladly I will answer about the subject. |
![]() |
![]() |
![]() |
#11 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,687
Karma: 103503695
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
As an aside it's full of which are soft hyphens. They are best left out. Also I can't use no extra margin between paragraphs. The normal convention is to have a first-line-indent except after a heading or centred object and no extra margin between paragraphs. I only viewed in the Calibre Editor, which of course support the float. |
|
![]() |
![]() |
![]() |
#12 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,636
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
For example? An ereader that doesn't support float is not a good ereader
![]() Quote:
Quote:
![]() https://www.mobileread.com/forums/sh...2&postcount=13 https://www.mobileread.com/forums/sh...21&postcount=5 Quote:
Last edited by RbnJrg; 05-16-2023 at 11:47 PM. |
|||
![]() |
![]() |
![]() |
#13 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,687
Karma: 103503695
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
It looks identical with or without the soft hyphens. Decent renderers do hyphenation fine without them and some don't use them. In fact I've never seen soft hyphens directly inserted like that in any ebook I've edited.
I have no control over what apps and ereaders other people use or how Amazon converts an uploaded epub (on KDP, we don't used Send to Kindle) to mobi, azw3 and kfx and chooses which to deliver to the customer. A more serious issue is the need to hand edit the epub. Not practical for 20 to 40 revisions of a 150K word wordprocessor source to docx automatically converted to epub by Calibre. I will look at how MS Word and LO Writer can do two columns in a manner that works automatically with conversion. Quote:
Last edited by Quoth; 05-17-2023 at 07:26 AM. |
|
![]() |
![]() |
![]() |
#14 | ||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,636
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Where? In what ereaders? It would also be very convenient if you post screenshots and the respective epub with which you did the test. You didn't do the try in a ereader with a screen of 6 inches or less; there is a world of difference between using and not using hyphens.
Quote:
Quote:
Quote:
It's not very difficult to code an epub like the one I posted, even with a 150K document. The hard part is to alternate paragraphs (to style the paragraphs is a piece of cake); in LibreOffice or Word, is possible to write a macro in OOo Basic (or VBA) to do the job of alternating paragraphs (from two different documents –one document contains the text for the left column and the other contains the text for the right column— into a new one). Quote:
Last edited by RbnJrg; 05-17-2023 at 10:38 AM. |
||||
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Display not showing left-most column | KarenMillerXena | Library Management | 1 | 01-14-2022 11:16 PM |
Left column unfortunately shutted, how to restore it? | andrepicard | Sigil | 10 | 05-17-2018 12:18 PM |
Select books by clicking on number in left column | Ginnia | Calibre | 10 | 04-14-2017 11:32 PM |
Format column shows all books as ePub | carlberger | Library Management | 12 | 11-01-2013 04:56 PM |
Author tag column on left | jmccall93 | Library Management | 2 | 09-30-2013 03:17 PM |