Skip to content

Commit

Permalink
update zh-tw version
Browse files Browse the repository at this point in the history
  • Loading branch information
Vonng committed Aug 9, 2021
1 parent 1b7630d commit 23277ef
Show file tree
Hide file tree
Showing 25 changed files with 12,678 additions and 1,189 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
4. [第一部分](part-i.md)前言,[ch2](ch2.md)校正 by @jiajiadebug
5. [词汇表](glossary.md)[后记]()关于野猪的部分 by @[Chowss](https://github.com/Vonng/ddia/commits?author=Chowss)
6. [@afunTW](https://github.com/afunTW)贡献的[繁體中文](https://github.com/Vonng/ddia/pulls)版本
7. [对第二三四章进行了大量翻译更正润色](https://github.com/Vonng/ddia/pull/118) by [@yingang](https://github.com/yingang)
7. [对第各章进行了大量翻译更正润色](https://github.com/Vonng/ddia/pull/118) by [@yingang](https://github.com/yingang)
8. 感谢所有作出贡献,提出意见的朋友们:
* [Issues](https://github.com/Vonng/ddia/issues)
* [Pull Requests](https://github.com/Vonng/ddia/pulls)
Expand Down
24 changes: 24 additions & 0 deletions _sidebar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
- [序言](preface.md)
- [第一部分:数据系统的基石](part-i.md)
- [第一章:可靠性、可伸缩性、可维护性](ch1.md)
- [第二章:数据模型与查询语言](ch2.md)
- [第三章:存储与检索](ch3.md)
- [第四章:编码与演化](ch4.md)

- [第二部分:分布式数据](part-ii.md)

- [第五章:复制](ch5.md)
- [第六章:分区](ch6.md)
- [第七章:事务](ch7.md)
- [第八章:分布式系统的麻烦](ch8.md)
- [第九章:一致性与共识](ch9.md)

- [第三部分:衍生数据](part-iii.md)

- [第十章:批处理](ch10.md)
- [第十一章:流处理](ch11.md)
- [第十二章:数据系统的未来](ch12.md)

- [术语表](glossary.md)

- [后记](colophon.md)
Empty file modified bin/translate.py
100644 → 100755
Empty file.
17 changes: 17 additions & 0 deletions bin/zh-tw.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env python3
import os, sys, opencc

def convert(src_path, dst_path, cfg='s2twp.json'):
converter = opencc.OpenCC(cfg)
with open(src_path, "r") as src, open(dst_path, "w+") as dst:
dst.write("\n".join(converter.convert(line) for line in src))
print("convert %s to %s" % (src_path, dst_path))


if __name__ == '__main__':
print(sys.argv)
home = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), '..'))
os.chdir(home)
for f in os.listdir():
if f.endswith('.md'):
convert(f, "zh-tw/" + f)
Loading

0 comments on commit 23277ef

Please sign in to comment.