1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-02-24 01:22:26 +01:00
BezierInfo-2/README.md

59 lines
3.0 KiB
Markdown
Raw Normal View History

2016-04-02 12:39:40 -07:00
# BezierInfo-2
Dev repository for https://Pomax.github.io/bezierinfo
2016-04-02 12:39:22 -07:00
## Working on the code
2015-12-29 17:02:00 -08:00
2017-02-08 08:54:02 -08:00
- To run this dev version: `npm start`, then view in the browser on [http://localhost:8080](http://localhost:8080)
2016-04-02 12:38:13 -07:00
- To compile for production: `npm run build`.
2016-01-02 10:26:13 -08:00
Both operations run continuous linting. Also note that there are specific requirements for development, see the section on dev requirements below.
2016-04-02 12:39:22 -07:00
## Dev location
2016-04-02 12:38:13 -07:00
- Dev repository: https://github.com/Pomax/BezierInfo-2
- Dev preview: https://Pomax.github.io/BezierInfo-2
### Dev requirements
2016-04-02 12:39:22 -07:00
- [Node.js](https://nodejs.org)
- XeLaTeX (available through [TeXLive](https://www.tug.org/texlive) on unix/linux/OSX and [MiKTeX](https://miktex.org) on Windows)
2017-03-05 19:04:33 -08:00
- pdfcrop (available through [TeXLive](https://www.tug.org/texlive) on unix/linux/OSX and [MiKTeX](https://miktex.org) on Windows)
2020-04-28 10:40:16 -07:00
- The [`pdf2svg`](http://www.cityinthesky.co.uk/opensource/pdf2svg/) utility
### Fonts required for proper LaTeX typesetting
2017-02-28 10:45:20 -08:00
All fonts come with TeXLive and MiKTeX, and should be easy to install. Note that you will need the modern OpenType (otf/ttf) fonts, not the obsolete type1 fonts.
2020-04-28 10:47:32 -07:00
- en-GB fonts: TeX Gyre Pagella from the `tex-gyre` package
- ja-JP font: IPAex Mincho from the `ipaex` package (_not_ `ipaex-type1`)
- zh-CN font: Arhpic gbsn from the `arphic-ttf` package (_not_ `arphic`)
- maths fonts: TeX Gyre Pagella Math fonts from the `tex-gyre-math` package
2017-03-26 13:26:58 -07:00
### Running a build
As mentioned up top, run a build using `npm run build`.
2018-06-24 18:02:32 -07:00
If you have all the prerequisites installed, this should "just work", although I can't make any guarantees on how long it will take: on my rather beefy workstation it takes around 85 seconds to run a build for all locales (`en-GB`, `zh-CN`, and `ja-JP`) when there are no new SVG images to generate.
2017-03-26 13:26:58 -07:00
## Main site location
- Main repository: https://github.com/Pomax/BezierInfo
- Main site: https://Pomax.github.io/BezierInfo
2016-04-02 12:38:13 -07:00
2017-03-05 19:50:55 -08:00
## Localization
2016-04-02 12:39:22 -07:00
2017-03-05 19:04:33 -08:00
Interested in (helping with) localizing the Primer to your own language? That's awesome! Please read [the instructions on how to start localizing](https://github.com/Pomax/BezierInfo-2/wiki/localize) and please file issues if anything is unclear.
2017-03-05 19:50:55 -08:00
## Additional information
Interested in the actual architecture and tech stack? Read the blog post on how Webpack's sync processing and MathJAx's async processing were made to work together:
2016-04-02 12:38:13 -07:00
http://pomax.github.io/1451617530567/react-with-latex-without-needing-client-side-mathjax
2017-03-20 13:29:22 -07:00
And read about the tech choices made to enable localization in:
http://pomax.github.io/1489108158510/localization-is-hard
2019-04-30 08:41:49 -07:00
2019-06-10 16:57:05 -07:00
Finally, a fair number of people have helped by filing PRs for fixes for typos small and large over the years, all of whom are listed on the [contributors](https://github.com/Pomax/BezierInfo-2/graphs/contributors) page for this project. And a special thanks goes out to Simon Cozens who [went through the entire book](https://github.com/Pomax/BezierInfo-2/pulls?utf8=%E2%9C%93&q=is%3Apr+author%3Asimoncozens) to fix typos and phrasing.