Skip to content

Commit 83b6676

Browse files
committed
small improvement
1 parent 31fe3ac commit 83b6676

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

text/main/basics/simpleDataTypesAndOperations/str/str.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -457,10 +457,10 @@
457457
\python\ allows us to enter \pgls{unicode} characters via a special escape code starting with \pythonil{\\u}\pythonIdx{\textbackslash{u}} followed by these four digits.
458458
This is very useful.
459459
Imagine that you are sharing a program file with some colleagues.
460-
Depending on how their computer encodes text, the Basic Latin characters are usually always interpreted correctly.
460+
Depending on how their computer encodes text, the Basic Latin characters are usually interpreted correctly.
461461
But some computers may misinterpret \pgls{unicode} text as something else because the mix up the file encoding.
462462
If we use the \pythonil{\\u}-based\pythonIdx{\textbackslash{u}} escape, then we can represent \emph{any} character as Basic Latin text sequence.
463-
It is also useful if we want to, e.g., enter Chinese text on a machine that does not have an IME or other corresponding tools, or text in any other kind of language where we do not have corresponding keys on the keyboard (see, e.g., \cref{lst:variables:pi_liu_hui} later on).
463+
It is also useful if we want to, e.g., enter Chinese text on a machine that does not have an \pgls{IME} or other corresponding tools, or text in any other kind of language where we do not have corresponding keys on the keyboard (see, e.g., \cref{lst:variables:pi_liu_hui} later on).
464464

465465
Anyway, in \cref{fig:strUnicodeEscape}, we use the information obtained in \cref{fig:unicodeCharacterTableSubset} to print the Chinese text \inQuotes{你好。} standing for \inQuotes{Hello.} and pronounced as \inQuotes{N{\v{\i}} h{\v{a}}o.} as a unicode-escaped string.
466466
We found that the character for \inQuotes{你} has unicode number~4f60, \inQuotes{好} has~597d, and the big period~\inQuotes{。} has~3002.

0 commit comments

Comments
 (0)