www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - We want to start the 'Programming In D 'in Chinese, do you have any

reply FrankLike <1150015857 qq.com> writes:
Hi,everyone:
   The 'Programming In D' is a good book for new D coders,we want 
to start it in Chinese, do you have any good suggestions?

Thank you.
Jun 10 2016
next sibling parent reply Seb <seb wilzba.ch> writes:
On Friday, 10 June 2016 at 14:26:31 UTC, FrankLike wrote:
 Hi,everyone:
   The 'Programming In D' is a good book for new D coders,we 
 want to start it in Chinese, do you have any good suggestions?

 Thank you.
If you want you can also start to translate the DLang Tour (tour.dlang.org). It already has multi-lingual support, and we will start translating it soon - we just wait until the major wave of improvements is in. https://github.com/stonemaster/dlang-tour/issues/132 If you want to translate the 'Programming in D', you should ping Ali directly for help. You can find his contact details here: http://ddili.org/ders/d.en/
Jun 10 2016
parent reply =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 06/10/2016 07:41 AM, Seb wrote:
 On Friday, 10 June 2016 at 14:26:31 UTC, FrankLike wrote:
 Hi,everyone:
   The 'Programming In D' is a good book for new D coders,we want to
 start it in Chinese, do you have any good suggestions?

 Thank you.
If you want you can also start to translate the DLang Tour (tour.dlang.org). It already has multi-lingual support, and we will start translating it soon - we just wait until the major wave of improvements is in. https://github.com/stonemaster/dlang-tour/issues/132
Agreed! I think that project has immediate impact and I think smaller in scope.
 If you want to translate the 'Programming in D', you should ping Ali
 directly for help. You can find his contact details here:
 http://ddili.org/ders/d.en/
Right. For convenience, here are some information to the translators: The following is a modified version of what I had written for a German translation (which did not happened). The information assumes that the translation remains as a subdirectory of the ddili project. Otherwise, the translator can simply translate files one by one to a target location. Anyway, here is the information: First, I would have to create the directory structure for the Chinese translation. You would have to clone the repo after that: https://bitbucket.org/acehreli/ddili If you clone that repository and 'make' everything, there should be the following files generated: src/ders/d.cn/编程在D.print.pdf src/ders/d.cn/编程在D.pdf public_html_test/ders/d.cn/* (Or we can leave the file names in Latin characters as Programming_in_D.print.pdf, etc.) Chapter files end with .d and the solutions for a chapter are in the file that ends with .cozum.d (e.g. hello_world.d and hello_world.cozum.d). As described in the top-level README, you have to have Prince XML installed as well as a recent dmd compiler. (I think I've neglected to write there that Linux is a requirement as well.) Also, you need to add a new ChineseAlphabet class to alphabet.d and associate it with the "chinese" language in that file. Temporarily, it uses EnglishAlphabet. To make the editing process easier, you should only make the 'test' target and open the relevant chapter on your local browser. For example, open the following file: public_html_test/ders/d.cn/hello_world.html Of course, feel free to rename the chapter files to Chinese ones. This is what I constantly do when editing a chapter: 1) Open the file in my browser 2) Edit the chapter in most amazing editor 3) Alt-Tab to switch to the browser 4) F5 to update the page I recommend against building the pdf versions frequently because that takes a lot of time. Please contact me at acehreli yahoo.com to start the process and to see how it goes. Would you be open to having one or more technical editors review the chapters as you post a pull request? That would improve the quality. Ali
Jun 10 2016
next sibling parent reply Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= writes:
On Friday, 10 June 2016 at 15:04:52 UTC, Ali Çehreli wrote:
   src/ders/d.cn/编程在D.print.pdf
   src/ders/d.cn/编程在D.pdf
Is "programming" composed as "edit journey" in chinese? That's kinda philosphical. :-)
Jun 10 2016
parent reply Meta <jared771 gmail.com> writes:
On Friday, 10 June 2016 at 20:47:16 UTC, Ola Fosheim Grøstad 
wrote:
 On Friday, 10 June 2016 at 15:04:52 UTC, Ali Çehreli wrote:
   src/ders/d.cn/编程在D.print.pdf
   src/ders/d.cn/编程在D.pdf
Is "programming" composed as "edit journey" in chinese? That's kinda philosphical. :-)
Not quite. Many words in Chinese have roughly 10 different meanings in different contexts, which all gets very hard to keep track of. 编 can mean to edit in the sense of editing a newspaper, but it can also mean to weave, to organize, to write, or to fabricate. 程 is a noun that can mean rule, like "follow the rules", procedure, distance, or journey. The best way to translate it is of course "to program", but if you were to assign meaning to each character the best translation would probably be "to write a list of rules [for the computer to follow]".
Jun 10 2016
parent reply mogu <mogucpp 163.com> writes:
On Friday, 10 June 2016 at 21:32:47 UTC, Meta wrote:
 On Friday, 10 June 2016 at 20:47:16 UTC, Ola Fosheim Grøstad 
 wrote:
 On Friday, 10 June 2016 at 15:04:52 UTC, Ali Çehreli wrote:
   src/ders/d.cn/编程在D.print.pdf
   src/ders/d.cn/编程在D.pdf
Is "programming" composed as "edit journey" in chinese? That's kinda philosphical. :-)
Not quite. Many words in Chinese have roughly 10 different meanings in different contexts, which all gets very hard to keep track of. 编 can mean to edit in the sense of editing a newspaper, but it can also mean to weave, to organize, to write, or to fabricate. 程 is a noun that can mean rule, like "follow the rules", procedure, distance, or journey. The best way to translate it is of course "to program", but if you were to assign meaning to each character the best translation would probably be "to write a list of rules [for the computer to follow]".
编 可以是 编写 的缩写 编 could be short for 编写(write) 程 可以是 程序 的缩写 程 could be short for 程序(program) 编程 即 编写程序 So 编程 means writing programs aka programming.
Jun 10 2016
parent reply Meta <jared771 gmail.com> writes:
On Saturday, 11 June 2016 at 00:38:24 UTC, mogu wrote:
 编 可以是 编写 的缩写
 编 could be short for 编写(write)
 程 可以是 程序 的缩写
 程 could be short for 程序(program)
 编程 即 编写程序
 So 编程 means writing programs aka programming.
谢谢你纠正我,说中文不容易的。
Jun 10 2016
parent reply mogu <mogucpp 163.com> writes:
On Saturday, 11 June 2016 at 03:19:52 UTC, Meta wrote:
 On Saturday, 11 June 2016 at 00:38:24 UTC, mogu wrote:
 编 可以是 编写 的缩写
 编 could be short for 编写(write)
 程 可以是 程序 的缩写
 程 could be short for 程序(program)
 编程 即 编写程序
 So 编程 means writing programs aka programming.
谢谢你纠正我,说中文不容易的。
哪里哪里,中文的确很难,但同时也是最有魅力的语言之一。
Jun 11 2016
parent Sheldon Shen <meatatt yahoo.com> writes:
On Saturday, 11 June 2016 at 12:38:31 UTC, mogu wrote:
 On Saturday, 11 June 2016 at 03:19:52 UTC, Meta wrote:
 On Saturday, 11 June 2016 at 00:38:24 UTC, mogu wrote:
 编 可以是 编写 的缩写
 编 could be short for 编写(write)
 程 可以是 程序 的缩写
 程 could be short for 程序(program)
 编程 即 编写程序
 So 编程 means writing programs aka programming.
谢谢你纠正我,说中文不容易的。
哪里哪里,中文的确很难,但同时也是最有魅力的语言之一。
Not as good as D meatatt
Jun 11 2016
prev sibling next sibling parent reply Sheldon Shen <meatatt yahoo.com> writes:
On Friday, 10 June 2016 at 15:04:52 UTC, Ali Çehreli wrote:
 I recommend against building the pdf versions frequently 
 because that takes a lot of time.
Actually we have a problem in pdf versions. It seems that any chinese character is replaced by '?', which may be an issure of the prince :(
 Please contact me at acehreli yahoo.com to start the process 
 and to see how it goes. Would you be open to having one or more 
 technical editors review the chapters as you post a pull 
 request? That would improve the quality.
Thanks to your suggestions, we have already started the project :) It is located at https://github.com/DlangRen/Programming-in-D We are wondering what editor you used to write the book in Ddoc, because apparently MonoD can't handle it porperly. meatatt
Jun 11 2016
parent =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 06/11/2016 11:49 PM, Sheldon Shen wrote:
 On Friday, 10 June 2016 at 15:04:52 UTC, Ali Çehreli wrote:
 I recommend against building the pdf versions frequently because that
 takes a lot of time.
Actually we have a problem in pdf versions. It seems that any chinese character is replaced by '?', which may be an issure of the prince :(
It is most definitely a font issue: The embedded fonts probably don't have Chinese characters. You need to pick new fonts.
 Please contact me at acehreli yahoo.com to start the process and to
 see how it goes. Would you be open to having one or more technical
 editors review the chapters as you post a pull request? That would
 improve the quality.
Thanks to your suggestions, we have already started the project :) It is located at https://github.com/DlangRen/Programming-in-D
That's wonderful! :)
 We are wondering what editor you used to write the book in Ddoc, because
 apparently MonoD can't handle it porperly.
I don't know any editor other than Emacs. :o) Although it's extremely capable, I did not need any help for ddoc. I typed everything by hand.
 meatatt
Ali
Jun 12 2016
prev sibling next sibling parent Asterism <monsoon.cl gmail.com> writes:
On Friday, 10 June 2016 at 15:04:52 UTC, Ali Çehreli wrote:
 On 06/10/2016 07:41 AM, Seb wrote:
   [...]
want to
 [...]
translating it
 [...]
in.
 [...]
[...]
IMHO maybe D编程 or D语言编程 is better than 编程在D, because 编程在D looks odd in Chinese. Programming in Scala translated into Scala编程 in Chinese; Programming In Lua translated into Lua程序设计; Programming in C(3rd Edition) translated into C语言编程 and 4th Edition translated into C语言程序设计; If this Chinese book is not published in Chinese, the original name "Programming in D" or "Programming in D 中文版" (Programming in D Chinese version) is also OK.
Jun 12 2016
prev sibling parent FrankLike <1150015857 qq.com> writes:
On Friday, 10 June 2016 at 15:04:52 UTC, Ali Çehreli wrote:

Thank you,we are in the same organization 
'https://github.com/DlangRen'.

 If you clone that repository and 'make' everything, there 
 should be the following files generated:

   src/ders/d.cn/编程在D.print.pdf
   src/ders/d.cn/编程在D.pdf
   public_html_test/ders/d.cn/*
Here D编程 or 《Programming In D》 中文版 is better. Frank
Jun 13 2016
prev sibling parent reply Meta <jared771 gmail.com> writes:
On Friday, 10 June 2016 at 14:26:31 UTC, FrankLike wrote:
 Hi,everyone:
   The 'Programming In D' is a good book for new D coders,we 
 want to start it in Chinese, do you have any good suggestions?

 Thank you.
太好了!很不幸,我的中文知识不足够的,所以不可能帮你们。加油,我很兴奋的!
Jun 10 2016
parent reply Dsby <dushibaiyu yahoo.com> writes:
On Friday, 10 June 2016 at 20:24:47 UTC, Meta wrote:
 On Friday, 10 June 2016 at 14:26:31 UTC, FrankLike wrote:
 Hi,everyone:
   The 'Programming In D' is a good book for new D coders,we 
 want to start it in Chinese, do you have any good suggestions?

 Thank you.
太好了!很不幸,我的中文知识不足够的,所以不可能帮你们。加油,我很兴奋的!
这句中文说的很不错的。
Jun 12 2016
parent Meta <jared771 gmail.com> writes:
On Monday, 13 June 2016 at 02:34:13 UTC, Dsby wrote:
 On Friday, 10 June 2016 at 20:24:47 UTC, Meta wrote:
 On Friday, 10 June 2016 at 14:26:31 UTC, FrankLike wrote:
 Hi,everyone:
   The 'Programming In D' is a good book for new D coders,we 
 want to start it in Chinese, do you have any good suggestions?

 Thank you.
太好了!很不幸,我的中文知识不足够的,所以不可能帮你们。加油,我很兴奋的!
这句中文说的很不错的。
你太客气了~
Jun 12 2016