You see this once in a while, but how does it work? Does the author make arrangements on his or her own to give a lump sum or a percentage of the royalties to the charity? Or does the publisher make the arrangements? Does the publisher contribute as well? Or is it done every which way you can imagine on a case-by-case basis?

Just idle curiosity (at this point )