Skip to main content

Ralsina.Me — Roberto Alsina's website

Bookrest: the stylesheet editor in action

As usu­al, a video show­ing it:

The cur­rent sta­tus is that the in­fra­struc­ture re­quired for the stylesheet ed­i­tor is in place:

  • I fig­ured out how to turn the StyleSheet ob­­ject back in­­­to a JSON stylesheet.

  • The changes are done and merged back in­­­to the same file.

  • There is UI for 3 of the 6 re­quired pieces. The mis­s­ing ones are text styles, em­bed­d­ed fonts, and con­­fig op­­tions (like, break sub­­sec­­tions to odd pages)

  • The UI for the whole app is pret­­ty rough, I am in full make-it-­­func­­tion­al mode right now. It will be rethought lat­er on.

Video: My lightning talk about Peter Norvig's spellchecker (in spanish)

Thanks to Nicolás Pace, I got a video of the Py­con Ar­genti­na 2009 light­ning talk­s.

So, af­ter fight­ing my ig­no­rance of video edit­ing, here is my own talk, about Pe­ter Norvig's spellcheck­er, spliced with the slides.

If you want a bet­ter qual­i­ty ver­sion of the slides, they are here

There is a prob­lem in that no mat­ter how I cut the orig­i­nal hour-­long video, re­gard­less of what tool I use, the sound gets out of sync, so I look kin­da odd. I will try to do an­oth­er ver­sion from the orig­i­nal video lat­er on.

So, here it is:

Edit­ed with kden­live: crashy but cool and easy

Dear Lazyweb, what's the pythonic cross-platform fc-match?

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, go­ing from a font fam­i­ly name or font name to a font file, where there's no font­con­fig?

I found code for this in mat­plotlib's font_­man­ag­er mod­ule but it looks hard to un­tan­gle, and re­quir­ing mat­plotlib is a bit over the top.

If there's no por­ta­ble so­lu­tion, I would be hap­py enough with three stand­alone so­lu­tions in­stead, and prom­ise to pub­lish an ab­strac­tion lay­er over them ;-)

So, dear win­dows and mac python­istas, any point­er­s?


Contents © 2000-2023 Roberto Alsina