01-09-2018, 03:37 AM | #1 |
Wizard
Posts: 2,608
Karma: 3000161
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. |
01-09-2018, 03:53 AM | #2 |
creator of calibre
Posts: 43,853
Karma: 22666666
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. |
Advert | |
|
01-09-2018, 07:51 PM | #3 |
Wizard
Posts: 2,608
Karma: 3000161
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 09:12 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Create an e-book with Devanagari characters | Leonardo77 | ePub | 5 | 05-14-2017 02:50 PM |
How do I create a list of books? | poppy9988 | Library Management | 3 | 10-20-2013 07:29 PM |
Epub -> txt with italic/bold characters | Fallingwater | Conversion | 8 | 07-10-2013 09:01 PM |
PRS-650 special characters ? in text but OK in notes list | cybmole | Sony Reader | 3 | 06-05-2012 04:24 AM |
list of all characters in Sony font ? | cybmole | Sony Reader | 9 | 10-05-2011 01:29 PM |