To stand by yourself - that was also part of dignity. That way, a person could get through a public flaying with dignity. Galileo. Luther. Even somebody who admitted his guilt and resisted the temptation to deny it. Something politicians couldn't do. Honesty, the courage for honesty. With others and yourself.
I can teach you how to respect but self-respect is self taught.