Skip to content

Commit 7ac676b

Browse files
committed
added reference to simplified chinese
1 parent 1d002ab commit 7ac676b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

bookbase

text/main/basics/simpleDataTypesAndOperations/documentation/documentation.tex

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
\floatSep%
1414
%
1515
\subfloat[][%
16-
If you click the \menu{\threeBarButton} at on the top-left corner of the website, you can get to a menu where you can change the language and, e.g., select simplified Chinese~(简体中文) if that is your preferred language.~%
16+
If you click the \menu{\threeBarButton} at on the top-left corner of the website, you can get to a menu where you can change the language and, e.g., select simplified Chinese~(简体中文)~\cite{SCR1956ROTSCOPTSCCS1} if that is your preferred language.~%
1717
(I will not do so and instead continue in English.)%
1818
\label{fig:pythondoc02language}%
1919
]{\tightbox{\includegraphics[width=0.47\linewidth]{\currentDir/pythondoc02language}}}%
@@ -77,7 +77,7 @@
7777
As example, let us imagine that you want to learn more about the function~\pythonilIdx{ceil}.
7878
In \cref{fig:pythondoc01website}, we open a browser and visit the \citetitle{PSF:P3D}~\cite{PSF:P3D} at~\url{https://docs.python.org/3}.
7979
On this page, you will either directly see a drop-down box where you can choose your favorite language or you can find it by clicking the \menu{\threeBarButton} at on the top-left corner of the website.
80-
In the menu that opens in \cref{fig:pythondoc02language}, you can change the language and, e.g., select simplified Chinese~(简体中文) if that is your preferred language.
80+
In the menu that opens in \cref{fig:pythondoc02language}, you can change the language and, e.g., select simplified Chinese~(简体中文)~\cite{SCR1956ROTSCOPTSCCS1} if that is your preferred language.
8181
I will not do so and instead continue here in English.
8282

8383
Regardless of which language you chose, we still want to find information about the \pythonilIdx{ceil}~function.

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -423,14 +423,14 @@
423423
\begin{figure}%
424424
\centering%
425425
\includegraphics[width=0.65\linewidth]{\currentDir/unicodeCharacterTableSubset}%
426-
\caption{A subset of the \pgls{unicode} character table including the Basic Lating characters as well as some Simplified Chinese characters.}%
426+
\caption{A subset of the \pgls{unicode} character table including the Basic Lating characters as well as some Simplified Chinese characters~(简体中文)~\cite{SCR1956ROTSCOPTSCCS1}.}%
427427
\label{fig:unicodeCharacterTableSubset}%
428428
\end{figure}%
429429
%
430430
\begin{figure}%
431431
\centering%
432432
\includegraphics[width=0.65\linewidth]{\currentDir/strUnicodeEscape}%
433-
\caption{\inQuotes{Hello} in Simplified Chinese and entered via \pgls{unicode} escaped string.}%
433+
\caption{\inQuotes{Hello}, i.e., \inQuotes{你好。} in Simplified Chinese~(简体中文)~\cite{SCR1956ROTSCOPTSCCS1} and entered via \pgls{unicode} escaped string.}%
434434
\label{fig:strUnicodeEscape}%
435435
\end{figure}%
436436
%
@@ -450,7 +450,7 @@
450450
\pgls{unicode}~\cite{TUC2023U1510,TUC2023U151ACS,ISOIEC106462020ITUCCSU}, the most frequently used mapping of characters to numbers.
451451
Therefore, \python\ uses \pgls{unicode} as well\pythonIdx{str!unicode}.
452452

453-
\cref{fig:unicodeCharacterTableSubset} illustrates a subset of the \pgls{unicode} code table, including the Basic Latin characters, which are basically still compatible with~ASCII, and some Simplified Chinese characters.
453+
\cref{fig:unicodeCharacterTableSubset} illustrates a subset of the \pgls{unicode} code table, including the Basic Latin characters, which are basically still compatible with~ASCII, and some Simplified Chinese characters~(简体中文)~\cite{SCR1956ROTSCOPTSCCS1}.
454454
Most \pgls{unicode} characters can be identified by a number represented as four hexadecimal digits (mentioned back in \cref{sec:int:bitstrings}).
455455
The rows \cref{fig:unicodeCharacterTableSubset} are annotated with the first three of these digits and the columns with fourth and last hexadecimal digits.
456456

@@ -462,9 +462,9 @@
462462
If we use the \pythonil{\\u}-based\pythonIdx{\textbackslash{u}} escape, then we can represent \emph{any} character as Basic Latin text sequence.
463463
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).
464464

465-
Anyway, in \cref{fig:strUnicodeEscape}, we use the information obtained in \cref{fig:unicodeCharacterTableSubset} to print the Chinese text \inQuotes{Ni Hao.} standing for \inQuotes{Hello.} as unicode escaped string.
466-
We found that the character for \inQuotes{Ni} has unicode number~4f60, \inQuotes{Hao} has~597d, and the big period has~3002.
467-
The string \pythonil{"\\u4f60\\u597d\\u3002"} then corresponds to the correct Chinese text.%
465+
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.
466+
We found that the character for \inQuotes{} has unicode number~4f60, \inQuotes{} has~597d, and the big period~\inQuotes{。} has~3002.
467+
The string \pythonil{"\\u4f60\\u597d\\u3002"} then corresponds to the correct Chinese text~\inQuotes{你好。}.%
468468
\endhsection%
469469
%
470470
\hsection{Summary}%

0 commit comments

Comments
 (0)