07-10-2018, 10:14 PM | #1 |
Fanatic
Posts: 520
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Browser Viewer: Request to hide <aside epub:type="noteref">
Dear Kovid,
I read elsewhere that though <aside epub:type="noteref"> is an epub3 feature, readers are not required to hide these by default. But I would like the Browser Viewer to hide them, and that would be wonderful. Please. |
07-10-2018, 10:20 PM | #2 |
creator of calibre
Posts: 44,413
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can simply add your own CSS to do that via the User style sheet setting of the browser viewr.
|
Advert | |
|
07-10-2018, 10:39 PM | #3 | |
Fanatic
Posts: 520
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Quote:
I'm not that smart. . Can you guide me what the css is? I tried Code:
aside p { display: none; } Code:
aside p { visibility: hidden; } Last edited by nqk; 07-10-2018 at 10:58 PM. |
|
07-10-2018, 11:12 PM | #4 |
creator of calibre
Posts: 44,413
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Something like:
Code:
[epub-type="noteref"] { display: none } .book-content-popup-container [epub-type"noteref"] { display: block; } |
07-11-2018, 12:20 AM | #5 |
Fanatic
Posts: 520
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
,
Sorry if I have failed to follow you. I copy as is what you posted to the css but it doesn't hide the note from maintext. Code:
<p>Dẫu gọi nó là ǵ đi nữa th́ tất cả chúng ta đều theo đuổi thành công. Tất cả chúng ta đều có khát vọng và nỗ lực để đạt được nó. Khát vọng của chúng ta có thể khác với mọi người, và có thể chúng ta không xem việc đạt được chúng là “thành công”. Chúng ta để ư đến những người xung quanh mà thành công của họ khiến chúng ta đố kỵ. Jake đă sử dụng thời gian như thế nào mà anh ta lại vượt xa tôi cả về tiền bạc, bạn bè và tầm ảnh hưởng? Tại sao anh ta thành công, c̣n tôi th́ không? Tại sao anh ta đang bay trên con Learjet<sup><a href="#n1" epub:type="noteref">(1)</a></sup> của anh ta trong khi tôi vẫn đang lọc cọc với con Laguar<sup><a href="#n2" epub:type="noteref">(2)</a></sup> này? Tại sao cô ta được sống trong ngôi nhà mới, chăm sóc ba đứa con xinh đẹp và thông minh trong khi tôi vẫn đang t́m người yêu? Tại sao đến cả cái hộp các-tông của gă đó cũng lớn hơn của tôi nhiều vậy, và gă ta đă kiếm được cái xe mua sắm cỡ lớn đó ở đâu?</p> <aside epub:type="footnote" id="n1">1. Learjet: Một loại máy bay phản lực nhẹ mà sang của Mỹ (ND).</aside> <aside epub:type="footnote" id="n2">2. Laguar: Một loại xe hơi b́nh dân của Mỹ (ND).</aside> |
Advert | |
|
07-11-2018, 12:30 AM | #6 |
creator of calibre
Posts: 44,413
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
What is it you want to hide exactly epub:type="footnote" or epub:type="noteref"?
Adjust the selector in the example I gave you accordingly. |
07-11-2018, 12:45 AM | #7 | |
Fanatic
Posts: 520
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
|
Quote:
This is what I have now in the user style sheet Code:
a { color: yellow; } [epub-type="footnote"] { display: none } .book-content-popup-container [epub-type"footnote"] { display: block; } |
|
07-11-2018, 12:49 AM | #8 |
creator of calibre
Posts: 44,413
Karma: 23977332
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You might need to adjust the attribute name IIRC the viewer mangles them since browsers run in html5 not xhtml. Use the browser inspector to check the exact attribute name and use that in your selector.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can a file have multiple semantic tags (epub:type, reference type="…")? | jcsalomon | ePub | 7 | 02-19-2018 11:40 AM |
What does epub:type="chapter" mean? | phossler | Editor | 3 | 11-23-2015 07:14 PM |
The element type "p" must be terminated by the matching end-tag "</p>". | uieluck | ePub | 10 | 02-12-2013 07:04 PM |
"ELF binary type "0" not known" Error. When run Kindlegen | chovan | Amazon Kindle | 4 | 02-09-2012 11:49 AM |
ePub to Mobi: can't get the reference type="text" to work | LaoTseu | Conversion | 7 | 09-14-2011 12:06 AM |