occam-styles 4.1.361 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -24
- package/example.js +4 -393
- package/lib/example/view.js +2 -4
- package/lib/example.js +1 -2
- package/lib/index.js +1 -5
- package/package.json +1 -1
- package/src/example/view.js +0 -2
- package/src/example.js +1 -3
- package/src/index.js +0 -1
- package/svg/svg/logo.svg +52 -0
- package/css/woff2/cmunbbx.woff2 +0 -0
- package/css/woff2/cmunbi.woff2 +0 -0
- package/css/woff2/cmunbmo.woff2 +0 -0
- package/css/woff2/cmunbmr.woff2 +0 -0
- package/css/woff2/cmunbx.woff2 +0 -0
- package/css/woff2/cmunbxo.woff2 +0 -0
- package/css/woff2/cmunit.woff2 +0 -0
- package/css/woff2/cmunobi.woff2 +0 -0
- package/css/woff2/cmunobx.woff2 +0 -0
- package/css/woff2/cmunorm.woff2 +0 -0
- package/css/woff2/cmunoti.woff2 +0 -0
- package/css/woff2/cmunrm.woff2 +0 -0
- package/css/woff2/cmunsi.woff2 +0 -0
- package/css/woff2/cmunso.woff2 +0 -0
- package/css/woff2/cmunss.woff2 +0 -0
- package/css/woff2/cmunsx.woff2 +0 -0
- package/css/woff2/cmuntb.woff2 +0 -0
- package/css/woff2/cmunti.woff2 +0 -0
- package/css/woff2/cmuntt.woff2 +0 -0
- package/css/woff2/cmuntx.woff2 +0 -0
- package/lib/example/view/div/computerModern.js +0 -349
- package/lib/style/computerModern.js +0 -18
- package/src/example/view/div/computerModern.js +0 -194
- package/src/style/computerModern.js +0 -149
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
## Introduction
|
|
16
16
|
|
|
17
|
-
This package contains colour definitions together with user interface and syntax schemes; various images, in either native or JSX form; and
|
|
17
|
+
This package contains colour definitions together with user interface and syntax schemes; various images, in either native or JSX form; and the [JuliaMono](https://juliamono.netlify.app/) font in Woff2 format.
|
|
18
18
|
|
|
19
19
|
There is a small example application to view some of the images in JSX form and so on.
|
|
20
20
|
|
|
@@ -67,24 +67,6 @@ woff2_compress JuliaMono-Regular.ttf
|
|
|
67
67
|
|
|
68
68
|
This utility can be installed and run on other platforms with a little effort.
|
|
69
69
|
|
|
70
|
-
### Computer Modern
|
|
71
|
-
|
|
72
|
-
The TTF fonts are available from [SourceForge](https://sourceforge.net/projects/cm-unicode/files/cm-unicode/0.7.0/cm-unicode-0.7.0-ttf.tar.xz/download) of all places:
|
|
73
|
-
|
|
74
|
-
They can be unpacked as follows:
|
|
75
|
-
|
|
76
|
-
```
|
|
77
|
-
tar xzvf cm_unicode-0.7.0-pfb.tar.gz
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
To compress them all, use `woff2_compress` utility again.
|
|
81
|
-
|
|
82
|
-
```
|
|
83
|
-
for filename in *; do woff2_compress "${filename}"; done
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
Bear in mind that not all of the thirty one variants are used. Currently this package supports twenty. See the example for details.
|
|
87
|
-
|
|
88
70
|
## Example
|
|
89
71
|
|
|
90
72
|
There is a small development server that can be run from within the project's directory with the following command:
|
|
@@ -128,14 +110,10 @@ Automation is done with [npm scripts](https://docs.npmjs.com/misc/scripts), have
|
|
|
128
110
|
|
|
129
111
|
* The logo was converted to SVG format with Peter Selinger's [Potrace](http://potrace.sourceforge.net/).
|
|
130
112
|
|
|
131
|
-
* Occam's pretty printer uses the [JuliaMono](https://juliamono.netlify.app/)
|
|
113
|
+
* Occam's pretty printer uses the [JuliaMono](https://juliamono.netlify.app/) font distributed under the [SIL Open Font License (OFL)](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=ofl).
|
|
132
114
|
|
|
133
115
|
* [Fredrik Ekre](https://fredrikekre.se/) provided the script to strip out ligatures and contextual alternate characters from JuliaMono.
|
|
134
116
|
|
|
135
|
-
* The Computer Modern CSS was adapted from Jonathan Häberle's [computer-modern-web-font](https://github.com/dreampulse/computer-modern-web-font) repository.
|
|
136
|
-
|
|
137
|
-
* The original Unicode Computer Modern fonts were created by [Andrey V. Panov](https://scholar.google.com/citations?user=JyNVNNEAAAAJ&hl=en).
|
|
138
|
-
|
|
139
117
|
## Contact
|
|
140
118
|
|
|
141
119
|
* james.smith@djalbat.com
|