EmbraceUncertainty icon indicating copy to clipboard operation
EmbraceUncertainty copied to clipboard

Symbols not being rendered correctly

Open ajinkya-k opened this issue 1 year ago • 6 comments

Some of the symbols in the code blocks are not being rendered correctly on my browser (Safari on macOS 14.4.1). One example is shown in the screenshot below from Appendix C2.2. This issue does not seem to occur consistently. Some of the unicode characters (in fact the same character as in the code chunk displayed) does render correctly in other places on the same page. This issue also happens on Chrome for macOS.

image

ajinkya-k avatar May 06 '24 19:05 ajinkya-k

I'm not sure what is behind this problem. We are seeing it even more in development versions that use https://github.com/PumasAI/QuartoNotebookRunner.jl as the evaluation engine for Quarto documents with Julia code blocks. It may be worthwhile testing if the JuliaMono font, https://github.com/cormullion/juliamono/ helps. It provides more Unicode glyphs but, as you note, the same character is rendered properly in other places.

dmbates avatar May 08 '24 15:05 dmbates

@ajinkya-k I have done some minor software updates and republished the website. On my end, things are looking better -- can you check whether that holds for you?

palday avatar May 14 '24 02:05 palday

@palday Thanks! That particular one did get resolved! There is still one in the same section (see image below). Just out of curiosity: what changes did you make? Also, I wonder if this rendering issue is because a pre-release version of quarto is being used? image

ajinkya-k avatar May 14 '24 02:05 ajinkya-k

I updated to the absolute latest quarto pre-release and QuartoNotebookRunner.jl releases.

palday avatar May 14 '24 02:05 palday

Hmmm, still seeing some unknown characters in the model output for https://embraceuncertaintybook.com/intro.html#sec-dyestuff2lmm

palday avatar May 14 '24 02:05 palday

This behavior also happens when I render them on my local repo, including the exact same places in the text where these characters appear

ajinkya-k avatar May 14 '24 04:05 ajinkya-k

It looks like there is a fix coming upstream: https://github.com/quarto-dev/quarto-cli/pull/9740

palday avatar Jun 04 '24 01:06 palday

Has this change been incorporated yet? I installed quarto 1.5.45 and I still get character rending issues.

ajinkya-k avatar Jun 15 '24 21:06 ajinkya-k

Quarto 1.5.45 should have installed version 0.11.1 of the QuartoNotebookRunner package. with commit hash 0rtVI

% ls -la ~/.julia/packages/QuartoNotebookRunner 
total 0
drwxr-xr-x    4 dmbates  staff    128 Jun 16 09:31 .
drwxr-xr-x  437 dmbates  staff  13984 Jun  6 09:14 ..
drwxr-xr-x   12 dmbates  staff    384 Jun 16 09:31 0rtVI
drwxr-xr-x   12 dmbates  staff    384 May 29 17:13 kZlRN

You may need to reevaluate the code blocks to ensure that the latest version is used. In the EmbraceUncertainty directory run

rm -r docs/ _freeze/ .quarto/
quarto render

For me that produces a document without any gliches in the output blocks.

dmbates avatar Jun 16 '24 14:06 dmbates

This worked! I had run quarto render again after updating but I had not cleared the existing html files, so it was using cached versions.

ajinkya-k avatar Jun 16 '24 22:06 ajinkya-k

Looks like the symbols are rendering correctly on the website. Closing the issue.

ajinkya-k avatar Jun 18 '24 04:06 ajinkya-k