Skip to content

Commit

Permalink
[DOCC]Synchronized Simplified Chinese Documentation (#1624)
Browse files Browse the repository at this point in the history
  • Loading branch information
vfp9 authored Nov 6, 2024
1 parent f794c2f commit 8d18f93
Show file tree
Hide file tree
Showing 14 changed files with 45 additions and 37 deletions.
4 changes: 2 additions & 2 deletions docs/Help_ZH-CN/Topics/ARRAY.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2024-06-04T23:12:48.339+08:00" lasteditedby="Design" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2024-11-05T11:18:09.071+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>ARRAY</title>
<keywords>
<keyword>ARRAY</keyword>
Expand All @@ -10,7 +10,7 @@
<para styleclass="Heading1">ARRAY</para>
</header>
<para styleclass="Normal"></para>
<para styleclass="Normal">ARRAY 类型是由 USUAL 值组成的动态数组。数组的每个元素都可以包含另一个数组,因此数组可以是多维的。</para>
<para styleclass="Normal">ARRAY 类型是由 USUAL 值组成的动态数组。数组的每个元素都可以包含另一个数组,这意味着数组可以是多维的。</para>
<para styleclass="Normal"></para>
<para styleclass="Heading3">实现</para>
<para styleclass="Normal">ARRAY 类型在 XSharp.__Array 类中实现。</para>
Expand Down
4 changes: 2 additions & 2 deletions docs/Help_ZH-CN/Topics/Build-Configurations.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2024-07-26T02:11:15.523+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2024-11-05T11:57:03.245+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>生成配置</title>
<body>
<header>
<para styleclass="Heading1">生成配置</para>
</header>
<para styleclass="Body Text"></para>
<para styleclass="Body Text">如果需要用不同的设置来生成项目,就需要生成配置。例如,&quot;调试&quot;&quot;发布&quot; 都是配置,在生成时会相应地使用不同的编译器选项。一个配置处于活动状态,并在 Visual Studio IDE 顶部的命令栏中显示。</para>
<para styleclass="Body Text">当您需要用不同的设置来构建项目时,就会用到构建配置。例如,调试(Debug)和发布(Release)是在构建过程中使用不同编译器选项的两种配置。有一种配置处于活动状态,它在 Visual Studio IDE 顶部的命令栏中显示。</para>
<para styleclass="Body Text"></para>
<para styleclass="Body Text"><image src="VsBuildToolbar.png" scale="71.07%" width="881" height="86" figurelistinclude="0"></image></para>
<para styleclass="Body Text"></para>
Expand Down
6 changes: 3 additions & 3 deletions docs/Help_ZH-CN/Topics/CODEBLOCK.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2024-07-26T10:30:25.852+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2024-11-05T12:03:35.321+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>CODEBLOCK</title>
<keywords>
<keyword>CODEBLOCK</keyword>
Expand Down Expand Up @@ -30,8 +30,8 @@
<para styleclass="Body Text">XSharp 还引入了包含<text style="font-weight:bold;">语句列表</text>的代码块:</para>
<para styleclass="Code Example"><text style="font-weight:bold; font-style:normal; color:#ff0000;">FUNCTION</text><text style="font-weight:normal; font-style:normal; color:#000000;"> Start() </text><text style="font-weight:bold; font-style:normal; color:#ff0000;">AS</text><text style="font-weight:normal; font-style:normal; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; color:#ff0000;">VOID</text><br/><text style="font-weight:bold; font-style:normal; color:#ff0000;">LOCAL</text><text style="font-weight:normal; font-style:normal; color:#000000;"> cb </text><text style="font-weight:bold; font-style:normal; color:#ff0000;">AS</text><text style="font-weight:normal; font-style:normal; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; color:#ff0000;">CODEBLOCK</text><br/><text style="font-weight:normal; font-style:normal; color:#000000;">cb := {| a,b,c| &#160;</text><br/><text style="font-weight:normal; font-style:normal; color:#000000;"> &#160; ? &quot;value 1&quot; ,a </text><br/><text style="font-weight:normal; font-style:normal; color:#000000;"> &#160; ? &quot;value 2&quot; ,b</text><br/><text style="font-weight:normal; font-style:normal; color:#000000;"> &#160; ? &quot;value 3&quot; ,c </text><br/><text style="font-weight:normal; font-style:normal; color:#000000;"> &#160; </text><text style="font-weight:bold; font-style:normal; color:#ff0000;">RETURN</text><text style="font-weight:normal; font-style:normal; color:#000000;"> a*b*c</text><br/><text style="font-weight:normal; font-style:normal; color:#000000;"> &#160; }</text><br/><text style="font-weight:normal; font-style:normal; color:#000000;">? Eval(cb,10,20,30)</text><br/><text style="font-weight:bold; font-style:normal; color:#ff0000;">WAIT</text><br/><text style="font-weight:bold; font-style:normal; color:#ff0000;">RETURN</text><text style="font-weight:normal; font-style:normal; color:#000000;">&#32;</text></para>
<para styleclass="Heading3">注意</para>
<list id="0" type="ul" listtype="bullet" formatstring="&#183;" format-charset="SYMBOL_CHARSET" levelreset="true" legalstyle="false" startfrom="1" styleclass="List" style="font-family:Symbol; font-size:11pt; color:#000000;">
<li styleclass="List">第一条语句应从参数列表后的新行开始。</li>
<list id="0" type="ul" listtype="bullet" formatstring="&#183;" format-charset="SYMBOL_CHARSET" levelreset="true" legalstyle="false" startfrom="1" styleclass="List" style="text-indent:-15px; margin-left:15px; font-family:Symbol; font-size:11pt; color:#000000;">
<li styleclass="List" style="text-indent:-15px; margin-left:15px;">第一条语句应从参数列表后的新行开始。</li>
<li styleclass="List">参数列表后不应有分号。</li>
<li styleclass="List">语句列表应以 RETURN 语句结束。</li>
</list>
Expand Down
6 changes: 3 additions & 3 deletions docs/Help_ZH-CN/Topics/Calling-conventions.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2024-07-26T10:21:45.062+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2024-11-05T12:12:35.762+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>调用约定</title>
<body>
<header>
Expand Down Expand Up @@ -70,9 +70,9 @@
<para styleclass="Body Text">然后,你希望在代码中使用 3 个名为 “a”、“b ”和 “c ”的局部变量。</para>
<para styleclass="Body Text">然而,编译器会生成一个带有参数的函数。类似这样</para>
<para styleclass="Code Example"><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">FUNCTION</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;"> Foo(args </text><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">PARAMS</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">USUAL</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;">[])</text></para>
<para styleclass="Body Text">然后,我们在函数内部生成局部变量,并将参数的名称标注出来</para>
<para styleclass="Body Text">在函数内部,我们将根据您声明的参数名称生成局部变量:</para>
<para styleclass="Code Example"><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">LOCAL</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;"> a := args[1] </text><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">as</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">USUAL</text><br/><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">LOCAL</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;"> b := args[2] </text><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">as</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">USUAL</text><br/><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">LOCAL</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;"> c := args[3] </text><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">as</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">USUAL</text></para>
<para styleclass="Body Text">实际上,代码会更复杂一些,因为您可能会决定在所有函数中使用比声明参数更少的参数。我们必须考虑到这一点。</para>
<para styleclass="Body Text">在现实中,代码会更复杂一些,因为您可能决定调用的函数参数少于声明的参数。我们必须考虑到这一点。</para>
<para styleclass="Body Text">现在看起来是这样的</para>
<para styleclass="Code Example"><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">LOCAL</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;"> numParams := args:Length</text><br/><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">LOCAL</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;"> a := </text><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">iif</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;">(numParams &gt; 0, args[1], NIL) </text><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">AS</text><text style="font-weight:normal; font-style:normal; text-decoration:none; color:#000000;">&#32;</text><text style="font-weight:bold; font-style:normal; text-decoration:none; color:#ff0000;">USUAL</text></para>
<para styleclass="Body Text">“numParams” 和 &#160;”args&quot; 的名称是由编译器生成的,其中包含一个特殊字符,以确保我们引入的变量名称不会与代码中的名称相冲突。</para>
Expand Down
4 changes: 2 additions & 2 deletions docs/Help_ZH-CN/Topics/CharLiterals.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2024-06-10T20:57:55.569+08:00" lasteditedby="Design" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2024-11-05T12:16:21.951+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>Char 字面量</title>
<keywords>
<keyword>CHAR</keyword>
Expand All @@ -14,7 +14,7 @@
<para styleclass="Normal"></para>
<para styleclass="Normal">根据所选方言的不同,Char 字面量有不同的符号。</para>
<para styleclass="Normal"></para>
<para styleclass="Normal">在许多方言中,单引号是字符串分隔符,因此 Char 字面量需要 “c ”前缀。</para>
<para styleclass="Normal">在许多方言中,单引号是字符串分隔符,因此 Char 字面量需要 &apos;c&apos; 前缀。</para>
<para styleclass="Normal"></para>
<para styleclass="Normal">只有在 Core 和 Vulcan 方言中,字符字面量总是保留单引号</para>
<para styleclass="Normal"></para>
Expand Down
4 changes: 2 additions & 2 deletions docs/Help_ZH-CN/Topics/Highlight-words.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" modified="2024-07-26T02:41:26.050+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<topic template="Default" modified="2024-11-05T13:55:30.272+08:00" lasteditedby="niuji" version="2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
<title>Highlight Identifiers(高亮标识符)</title>
<keywords>
<keyword>Highlight words</keyword>
Expand All @@ -10,7 +10,7 @@
<para styleclass="Heading1">Highlight Identifiers(高亮标识符)</para>
</header>
<para styleclass="Normal"></para>
<para styleclass="Normal"><text styleclass="Image Caption" style="font-style:normal;">当您选择一个特定的单词时,它会显示该单词的所有使用地点,并区分大小写。</text></para>
<para styleclass="Normal"><text styleclass="Image Caption" style="font-style:normal;">当您选择一个特定的单词时,它会显示该单词的所有使用位置,并区分大小写。</text></para>
<para styleclass="Normal"></para>
<para styleclass="Normal"><image src="Highlight words.png" scale="100.00%" styleclass="Image Caption" figurelistinclude="0"></image></para>
<para styleclass="Body Text"></para>
Expand Down
Loading

0 comments on commit 8d18f93

Please sign in to comment.