Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 04-04-2025, 03:55 AM   #1
fdread
Member
fdread began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Mar 2025
Device: Kobo Libra Colour
matrix (math) not diplayed correctly on Kobo

Hello,

I am reading some mathematic books on Kobo Libra Colour.

While the matrices are displayed correctly in Calibre viewer, they appear as "single line" on Kobo reader. Here is an example:

Original matrix:
[ 1 2
2 0
3 1]

Would appear on Kobo as [122031], with no space/newline,...
Making it impossible to interpret...

I tried with ePub or KePub, no difference.

Is there anything I could try to fix that?

Thanks in advance for your ideas.
Attached Images
 
fdread is offline   Reply With Quote
Old 04-04-2025, 07:12 AM   #2
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,509
Karma: 78910112
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
The important question is "What is the code in the book that is being used to display the matrix".

If it's easier, share the name of the book and maybe one of the forum readers can track down a copy (or preview if it's a purchased book) and explore it

Sent from my Pixel 7a using Tapatalk
PeterT is offline   Reply With Quote
Advert
Old 04-04-2025, 07:38 AM   #3
fdread
Member
fdread began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Mar 2025
Device: Kobo Libra Colour
Quote:
Originally Posted by PeterT View Post
The important question is "What is the code in the book that is being used to display the matrix".
Here is the code:
Code:
<p class="uln-indent"><math xmlns:m="http://www.w3.org/1998/Math/MathML" class="calibre2"><mrow class="calibre2"><mrow class="calibre2"><mo class="calibre2">[</mo><mrow class="calibre2"><mtable class="calibre2"><mtr class="calibre2"><mtd class="calibre2"><mn class="calibre2">1</mn></mtd><mtd class="calibre2"><mn class="calibre2">2</mn></mtd></mtr><mtr class="calibre2"><mtd class="calibre2"><mn class="calibre2">2</mn></mtd><mtd class="calibre2"><mn class="calibre2">0</mn></mtd></mtr><mtr class="calibre2"><mtd class="calibre2"><mn class="calibre2">3</mn></mtd><mtd class="calibre2"><mn class="calibre2">1</mn></mtd></mtr></mtable></mrow><mo class="calibre2">]</mo></mrow></mrow></math></p>
...
.calibre2 {
  text-indent: 0;
  word-break: break-word;
  word-wrap: break-word;
}
While capturing the code from Calibre editor, I noticed that the "previewer" is also exhiting the display issue. [122031]
fdread is offline   Reply With Quote
Old 04-04-2025, 11:13 AM   #4
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,509
Karma: 78910112
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Are you doing this in ePub OR kepub format? I don't belive that the ePub reader on Kobo supports mathml. (I see you answered this in the original post; sorry)

You also might want to check the calibre editor sub forum for mathml; for instance I cam across this today --> https://www.mobileread.com/forums/sh...d.php?t=362517
PeterT is offline   Reply With Quote
Old 04-04-2025, 01:08 PM   #5
salamanderjuice
Guru
salamanderjuice ought to be getting tired of karma fortunes by now.salamanderjuice ought to be getting tired of karma fortunes by now.salamanderjuice ought to be getting tired of karma fortunes by now.salamanderjuice ought to be getting tired of karma fortunes by now.salamanderjuice ought to be getting tired of karma fortunes by now.salamanderjuice ought to be getting tired of karma fortunes by now.salamanderjuice ought to be getting tired of karma fortunes by now.salamanderjuice ought to be getting tired of karma fortunes by now.salamanderjuice ought to be getting tired of karma fortunes by now.salamanderjuice ought to be getting tired of karma fortunes by now.salamanderjuice ought to be getting tired of karma fortunes by now.
 
Posts: 908
Karma: 12671918
Join Date: Jul 2017
Device: Boox Nova 2
MathML only works for Kepubs.

This code works fine on my Kobo Libra Colour:
Code:
<p><math display="block" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="true" form="prefix">[</mo><mtable><mtr><mtd columnalign="center"><mn>1</mn></mtd><mtd columnalign="center"><mn>2</mn></mtd></mtr><mtr><mtd columnalign="center"><mn>2</mn></mtd><mtd columnalign="center"><mn>0</mn></mtd></mtr><mtr><mtd columnalign="center"><mn>3</mn></mtd><mtd columnalign="center"><mn>1</mn></mtd></mtr></mtable><mo stretchy="true" form="postfix">]</mo></mrow><annotation encoding="application/x-tex">\begin{bmatrix}
 1 &amp; 2 \\[0pt]
 2 &amp; 0 \\[0pt]
 3 &amp; 1 \\[0pt]
\end{bmatrix}</annotation></semantics></math></p>
Is this a book you bought or generated? I'm not sure if there is an easy fix if this is a problem throughout.
salamanderjuice is offline   Reply With Quote
Advert
Old 04-04-2025, 05:00 PM   #6
fdread
Member
fdread began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Mar 2025
Device: Kobo Libra Colour
Quote:
Originally Posted by salamanderjuice View Post
MathML only works for Kepubs.

This code works fine on my Kobo Libra Colour:
Code:
<p><math display="block" xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="true" form="prefix">[</mo><mtable><mtr><mtd columnalign="center"><mn>1</mn></mtd><mtd columnalign="center"><mn>2</mn></mtd></mtr><mtr><mtd columnalign="center"><mn>2</mn></mtd><mtd columnalign="center"><mn>0</mn></mtd></mtr><mtr><mtd columnalign="center"><mn>3</mn></mtd><mtd columnalign="center"><mn>1</mn></mtd></mtr></mtable><mo stretchy="true" form="postfix">]</mo></mrow><annotation encoding="application/x-tex">\begin{bmatrix}
 1 &amp; 2 \\[0pt]
 2 &amp; 0 \\[0pt]
 3 &amp; 1 \\[0pt]
\end{bmatrix}</annotation></semantics></math></p>
Is this a book you bought or generated? I'm not sure if there is an easy fix if this is a problem throughout.
Thanks! I confirm your example works on my device as well.
Not sure there is an easy conversion path... still researching.

Big thanks anyway!
fdread is offline   Reply With Quote
Old 04-04-2025, 05:21 PM   #7
fdread
Member
fdread began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Mar 2025
Device: Kobo Libra Colour
Experimenting:
adding a single
Code:
<semantics>
tag, it fixes all the mathML entries in the chapter.
NB: if I add the corresponding closing tag
Code:
</semantics>
, it breaks again...

I am a bit lost....but it works...
fdread is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Metadata not correctly shown on Kobo mv24 Devices 0 08-06-2023 09:47 PM
Forma How can I get my Kobo to correctly fille/sort a surname with spaces? droopy Kobo Reader 3 09-11-2019 08:15 PM
Free (Kindle/Kobo) Saving the CEO [Festive Businessman/Math Geek Accounting Romance] ATDrake Deals and Resources (No Self-Promotion or Affiliate Links) 0 11-16-2015 08:59 AM
Free (Kindle/Kobo/iTunes) Make It Count [College Math Tutor Love Triangle Romance] ATDrake Deals and Resources (No Self-Promotion or Affiliate Links) 1 04-18-2015 03:14 AM
Unable to convert the pdf files (math stuff) correctly maryus66 Workshop 5 01-12-2015 01:09 PM


All times are GMT -4. The time now is 03:39 PM.


MobileRead.com is a privately owned, operated and funded community.