Giter Site home page Giter Site logo

zh.chinapedia.org's Introduction

**百科的目标是补全互联网上缺失的中文信息。本项目将会尝试将非中文的维基百科以及其它外语内容翻译成简体中文,这个过程会在GitHub上完成。关于本项目的更多内容请参考chinapedia.org

本项目刚刚启动,欢迎大家贡献内容和自动化代码。

讨论群:https://t.me/chinapedia

工作流程

以手动翻译英文维基百科为例。

里面很多步骤可以尝试写脚本自动化。

例如:页面清理过程中,可以用正则表达式将部分编辑的文字链接去掉。对应的 HTML 内容如下:

<span class="mw-editsection">
<span class="mw-editsection-bracket"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">[</font></font></span><a href="https://en.wikipedia.org/w/index.php?title=Anna_Sorokin&amp;section=9&amp;editintro=Template%3ABLP_editintro&amp;veaction=editsource" title="编辑部分:不可替代的代币"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">编辑</font></font></a><span class="mw-editsection-bracket"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">]</font></font></span>
</span>

这个流程看起来繁琐,但是目前可能是利用自动化翻译生产中文内容最有效的方案,因为目前对HTML文档的机器翻译技术相对成熟。

技术细节

  • Pandoc对HTML table转换后忽略了tdcolspan属性,本项目的Pandocfork版本中修复了这个问题。

zh.chinapedia.org's People

Contributors

liruqi avatar chinapedia avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.