Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ofBook

All articles copy from ofBook

所有文章全都是从ofBook拷贝过来的。 主要是想把这些文章翻译成中文,方便让国内朋友查看。

原教程是大家合作撰写的openFrameworks教程。

原教程还在继续撰写中

编译步骤

需要安装

编译成网页版和PDF版的脚本文件是在scirpts/目录下的 createWebBook.pycreatePDFBook.py. 编译时必须在scripts/下运行, 双击运行或者在终端下运行脚本文件.

  • 编译完网页版以后所有文件会在output/webBook目录下生成. output/webBook/index.html文件是网页版的主文件,用浏览器访问就好.
  • 编译完PDF版以后,PDF文件会在output/ofBook.pdf. 为了调试output/ofBook.tex也会一起创建.

在 OS X 安装依赖包

  1. 在终端安装pip sudo easy_install pip
  2. 安装 beauitful soup 4 (bs4) pip install beautifulsoup4
  3. 安装 pandoc
  4. 安装 basictex & MacTeX-Additions
  5. 安装 libsass sudo pip install libsass

在 Windows 安装依赖包

  1. 下载并安装 Python 2.7+
  2. 使用python包管理工具pip获取必须的python库 (pip).
  • Python 2.7.9 或更高版本 (python2版本系列), python 3.4 或者更高版本已经默认包含了pip,所以你应该已经有了pip. 它的位置在 C:/PythonXX/Scripts. 如果想在在终端(cmd)运行的话你需要在系统环境变量中(path)添加 Scripts 目录的路径。(请参考这里 guide).
  • 下载并安装 beauitful soup 4 (bs4). 在终端(cmd)运行 pip install beautifulsoup4 安装 BeautifulSoup.
  • 下载并安装 libsass. 在终端(cmd)运行 pip install libsass 安装 libsass
  1. 下载最新版本的 pandoc 安装文件进行安装(.msi 安装文件)。下载链接:here
  2. 下载最新版本的 MiKTeX 安装文件进行安装。下载连接: here
  • When installing, check the box for "Install Packages on the Fly." The pandoc -> PDF pipeline uses latex packages that don't all come standard with MiKTeX, so this will allow you to grab any missing packages when building the book for the first time.

Debian (Linux)

  1. 安装包: sudo apt-get install python-pip python2.7-dev git pandoc ruby-sass texlive
  2. 安装 beauitful soup 4 and libsass: pip install beauitfulsoup4 libsass

contribution workflow

Since git is at the heart of the management of this endeavour, please check the git best practices. If you do not agree with all of them, please at least stick to the "Do commit early and often" paradigm. This will make doing reviews, picking the good stuff from your contributions and polishing the rest a lot easier. Github itself also offers a lot of help on common issues. So sign up, fork the repo and send your pull requests along our way.

#Mailing List

openFrameworks Book 讨论.

你可以在这里找到关于老版本ofBook的讨论 ofBook Archives

About

Copy articles from ofBook and translate to chinese

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages