Git Product home page Git Product logo

Comments (8)

Intelligent2013 avatar Intelligent2013 commented on July 26, 2024

I've just rendered PDF in my environment:
изображение

max after U and V looks ok, but W(Cu) looks with spaces.

jEuclid doesn't use justification.

Original source mathml:

<math xmlns="http://www.w3.org/1998/Math/MathML">
	<mi>w</mi>
	<mfenced open="(" close=")">
		<mrow>
			<mtext>Cu</mtext>
		</mrow>
	</mfenced>
	<mo>=</mo>
	<mn>1,3</mn>
	<mo>×</mo>
	<msup>
		<mrow>
			<mn>10</mn>
		</mrow>
		<mrow>
			<mrow>
				<mo>−</mo>
				<mn>6</mn>
			</mrow>
		</mrow>
	</msup>
</math>

jEuclid renders as:
изображение

If we move mfenced open="(" close=")" into nested mtext, i.e.:

<mrow>
	<mtext>(Cu)</mtext>
</mrow>

then we get a bit compact view:
изображение

Looks like jEuclid adds some space for mfenced.

In any case isn't looks as original (there isn't distance between w and (:
изображение

In the original docx, this equation typed as normal text (not Equation object in Word). If we insert it as Equation, then we get the distance between w and (:
изображение

My proposal - move mfenced attributes into nested element in xslt on-fly.

from bipm-si-brochure.

ronaldtse avatar ronaldtse commented on July 26, 2024

I think the concern is about "Vmax" looking like "V m a x". The space between the parentheses is acceptable. Thanks!

from bipm-si-brochure.

Intelligent2013 avatar Intelligent2013 commented on July 26, 2024

BIPM xslt updated for decreasing space between ( and ).
It affects on these equations: si-brochure-fr.presentation.mathml.pdf

from bipm-si-brochure.

ronaldtse avatar ronaldtse commented on July 26, 2024

Thank you @Intelligent2013 ! Can we close this now?

from bipm-si-brochure.

Intelligent2013 avatar Intelligent2013 commented on July 26, 2024

Done.

from bipm-si-brochure.

ronaldtse avatar ronaldtse commented on July 26, 2024

Need confirmation. In the latest provided si-brochure-fr.presentation.mathml.pdf file, line 226 is this:

Screen Shot 2021-01-15 at 9 37 35 PM

BIPM pointed out that:

There is still an error in item 226: the index ‘12’ before the C for carbon, should be a superscript, not a subscript: 12C.

But it is encoded correctly in source

[stem%unnumbered]
++++
ii(M)("X") = ii(A)_"r" ("X") [ii(M)(""^{12}"C")//12] = ii(A)_"r" ("X") ii(M)_{rm(u)}
++++

And also rendered correctly in the currently released version:
Screen Shot 2021-01-15 at 9 38 23 PM

@Intelligent2013 could you help confirm the latest stylesheet is correct? Thanks!

from bipm-si-brochure.

Intelligent2013 avatar Intelligent2013 commented on July 26, 2024

Yes, the latest stylesheet (in mn-native-pdf/xslt_src) is correct and renders so:
изображение

si-brochure-fr.presentation.mathml.pdf shows only difference between source mathml markup and mfenced processing, but not all another mathml markup as preceding superscript, superscript one-level alignment, etc.)

from bipm-si-brochure.

ronaldtse avatar ronaldtse commented on July 26, 2024

Thank you!

from bipm-si-brochure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.