Taiwan’s steely leader rewrote the book on how to deal with China