![]() |
#1 |
Member
![]() Posts: 16
Karma: 10
Join Date: Aug 2013
Device: Kobo Aura HD
|
border-radius with RMSDK?
I am trying something very simple, or so I thought, having a div with a rounded corner in ePub. My HTML works flawless with the beta browser on my Kobo HD, but opening the epub will give me a square box.
Is there any way to get this to work? Code:
<html> <body> <p>Hello world</p> <div style="-webkit-border-radius: 50px; border-radius: 50px; background: #73AD21; padding: 30px; display: inline-block; color: #FFF; font-size: 1em; font-family: sans;"> <p style="margin: 0">Kan nu niet bellen. Wat heb je gehoord?</p> <p style="float: right; margin: 0; margin-top: 0.4em;">12:00</p> </div> <p>Daar is weer tekst</p> </body> </html> |
![]() |
![]() |
![]() |
#2 |
Member
![]() Posts: 16
Karma: 10
Join Date: Aug 2013
Device: Kobo Aura HD
|
I think this thread does exactly what I want. But I can't get it to render on the Kobo HD.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,023
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
It won't work on most physical ereaders. I'm actually amazed the plain box with no radius on the corner seems to work so well, including internal spacing and line width, on physical ereaders.
Also "Float" is a dubious property for many ereaders. |
![]() |
![]() |
![]() |
#4 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Kobo is not using the latest RMSDK so it's no wonder curves do not work. I don't know if curves will work with the current RMSDK but maybe. |
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 16
Karma: 10
Join Date: Aug 2013
Device: Kobo Aura HD
|
I basically have three options.
1. fix my SVG example that uses text, it blows up in Kobo's RMSDK. 2. find a way to scale a pure-SVG (text becomes paths) with the current line height. I dislike this solution, because it requires magic to become accessible again. It is a solution that works though. 3. accept square boxes, and hope for a better future. (at least on Kobo, on Kindle it does not work at all) Last edited by Skinkie; 09-03-2021 at 07:33 PM. Reason: add kindle |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,023
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Right angle corner boxes work on my Kindles. Conversion from epub2 and import from docx saved from LO Writer. No edit of CSS or HTML. I enabled lines on all four sides of a paragraph style. Line width recognised too.
|
![]() |
![]() |
![]() |
#7 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,023
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
|
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 16
Karma: 10
Join Date: Aug 2013
Device: Kobo Aura HD
|
I have asked someone what the Texties document looks like on a Kindle, which basically is a textual mess. Are you sure this works?
|
![]() |
![]() |
![]() |
#9 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 58
Karma: 438844
Join Date: Aug 2019
Device: PC, Linux Mint, Tablet, and Telephone
|
Quote:
What is the result of the code below? Code:
<html> <body> <p>Hello world</p> <div style="-webkit-background-clip: text; border-radius: 50px;-webkit-border-radius: 50px;display: inline-block;background: #73AD21;color: #FFF;padding: 30px;font-size: 1em;font-family: sans;"> <p style="margin: 0">Kan nu niet bellen. Wat heb je gehoord?</p> <p style="float: right; margin: 0; margin-top: 0.4em;">12:00</p> </div> <p>Daar is weer tekst</p> </body> </html> Last edited by MicroDrie; 09-05-2021 at 07:49 AM. Reason: Wrong background-clip: text deleted |
|
![]() |
![]() |
![]() |
#10 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 914
Karma: 275656
Join Date: Jun 2016
Device: Kobo
|
Quote:
Last edited by Semwize; 09-05-2021 at 03:13 PM. |
|
![]() |
![]() |
![]() |
#11 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,745
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#12 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,181
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 |
Member
![]() Posts: 16
Karma: 10
Join Date: Aug 2013
Device: Kobo Aura HD
|
|
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,511
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Kobo uses two different reading engines; one for Epub and a second for Kobo Epub. The choice of engine is based on the file name. Files ending in .epub are processed by a RMSDK engine, while those ending in .kepub.epub are processed by an Access NetFront based engine.
Some info on the Kobo format can be found at https://github.com/kobolabs/epub-spec Screenshots can be enabled via an entry in the kobo.conf file and then taken with the power switch. The simplest way to manage the required change to the conf file is to use nickle Menu. Sent from my Pixel 4a using Tapatalk |
![]() |
![]() |
![]() |
#15 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,023
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
And the screenshots are in colour if the content is colour, so not the black, 14 greys and white of the actual display even for monochrome content.
You'd want a sleep cover if using the power switch for screenshots. But does the kobo.conf setting work for all FW or models? |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Border-radius in pdf not working | kghugo | Calibre | 1 | 07-10-2019 02:35 PM |
ADE 3.0 and RMSDK 10 released | Doitsu | ePub | 14 | 01-24-2014 11:06 AM |
RMSDK | Santanu | ePub | 4 | 05-07-2012 02:02 AM |
RMSDK | Santanu | Android Developer's Corner | 6 | 03-17-2012 12:27 AM |
Renderer resolution with RMSDK | Mark.Vasconcelos | Android Developer's Corner | 1 | 10-05-2011 04:38 AM |