![]() |
#1 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
How to reproduce this old formatting?
See the attachment.
The text flows normally, there are side notes, but the tables and figures get the full width. Additionally the bottom2top direction. Tables do not work nice on some eReaders, so I am thinking of some sort of floating boxes. Any ideas? PS: for ePub2. PS2: I also have to take into account the relative small size of the screen. |
![]() |
![]() |
![]() |
#2 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Personally I'd include the table as a graphic. It's often the best way to do such things.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
That was an idea I also thought, however that requires a good sense of appreciating the display possibilities of the eReaders.
But the question was double - one referred to the side notes (see the upper right corner of the image), and the other one referred to the vertical writing. At least one of them I would like to have solved. ![]() |
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,630
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
The best way is to employ a svg table. Do the following:
1. Make your table as you wish in EXCEL. 2. Once the table is finished, save the spreadsheet AS PDF. This is very important since is the key to have a perfect svg table. 3. Open Inkscape and open the .pdf you got in the previous step. Inkscape will show you the "Pdf Import Settings" dialog. There, in the "Import settings" field, set the value to 130 (VERY IMPORTANT). After that, press the OK buttom. 4. Now the table will be in Inkscape as a svg object. Do click on the table to select it, and after that select the menu "File" and the command "Document properties..." 5. In the dialog that appears, select the option "Resize page to content", press the buttom "Resize page to drawing or selection" and after that press the buttom "Close". 6. Finally, save the Inkscape file (with the table) as PLAIN SVG. That's all. Now you have to use that svg table in an ebook in the same way as any other image. Below I attach an epub with a simple svg table so you can watch how it looks. Regards NOTE: In the step 2, save the pdf with the highest quality that you are able. Of that way the svg table will result perfect. Last edited by RbnJrg; 06-02-2015 at 12:42 PM. |
![]() |
![]() |
![]() |
#5 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Sometimes the information in the table can be presented in some other way. For instance, you could just repeat the column headings as a list, so this:
Code:
First Name | Last Name | Nationality | Occupation -----------+-----------+-------------+-------------- Charles | Dickens | British | Writer Roger | Federer | Swiss | Tennis player -----------+-----------+-------------+-------------- Code:
First Name: Charles Last Name: Dickens Nationality: British Occupation: Writer First Name: Roger Last Name: Federer Nationality: Swiss Occupation: Tennis player |
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
https://www.mobileread.com/forums/sho...d.php?t=254785 I posted some code/examples/images that I used way back when (the code is crummy and needs some work, but it is most of the way there). This was using CSS + floating text. I would recommend against using them in ebooks, unless the words are extremely short, and/or the Side Notes are used very sparingly. Remember, the user can raise the font HUGE. Quote:
Here is the go to topic on HTML Tables I always point towards: https://www.mobileread.com/forums/sho...d.php?t=223062 SVG Tables were discussed here: https://www.mobileread.com/forums/sho...d.php?t=240980 I personally still side on the pure HTML side, and if needed, "vericalizing" the tables into ~3-4 column length data. :P If you are going bitmap... for the love of the gods DO NOT use JPG. That might also be an ok fallback, but it all depends on the data. I would most likely take a "verticalized" table over the purely plain text method. :P Last edited by Tex2002ans; 06-04-2015 at 09:43 AM. |
||
![]() |
![]() |
![]() |
#7 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
Thank you all for the valuable comments and suggestions.
I already started reading the stuff ![]() |
![]() |
![]() |
![]() |
#8 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
Update - tables
I decided to play a bit with transform: rotate (parameter) in a div.
Calibre displays it partially correct (at least the rotation is accepted), while no HW readers could do it. So I completed the CSS with Code:
.rotate { display:inline-block; filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); -webkit-transform: rotate(270deg); -ms-transform: rotate(270deg); transform: rotate(270deg); } Code:
<div class="rotate"> That's the result. ![]() As you can see, the text is strangely grouped and split in many lines although the space given would have accommodated it in full. Nevertheless, I'll abandon this as having no support in the normal HW eReaders. I'll try the SVG stuff next. Thanks for attention. |
![]() |
![]() |
![]() |
#9 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
Update - side text
I have found a working solution. It does not replicate 100% the original page setting, but I consider it to be fully satisfactory, given the small displays a Reader has.
![]() Code:
span.floatleft { font-size: 70%; font-weight: bold; padding-bottom: 0px; padding-top: 3px; padding-left: 0px; padding-right: 10px; width: 25%; float: left; text-indent: 0; } Unfortunately, again no full HW support, none of my readers could display it as it should. In calibre's own previewer, everything is la vie en rose. What am I doing wrong? |
![]() |
![]() |
![]() |
#10 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
You're not doing anything wrong: welcome to the wonderful world of ePub, where each different rendering engine supports different features. Webkit, which is what Calibre uses, supports a different set of features to those supported by Adobe's RMSDK, which is what most eInk devices use.
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,630
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Your code is ok but if you want the things work under most ereaders, then don't use <span> but <p> tags. Of this way:
1. In your .css stylesheet: Code:
p { text-align: justify; margin: 0; } .SideNote { float: left; width: 25%; font-size: 0.7em; font-weight: bold; text-indent: 0; text-align: left; margin: 5px 10px 3px 0; } Code:
<p class="SideNote">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> <p>Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus. Donec metus ligula, elementum at pellentesque pellentesque, suscipit ac nunc. Etiam lobortis, massa ac aliquam auctor, augue nisl sagittis urna, at dapibus tellus erat ullamcorper ligula. Praesent orci dui, pulvinar id convallis a, faucibus non mauris. Donec tellus augue, tempus sed facilisis sed, fringilla quis leo.</p> Below I attach the respective .epub Regards Rubén Last edited by RbnJrg; 06-11-2015 at 08:58 AM. |
![]() |
![]() |
![]() |
#12 |
Obsessively Dedicated...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,202
Karma: 34984330
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Another suggestion you might try (it works for me in some situations) --- try adding display: block to your span descriptors. This forces the span to display as a stand-alone block, almost like a separate paragraph.
|
![]() |
![]() |
![]() |
#13 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
|
Maybe because I used inline-block? I'll try simply block.
I also tried DIV and SPAN and none worked. On some readers the text is placed before the main text (like it would have been no tags), on others the text was displayed as a different paragraph, above. I'll try the suggestions. SideNote.ePub works on my Sony PRS-T3, but no on my Sony Z3 with fbreader. Since FBreader does not yet support tables, I think I have to search for another eReader for Android. |
![]() |
![]() |
![]() |
#14 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,630
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 580
Karma: 810184
Join Date: Sep 2010
Location: Norway
Device: prs-t1, tablet, Nook Simple, assorted kindles, iPad
|
Quote:
|
|
![]() |
![]() |
![]() |
Tags |
columns, epub 2 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
iPad Reproduce Kindle sort of screen with iPad2 | bmwr1200c | Apple Devices | 1 | 08-08-2011 11:02 AM |
[KOBO] Strip existing formatting to apply my own default formatting to all books | digital_steve | Calibre | 2 | 08-10-2010 06:34 PM |
Calibre and FORMATTING how to stop it altering my formatting? | nerys | Calibre | 0 | 02-28-2010 04:51 PM |
How to reproduce the image viewer bug | sirbruce | Amazon Kindle | 9 | 06-11-2009 08:44 PM |