WebSite X5Help Center

 
Rients P.
Rients P.
User

MathML screen resizing  en

Автор: Rients P.
Просмотрено 1966, Подписчики 1, Размещенный 0  

Please check https://qengineering.eu/google-corals-tpu-explained.html

At the end of the fairly long page I have a formula written with MathML object. However, it only does not adapt itself to smaller screen sizes. It just truncates the text. Any idea how to solve the issue

Thanks in advance!

Rients.

Размещено
6 Ответы - 1 Полезно - 1 Корректно
Aleksej H.
Aleksej H.
Moderator

Hello. MathML is a special markup language. Perhaps the syntax of the language has the necessary constructions. Ask Google: "MathML resizing".

Читать больше
Размещено От Aleksej H.
Rients P.
Rients P.
User
Автор

Dear Aleksej,

Thanks for the quick answer! I hoped Incormedia had some secret tricks for me here.

Looking at Google it becomes a lot of programming. First I need to make several font sizes available in css for a to define MathML object. Next a JavaScript needs to detect the width of the screen and choose the appropriate font. On top of this, it seems that Safari ideas of the font size than Opera, Chrome or Firefox.

I'm going to think about it.

Читать больше
Размещено От Rients P.
Wayne B.
Wayne B.
User

Incomedia don't help with custom code usually but there may be other users that can. Good luck with this, as I have no skills in this area!

Читать больше
Размещено От Wayne B.
Aleksej H.
Aleksej H.
Moderator

"Thanks for the quick answer!" - not at all.

"Incomedia don't help with custom code usually" - you're right.

Читать больше
Размещено От Aleksej H.
John S.
John S.
User

Hello Rients

How about just make it as an image. Then it will be resized without being trunbcated.

Читать больше
Размещено От John S.
Rients P.
Rients P.
User
Автор

Dear John, 

Just what I have done this weekend. For the ones unfamiliar with MathML the workaround here.

  1. Make your formula in Open Office Formula.
  2. Save it as mml file.
  3. Load this file in Notepad++ or something.
  4. Copy the entire code on the clipboard. (ctrl+C)
  5. Past the clipboard (ctrl+V) inside the text window of the X5-MathML object. (because it has no file load)
  6. Get a preview of the page
  7. Make a screendump
  8. Cut your formula from the picture
  9. Save it as png (lossless compression, sharp edges)
  10. Replace the MathML object with the picture.

Extra bonus: The page will load faster because it has less external fetches to do.

Thanks John, Wayne and Aleksej.

Читать больше
Размещено От Rients P.