[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Coordination of language variants



Hi Tassia,

I digged into Debian website's Chinese variant support a while before. There are
indeed several tricks that I'd like to share with you. Unfortunately I
won't be available
at this year's debconf. I'm not sure about others' schedule but you
might find others there.
IRC metting is possible too but the time need to be selected carefully.

First of all, we are generating three HTML files from the same source
WML file. The detailed
implementation can be found at [3]. Line 103 is the core.

One solid foundation about Chinese variant handling is an excellent
tool developed
specifically for Chinese variant conversion, namely opencc [1]. The
tool is able to convert
text between different Chinese variants. Current implementation in
webwml repository
is largely a wrapper for that tool. See [2] for its detail, in which
opencc is called during website
build to convert original texts (often a *mixture* of tranditional
chinese and simplified chinese)
to the desired Chinese variant page (zh_CN, zh_TW or zh_HK). Some
manual word substitution
also exist for fine-tuning but those manual substitution scripts are
largely deprecated; see also
other scripts in [2] under the same directory.

I don't know if there's a tool that can handle Portuguese auto
conversion. If there is one, the
process can be greatly simplified.

--
Regards,
Boyuan Yang


[1] https://github.com/byvoid/opencc
[2] https://salsa.debian.org/webmaster-team/webwml/blob/master/chinese/bin/generate-zh-variants.sh
[3] https://salsa.debian.org/webmaster-team/webwml/blob/master/chinese/Make.lang

Tassia Camoes Araujo <tassia@debian.org> 于2018年8月1日周三 上午9:58写道:
>
> Hello Chinese translation coordinators,
>
> I'm part of the Brazilian Protuguese localization team, and we
> need to integrate the Portuguese from Portugal variant in the
> Debian website. Since you deal with 3 variants for the Chinese language,
> learning from your experience would certainly be valuable for us.
>
> I'm at DebConf now, along with 2 other team members. If any of you are
> around, or if you can point me to other people from your team, that
> would be awesome!
>
> Or even if you are not in Hsinchu, maybe we could set up a meeting over
> IRC?
>
> Thanks in advance for your help!
>
> Tassia.


Reply to: