![]() |
#1 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,592
Karma: 9499994
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Newspaper columns
A novel I am reading has a couple of chapters as newspaper columns.
I have tried both <tables> and columns created with <div> but both methods chop off the bottom of the table. Reading the wiki... https://wiki.mobileread.com/wiki/Table#long_columns It states... Quote:
What is an artificial cell with no visible border? And how do you create it? |
|
![]() |
![]() |
![]() |
#2 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,451
Karma: 167726581
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Have you taken a look at the book you are reading to see how the columns were created there?
|
![]() |
![]() |
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,592
Karma: 9499994
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#4 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,291
Karma: 20171067
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I think they are talking about empty cells <tr><td></td></tr> interspersed in the table to allow splitting. If I were to use that technique I would give the empty tr a class with a height of zero or something so it doesn’t look wonky.
However…. I’ve tried doing the two-column thing and never got it to work reliably. Divs and/or tables worked fine on a LARGE display but failed miserably on a phone. My recommendation would be to use queries in your css. If the device supports multi-columns css and has a big enough display use the columns css. Otherwise, just use css to style it how you wish, like a newspaper article for example, (font, alignment, indent, etc. ) but only a single column. The user still gets the feel of reading the news and can actually read it. EDIT: Here is an example of what I was talking about. Yes, Jon, this is an example of the css...we know you would change it to something else... Code:
CSS: div.news {margin:2em 1em} div.news p {font-family:serif; font-size:.8em; text-align:justify; text-indent:0} div.news p.title {font-weight:bold; text-align:center; font-variant:small-caps} @supports ("column-count") { @media (min-width=800px) { div.news {column-count: 2; column-gap: 10px; column-rule: 1px solid black} div.news p.title {column-span: all} } } HTML: <p>This is a normal paragraph.</p> <p>This is a normal paragraph.</p> <p>This is a normal paragraph.</p> <p>This is a normal paragraph.</p> <div class="news"> <p class="title">Title of the Article</p> <p>This is a news paragraph.</p> <p>This is a news paragraph.</p> <p>This is a news paragraph.</p> <p>This is a news paragraph.</p> </div> <p>This is a normal paragraph.</p> <p>This is a normal paragraph.</p> <p>This is a normal paragraph.</p> <p>This is a normal paragraph.</p> Last edited by Turtle91; 03-22-2024 at 08:48 AM. |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,619
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
LoIn the past I wrote many posts about how to deal with kind of layout, even fake columns with a table and its issues under ADE. Do a search in Google with
RbnJrg column site:mobileread.com Here you have a few links: https://www.mobileread.com/forums/sh...d.php?t=223728 https://www.mobileread.com/forums/sh...d.php?t=284691 https://www.mobileread.com/forums/sh...03#post4176903 Last edited by RbnJrg; 03-22-2024 at 08:08 AM. |
![]() |
![]() |
![]() |
#6 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,629
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Columns only sometimes works no matter what you do. I've edited some PD ebooks to have the columns sequential in a logical fashion. Slavishly copying more complex paper layouts is pointless unless everyone is using 10" screens and even then it can fail. Unless it's an actual table it works better to make columns just be regular sequential paragraphs in the order they will be read.
|
![]() |
![]() |
![]() |
#7 | ||||||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,592
Karma: 9499994
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
Quote:
How is this not considered a major bug. Anytime an ereader fails to display text, then it needs to be treated as a bug. Quote:
The entire pbook is a bit weird. I think too many liberties were taken with styling and it is a real jumble. - newspaper columns. - chapters in monospace font - staggered paragraphs - narrow left justified, followed by narrow centered, followed by narrow right justified paragraphs. - paragraphs that are boxed - paragraph in sans I was able to replicate all the others styles, but the newspaper styling had me stumped. Quote:
![]() Quote:
I actually came across your second link and tried the code there. It worked and displayed the entire text but, because the paragraphs are not of equal size between column 1 & 2, there were too many gaps in each column and didn't look nice. Quote:
Thanks. |
||||||
![]() |
![]() |
![]() |
#8 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,451
Karma: 167726581
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
As part of one project, I spend quite a bit of time playing with the column count (column-count=2, etc.) and, the results were not satisfying. I did find an epub.js implementation in a demo ePub3 ebook that worked quite well but the number of ereaders/apps that supported it could be counted on the toes of one foot. When I tried to use a list in two columns, what I wanted was page 1 to show: Code:
AA | AC AB | AD Code:
AA | AN AB | AO If you want multiple columns, the only reliable way I've found to have multiple columns emulate the look of a physical book, is to create a fixed layout ebook (ePub3 FLO, PDF, whatever). |
|
![]() |
![]() |
![]() |
#9 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,919
Karma: 143098300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
CSS Code:
.column { -webkit-column-count: 2; } Code:
<div class-"column"> <p><p>“He’s wearing a force field suit,” Renne exclaimed. “They can’t penetrate from that range.”</p> <p>Hogan opened the general communications icon in his virtual vision. “All squads close in on the target. Pursue until he’s in open ground, then open fire. Overload that force field.” As he watched the squads putting the new tactic into play, screens on every console started to flicker. In his virtual vision, red warning graphics sprang up across his interface with the station’s network.</p> <p>“Kaos software has been released into the local network nodes,” his e-butler reported. “The controlling RI is attempting to clear it.”</p> </div> |
|
![]() |
![]() |
![]() |
#10 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,592
Karma: 9499994
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
I'm a couple of books further on now, so I won't be revisiting it anytime soon. Just opted for a single narrowish blockquote to make that portion distinct from the rest of the chapter. Quote:
![]() |
||
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,919
Karma: 143098300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The only thing you cannot do with the code I posted is have specific text in the columns.
|
![]() |
![]() |
![]() |
#12 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,451
Karma: 167726581
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
There is no real character limit for a table cell. OTOH, if you have more characters in a table cell than can be displayed in the cell width, where would you expect the excess characters to be displayed?
|
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,592
Karma: 9499994
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#14 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,451
Karma: 167726581
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#15 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,629
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
The epub2 has a subset of what works on websites, even if the website has no javascript etc and is just vanilla HTML5 and CSS3. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ratings Custom Columns Created From other Columns | Tanjamuse | Library Management | 4 | 09-28-2020 12:57 AM |
Help Needed for Custom Columns Created From other Columns | Tanjamuse | Library Management | 5 | 09-02-2018 06:19 PM |
Free (nook/Kindle/iTunes) Best of Mary Schmich [Pulitzer Prize-Win Newspaper Columns] | ATDrake | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 07-27-2015 03:18 PM |
Newspaper Comics | glenshoe | General Discussions | 2 | 04-18-2010 11:29 PM |
Newspaper | thefuture04 | enTourage Archive | 2 | 04-02-2010 09:44 PM |