Skip to content

Commit

Permalink
v1.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis CI committed Nov 7, 2020
1 parent e14d061 commit 2b7c1b9
Show file tree
Hide file tree
Showing 13 changed files with 152 additions and 17,220 deletions.
Binary file modified afterwriting.zip
Binary file not shown.
17,211 changes: 2 additions & 17,209 deletions bundle/js/afterwriting.js

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions bundle/js/fonts/courier-prime-cyrillic.js

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions bundle/js/fonts/courier-prime.js

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions bundle/js/fonts/font-loaders.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
define(function(require) {

var config = [
{ name: "Courier", label: "Courier", file: "" },
{ name: "CourierPrime", label: "Courier Prime", file: "courier-prime" },
{ name: "CourierPrimeCyrillic", label: "Courier Prime Cyrillic", file: "courier-prime-cyrillic" }
// { name: "Kosugi", label: "Kosugi", file: "kosugi", "tmp-ratio": 0.62 }
];

var loaders = {};
config.forEach(function(font) {
if (font.file) {
if (window) {
// BROWSER LOADER
// LOCAL
if (window.location.protocol === "file:") {
loaders[font.name] = function(callback) {
require(['bundle/js/fonts/' + font.file + '.js?callback=define'], function (fonts) {
callback(fonts);
});
};
}
// DYNAMIC
else {
loaders[font.name] = function(callback) {
require(['js/fonts/' + font.file + '.js?callback=define'], function (fonts) {
callback(fonts);
});
};
}
} else {
// NDOE.JS LOADER
loaders[font.name] = function(callback) {
callback(require('fonts/' + font.file));
};
}
} else {
// USE PDF SUPPORTED FONT
loaders[font.name] = function (callback) {
callback(null);
};
}
loaders[font.name].config = font;
});

// list of fonts for settings
loaders.fontsList = config;

return loaders;
});
27 changes: 27 additions & 0 deletions bundle/js/fonts/kosugi.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions html/afterwriting.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<title>'afterwriting offline</title>
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<link rel="icon" type="image/x-icon" href="gfx/favicon.ico">
<link rel="stylesheet" href="bundle/css/afterwriting.css?last_update=2020-10-05_18-12" />
<link rel="stylesheet" href="bundle/css/afterwriting.css?last_update=2020-11-07_22-35" />

<script src="bundle/js/pdfjs/pdf.min.js"></script>
<script type="text/javascript">
PDFJS.disableWorker = true;
</script>

<script src="bundle/js/afterwriting.js?last_update=2020-10-05_18-12" defer></script>
<script src="bundle/js/afterwriting.js?last_update=2020-11-07_22-35" defer></script>
</head>
<body>
<p class="loader">Loading...</p>
Expand Down
4 changes: 2 additions & 2 deletions html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<meta name="description" content="Post-processing Fountain screenplays - PDF creation and statistics">
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<link rel="icon" type="image/x-icon" href="gfx/favicon.ico">
<link rel="stylesheet" href="bundle/css/afterwriting.css?last_update=2020-10-05_18-12" />
<link rel="stylesheet" href="bundle/css/afterwriting.css?last_update=2020-11-07_22-35" />

<script src="bundle/js/pdfjs/pdf.min.js"></script>
<script type="text/javascript">
PDFJS.disableWorker = true;
var JS_TREE_WORKERS_ENABLED = true;
</script>

<script src="bundle/js/afterwriting.js?last_update=2020-10-05_18-12" defer></script>
<script src="bundle/js/afterwriting.js?last_update=2020-11-07_22-35" defer></script>
</head>
<body>
<p class="loader">Loading...</p>
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
<meta name="description" content="Post-processing Fountain screenplays - PDF creation and statistics">
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<link rel="icon" type="image/x-icon" href="gfx/favicon.ico">
<link rel="stylesheet" href="bundle/css/afterwriting.css?last_update=2020-10-05_18-12" />
<link rel="stylesheet" href="bundle/css/afterwriting.css?last_update=2020-11-07_22-35" />

<script src="bundle/js/pdfjs/pdf.min.js"></script>
<script type="text/javascript">
PDFJS.disableWorker = true;
var JS_TREE_WORKERS_ENABLED = true;
</script>

<script src="bundle/js/afterwriting.js?last_update=2020-10-05_18-12" defer></script>
<script src="bundle/js/afterwriting.js?last_update=2020-11-07_22-35" defer></script>
</head>
<body>
<p class="loader">Loading...</p>
Expand Down
2 changes: 1 addition & 1 deletion js/utils/common.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
define(function() {
return {
data: {
footer: 'version: 1.16.0 (2020/10/31)'
footer: 'version: 1.17.0 (2020/11/07)'
}
};

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "afterwriting",
"version": "1.16.0",
"version": "1.17.0",
"description": "Screewriting tools",
"keywords": [
"screenwriting",
Expand Down
12 changes: 10 additions & 2 deletions samples/compiled.js

Large diffs are not rendered by default.

0 comments on commit 2b7c1b9

Please sign in to comment.