hendricius / the-sourdough-framework

Open source book dedicated to helping you to make the best possible sourdough bread at home.
https://breadco.de/book
Creative Commons Attribution Share Alike 4.0 International
2.62k stars 137 forks source link

Degree symbol not showing up on website #183

Open cedounet opened 1 year ago

cedounet commented 1 year ago

image

But it is fine in the text though ![Uploading image.png…]()

hendricius commented 1 year ago

@cedounet can't manage to fix this locally unfortunately. I was planning to sed in the SVGs. However it seems the text is also a path inside of the svgs. Maybe we can not use the chemformula inside of the flow charts? Not ideal, but this would fix it. So I'd manually use 230°C and 446°F. Maybe even make a macro for it, if possible.

cedounet commented 1 year ago

I would think this is font related... There are plenty of errors of missing font during htlatex compile, but i have not investigated.

cedounet commented 1 year ago

I had a quick look this morning

  1. This affects both ebook and website (not totally unexpected)
  2. The DVI file created by luaLaTeX has an xC and XF in both text and picture
  3. When htlatex runs and postprocess the DVI it somehow manages to replace it by the degree symbol...
  4. The flowchart becomes and .svg file which does not replace the x by degree symbol
  5. Your fix does not seem to work on my machine 😨
cedounet commented 1 year ago

Quick update.. \usepackage[reset-text-family=false]{siunitx}

Will get you something not great (i.e. wrong font) but at least display the degree

Screenshot 2023-09-16 at 11 52 07
hendricius commented 1 year ago

Sweet. How about for Fahrenheit?

On Sat 16. Sep 2023 at 12:54, cedounet @.***> wrote:

Quick update.. \usepackage[reset-text-family=false]{siunitx}

Will get you something not great (i.e. wrong font) but at least display the degree [image: Screenshot 2023-09-16 at 11 52 07] https://user-images.githubusercontent.com/134267244/268444094-c26faf88-c4ca-40ee-ad34-7efd672ac607.png

— Reply to this email directly, view it on GitHub https://github.com/hendricius/the-sourdough-framework/issues/183#issuecomment-1722203444, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGHNW2VMRJ56WZXDX4ADIDX2WAO5ANCNFSM6AAAAAA3VTE5AE . You are receiving this because you commented.Message ID: @.***>

cedounet commented 1 year ago

That would have worked as well… I had another macro for it while debugging.

Problem is that is quite ugly to use a serif math fonts just for temperature… not a solution…

more another hint that we have a font issue that magically gets fixed when generating html but not in svg.

cedounet commented 1 year ago

Defo UTF-8 not making it through... see:

Screenshot 2023-09-17 at 16 17 37

Should be Jörg bäckt quasi zwei Haxenfüße vom Wildpony.Dès Noël, où un zéphyr haï me vêt

hendricius commented 1 year ago

Interesting. Could it be an issue with the system fonts somehow?

On Sun 17. Sep 2023 at 17:19, cedounet @.***> wrote:

Defo UTF-8 not making it through... see: [image: Screenshot 2023-09-17 at 16 17 37] https://user-images.githubusercontent.com/134267244/268511380-e9f77857-fae8-48d7-b003-84091faea5d4.png

Should be Jörg bäckt quasi zwei Haxenfüße vom Wildpony.Dès Noël, où un zéphyr haï me vêt

— Reply to this email directly, view it on GitHub https://github.com/hendricius/the-sourdough-framework/issues/183#issuecomment-1722500053, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGHNW3X6SRFEICPNJXBRWLX24IJ5ANCNFSM6AAAAAA3VTE5AE . You are receiving this because you commented.Message ID: @.***>

cedounet commented 1 year ago

@hendricius I now have the situation you had a few months ago where TikZ images disappear from ebook 😢 . Do you remember how you fixed it?

Thanks

C

hendricius commented 1 year ago

@cedounet I never managed to fix it on my mac unfortunately. I still have the missing images locally.

cedounet commented 1 year ago

😞 that is not gonna help... That being said I thought I had a good lead with https://github.com/michal-h21/dvisvgm4ht see the issue with text encoding which seems to be exactly what we have... when trying to implement it that disappearance happened though.

hendricius commented 1 year ago

We are getting to the bottom of this haha. Soon we need to create our own LaTeX parser 😎

cedounet commented 1 year ago

Soon we need to create our own LaTeX parser 😎

Cédric left the project