anonymousException / renpy-translator

A translator for renpy based on google | youdao | deepl | open-ai | offline-ai tranlation supports extract untranslated words and translate
MIT License
61 stars 9 forks source link

On translating inches #24

Closed YauHsien closed 2 months ago

YauHsien commented 2 months ago

Though some escape-sequece characters was maintained, I found an unhandled case.

In some game where body measurements was discussed, the inch symbol, such as 5'6", was used. The script was written as followings:

# Some translation case:

     # mc "The body measurement is 5'6\"."
     mc ""

It will be translated as the following:

     mc "身體度量為 5'6\\"."

Then in my opinion, the escape-sequence case \" => \" should be handled as distinguished with cases " => \" and \ => \\.

anonymousException commented 2 months ago

Improved in v2.1.8