From prayers from afar for Yasukuni Shrine to altering key language in a remembrance speech, the moves were seen as signaling to domestic supporters and neighboring countries.