命名实体的翻译规则

为了便于非母语者的理解,在翻译实践中,需要设置命名实体的特别规则。 命名实体:主要包括专有名词或名称,例如组织名称、名人、名言、著名地名、图书(圣经、经典)、电影名称、中文成语典故、歇後語和寓言短语等; 翻译规则 源语言是原文,目标语言是被翻译的译文。 普通命名实体: 应该保留一份原文、罗马拼音,一份对应翻译的目标语言。 译文结构:原文、罗马拼音和译文并列,“original_text (Chinese_pinyin/Romanization) translated_text”。 案例: 中文地名、人名和图书:成都、李子柒、《道德经》 英文译文:成都 (Chéngdū)Chengdu、李子柒 (Lǐ Zǐqī)Ziqi Li、《道德经》(Dào Dé Jīng)Tao Te Ching.“The Classic of the Way and Virtue” 我们大多数时候,只会做简单的普通命名实体翻译,不会解释太多。 特别命名实体 对于中文成语典故、歇後語和寓言短语,则还需要增加额外的解释,因为太简单的成语,总是需要更多语言做解释,才可能让其他母语者看懂。 案例: 中文成语:狐假虎威 英文译文:狐假虎威 (hú jiǎ hǔ wēi)The fox exploits the tiger’s might。 Explanation: “Feigning authority through association with power.”, “Using borrowed prestige to one’s advantage.”, “borrowing power from another”, or “riding on the coattails of someone powerful”. 提示词prompt 请将以下内容从{source_lang}翻译成{target_lang}。这是{file_type}文件。 关键要求: 严格保留源文件格式: ...

2024-11-13 · 1 分钟 · Atom.X

C++程序设计

原课程链接:C++程序设计 cplusplus.com 教材《新标准 c++程序设计》 郭炜, 清华大学 w11. C++11 新特性 auto 自动变量类型 decltype 关键字,求表达式类型 shared_ptr 智能指针 nullptr 空指针 基于范围的for循环 右值引用和move语义 unordered_map 无序容器(哈希表) regex 正则表达式 Lambda 表达式 强制类型转换 static_cast、interpret_cast const_cast和dynamic_cast C++异常处理基础:try、throw、catch 意外异常(unexpected exception) 动态内存管理的异常处理 new w9. STL - 质因数数目 container adapter 容器适配器 (让已有的顺序容器以栈/队列的方式工作) stack queue priority_queue member function push top pop 参考案例:github/ PKUC3/ 3.10.1.4.cpp map/ multimap map 容器中,关键字key是唯一的,值value可以重复。 multimap 容器中,关键字和值都可以重复。 set/ multiset set 容器中,元素是唯一的,按其值自动排序,而非插入顺序。 添加新对象时会比较对象的大小,set 是一个基于红黑树实现的容器,它会自动将元素按照特定的顺序存储,通常是使用元素的 < 操作符来进行比较和排序。 set 容器的迭代器支持双向迭代,可以使用++,- - 移动迭代器,但不支持随机访问,所以不能进行 i+1 的操作; ...

2024-3-12 · 8 分钟 · Atom.X

数列 Array

Week 10 array function #include<iostream> #include<cmath> using namespace std; /* looking for prime within 100. Sieve of Eratosthenes algorithm */ int main() { int sum=0, a[100]={0}; for(int i=2;i<sqrt(100.0);i++) // outer loop for i[2,9] { sum=i; while(sum<100)// inner loop for sum[2,99] { sum=sum+i; if(sum<100) a[sum]=1; // why = ? } } for(int i=2;i<100;i++) { if(a[i]==0)cout<<i<<" "; // why == ? } cout<<""<<endl; return 0; } when a[i] = {9, 15} , how could we calculate and remove it from the array a[n]? ...

2023-12-28 · 1 分钟 · Atom.X

C程序设计进阶

原课程链接:C程序设计进阶 const vs. static const 限制指针实参的功能 指针常量: 不能修改指针所指向的地址。在定义时必须立即初始化。 示例: char* const ptr = &some_char; // ptr 是一个指向 char 的常量指针 *ptr = 'a'; // 合法,修改了 ptr 所指向的 char 的值 ptr = &another_char; // 错误,不能修改 ptr 的值 常量指针: 不能修改指针所指向地址的内容,但可以改变指针所指向的地址。 示例: const char* ptr; // ptr 是一个指向 char 的常量指针 char const* ptr; // 与上一行等效 *ptr = 'a'; // 错误,不能修改 ptr 所指向的 char 的值 ptr = &another_char; // 合法,可以改变 ptr 的值 static 在函数内部或类中声明的静态变量,其生命周期跨越整个程序执行过程(在循环中多次执行,每次循环的初始值继承了上一次循环的值),且只初始化一次。 string literal #include <iostream> using namespace std; int main() { // input arguments int k=0, m=0, n=0; cin>>k; cin>>m>>" ">>n; // wrong expression. } cin operator automatically skips any whitespace, including spaces and newlines. it’s illegal to use “ ” with cin, because it is string literal, cin could not hold string. ...

2023-12-14 · 6 分钟 · Atom.X

计算导论与C语言基础

原课程链接:计算导论与C语言基础 Turing machine The ranking is in descending order of price and working speed Register: carries operation data and results, as fast as a CPU Cache: data buffer Memory: the part that cannot be placed in the CPU External memory (hard disk, USB flash drive) C. Bohm & G. Jacopini, “Flow Diagrams, Turing Machines and Languages ​​with Only Two Formations Rules”, Communications of ACM, vol9(5) May 1966, pp 366-371. Everything in the world is complicated, and there are only three kinds of logic expressed in programs: ...

2023-12-13 · 2 分钟 · Atom.X