Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 01-09-2018, 04:37 AM   #1
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,303
Karma: 2385865
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
To create a list of italic characters

Hi



Last October I uploaded to MR the trials concerning a subset generator named pyftsubset, which is part of the fonttools project. The file is named trials.zip (4.24 MB)

As you know, I was - and still am - unable to provide pyftsubset with the list of used italic (bold, bolditalic...) characters to work with and had to make do with the full list of characters provided by the Report tool of your nice Editor.

I would be keen to make further trials using such dedicated lists of characters. If everything goes well (...), I would like to contribute to build a subset plugin for Sigil using the pyftsubset tool.

As you made available the Calibre source code and you told me that the Calibre subset generator makes use of such dedicated lists, I thought that maybe you would accept to finger the relevant lines of code dealing with the creation of such lists of characters and to give the name of the libraries you did use for this purpose.

I have been told that a BS4 parser is not sufficient because it cannot handle the intricacies of CSS contextual rules. So, any comment regarding the creation of such lists would of course be very much appreciated.
roger64 is offline   Reply With Quote
Old 01-09-2018, 04:53 AM   #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: 33,621
Karma: 10209576
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The code to collect stats is in polish/stats.py

But I highly doubt you will be able to use it directly in a sigil plugin since it depends on many other bits of code from calibre.
kovidgoyal is offline   Reply With Quote
Advert
Old 01-09-2018, 08:51 PM   #3
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,303
Karma: 2385865
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Thanks you for your reply.

Calibre is probably not the best place for my single purpose question because it handles one thousand things...

Last edited by roger64; 01-09-2018 at 10:12 PM.
roger64 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Create an e-book with Devanagari characters Leonardo77 ePub 5 05-14-2017 03:50 PM
How do I create a list of books? poppy9988 Library Management 3 10-20-2013 08:29 PM
Epub -> txt with italic/bold characters Fallingwater Conversion 8 07-10-2013 10:01 PM
PRS-650 special characters ? in text but OK in notes list cybmole Sony Reader 3 06-05-2012 05:24 AM
list of all characters in Sony font ? cybmole Sony Reader 9 10-05-2011 02:29 PM


All times are GMT -4. The time now is 12:17 PM.


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