Disclaimer: Any opinions I express here are my own, and may be incorrect. Sometimes grossly incorrect.
doctor programmer, not a lawyer.
I'm usually answering in canada & european-union jurisdictions on copyright & constitutional-law topics. However, I am incredibly tired of and avoid the endless run-of-the-mill "Is this copying I'm doing copyright infringement" questions as the answer is usually either yes, or it might be fair use but only a court could determine that for sure.