Finished translation for article regexp-unicode#582
Finished translation for article regexp-unicode#582KerbalHao merged 6 commits intojavascript-tutorial:masterfrom asterfell:unicode-property
Conversation
| @@ -1,135 +1,135 @@ | |||
| # Unicode: flag "u" and class \p{...} | |||
| # Unicode: 修饰符“u”和 class \p{...} | |||
There was a problem hiding this comment.
[修饰符“u”] -> [修饰符 “u” ],英文字符串两边需要空格
| 所以像 `a` 和 `≈` 这样的字符占用 2 个字节,而 `𝒳`,`𝒴` 和 `😄` 的对应编码则更长,它们具有 4 个字节的长度。 | ||
|
|
||
| Long time ago, when JavaScript language was created, Unicode encoding was simpler: there were no 4-byte characters. So, some language features still handle them incorrectly. | ||
| 很久以前,当 JavaScript 被发明出来的时候,Unicode 的编码要更加简单:当时并没有 4 个字节长的字符。所以,一部分语言特性在现在仍旧对无法对 unicode 进行正确的处理。 |
There was a problem hiding this comment.
[现在仍旧对无法对 unicode 进行正确的处理] -> [现在仍旧无法对 unicode 进行正确的处理],您看看是否多了一个 "对" 字?
| ## Unicode properties \p{...} | ||
| ## Unicode 属性(Unicode properties)\p{...} | ||
|
|
||
| ```warn header="Not supported in Firefox and Edge" |
There was a problem hiding this comment.
此处 header 的值 [Not supported in Firefox and Edge] 也需要被翻译
| - 字母(Letter) `L`: | ||
| - 小写(lowercase) `Ll` | ||
| - 修饰(modifier) `Lm`, | ||
| - 标题(titlecase) `Lt`, |
There was a problem hiding this comment.
原文 [titlecase] 是不是译成 [首字母大写] 比较好呢?
| - 属性的对应缩写形式: <https://www.unicode.org/Public/UCD/latest/ucd/PropertyValueAliases.txt>. | ||
| - 以文本格式整理的所有 Unicode 字符,包含了所有的属性: <https://www.unicode.org/Public/UCD/latest/ucd/>. | ||
|
|
||
| ### 实例: 16 进制数字 |
There was a problem hiding this comment.
[实例: 16] -> [实例:16],中间是否多了一个空格呢?
|
|
||
| - 列出一个字符的所有属性 <https://unicode.org/cldr/utility/character.jsp>. | ||
| - 按照属性列出所有的字符 <https://unicode.org/cldr/utility/list-unicodeset.jsp>. | ||
| - 属性的对应缩写形式: <https://www.unicode.org/Public/UCD/latest/ucd/PropertyValueAliases.txt>. |
There was a problem hiding this comment.
中文标点符号后面的空格可以省略
[属性的对应缩写形式: <https] -> [属性的对应缩写形式: <https]
|
|
||
| 1. Characters of 4 bytes are handled correctly: as a single character, not two 2-byte characters. | ||
| 2. Unicode properties can be used in the search: `\p{…}`. | ||
| 1. 4 个字节长的字符被以正确的方式处理: 被看成单个的字符,而不是 2 个 2 字节长的字符。 |
There was a problem hiding this comment.
中文标点符号后面的空格可以省略
[处理: 被看成单个的字符] -> [处理:被看成单个的字符]
| ``` | ||
|
|
||
| ### Example: currency | ||
| ### 实例: 货币 |
There was a problem hiding this comment.
中文标点符号后面的空格可以省略
[实例: 货币] -> [实例:货币]
| ``` | ||
|
|
||
| ### Example: Chinese hieroglyphs | ||
| ### 实例: 中文字符 |
There was a problem hiding this comment.
中文标点符号后面的空格可以省略
[实例: 中文字符] -> [实例:中文字符]
|
Please make the requested changes. After it, add a comment "/done". |
- Fix some typos. - Replace all end-of-line Enlish periods with Chinese full stops. - Eliminate whitespace following Chinese punctuations.
|
/done |
| - 其它(Other) `C`: | ||
| - 控制符(control) `Cc`, | ||
| - 格式(format) `Cf`, | ||
| - 为分配(not assigned) `Cn`, |
There was a problem hiding this comment.
这里写错了,应该是“未分配”。如果没有发现其它的错误会最终再补一个commit。
| - 小写(lowercase) `Ll` | ||
| - 修饰(modifier) `Lm`, | ||
| - 标题(titlecase) `Lt`, | ||
| - 首字母大小写(titlecase) `Lt`, |
| ## Unicode 属性(Unicode properties)\p{...} | ||
|
|
||
| ```warn header="Not supported in Firefox and Edge" | ||
| ```warn header="在 Firefox 和 Edge 中缺乏支持" |
There was a problem hiding this comment.
[和 Edge 中缺乏支持] -> [和 Edge 中缺乏支持],[Edge] 后多了一个空格
|
Please make the requested changes. After it, add a comment "/done". |
|
/done |
目标章节:9-regular-expressions/03-regexp-unicode
当前上游最新 commit: 002e379
所做更改如下: