1812: The Rivers of War (Trail of Glory, #1)
|
|
As usual, a video showing it:
The current status is that the infrastructure required for the stylesheet editor is in place:
I figured out how to turn the StyleSheet object back into a JSON stylesheet.
The changes are done and merged back into the same file.
There is UI for 3 of the 6 required pieces. The missing ones are text styles, embedded fonts, and config options (like, break subsections to odd pages)
The UI for the whole app is pretty rough, I am in full make-it-functional mode right now. It will be rethought later on.
Thanks to Nicolás Pace, I got a video of the Pycon Argentina 2009 lightning talks.
So, after fighting my ignorance of video editing, here is my own talk, about Peter Norvig's spellchecker, spliced with the slides.
If you want a better quality version of the slides, they are here
There is a problem in that no matter how I cut the original hour-long video, regardless of what tool I use, the sound gets out of sync, so I look kinda odd. I will try to do another version from the original video later on.
So, here it is:
Edited with kdenlive: crashy but cool and easy
Here's what fc-match does:
$ fc-match "Droid Sans" DroidSans.ttf: "Droid Sans" "Regular"
Or even:
$ fc-match "Droid Sans" -v | grep file: file: "/usr/share/fonts/TTF/DroidSans.ttf"
So, how does one do that, going from a font family name or font name to a font file, where there's no fontconfig?
I found code for this in matplotlib's font_manager module but it looks hard to untangle, and requiring matplotlib is a bit over the top.
If there's no portable solution, I would be happy enough with three standalone solutions instead, and promise to publish an abstraction layer over them ;-)
So, dear windows and mac pythonistas, any pointers?
In my original post about it I was referring to Bookrest as a stylesheet editor for rst2pdf, because that's what I wanted, a way to test style changes and see what they did.
Of course, one thing lead to another and it's starting to look more like a word processor than anything else, but ... well, how about a stylesheet editor?
Sure, you can use the "Style" tab, and edit at will, but that's not exactly fun for everyone.
So, let's work on one. Here's the video of the current status:
Of course, this is about 1/20th of the stylesheet editor, but at least the dialog is there, and most of the remaining work is wiring dialogs, which is quick using designer.