《菜根谭》
| 字段 | 值 |
|---|---|
| 作者 | '洪应明' |
| ISBN | 9787101106008 |
| 出版年 | 2015-1-1 |
| 出版社 | 中华书局 |
| 来源 | 菜根谭中华经典指掌文库 |
| 评分 | 8.5 |
| 页码 | 148 |
| 分类 | =this.file.etags |
| 我的评级 | =this.file.link.我的评级 |
| 书籍链接(外部) | 菜根谭 |
| 书籍链接(内部) | 菜根谭 |
内容简介
《菜根谭》是明朝万历年间一位绝意仕途的退职隐士洪应明所撰写的一本语录体著作。
宋人汪信民说:“人咬得菜根,则百事可做!”朱熹云:“某观今日因不能咬菜根而至于违其本心者众矣。”明人孔兼称:“谭以菜根名,固自清苦历练中来,亦自栽培灌溉里得。”概是书名的缘起。其内容主要包括如何做好自己,如何涉世待人,如何过好生活,如何面对命运等方面,从方方面面教导人们如何超越现实人生的苦难和复杂的人际关系,正心、修身、养性、育德,让自己能够正义有效而又悠闲从容地活在世间。
作者简介
洪应明,字自诚,号还初道人,里居、生卒年及生平均不详,明代思想家、学者,约明神宗万历中前后在世。除著名的《菜根谭》外,还编著《仙佛奇踪》四卷。《四库全书总目提要》称此书多记佛老二家故事。《仙佛奇踪》书序中介绍,他“幼慕纷华,晚栖禅寂”,说明他早年热衷于仕途功名,晚年归隐山林,洗心礼佛。万历三十年(1602年)前后曾经居住在南京秦淮河一带,潜心著述。
原文摘录
琴书诗画,达士以之养性灵,而庸夫徒赏其迹象;山川云物,高人以之助学识,而俗夫徒玩其光华。可见事物无定品,随人识见以为高下。姑读书穷理,要以识趣为先。
——引自第63页
廉官多无后,以其太清也;吃人每多福,以其近厚也。故君子虽重廉介,不可无含垢纳污之雅量。虽戒痴顽,亦不必有察渊洗垢之精明。
——引自第65页
🗒️ 我的笔记
读书笔记
// dataviewjs: 根据读书笔记中是否存在“摘抄”部分的标题,选择不同渲染方式。若有摘抄部分,则只显示摘抄部分,否则显示页面封面内容。
(async () => {
// 1. 获取书籍笔记库路径和书名变量
const configPage = dv.pages(`#path`)
.filter(p => String(p.file.path).includes("BookLibPath"))[0];
if (!configPage) {
dv.paragraph("⚠️ 未配置 `BookLibPath` 路径。");
return;
}
const BookNotePath = configPage.BookNotePath;
const rawBook = '菜根谭';
const bookName = rawBook.replace(/^['"]+|['"]+$/g, "").trim();
// 2. 查找匹配笔记
const matching = dv.pages(`"${BookNotePath}"`)
.filter(p => p.file.name.includes(bookName));
if (matching.length === 0) {
// 4a. 如果没有笔记
dv.paragraph(`尚未创建《${bookName}》的读书笔记。`);
return;
}
// 3. 选第一个匹配的笔记
const note = matching[0];
const path = note.file.path;
const name = note.file.name;
// 4. 读取文件、去除 frontmatter
const file = app.vault.getAbstractFileByPath(path);
let content = await app.vault.read(file);
content = content.replace(/^---\r?\n[\s\S]*?\r?\n---/, "").trim();
// 5. 提取 “摘抄” 节
const lines = content.split('\n');
let capture = false;
const sect = [];
for (const line of lines) {
if (/^#{1,6}\s*摘抄\s*$/.test(line)) {
capture = true;
continue;
}
if (capture && /^#{1,6}\s*\S+/.test(line)) break;
if (capture) sect.push(line);
}
const excerpt = sect.join('\n').trim();
if (excerpt) {
// 6a. 有“摘抄”,渲染带折叠和样式的区域
dv.paragraph(`
<div style="
border:1px solid;
padding:8px;
border-radius:4px;
margin:8px 0;
">
<div>
<strong>📖 书籍笔记:</strong>
</div>
<hr style="
border:none;
border-top:1px dotted;
margin:8px 0;
">
<details>
<summary style="cursor:pointer;">📋 摘抄(点击展开/收起)</summary>
${excerpt}
</details>
</div>
`);
} else {
// 6b. 无“摘抄”,退回到第一段逻辑:展示封面图
dv.paragraph("读书笔记:");
const imagePath = path.replace(/\s+/g, '%20');
dv.paragraph(``);
}
})();
微信读书
- 微信读书 -
高亮划线
let WereadPath = dv.pages(`#path`).filter(p=>String(p.file.path).includes("BookLibPath"))[0].WereadPath;
let link = dv.pages(`"${WereadPath}"`)
.filter(p=>String(p.file.name).includes("菜根谭中华经典指掌文库")).file.path;
if(link[0])
{
let path = link[0].replace(/\s+/g, '%20');
dv.paragraph("");
}
- 微信读书 -
读书笔记
let WereadPath = dv.pages(`#path`).filter(p=>String(p.file.path).includes("BookLibPath"))[0].WereadPath;
let link = dv.pages(`"${WereadPath}"`)
.filter(p=>String(p.file.name).includes("菜根谭中华经典指掌文库")).file.path;
if(link[0])
{
let path = link[0].replace(/\s+/g, '%20');
dv.paragraph("");
}
- 微信读书 -
本书评论
let WereadPath = dv.pages(`#path`).filter(p=>String(p.file.path).includes("BookLibPath"))[0].WereadPath;
let link = dv.pages(`"${WereadPath}"`)
.filter(p=>String(p.file.name).includes("菜根谭中华经典指掌文库")).file.path;
if(link[0])
{
let path = link[0].replace(/\s+/g, '%20');
dv.paragraph("");
}
Zotero
- Zotero -
电子书
let ZoteroPath = dv.pages(`#path`).filter(p=>String(p.file.path).includes("BookLibPath"))[0].ZoteroPath;
let link = dv.pages(`"${ZoteroPath}"`)
.filter(p=>String(p.file.name).includes("菜根谭中华经典指掌文库")).file.path;
if(link[0])
{
let path = link[0].replace(/\s+/g, '%20');
dv.paragraph("");
}
- Zotero -
注释
let ZoteroPath = dv.pages(`#path`).filter(p=>String(p.file.path).includes("BookLibPath"))[0].ZoteroPath;
let link = dv.pages(`"${ZoteroPath}"`)
.filter(p=>String(p.file.name).includes("菜根谭中华经典指掌文库")).file.path;
if(link[0])
{
let path = link[0].replace(/\s+/g, '%20');
dv.paragraph("");
}