blog

My blog at www.shimmy1996.com

git clone git://git.shimmy1996.com/blog.git
commit 5ddcd7fbabeffd885eedeb4739a4e8e46bfb5328
parent a53a445ed50bafc3b93d797a2dded419754ec361
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Thu,  9 Jan 2020 22:59:26 -0600

Touch up on post

Diffstat:
Mcontent/posts/2020-01-09-becoming-pangu-with-gnu-sed.en.md | 2+-
Mcontent/posts/2020-01-09-becoming-pangu-with-gnu-sed.zh.md | 2+-
Morg/2020.org | 4++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/content/posts/2020-01-09-becoming-pangu-with-gnu-sed.en.md b/content/posts/2020-01-09-becoming-pangu-with-gnu-sed.en.md
@@ -7,7 +7,7 @@ draft = false
 
 In case you aren't familiar with Chinese mythology or blogosphere, there's an old meme aptly named "Space of Pangu": a typesetting rule of thumb in favor of additional spacing between Chinese characters (but not punctuation marks) and Latin characters or numbers. My variant of the rule also includes additional spacing around any HTML elements like links and emphasis.
 
-Up till now, I've been manually adding spaces in my source files (in Markdown or org), which is admittedly the worst way to do it. Aside from the additional chore, such a typesetting rule should, in my opinion, be implemented in the output/rendering format, not the source. Unwilling to load additional [JavaScript](https://github.com/vinta/pangu.js), I turned to the all-mighty GNU sed. To add Space of Pangu to the final HTML and XML files that Hugo produces (normally in the `./public` directory), I used the following shell script:
+Up till now, I've been manually adding spaces in my source files (in Markdown or org), which is admittedly the worst way to do it. Aside from the additional chore, such a typesetting rule should, in my opinion, be implemented in the output/rendering format, not the source. Besides, manually fixing all the old posts I just brought back is not exactly a rewarding task. Unwilling to load additional [JavaScript](https://github.com/vinta/pangu.js), I turned to the all-mighty GNU sed. To add Space of Pangu to the final HTML and XML files that Hugo produces (normally in the `./public` directory), I used the following shell script:
 
 ```sh
 #! /usr/bin/env sh
diff --git a/content/posts/2020-01-09-becoming-pangu-with-gnu-sed.zh.md b/content/posts/2020-01-09-becoming-pangu-with-gnu-sed.zh.md
@@ -7,7 +7,7 @@ draft = false
 
 如果你熟悉中国神话或博客众,那么你说不定听说过被半开玩笑地称作“盘古之白”的排版习惯:在中文字符(但不包括标点符号)和拉丁字符或数字之间增加一定间隔。我所实行的这一规则的变体还包括在所有HTML元素(如链接和强调)的周围也加上间隔。
 
-到目前为止,我一直在源文件(Markdown或org格式)中手动添加空格:这无疑是实行这一规则最糟糕的方法。除了要费额外的工夫之外,这类排版规则还应该,在我看来,仅在输出/渲染时应用。因为不愿加载额外的[JavaScript](https://github.com/vinta/pangu.js),我转向了万能的GNU sed。为了将盘古之白添加到Hugo生成的HTML和XML文件中(通常在`./public`目录里),我使用了以下shell脚本:
+到目前为止,我一直在源文件(Markdown或org格式)中手动添加空格:这无疑是实行这一规则最糟糕的方法。除了要费额外的工夫之外,这类排版规则还应该,在我看来,仅在输出/渲染时应用。更不用说手动调整我刚刚恢复的那一大堆旧日志不是什么吸引人的差事。因为不愿加载额外的[JavaScript](https://github.com/vinta/pangu.js),我转向了万能的GNU sed。为了将盘古之白添加到Hugo生成的HTML和XML文件中(通常在`./public`目录里),我使用了以下shell脚本:
 
 ```sh
 #! /usr/bin/env sh
diff --git a/org/2020.org b/org/2020.org
@@ -161,7 +161,7 @@ Completely contrast to how the saying normally goes, I hardly ever find myself m
 
 In case you aren't familiar with Chinese mythology or blogosphere, there's an old meme aptly named "Space of Pangu": a typesetting rule of thumb in favor of additional spacing between Chinese characters (but not punctuation marks) and Latin characters or numbers. My variant of the rule also includes additional spacing around any HTML elements like links and emphasis.
 
-Up till now, I've been manually adding spaces in my source files (in Markdown or org), which is admittedly the worst way to do it. Aside from the additional chore, such a typesetting rule should, in my opinion, be implemented in the output/rendering format, not the source. Unwilling to load additional [[https://github.com/vinta/pangu.js][JavaScript]], I turned to the all-mighty GNU sed. To add Space of Pangu to the final HTML and XML files that Hugo produces (normally in the =./public= directory), I used the following shell script:
+Up till now, I've been manually adding spaces in my source files (in Markdown or org), which is admittedly the worst way to do it. Aside from the additional chore, such a typesetting rule should, in my opinion, be implemented in the output/rendering format, not the source. Besides, manually fixing all the old posts I just brought back is not exactly a rewarding task. Unwilling to load additional [[https://github.com/vinta/pangu.js][JavaScript]], I turned to the all-mighty GNU sed. To add Space of Pangu to the final HTML and XML files that Hugo produces (normally in the =./public= directory), I used the following shell script:
 #+BEGIN_SRC sh
   #! /usr/bin/env sh
   # For punctuation marks to be recongnized correctly. Any UTF-8 locale would do.
@@ -190,7 +190,7 @@ If you are another one of those Space of Pangu disciples, just note that there's
 
 如果你熟悉中国神话或博客众,那么你说不定听说过被半开玩笑地称作“盘古之白”的排版习惯:在中文字符(但不包括标点符号)和拉丁字符或数字之间增加一定间隔。我所实行的这一规则的变体还包括在所有HTML元素(如链接和强调)的周围也加上间隔。
 
-到目前为止,我一直在源文件(Markdown或org格式)中手动添加空格:这无疑是实行这一规则最糟糕的方法。除了要费额外的工夫之外,这类排版规则还应该,在我看来,仅在输出/渲染时应用。因为不愿加载额外的[[https://github.com/vinta/pangu.js][JavaScript]],我转向了万能的GNU sed。为了将盘古之白添加到Hugo生成的HTML和XML文件中(通常在=./public=目录里),我使用了以下shell脚本:
+到目前为止,我一直在源文件(Markdown或org格式)中手动添加空格:这无疑是实行这一规则最糟糕的方法。除了要费额外的工夫之外,这类排版规则还应该,在我看来,仅在输出/渲染时应用。更不用说手动调整我刚刚恢复的那一大堆旧日志不是什么吸引人的差事。因为不愿加载额外的[[https://github.com/vinta/pangu.js][JavaScript]],我转向了万能的GNU sed。为了将盘古之白添加到Hugo生成的HTML和XML文件中(通常在=./public=目录里),我使用了以下shell脚本:
 #+BEGIN_SRC sh
   #! /usr/bin/env sh
   # For punctuation marks to be recongnized correctly. Any UTF-8 locale would do.