11-08-2018, 07:23 AM | #16 | |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
I'll keep an eye on the fontTools release pages and will update the fontTools update code if they no longer release .whl files. (I've also embedded fonttools 3.32.0 in the latest plugin version.) |
|
11-08-2018, 08:52 AM | #17 | |
Grand Sorcerer
Posts: 27,903
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
The wheel files are fairly trivial to build. Perhaps you could fork the fontTools repo and upload your own release wheels file to it. That way you could control the upgrade process of your plugin. |
|
11-08-2018, 09:25 AM | #18 | ||
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Quote:
If the developers stop posting .whl files on Github, I'll simply web scrape the fontTools PyPi.org page. Last edited by Doitsu; 11-08-2018 at 09:29 AM. |
||
11-08-2018, 09:32 AM | #19 | |
Grand Sorcerer
Posts: 27,903
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
After a quick glance: they're definitely building a wheel as part of their Travis CI automation (which in turn is automatically creating the Github release), but they must have started cleaning it up after the automated upload to PyPi. *shrug* The good news is that they look fully automated, now. Commits tagged for Release should automatically trigger both a new Github release and a new version uploaded to PyPi. So there should be very little (if any) lag between the Github and PyPi versions of fontTools from now on (the github release date and the pypi release date of 3.32.0 are indeed one and the same). That should make it easier on you. Good luck! Last edited by DiapDealer; 11-08-2018 at 09:39 AM. |
|
11-08-2018, 11:50 AM | #20 |
Zealot
Posts: 103
Karma: 10
Join Date: Jun 2014
Location: Poland, Żory
Device: Prestigio PER3464B, Onyx Lynx, Lenovo S5000 i Tab4-8"
|
@Doitsu
Thanks for fast reaction. bravosx |
11-21-2018, 04:36 AM | #21 |
Chalut o/
Posts: 420
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
Holly crap
For as long as I've been looking for a tool of this kind: Thank you very much. Hum, a practical feature would be to add the suffix "-subset" to the processed file. Attached, a request for help not necessarily in that place, but sincere: Spoiler:
Last edited by un_pogaz; 11-21-2018 at 07:56 AM. |
11-21-2018, 05:18 AM | #22 | |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
To use it, you'll need to: 1. Install Python. 2. Install fontTools as an administrator using pip: pip install FontTools The syntax is: Code:
pyftsubset font-file --text=<text>
Code:
pyftsubset font-file --text-file=<path>
Code:
pyftsubset --help
|
|
11-21-2018, 06:34 AM | #23 |
Chalut o/
Posts: 420
Karma: 145424
Join Date: Dec 2017
Device: Kobo
|
Calibre, of course, the solution to all your problems.
Thank you very much for your 2 solutions Well, after testing, the subset of Caliber is much heavier than the subset of FontTool (160 Ko for Caliber versus 8 Ko for FontTool), I would look at the options in detail and the why of the how later but that would be out of subject here. Here are the command line for those who are interested Font: STIX Two Mat Code range: 2220-222F (∠-∯) Calibre Code:
calibre-debug -f "STIX2Math.otf" "STIX2Math-subset.otf" ∠-∯ Code:
pyftsubset "STIX2Math.otf" --unicodes="2220-222F" --output-file="STIX2Math-subset.otf" Last edited by un_pogaz; 11-21-2018 at 08:00 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre annotations and highlight extract plugin for the Nook Simple Touch? | einkuser | Plugins | 15 | 01-24-2015 08:13 PM |
Install of simple plugin works on Linux and Win but not on OSX | kabirmaar | Development | 9 | 07-26-2014 07:49 PM |
Make a simple Plugin for Full Text Search using Recoll | Satas | Development | 9 | 07-20-2013 04:15 PM |
Nook Simple Touch font issue. | xstealx | ePub | 4 | 11-17-2011 10:11 AM |
Touch Font Change no longer works on Nook Simple? | localbuyer | Barnes & Noble NOOK | 13 | 07-09-2011 11:29 AM |