one more thing: I find that Emacs 23 handles one of the two properties (I think it's after-string) correctly, and the other one (before-string?) as I've described. And it doesn't seem to depend on font-locking