Unicode, String internals by notFaceroll · Pull Request #426 · javascript-tutorial/pt.javascript.info
Repository navigation
Unicode, String internals - #426
Merged
nazarepiedady merged 3 commits into javascript-tutorial:master from notFaceroll:master Mar 24, 2024
Merged
Unicode, String internals #426 nazarepiedady merged 3 commits into javascript-tutorial:master from notFaceroll:master
Conversation
notFaceroll commented Jan 24, 2024
Copy link Copy Markdown
Contributor
No description provided.
update: translate the article to pt
2e03368
javascript-translate-bot
added
the
review needed
label
Jan 24, 2024
javascript-translate-bot
requested a review
from a team
January 24, 2024 03:07
CLAassistant commented Jan 24, 2024 · edited Loading
Copy link Copy Markdown
|
|
View reviewed changes
nazarepiedady left a comment
Copy link Copy Markdown
Member
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more .
I review some words that should be revised.
Comment thread 1-js/99-js-misc/06-unicode/article.mdOutdated
| @@ -1,172 +1,167 @@ | ||
|
|
||
| # Unicode, String internals | ||
| # Unicode, detalhes internos de Strings |
Outdated
| ``` | ||
|
|
||
| As we already know, JavaScript strings are based on [Unicode](https://en.wikipedia.org/wiki/Unicode): each character is represented by a byte sequence of 1- 4 bytes. | ||
| Como já sabemos, strings em JavaScript são baseadas em [Unicode](https://en.wikipedia.org/wiki/Unicode): cada caractere é representado por uma sequência de bytes de 1 a 4 bytes. |
Outdated
| `XX` deve ser composto por dois digitos hexadecimais com um valor entre `00` e `FF`, assim `\xXX` representa o caractere cujo o código Unicode é `XX`. | ||
|
|
||
| Because the `\xXX` notation supports only two hexadecimal digits, it can be used only for the first 256 Unicode characters . | ||
| Porque a notação `\xXX` suporta apenas dois dígitos hexadecimais, ela pode ser usada apenas para os primeiros 256 caracteres Unicode . |
javascript-translate-bot commented Jan 24, 2024
Copy link Copy Markdown
|
Please make the requested changes. After it, add a comment "/done". |
fix: apply suggested changes
ab601f2
notFaceroll commented Jan 25, 2024
Copy link Copy Markdown
Contributor
Author
|
/done |
View reviewed changes
nazarepiedady left a comment
Copy link Copy Markdown
Member
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more .
It seems good enough to be applied.
javascript-translate-bot added needs +1 and removed review needed labels Feb 27, 2024nazarepiedady commented Mar 5, 2024
Copy link Copy Markdown
Member
|
@peruibeloko and @jonnathan-ls , could you review this to check if it is okay to pass? |
View reviewed changes
peruibeloko left a comment
Copy link Copy Markdown
Contributor
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more .
Algumas mudanças rápidas, nada demais
Comment thread 1-js/99-js-misc/06-unicode/article.md| ```warn header=" Advanced knowledge " | ||
| The section goes deeper into string internals. This knowledge will be useful for you if you plan to deal with emoji, rare mathematical or hieroglyphic characters, or other rare symbols . | ||
| ```warn header=" Conhecimento avançado " | ||
| Esta seção aprofunda nos detalhes internos das strings. Este conhecimento será útil se você planeja lidar com emojis, caracteres matemáticos raros, hieróglifos ou outros símbolos raros . |
Outdated
| Tecnicamente, pares substitutos também são detectáveis pelos seus códigos: se um caractere tem o código no intervalo de `0xd800..0xdbff`, então ele é a primeira parte do par substituto. O próximo caractere (segunda parte) deve ter o código no intervalo `0xdc00..0xdfff`. Esses intervalos são reservados exclusivamente para pares substitutos por padrão . | ||
|
|
||
| So the methods [String.fromCodePoint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint) and [str.codePointAt](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt) were added in JavaScript to deal with surrogate pairs . | ||
| Então, os métodos [String.fromCodePoint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint) e [str.codePointAt](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt) foram adicionados no JavaScript para lidar com pares substitutos . |
Outdated
| Então, os métodos [String.fromCodePoint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint) e [str.codePointAt](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt) foram adicionados no JavaScript para lidar com pares substitutos . | ||
|
|
||
| They are essentially the same as [String.fromCharCode]( mdn:js/ String/fromCharCode) and [str.charCodeAt]( mdn:js/ String/charCodeAt), but they treat surrogate pairs correctly . | ||
| Eles são essencialmente os mesmos que [String.fromCharCode]( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ String/fromCharCode) e [str.charCodeAt]( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ String/charCodeAt), mas eles tratam pares substitutos corretamente . |
javascript-translate-bot commented Mar 6, 2024
Copy link Copy Markdown
|
Please make the requested changes. After it, add a comment "/done". |
fix: change 'en-US' to 'pt-BR' from MDN references
4e1e796
notFaceroll commented Mar 9, 2024
Copy link Copy Markdown
Contributor
Author
|
/done |
nazarepiedady commented Mar 10, 2024
Copy link Copy Markdown
Member
|
@peruibeloko , @jonnathan-ls , could you review this pull request? We need to review and apply all current pull request to leave the pull request section clean to receive new pull requests. |
View reviewed changes
nazarepiedady merged commit
bc56aba
into
javascript-tutorial : master
Mar 24, 2024
javascript-translate-bot commented Mar 24, 2024
Copy link Copy Markdown
|
Thank you 💖 I updated the Progress Issue #1 🎉 🎉 🎉 |