Comments (10)
The font file was indeed broken. I've uploaded a correct (hopefully) version in cc8766a
I'll leave this open for now until someone tells me it's now working. Thanks for your help, @gitonthescene @rodrigogiraoserrao
from learnapl.
I can’t spot the difference but MDAPL seems to have solved this. Perhaps @rodrigogiraoserrao can spot the issue.
Comparing a sample from the source files of each they look very similar:
Learning APL
<div class="cell_output docutils container">
<div class="output text_html"><span style="white-space:pre; font-family: monospace">┌───────┬───────┬───────┬───────┐
│1 2 3 4│2 5 8 6│8 6 2 3│8 7 6 1│
└───────┴───────┴───────┴───────┘
</span></div></div>
MDAPL
<div class="cell_output docutils container">
<div class="output text_html"><span style="white-space:pre; font-family: monospace">┌───────┬────────┬─────┬─────┬───┬────┐
│January│February│March│April│May│June│
└───────┴────────┴─────┴─────┴───┴────┘
</span></div></div>
Perhaps the site just needs to be rebuilt??
It’s worth pointing out that the pdf download looks fine.
from learnapl.
FWIW, I checked that the custom.css between the two are essentially the same:
--- learningapl/custom.css 2022-02-14 00:35:12.000000000 +0900
+++ mdapl/custom.css 2022-04-07 10:21:29.000000000 +0900
@@ -22,3 +22,7 @@
.table td p, .table th p {
margin: 0;
}
+
+.solution.admonition {
+ padding-bottom: 0 !important;
+}
$
The .ttf files appear to be different, though. I don't know if this is the issue or not.
Binary files mdapl/APL385.ttf and learningapl/APL385.ttf differ
$ file */APL385.ttf
learningapl/APL385.ttf: HTML document text, Unicode text, UTF-8 text, with very long lines (17464)
mdapl/APL385.ttf: TrueType Font data, 19 tables, 1st "EBDT", 22 names, Macintosh, Copyright 2016, Adrian Smith, Brook House, Gilling, YORK, UKAPL385 UnicodeRegularAPL385-UnicodeA
$
Also worth noting that it looks fine on my iMac, but not on my iPhone.
from learnapl.
I'm no web guru, but when I connect my Safari's developer tools to my iPhone and check the corresponding span elements posted above, MDAPL lists the font as APL385 Unicode where as Learning APL lists it as Times New Roman. I'm guessing the issue is almost certainly the ttf file mentioned above.
from learnapl.
The reason it might be working on your Mac, @gitonthescene, is that you probably have the APL385 font installed on your computer, so LearnAPL sources it locally.
On your iPhone, not so much.
If the .ttf files differ, that's likely the issue, then. I got my .ttf file from http://www.apl385.com/fonts/.
Might be worth ensuring both .ttf files live in the same location (in the _static
folder, next to the custom.css
file).
from learnapl.
@rodrigogiraoserrao - Thanks for replying. I think you’re right that it finds the fonts locally on my desktop. Hopefully this fixes the issue for my phone as well.
from learnapl.
What's interesting is that this looks like a Jupyter notebook, right? Shouldn't it be some kind of monospaced font if it's a jupyter notebook?
from learnapl.
I think it has declared using a font which doesn’t load properly. The fallback font is probably the same for the entire document.
from learnapl.
What's interesting is that this looks like a Jupyter notebook, right? Shouldn't it be some kind of monospaced font if it's a jupyter notebook?
The source is a notebook, and if you open the notebook sources, where the custom CSS has no bearing, you will see a monospaced font.
But then it gets built into an HTML page, and then the fallback font is something else.
from learnapl.
Looks great now! Thanks!
from learnapl.
Related Issues (20)
- "The Stencil operator: `⌺`" revision HOT 1
- Grade up/down HOT 2
- Typo on page /iteration.html HOT 1
- Export as EPUB HOT 1
- Relative rank ⍤¯1 HOT 1
- The "finding things" chapter confuses extension with pervasion HOT 1
- Iota Underbar HOT 1
- Expand on the timings for binary search HOT 1
- Issue on page /rank.html HOT 1
- Link to single PDF does not exist HOT 3
- Sane indexing last sample doesnt work? HOT 6
- Font issue HOT 1
- Domain Error HOT 1
- Array model wording HOT 1
- Incorrect explanation of the value returned by dyadic iota when no element is found HOT 2
- Issue on page /testing.html with a URL giving 404 HOT 2
- Update Link docs URL HOT 1
- Typo re: "APL Ex(c)ercises" on page /rank.html
- Spelling mistake "alreay" on page /dyadictrn.html
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learnapl.