https://github.com/asukaminato0721/software-design-for-flexibility-translation
Chinese translation for sicp3
https://github.com/asukaminato0721/software-design-for-flexibility-translation
sicp translation
Last synced: 3 months ago
JSON representation
Chinese translation for sicp3
- Host: GitHub
- URL: https://github.com/asukaminato0721/software-design-for-flexibility-translation
- Owner: asukaminato0721
- Created: 2022-01-01T06:41:52.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-31T11:00:47.000Z (about 2 years ago)
- Last Synced: 2025-04-02T12:53:33.571Z (3 months ago)
- Topics: sicp, translation
- Homepage:
- Size: 1.43 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# SICP3 Translation
By ~~Deepl and a simple python script~~ chatGPT, https://github.com/yihong0618/bilingual_book_maker
```python
from clipboard import copy, pastedef remove_enter(s: str) -> str:
s_new = ""
for i, c in enumerate(s):
if c == "\n":
if s[i - 1] == ".":
s_new += c
# fix scheme code
elif s[i + 1] == "(":
s_new += c
elif s[i - 1] == ")":
s_new += "\n"
else:
s_new += " "else:
s_new += c
return s_new + "\n\n"copy(remove_enter(paste()))
```Work flow:
1. open pdf
2. copy an article
3. run script to fix format
4. paste to a docx
5. deepl translate itUse website, you can only translate 5k characters at a time. But you can translate 100k characters at a time by docx.
---
TODO:
- fix some code translate by deepl.
- adjust the format.