diff --git a/LICENSE.md b/LICENSE.md index 4819148..41ce403 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,5 +1,5 @@ Unless otherwise specified, everything in this repository is covered by the Creative Commons BY-NC-ND license: -[![Creative Commons License](https://licensebuttons.net/l/by-nc-nd/3.0/88x31.png)](http://creativecommons.org/licenses/by-nc-nd/3.0/) +[![Creative Commons License](https://licensebuttons.net/l/by-nc-nd/3.0/88x31.png)](https://creativecommons.org/licenses/by-nc-nd/3.0/) -中国大陆版:http://creativecommons.org/licenses/by-nc-nd/3.0/cn/ +中国大陆版:https://creativecommons.org/licenses/by-nc-nd/3.0/cn/ diff --git a/README.md b/README.md index 560f79b..b516af9 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ If you want to: don't hesitate to dive in! -Any feedback is welcome, in Chinese, English, or one that [Google Translate](http://translate.google.com) handles nicely. +Any feedback is welcome, in Chinese, English, or one that [Google Translate](https://translate.google.com) handles nicely. -Web site (Chinese): http://www.abolybook.org +Web site (Chinese): https://www.abolybook.org ------ @@ -25,11 +25,11 @@ Web site (Chinese): http://www.abolybook.org 下载: - GitHub:https://github.com/abolybook/aboly/releases -- 百度网盘备份:http://pan.baidu.com/s/1eRp6vMq +- 百度网盘备份:https://pan.baidu.com/s/1eRp6vMq 编译用到了: - xelatex,调用的包和字体,见 style.tex - Python,2.7和3皆可,调用了 [pinyin](https://pypi.python.org/pypi/pinyin/) -在线版(更新较频繁):http://www.abolybook.org +在线版(更新较快):https://www.abolybook.org diff --git a/aboly.tex b/aboly.tex index 53a32b4..5525185 100644 --- a/aboly.tex +++ b/aboly.tex @@ -20,7 +20,7 @@ \hypersetup{ pdftitle=一瓶论语, - pdfauthor=孔子 原著,abolybook@gmail.com 译评及制作, + pdfauthor=孔子 原著,abolybook@gmail.com 译评制作, pdfsubject=, pdfkeywords={\versioninfoaboly}, pdfcreator=LaTeX with Python, diff --git a/autocharacters.py b/autocharacters.py index 6a4c62a..c25fd19 100644 --- a/autocharacters.py +++ b/autocharacters.py @@ -31,14 +31,15 @@ def get_charname_blobs(content): lines = content.splitlines(True) c2bs = {} - for i, line in enumerate(lines): + for line in lines: if line.lstrip().startswith(CHAPTER_PREFIX): chapter_count += 1 blob_count = 0 elif line.lstrip().startswith(BLOB_PREFIX): blob_count += 1 left = content.index(line) - assert content[left + len(line):].find(line) == -1 # no duplicate \lyblob line + assert content[left + len(line):].find( + line) == -1 # no duplicate \lyblob line title = extract_blob_title(content[left:]) mats = CHARNAME_PAT.finditer(title) if mats: @@ -66,14 +67,15 @@ def append_annotations(content, charname_blobs): removecomment_pat = re.compile(r'(?