dot最新进展
Liang Qi
cavendish.qi at gmail.com
Mon Feb 26 02:07:20 CET 2007
http://www.kdecn.org/dot/dot.php
正文的编码问题已经解决,是这个函数的问题:
function characterData($parser, $data) { //this
will insert the contents
print htmlentities($data, ENT_QUOTES, "UTF-8");
//htmlentities will be made out of the special
characters in the xml file
}
已经添加了<p>, <br>, <img>的支持。
下一步就是显示方式和内容提交的工作了,内容提交我想继续仿照kde.de的方式,就是一个网页表格(html
form)提交后,发邮件给管理员,管理员把这部分内容提交到xml数据文件中。
http://kde.de/nachrichten/nachrichtenvorschlag.php
显示方式的问题,kde.de目前是一个季度一个总页面,可能页面会很大,我想如果分解成一个列表页面,一个显示页面,效果可能会好些。
不过这两个问题都已经不影响我们的dot数据生成了,大家可以着手把已有的dot翻译按这个格式修改了。
已经添加了
dot/dot.php
dot/test.xml
可能存在的问题,在kde.de的代码中,所有标签的处理也加入了htmlentities函数,估计严格的讲应该也要加入编码参数,至少image的alt需要。
--
http://www.qiliang.net
http://www.qtopia.org.cn
http://cavendishqi.blogspot.com
http://www.kdecn.org
More information about the kde-china
mailing list