Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-10-2018, 10:14 PM   #1
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 516
Karma: 32106
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.
nqk is offline   Reply With Quote
Old 07-10-2018, 10:20 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,842
Karma: 22666666
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.
kovidgoyal is online now   Reply With Quote
Old 07-10-2018, 10:39 PM   #3
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 516
Karma: 32106
Join Date: Feb 2012
Device: Onyx Boox Leaf
Quote:
Originally Posted by kovidgoyal View Post
You can simply add your own CSS to do that via the User style sheet setting of the browser viewr.


I'm not that smart. .

Can you guide me what the css is?

I tried
Code:
aside p {
 display: none;
}
or
Code:
aside p {
 visibility: hidden;
}
then the content of the popup footnotes are blank.

Last edited by nqk; 07-10-2018 at 10:58 PM.
nqk is offline   Reply With Quote
Old 07-10-2018, 11:12 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,842
Karma: 22666666
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; }
That will hide it in normal text and display it in the popup
kovidgoyal is online now   Reply With Quote
Old 07-11-2018, 12:20 AM   #5
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 516
Karma: 32106
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>
nqk is offline   Reply With Quote
Old 07-11-2018, 12:30 AM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,842
Karma: 22666666
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.
kovidgoyal is online now   Reply With Quote
Old 07-11-2018, 12:45 AM   #7
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 516
Karma: 32106
Join Date: Feb 2012
Device: Onyx Boox Leaf
Quote:
Originally Posted by kovidgoyal View Post
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.
I'd like to hide <aside epub:type="footnote" id="id">Contents of footnotes</aside> from being display as normal text.

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; }
But the "Contents of footnotes" are still displayed as normal texts.
nqk is offline   Reply With Quote
Old 07-11-2018, 12:49 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,842
Karma: 22666666
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.
kovidgoyal is online now   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 05:42 AM.


MobileRead.com is a privately owned, operated and funded community.