Tom Cruise’s character in “The Last Samurai” was based on a real Frenchman who fought alongside the warriors of a doomed “samurai democracy” in 1869.