![]() |
#1 |
Member
![]() 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. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Member
![]() Posts: 13
Karma: 10
Join Date: Mar 2025
Device: Kobo Libra Colour
|
Quote:
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; } |
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 & 2 \\[0pt] 2 & 0 \\[0pt] 3 & 1 \\[0pt] \end{bmatrix}</annotation></semantics></math></p> |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Member
![]() Posts: 13
Karma: 10
Join Date: Mar 2025
Device: Kobo Libra Colour
|
Quote:
Not sure there is an easy conversion path... still researching. Big thanks anyway! |
|
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 13
Karma: 10
Join Date: Mar 2025
Device: Kobo Libra Colour
|
Experimenting:
adding a single Code:
<semantics> NB: if I add the corresponding closing tag Code:
</semantics> I am a bit lost....but it works... |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |