From c29c0a73879eaed497e97992ad20e7c829d5e8b2 Mon Sep 17 00:00:00 2001 From: abolybook Date: Sat, 4 Aug 2018 22:44:36 +0800 Subject: [PATCH] v0.3.0+build.1884 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 改进: - 1.1,1.7,4.9,6.30,调整了“君子”、“贤”、“士”、“圣”的解释。 - 1.5,增加了“用”的解释。 - 1.8、7.38,扩充了“威”、“猛”的解释。 - 1.13,略扩充了“因不失其亲”的讨论。 - 2.3,增加了“齐”的例句。 - 3.1,增加了“庭”的解释。 - 5.9,增加了与其它章的联系。 - 5.24,增加了“孰谓微生高直”的理解及参考引文。扩充了“或乞醯焉”的解释及例。 - 6.2,为“居敬”等增加了参考引文。 - 6.11,增加了“在陋巷”及“陋”的解释。 - 6.18,增加了“胜”的解释。调整了“史”的解释。 - 6.26,增加了“何为其然也”的详细解释。 - 7.14,增加了“子在齐闻《韶》”的背景说明。 - 8.10,增加了疾、病、患的比较。 - 10.27,扩充了古代书写系统的若干概念解释。 - 11.14,增加了“长府”的解释,及郎顗传的参考引文。 - 11.22,增加了冉求、子路的性格勾勒。 - 12.9,增加了“年饥”的解释,及《吕氏春秋》的参考引文。 - 12.20,扩充了“达”、“闻”的解释及例参。 - 12.21,增加了“忿”与“愤”的比较。 - 13.11, 13.12,扩充了解释及参考引文。 - 14.13,扩充了“岂其然乎”的解释及例句。 - 14.21,增加了“讨”的解释。 - 14.26,扩充了“思不出其位”的解释,增加了陈平的事例。 - 14.44,增加了“速成”的解释。 - 15.34,为“小知、大受”增加了俞大猷的参考。 - 16.14,增加了夫人、小童、寡小君的解释。 - 17.5,改进了“东周”的解释。 - 17.9,略调整了解释。 - 18.7,修改了“蓧”的解释;增加了“食之”的解释。 - 原文:15.27“巧言乱德”后的逗号改为句号。 - 实现:\lyextended 改用思源宋体(Source Han Serif)。 - 实现:改进 validate_lyrefs() 的逻辑,简化 SPECIAL_LYQS。 - 实现:使用yapf格式化Python代码。 修正: - 4.1,“Jim John”应为“Jim Rohn”。非常抱歉! - 5.5,“御”的解释。 - 将“晏平仲”从人物表前移至5.17内。 --- LICENSE.md | 4 +- README.md | 8 +- aboly.tex | 2 +- autocharacters.py | 13 +- autolybody.py | 3 +- autotopics.py | 32 +- body.tex | 856 +++++++++++++++++++++++++++++----------------- buildaboly.py | 8 +- buildly.py | 8 +- characters.tex | 25 +- cover.tex | 8 +- coverly.tex | 2 +- license.tex | 4 +- rawblobs.py | 3 - references.tex | 48 ++- style.tex | 10 +- usage.tex | 16 +- validate.py | 99 +++--- 18 files changed, 705 insertions(+), 444 deletions(-) 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'(?