Rand Stats

Chinese

zef:slavenskoj

Chinese Language Module for Raku / Raku 中文語言模組

English | 简体中文 | 繁體中文

English

This module provides a comprehensive Chinese interface for Raku programming, supporting both Simplified (简体) and Traditional (繁體) Chinese. It allows Chinese speakers to write Raku programs using Chinese function names and operators.

Features

Installation

# Clone the repository
git clone https://github.com/raku-multilingual/raku-chinese.git

# Or manually place the module in your Raku lib path

Quick Start

use Chinese;

# Both Simplified and Traditional work"你好,世界!";      # Simplified"你好,世界!";      # Traditional

# Math operations
my $= 總和([1, 2, 3, 4, 5]);"總和是:$總";

# Using operators (requires parentheses)
my $結果 = (1052);"結果:$結果";

Examples

See the examples/ directory for more comprehensive examples:

Limitations

Due to Rakudo issue #2404, this module cannot modify core language syntax. See limitations.md for details.

https://github.com/raku-multilingual/raku-chinese


简体中文

本模块为 Raku 编程语言提供全面的中文接口,同时支持简体和繁体中文。让中文使用者能够使用中文函数名和操作符编写 Raku 程序。

功能特点

安装

# 克隆仓库
git clone https://github.com/raku-multilingual/raku-chinese.git

# 或手动将模块放置在 Raku 库路径中

快速开始

use Chinese;

# 简体和繁体都可以使用"你好,世界!";      # 简体"你好,世界!";      # 繁体

# 数学运算
my $= 總和([1, 2, 3, 4, 5]);"总和是:$總";

# 使用操作符(需要括号)
my $結果 = (1052);"结果:$結果";

示例

查看 examples/ 目录获取更多综合示例:

限制

由于 Rakudo 问题 #2404,本模块无法修改核心语言语法。详见 limitations.md

https://github.com/raku-multilingual/raku-chinese


繁體中文

本模組為 Raku 程式語言提供全面的中文介面,同時支援簡體和繁體中文。讓中文使用者能夠使用中文函數名和運算子編寫 Raku 程式。

功能特點

安裝

# 複製儲存庫
git clone https://github.com/raku-multilingual/raku-chinese.git

# 或手動將模組放置在 Raku 函式庫路徑中

快速開始

use Chinese;

# 簡體和繁體都可以使用"你好,世界!";      # 簡體"你好,世界!";      # 繁體

# 數學運算
my $= 總和([1, 2, 3, 4, 5]);"總和是:$總";

# 使用運算子(需要括號)
my $結果 = (1052);"結果:$結果";

範例

查看 examples/ 目錄獲取更多綜合範例:

限制

由於 Rakudo 問題 #2404,本模組無法修改核心語言語法。詳見 limitations.md

License / 许可证 / 授權條款

This module is licensed under the Artistic License 2.0, same as Raku itself.

https://github.com/raku-multilingual/raku-chinese