Sunday, November 5, 2023

Code to replace English quotation mark with that of Chinese using ChatGPT

I've been translating my books with the assistance of ChatGPT, which does a good job in converting the English punctuation into Chinese punctuation. However, somehow it seldom replace English double quotation marks with Chinese double quotation marks:

So I asked ChatGPT how it could be done and following is its response:

Replace " with 「 at the beginning of a quoted text.

Replace " with 」 at the end of a quoted text.

No comments:

Post a Comment