That's a really neat way of trimming the file extension, something that can end up being quite tedious to do with SED.
Do you know of a cheatsheet that describes what all the percentage sign means and other things you can do with parameter expansions?