[mapserver-commits] r11876 - trunk/docs/zh_cn
svn at osgeo.org
svn at osgeo.org
Thu Jul 7 05:28:17 EDT 2011
Author: wbprime
Date: 2011-07-07 02:28:17 -0700 (Thu, 07 Jul 2011)
New Revision: 11876
Modified:
trunk/docs/zh_cn/MIGRATION_GUIDE.txt
Log:
finish some part of Chinese translation for migration_guide
Modified: trunk/docs/zh_cn/MIGRATION_GUIDE.txt
===================================================================
--- trunk/docs/zh_cn/MIGRATION_GUIDE.txt 2011-07-07 09:10:54 UTC (rev 11875)
+++ trunk/docs/zh_cn/MIGRATION_GUIDE.txt 2011-07-07 09:28:17 UTC (rev 11876)
@@ -17,21 +17,18 @@
本部分阐述了从MapServer 5.6.x版本(或更早版本)迁移到6.0版本必须要修改的一些设置,同时也会介绍一些新特性的信息。
------------------------------------
-Mapfile 的变化 - 语法解析
+Mapfile的变化 - 语法解析
------------------------------------
-Version 6.0 features an extensive reworking of the expression parsing capabilities.
-While this adds functionality it also introduces a couple of regressions:
+6.0版本扩展了一些表达式解析能力。这既增强了其功能性,同时又引进了一些不便:
-Logical Expressions
+逻辑表达式
-* a regex is now deliniated as a string (e.g. '^a' rather than /^a/)
-* the regex operator is ~ for case sensitive comparisons and ~* for case insensitive
-* case insensitive string comparison operator is =*
+* 正则表达式现在用字符串来描述(比如使用'^a'而不是/^a/)
+* 使用~来进行大小写敏感的正则表达式比较,使用~*来进行大小写不敏感的正则式比较
+* 大小写不敏感的字符串比较的操作符是=*
-Class text expressions are true expressions in 6.0. This allows for fancy formatting
-of numeric data but also means string operators must be used to concatenate attribute
-values and string literals.
+文本分类表达式在6.0版本中可以使用了。这使得可以对数字进行更好的格式化,但同时亦表明属性数据和字符之间需要使用字符串操作符进行连接。
* Old/bad: TEXT ([area] acres)
* New (option 1)/good: TEXT ([area] + ' acres')
@@ -40,23 +37,15 @@
On the plus side you can now control the number of decimal places, round and even commify
the area value for annotion.
-See http://mapserver.org/development/rfc/ms-rfc-64.html and http://trac.osgeo.org/mapserver/ticket/3736
-for more information.
+详情请参见 http://mapserver.org/development/rfc/ms-rfc-64.html 和 http://trac.osgeo.org/mapserver/ticket/3736 。
------------------------------
-Mapfile Changes - Label Styles
+Mapfile的改变 - 标注样式
------------------------------
-As the need for more and more control of label drawing increased it became apparent that
-we couldn't extend labelObj's endlessly. In 6.0 we introduce the idea of label styles, that
-is, a styleObj inside a labelObj. The styles can be used to add accompanying markers or
-bounding box elements to a label- kinda like annotation layers. The big benefit is that
-it's done in one pass. So you can draw complex roadwork and shields all at the same time.
-Pretty neat huh? Plus you can do attribute binding for any of the styleObj attributes that
-support it.
+随着控制标注绘制风格需求的增加,很明显单纯无止境地扩展labelObj已经很不现实了。在6.0版本中,我们引进了标注样式的概念,即一个labelObj对象中的labelObj对象。样式可以用来给标注添加标志或者边框元素,形成一种类似于kinda的注记图层。这样做的一个好处是一步即好。也就是说你可以绘制复杂的路径并同时遮蔽起来。是不是很酷?并且,你可以绑定支持的属性值到styleObj对象的属性
-As a result the parameters BACKGROUNDCOLOR, BACKGROUNDSHADOWCOLOR, BACKGROUNDSHADOWSIZE
-are no more. To draw a label "box" in 6.0 you'd do:
+这样导致的一个结果是,参数BACKGROUNDCOLOR、BACKGROUNDSHADOWCOLOR和BACKGROUNDSHADOWSIZE被删除了。要在6.0版本中绘制一个标注框,你需要:
::
@@ -74,10 +63,10 @@
END
END
-More verbose but *much* more flexible in the long run.
+从长远来看,这变得更加灵活了,尽管有一点繁琐。
---------------------------------------
-Mapfile Changes - Label MAXOVERLAPANGLE
+Mapfile的改变 - 标注的MAXOVERLAPANGLE
---------------------------------------
:ref:`RFC60` introduced a new MAXOVERLAPANGLE keyword to filter out ANGLE
@@ -733,7 +722,7 @@
-----------------------------------------------------
-Features Heading for Deprecation
+准备废弃的特性
-----------------------------------------------------
Some features present in MapServer are likely to be removed in a future
More information about the mapserver-commits
mailing list