Skip to content

Commit

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

- 2.4,改进了“立”的解释。
- 2.7、12.8,补充了“何以”的解释。
- 2.18,增加了“闻”的解释。
- 4.1,增加了郭嘉的话。
- 4.11,增加了“怀”的例。
- 4.13,增加了“礼让”的解释。
- 6.13,补充了《礼记·儒行》的引文。
- 7.1,改进了“述而不作”的解释。
- 8.12,增加了思考。
- 10.6,增加了“杀”的注音及解释。
- 10.27,增加了《论语注疏》、《四书集注》的解释,以及“色斯”的后起义。
- 11.25,增加了《三国志》裴松之注的参考,及一个思考练习。
- 12.19,增加了“靡然”及例。
- 14.36,增加了董仲舒的事例参考。
- 17.7,改进了“匏瓜”的解释。
- 18.2,扩充了“父母之邦”的解释。
- 18.6,调整了“以”的解释。增加了儒家精神与宗教的对比。
- 19.24,增加了“无以为也”的解释,“量”的动词义。
- 20.1,补充了“予一人”、“朕”、“以”的例参。
- 更改换行符为UNIX风格(LF)。

修正:

- 17.16,《鹿门隐书》引文中的错字。非常抱歉!
  • Loading branch information
abolybook committed Jun 4, 2018
1 parent 7dadaad commit 571fad1
Show file tree
Hide file tree
Showing 16 changed files with 8,440 additions and 8,368 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ Web site (Chinese): http://www.abolybook.org
- xelatex,调用的包和字体,见 style.tex
- Python,2.7和3皆可,调用了 [pinyin](https://pypi.python.org/pypi/pinyin/)

网站http://www.abolybook.org
在线版(更新较频繁)http://www.abolybook.org
190 changes: 95 additions & 95 deletions aboly.tex
Original file line number Diff line number Diff line change
@@ -1,95 +1,95 @@
\documentclass[a4paper, openany, oneside, 12pt]{book}

\input{style.tex}


\usepackage{tikz}
\usepackage{standalone}


\usepackage[
unicode,
bookmarks=true,
bookmarksnumbered=true,
pdfpagemode=UseOutlines,
pdfstartview=FitH,
pdfpagelayout=OneColumn,
colorlinks=true,
allcolors=black,
]{hyperref}

\hypersetup{
pdftitle=一瓶论语,
pdfauthor=孔子 原著,[email protected] 译评及制作,
pdfsubject=,
pdfkeywords={\versioninfoaboly},
pdfcreator=LaTeX with Python,
}


%============================================================

\begin{document}

\lyblobmark[0]{一瓶论语}
\include{cover}
\include{license}

\frontmatter

% Enlarge inter-paragraph distance.
\newlength{\oldparskip}
\setlength{\oldparskip}{\parskip}
\addtolength{\parskip}{0.12\baselineskip}

\renewcommand{\lyheaderimg}{preface}
\include{preface}

\renewcommand{\lyheaderimg}{usage}
\include{usage}

\renewcommand{\lyheaderimg}{guide}
%\include{guide}


% Restore inter-paragraph distance.
\setlength{\parskip}{\oldparskip}

\lyblobmark[0]{目录}
\tableofcontents % The TOC is expected to appear on a single page,
% otherwise a header image should be added for it.

\mainmatter

\renewcommand{\lyheaderimg}{chap\thechapter}
\include{autobody}


% Appendixes.
\makeatother

\titleformat{\chapter}[block]
{\fontsize{\lyszchaptertitle}{\lyszchaptertitle * \real{1.2}}\selectfont\CJKfamily{fttitle}\filcenter}
{}
{1em}{}

\titlecontents{chapter}
[0em]
{\bfseries}
{}
{}
{\dotfill\textrm{\contentspage[{\bfseries\thecontentspage}]}}


\renewcommand{\lyheaderimg}{characters}
\include{autocharacters}


\renewcommand{\lyheaderimg}{topics}
\include{autotopics}


\renewcommand{\lyheaderimg}{references}
\include{references}

\end{document}
\documentclass[a4paper, openany, oneside, 12pt]{book}

\input{style.tex}


\usepackage{tikz}
\usepackage{standalone}


\usepackage[
unicode,
bookmarks=true,
bookmarksnumbered=true,
pdfpagemode=UseOutlines,
pdfstartview=FitH,
pdfpagelayout=OneColumn,
colorlinks=true,
allcolors=black,
]{hyperref}

\hypersetup{
pdftitle=一瓶论语,
pdfauthor=孔子 原著,[email protected] 译评及制作,
pdfsubject=,
pdfkeywords={\versioninfoaboly},
pdfcreator=LaTeX with Python,
}


%============================================================

\begin{document}

\lyblobmark[0]{一瓶论语}
\include{cover}
\include{license}

\frontmatter

% Enlarge inter-paragraph distance.
\newlength{\oldparskip}
\setlength{\oldparskip}{\parskip}
\addtolength{\parskip}{0.12\baselineskip}

\renewcommand{\lyheaderimg}{preface}
\include{preface}

\renewcommand{\lyheaderimg}{usage}
\include{usage}

\renewcommand{\lyheaderimg}{guide}
%\include{guide}


% Restore inter-paragraph distance.
\setlength{\parskip}{\oldparskip}

\lyblobmark[0]{目录}
\tableofcontents % The TOC is expected to appear on a single page,
% otherwise a header image should be added for it.

\mainmatter

\renewcommand{\lyheaderimg}{chap\thechapter}
\include{autobody}


% Appendixes.
\makeatother

\titleformat{\chapter}[block]
{\fontsize{\lyszchaptertitle}{\lyszchaptertitle * \real{1.2}}\selectfont\CJKfamily{fttitle}\filcenter}
{}
{1em}{}

\titlecontents{chapter}
[0em]
{\bfseries}
{}
{}
{\dotfill\textrm{\contentspage[{\bfseries\thecontentspage}]}}


\renewcommand{\lyheaderimg}{characters}
\include{autocharacters}


\renewcommand{\lyheaderimg}{topics}
\include{autotopics}


\renewcommand{\lyheaderimg}{references}
\include{references}

\end{document}
6 changes: 3 additions & 3 deletions autocharacters.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_charname_blobs(content):
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:
Expand All @@ -57,7 +57,7 @@ def get_charname_blobs(content):

def append_annotation(seg, annotation):
insert_pos = len(seg)
while seg[insert_pos-1].isspace():
while seg[insert_pos - 1].isspace():
insert_pos -= 1
return seg[:insert_pos] + annotation + seg[insert_pos:]

Expand Down Expand Up @@ -115,7 +115,7 @@ def main():
auto_characters_content = append_annotations(characters_content, charname_blobs)

with io.open(CHARACTERS_OUT, 'w', encoding=ENCODING) as fout:
fout.write(auto_characters_content)
print(auto_characters_content, file=fout)


if __name__ == '__main__':
Expand Down
Loading

0 comments on commit 571fad1

Please sign in to comment.