Skip to content

Commit

Permalink
v0.3.0+build.1845
Browse files Browse the repository at this point in the history
改进:

- 1.5,扩充了“乘”的解释。
- 8.5,增加了“校”的解释。
- 8.20,细化了姓、氏的解释。
- 10.22,增加了晚清江忠源的事迹。
- 10.25,细化了“负版者”的解释,增加了自己的一个理解。
- 11.1,扩充了“野人”的解释。本章的合理解释仍需斟酌。
- 11.24,增加了“从之者”的解释。
- 12.9,增加了《魏书》的引文。
- 12.17,增加了《大戴礼记》的引文。
- 12.21,细化了“修慝”、“其”的解释;增加了“以”的解释和例句。
- 13.8,增加了思考练习。
- 14.8,增加了《左传·襄公二十五年》的引文。
- 14.22,增加了曾国藩上疏的引文。
- 15.25,增加了“毁”的解释和例子。
- 17.10,增加了《经典释文》对“南”的解释。
- 17.16、19.19,增加了《鹿门隐书》的引文。
- 17.21,增加了“期可已矣”、“三年之丧”的解释。修改了“天下之通丧”的解释,增加了《礼记》的引文。
- 19.7,修改了对“君子学以致其道”的解释。
- 调整了封面导图的内容。
- 新增了主题索引项:丧。

修正:

- 9.12,“病间”的句读,增加了读音、解释及例证。非常抱歉!
- 18.1,比干(gān)的读音,详见本章注释NOTE。非常抱歉!
  • Loading branch information
abolybook committed Feb 15, 2018
1 parent 4428e93 commit 7dadaad
Show file tree
Hide file tree
Showing 9 changed files with 240 additions and 178 deletions.
2 changes: 1 addition & 1 deletion aboly.tex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

\hypersetup{
pdftitle=一瓶论语,
pdfauthor=孔子 [email protected] 译评及制作,
pdfauthor=孔子 原著[email protected] 译评及制作,
pdfsubject=,
pdfkeywords={\versioninfoaboly},
pdfcreator=LaTeX with Python,
Expand Down
12 changes: 6 additions & 6 deletions autotopics.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,21 @@ def extract_topics():
'义': 'topicyi4',
'信': 'topicxin4',
'友': 'topicyou3',
'': 'topiczhi4',
'': 'topicshu4',

'温': 'topicwen1',
'敬': 'topicjing4',
'谦': 'topicqian1',
'恕': 'topicshu4',
'温': 'topicwen1',
'耻': 'topicchi3',

'文': 'topicwen2',
'': 'topicyi4a',
'音乐': 'topicyinyue', # 乐
'智': 'topiczhi4a',
'': 'topicheng2',
'': 'topiczhi4',

'德': 'topicde2',
'忠': 'topiczhong1',
'用人': 'topicyongren',
'用人': 'topicyongren', # 贤
'惠': 'topichui4',
'廉': 'topiclian2',

Expand Down
343 changes: 199 additions & 144 deletions body.tex

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions characters.tex

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions cover.tex
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@
\node[root concept]{\lycovernode{topicjunzi}{君子}}
child{ node{\lycovernode{topicxue2}{学}}
child{ node{\lycovernode{topicwen2}{文}} }
child{ node{\lycovernode{topicyi4a}{艺}} }
child{ node{\lycovernode{topicyinyue}{乐}} } % vaguely implies '快乐'
child{ node{\lycovernode{topiczhi4a}{智}} }
child{ node{\lycovernode{topicheng2}{恒}} }
child{ node{\lycovernode{topiczhi4}{志}} } % roughly implies '恒'
}
child{ node{\lycovernode{topiczheng4}{政}}
child{ node{\lycovernode{topiclian2}{廉}} }
child{ node{\lycovernode{topichui4}{惠}} }
child{ node{\lycovernode{topicyongren}{贤}} } % 任人唯贤
child{ node{\lycovernode{topicyongren}{贤}} } % 任人唯贤;陈力就列(己贤)
child{ node{\lycovernode{topiczhong1}{忠}} }
child{ node{\lycovernode{topicde2}{德}} }
}
child{ node{\lycovernode{topicli3}{礼}}
child{ node{\lycovernode{topicshu4}{恕}} }
child{ node{\lycovernode{topicwen1}{温}} }
child{ node{\lycovernode{topicchi3}{耻}} } % roughly implies '不为'
child{ node{\lycovernode{topicwen1}{温}} } % roughly implies '色'
child{ node{\lycovernode{topicqian1}{谦}} }
child{ node{\lycovernode{topicjing4}{敬}} }
}
Expand All @@ -72,7 +72,7 @@
child{ node{\lycovernode{topicyi4}{义}} }
child{ node{\lycovernode{topicxin4}{信}} }
child{ node{\lycovernode{topicyou3}{友}} }
child{ node{\lycovernode{topiczhi4}{志}} }
child{ node{\lycovernode{topicshu4}{恕}} } % layout: 恕 - 君子 - 忠
};
\end{tikzpicture}
}
Expand Down
2 changes: 1 addition & 1 deletion license.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

\lylabel{abolylicense}
\begin{center}
© 2016--2017, [email protected]
© 2016--2018, [email protected]
\medskip

本书基于\\
Expand Down
4 changes: 2 additions & 2 deletions references.tex
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ \chapter*{参\quad 考\quad 材\quad 料}

\lybook{《古汉语常用字字典》}(第5版),王力\,主编,商务印书馆,2016年。这是我最熟悉亲切的古汉语字典,详略合宜,释义清晰,例证精当,上中学时得益甚多。本书常举成语为例、不怕多注拼音,可能就是受它的影响。

\lybook{《古代汉语虚词词典》},中国社会科学院语言研究所古代汉语研究室\,编,商务印书馆,1999年。包括单字和常用搭配,共1855条,讲解细密,不落俗套,引证丰富,令人心情爽快。

\lybook{《汉字源流字典》},谷衍奎\,编,语文出版社,2008年。上推至甲骨文、篆文,分析了11000多个汉字的构造、本义与演变,图文并茂,多有创见,特别有益于理清字义的发展脉络。

\lybook{《古代汉语虚词词典》},中国社会科学院语言研究所古代汉语研究室\,编,商务印书馆,1999年。包括单字和常用搭配,共1855条,讲解细密,不落俗套,引证丰富,令人心情爽快。

\lybook{《中国历史地图集》(第1册:原始社会·商·西周·春秋·战国时期)},谭其骧\,主编,中国地图出版社,1982年。这是一套划时代的地图集,编制历时近30年,从谭先生留下的日记中,不难感受当时的工作热忱。30多年又过去了,最畅销的还是这个版本,当年为了“尽快公开出版”而留下的“很不少”的“错误和不妥之处”,仍待后人。
% NOTE: 谭先生日记及回忆,见葛剑雄编《谭其骧日记》,著《悠悠长水:谭其骧传》。地图集“出版后记”中写道:\lyq{我可以在此奉告读者:从1982年起,中国社会科学院已经组织了有关的学者专家着手编制一部包括各种题材的巨型历史地图,争取在九十年代问世。}

Expand Down
2 changes: 1 addition & 1 deletion usage.tex
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ \chapter*{使\quad 用\quad 说\quad 明}

\lyalt{PDF电子版的设计,重点考虑了主流智能手机横屏阅读的方便。如果在电脑上按屏幕宽度显示,文字可能比较大。大字容易缩小,要想在手机上放大了挪来挪去,就很费劲了。内文尽量采用大小相同的字号,也是为了在小屏幕上看起来省力。内文的目录只列了顶层大纲,PDF的书签视图则详细得多,可以直接跳转到每一章。

前面说过,阅读器的选择很重要。在手机上,它最好还能自动或手动地切除白边,更有效地利用屏幕宽度。Android手机上,我喜欢用免费的 \lyurl{https://play.google.com/store/apps/details?id=org.ebookdroid}{EbookDroid},只是它的设置略微复杂。iPhone上,我印象中 \lyurl{http://www.goodreader.com}{GoodReader} 的效果很好,也不算贵。电脑上的选择就很多,显示最棒的当然是 \lyurl{https://get.adobe.com/reader/}{Adobe Reader}(免费软件)和 \lyurl{https://acrobat.adobe.com/us/en/products/acrobat-pro.html}{Adobe Acrobat}(商业软件)。}{}
前面说过,阅读器的选择很重要。在手机上,它最好还能自动或手动地切除白边,更有效地利用屏幕宽度。Android上,我喜欢用免费的 \lyurl{https://play.google.com/store/apps/details?id=org.ebookdroid}{EbookDroid},只是它的设置略微复杂。iOS上,我印象中 \lyurl{http://www.goodreader.com}{GoodReader} 的效果很好,也不算贵。电脑上的选择就很多,显示最棒的当然是 \lyurl{https://get.adobe.com/reader/}{Adobe Reader}(免费软件)和 \lyurl{https://acrobat.adobe.com/us/en/products/acrobat-pro.html}{Acrobat}(商业软件)。}{}

\lylabel{sourcecode}本书用\lyalt{\LaTeX}{LaTeX}撰写,经过简单的Python处理,编译成PDF电子书,可以从\,\lyurl{https://github.com/abolybook/aboly/releases/latest}{GitHub}\,\lyurl{http://pan.baidu.com/s/1eRp6vMq\#path=\%252Faboly}{百度网盘}下载。\lyalt{使用的主要字体有:英文和数字用 \lyurl{http://www.linuxlibertine.org/index.php}{Linux Libertine O}(公有领域),拼音用 \lyurl{https://github.com/adobe-fonts/source-han-sans}{\lypy{Source Han Sans SC}}(开源),普通正文为方正书宋,黑体字为\lyterm{方正黑体},楷书为\lykw{方正楷体},仿宋体为\lyq{方正仿宋}(\lyurl{http://www.foundertype.com/index/release\_info.html}{免费使用})。}{Web版的生成,先用\lyurl{http://www.antlr.org/}{ANTLR}从LaTeX转换为XML,再用XSLT导出HTML。如果你是Windows XP用户,建议安装\lyurl{http://www.firefox.com.cn}{Firefox}等支持Web标准较好的浏览器阅读。}

Expand Down
27 changes: 17 additions & 10 deletions validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,23 @@
from rawblobs import rawblobs


# Configurations.
ENCODING = 'utf-8'

SPECIAL_LYREFS = (
r'问\lylink{zhi4d',
)

SPECIAL_LYQS = (
'吾不试,故艺',
'君子无众寡,无小大',
'君子疾夫舍曰',
'子曰:“莫我知也夫!……不怨天,不尤人。”',
'博施于民而能济众,……必也圣乎!尧舜其犹病诸!',
'君子……畏\lylink{tianming}{天命},……小人不知天命而不畏也。',
'学《诗》乎?……不学《诗》,无以言。',
)


def validate_lylabels(log):
infiles = (
Expand Down Expand Up @@ -104,16 +119,8 @@ def validate_lyrefs(log):
'references.tex',
'usage.tex',
)
special_lyrefs = set((
r'问\lylink{zhi4d',
))
special_lyqs = set((
'吾不试,故艺',
'君子无众寡,无小大',
'君子疾夫舍曰',
'子曰:“莫我知也夫!……不怨天,不尤人。”',
'博施于民而能济众,……必也圣乎!尧舜其犹病诸!',
))
special_lyrefs = set(SPECIAL_LYREFS)
special_lyqs = set(SPECIAL_LYQS)
labels, texts = zip(*rawblobs)
lyref_tag = r'\lyref'
# Ensure that \lyref is properly surrounded. Generate warnings.
Expand Down

0 comments on commit 7dadaad

Please sign in to comment.