View Single Post
Old 02-26-2019, 11:52 PM   #190
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,820
Karma: 7424433
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD, Clara BW, Libra Colour
Quote:
Originally Posted by davidfor View Post
Ugly, but it would work. And the attached screenshot is a quick edit of the database to prefix the ToC entries with two em-dashes for each level. I tried spaces, but they don't show up. Non-breaking spaces probably will, but I can't be bothered to work out how to enter them.
I don't think nbsps will work, as QString::simplified removes all chars which return true for QChar::isSpace, which includes https://www.compart.com/en/unicode/category/Zs. I could write a patch to prevent this though (it's in N3TableOfContentsWidget::setContent(Shortcover const&)), and I might add the ability to use spaces for TOC depth feature to seriesmeta. Also, if this method is used, the chapter titles should probably be normalized too (simplified also removes repeated whitespaces within the string).

Last edited by geek1011; 02-27-2019 at 12:00 AM.
geek1011 is offline   Reply With Quote