Giter VIP home page Giter VIP logo

Comments (10)

xpqz avatar xpqz commented on August 25, 2024 2

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.

gitonthescene avatar gitonthescene commented on August 25, 2024

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.

gitonthescene avatar gitonthescene commented on August 25, 2024

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.

gitonthescene avatar gitonthescene commented on August 25, 2024

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.

Screen Shot 2022-04-09 at 5 55 22 PM

Screen Shot 2022-04-09 at 5 55 07 PM

from learnapl.

rodrigogiraoserrao avatar rodrigogiraoserrao commented on August 25, 2024

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.

gitonthescene avatar gitonthescene commented on August 25, 2024

@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.

Tortus-exe avatar Tortus-exe commented on August 25, 2024

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.

gitonthescene avatar gitonthescene commented on August 25, 2024

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.

rodrigogiraoserrao avatar rodrigogiraoserrao commented on August 25, 2024

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.

gitonthescene avatar gitonthescene commented on August 25, 2024

Looks great now! Thanks!

from learnapl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.