Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

整理英文 fortunes #11

Closed
jakwings opened this issue Apr 17, 2018 · 6 comments
Closed

整理英文 fortunes #11

jakwings opened this issue Apr 17, 2018 · 6 comments

Comments

@jakwings
Copy link

我将那个包含英文箴言的文件 fortunes 重新整理了一下放在这了:
https://github.com/jakwings/cookies (misc)

主要是去除不影响韵律的强制换行(改由 fold --width=N 自动处理),移除 Unknown 之类比较没意义的来源说明,去重,改善标点和统一排版。若是有需要我可以发个 PR。也对中文内容做了类似整理,不过没上传。

ruanyf added a commit that referenced this issue Apr 17, 2018
@ruanyf
Copy link
Owner

ruanyf commented Apr 17, 2018

我合并进去了。多谢。

中文 Cookie 的那个文件,数据有点问题,不少句子不完整,不整理也没关系。

@ruanyf ruanyf closed this as completed Apr 17, 2018
@jakwings
Copy link
Author

😅 才发现你把前面几行也加进去了:

%% Origin: https://github.com/ruanyf/fortunes
%% Modification: Remove line wraps & Unify punctuation & Improve layout.
%% Authenticity: Don't care.
%

得在生成索引时启用注释功能才会忽略这几行。

@ruanyf
Copy link
Owner

ruanyf commented Apr 27, 2018

谢谢提醒,我疏忽了。已经删除这些多余的行了。

@ruanyf ruanyf reopened this Apr 27, 2018
@ruanyf ruanyf closed this as completed Apr 27, 2018
@codecoron
Copy link

请问一下,这个在centos下可以运行吗?我试了一下,把data下的文件复制到/usr/share/games/fortune/不太行,报错说fortune: no fortune found

我稍微对比了一下,复制过去的和原来就有的。比如chinese和work,work是原来就有的。work可以直接双击打开,而chinese双击会报错,说未知文件类型。我觉得这就是关键所在。求解答(-_-)

@jakwings
Copy link
Author

jakwings commented Jun 4, 2021

@codecoron chinesechinese.dat 都复制了吗?要是装了 strace 可以看看 strace fortune chinese 的输出

@codecoron
Copy link

@iology 你好,我用Linux记事本对比了一下复制过去的和原来就有的,发现原来就有的,每个条目都被 一对%% 包括,复制过去的,最上面是少了一个%。于是我就加上了一个%,再用strfile ,发现居然可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants