From cffcc999d0bd4cf50ac266363738d0e4662d47d3 Mon Sep 17 00:00:00 2001 From: yongliang Date: Sun, 23 Jun 2024 17:28:25 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E6=9B=B4=E6=96=B0pdf=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改在构建过程中的警告 --- README.rst | 2 +- google-cpp-styleguide/exceptions.rst | 2 +- google-html-css-styleguide/html_style_rules.rst | 1 + google-python-styleguide/python_language_rules.rst | 2 +- manually-generate-pdf-document.md | 9 +++++++++ 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 7508230..c914cb1 100644 --- a/README.rst +++ b/README.rst @@ -41,4 +41,4 @@ Google 开源项目风格指南——中文版 * 英文版项目还包含 `cpplint `_ ——一个用来帮助适应风格准则的工具,以及 `google-c-style.el `_,Google 风格的 Emacs 配置文件。 -* 另外,招募志愿者翻译 `JavaScript Style Guide `_ 以及 `XML Document Format Style Guide `_ ,有意者请联系 `Yang.Y `_ 。 +* 另外,招募志愿者翻译 `XML Document Format Style Guide `_ ,有意者请联系 `Yang.Y `_ 。 diff --git a/google-cpp-styleguide/exceptions.rst b/google-cpp-styleguide/exceptions.rst index 3e83c70..9d64893 100644 --- a/google-cpp-styleguide/exceptions.rst +++ b/google-cpp-styleguide/exceptions.rst @@ -39,7 +39,7 @@ Windows 程序员有自己的编程习惯, 主要源于 Windows 头文件和其 然而, 在 Windows 上仍然有一些我们偶尔需要违反的规则: -- 通常我们 :ref:`禁止使用多重继承 `, 但在使用 COM 和 ATL/WTL 类时可以使用多重继承. 为了实现 COM 或 ATL/WTL 类/接口, 你可能不得不使用多重实现继承. +- 通常我们 :ref:`禁止使用多重继承 `, 但在使用 COM 和 ATL/WTL 类时可以使用多重继承. 为了实现 COM 或 ATL/WTL 类/接口, 你可能不得不使用多重实现继承. - 虽然代码中不应该使用异常, 但是在 ATL 和部分 STL(包括 Visual C++ 的 STL) 中异常被广泛使用. 使用 ATL 时, 应定义 ``_ATL_NO_EXCEPTIONS`` 以禁用异常. 你需要研究一下是否能够禁用 STL 的异常, 如果无法禁用, 可以启用编译器异常. (注意这只是为了编译 STL, 自己的代码里仍然不应当包含异常处理). diff --git a/google-html-css-styleguide/html_style_rules.rst b/google-html-css-styleguide/html_style_rules.rst index bb4d78e..696273c 100644 --- a/google-html-css-styleguide/html_style_rules.rst +++ b/google-html-css-styleguide/html_style_rules.rst @@ -161,6 +161,7 @@ type属性 HTML5将 `text/css `_ 和 `text/javascript `_ 设置为默认值,在这种情况下指定type属性并不必要。甚至同样兼容老版本的浏览器。 .. code-block:: html + diff --git a/google-python-styleguide/python_language_rules.rst b/google-python-styleguide/python_language_rules.rst index 4d94f1e..2c34237 100644 --- a/google-python-styleguide/python_language_rules.rst +++ b/google-python-styleguide/python_language_rules.rst @@ -260,7 +260,7 @@ Lint 可以谨慎使用. 尽量避免使用嵌套函数和嵌套类, 除非需要捕获 ``self`` 和 ``cls`` 以外的局部变量. 不要仅仅为了隐藏一个函数而使用嵌套函数. 应将需要隐藏的函数定义在模块级别, 并给名称加上 ``_`` 前缀, 以便在测试代码中调用此函数. 推导式 (comprehension expression) 和生成式 (generator expression) --------------------------------- +------------------------------------------------------------------- .. tip:: 适用于简单情况. diff --git a/manually-generate-pdf-document.md b/manually-generate-pdf-document.md index 592527d..d823c31 100644 --- a/manually-generate-pdf-document.md +++ b/manually-generate-pdf-document.md @@ -38,3 +38,12 @@ use follow url relace REPLACE-MISSING-FILE-NAME to you want find and install mis https://packages.debian.org/search?searchon=contents&keywords=RELACE-MISSING-FILE-NAME&mode=path&suite=oldstable&arch=any +2. If occuring FreeXXX font not found + +```sh +# for ubuntu +sudo apt install fonts-freefont-otf + +# for fedora +sudo dnf install texlive-gnu-freefont +```