Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chinese-language changes #239

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Chinese-language changes #239

wants to merge 5 commits into from

Conversation

Artoria2e5
Copy link

@Artoria2e5 Artoria2e5 commented Sep 22, 2024

A lot of things changed here:

  • Rename zh to zh_CN to make room for zh_TW.
  • Improve existing zh_CN translation.
  • Make a new zh_TW thing.
  • Change perl code to add zh_TW.
  • Change perl code to handle other things browsers ask for: zh-HK, MO, and the lesser-known Chinese variants.

The most dubious thing here is the perl code. Please, tell me if it's working at all.

* Use <u> instead of <i>, because Chinese italics is woe
We are going to have Taiwanese and Hong Kongese friends eventually, so
let's be more specific.
Mostly issues with punctuation and how line breaks create spaces, but
some sentences were reworded for clarity too.
I am very unsure about this new logic. Perl, welp.
... using the two commands I used to use half a decade ago:

* opencc -c s2twp
* sed -e 's/“/「/g' -e 's/”/」/g' -e 's/‘/『/g' -e 's/’/』/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant