Launchpad has imported 25 comments from the remote bug at
https://bugs.documentfoundation.org/show_bug.cgi?id=45284.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2012-01-26T12:41:06+00:00 Yury wrote:

Created attachment 56202
remove appending of the hard-coded font sizes (made against git checkout)

This is about formulas in writer file which is being exported (saved as)
microsoft word .doc file.

The current conversion routines in starmath/ subdir append hard-coded
font sizes ("size 12" to normal content, "size 8" to super- and
subscripts etc.), regardless of what is set in LibreOffice formula
editor's settings. That is, of course, completely wrong approach. This
way formulas are, in fact, corrupted. There are many tickets for this
issue filed in OOO bugzilla, by the way.

One way of correcting this is proposed in a patch attached, pending the
implementation of "completely correct" way of exporting font sizes in
formulas to .doc (in ole streams attributes). This patch just removes
the code which adds "size %d {" and corresponding "}".

"Works for me", as now I'm able to export many-formulas document to
word's .doc and not have to *edit* each and every of those, if something
other than "size 12" is required (I still have to double-click each and
every of those to correct the previews, but that's another problem,
albeit related).

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/19

------------------------------------------------------------------------
On 2012-02-17T07:55:23+00:00 Sasha-libreoffice wrote:

@ Michael
Please, take look at this bug. Appears that it contains ready patch for fixing 
this bug.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/20

------------------------------------------------------------------------
On 2012-02-29T01:23:25+00:00 Sasha-libreoffice wrote:

@ Ivan
Please, take look at this bug. Appears that it contains ready patch for fixing
this bug.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/21

------------------------------------------------------------------------
On 2012-02-29T02:13:01+00:00 Michael-stahl wrote:

sounds plausible, but i know ~nothing about WW8;
Caolan, Cedric, Lubos: please take a look at the patch here

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/22

------------------------------------------------------------------------
On 2012-02-29T04:06:51+00:00 Caolanm wrote:

seeing as this is a patch to the import, I guess the problem is a round
trip from .doc back to .doc again ?

Can you attach a demo document which shows the problem that this fixes.
Its been a very long time since I played with the MathType format.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/23

------------------------------------------------------------------------
On 2012-02-29T07:16:37+00:00 Timofeev-i-s wrote:

Heh, since I am in the CC list... :)
The patch looks a bit weird to me: it removes the support of the SIZE record of 
the MTEF. However, MTEF is the format I am not familiar with, I have just 
downloaded the specification and looking into it right now. :)

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/24

------------------------------------------------------------------------
On 2012-02-29T10:38:29+00:00 Yury wrote:

I'll attach a prepared and re-tested example tomorrow.

And, like I said before, this patch is not a real solution, but a
kludge, really.

As I don't understand the starmath module too well myself, I've just
removed ("hacked off") a provision for inserting the "size" tag, which
is abused by export to Word Eq. editor AND import from Word Eq. editor
routines. Personally, I can live without "size" tag (I'd rather have a
global font size(s) changing control/dialog), but the effective
corruption of formulas by insertion of "size 12", "size 8" is quite a
PITA.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/25

------------------------------------------------------------------------
On 2012-03-03T03:08:47+00:00 Yury wrote:

Created attachment 57967
10pt equivalent of ooo's "{a123} wideslash {b456}" made in word

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/26

------------------------------------------------------------------------
On 2012-03-03T03:10:58+00:00 Yury wrote:

Created attachment 57968
14pt equivalent of "{a123} wideslash {b456}" made in word

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/27

------------------------------------------------------------------------
On 2012-03-03T03:15:51+00:00 Yury wrote:

Created attachment 57969
10pt imported with 3.5.1rc1

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/28

------------------------------------------------------------------------
On 2012-03-03T03:16:17+00:00 Yury wrote:

Created attachment 57970
14pt imported with 3.5.1rc1

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/29

------------------------------------------------------------------------
On 2012-03-03T03:16:55+00:00 Yury wrote:

Created attachment 57971
10pt imported with patched 3.5.0

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/30

------------------------------------------------------------------------
On 2012-03-03T03:17:21+00:00 Yury wrote:

Created attachment 57972
14pt imported with patched 3.5.0

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/31

------------------------------------------------------------------------
On 2012-03-03T03:36:01+00:00 Yury wrote:

Okay, here come the examples. Two files contain an equivalent of "{a123}
wideslash {b456}" prepared in Word 2003 eqaution editor. One was
composed with font size set to 10pt, another — to 14 pt.

Please note that the overall formula's font size in examples isn't
actually included into mathtype equation elements, but is put into a
position preceding the equation proper. This is deduced from the binary
comparison results.

Now, the import screens show where things go wrong in the mainstream
LibO/OOO:

1) The formula's font size (10pt or 14pt in this case) is lost. The
actual formula font size setting is in all cases 11pt (as set as default
in local installation; dialog not shown), and so differs with what was
actually set in Word file. This is, however, bearable.

2) What's worse, formulas get sprayed with «size 12» and «size 8» (these
are arbitrary sizes taken from the array in the
starmath/source/mathtype.cxx, in function MathType::Init()), which is
completely unacceptable. Just imagine clearing those out in 100 formulas
or so.

P.S. As a side question, I notice that, e.g., CmathOOO extension is
capable of composing the formula «on the run» and inserting it with font
size and face taken from paragraph style. How difficult would it be to
implement: 1) *optional* setting of font size and face in imported
formulas to whatever was set in imported file (say, Times New Roman and
10pt); 2) batch changing of the font faces and sizes of all formulas in
LibO/OOO document; optionally, do it like it's done in KDE fonts dialog
(adjust face only, or size only, etc.)?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/32

------------------------------------------------------------------------
On 2014-01-20T09:00:31+00:00 Cedric-bosdonnat-ooo wrote:

Restricted my LibreOffice hacking area

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/33

------------------------------------------------------------------------
On 2015-04-20T08:30:04+00:00 Yury wrote:

Summing up, this issue is caused by the DOC to ODT importing routines
doing two things wrong:

1bad) Formulas' font sizes' settings in DOC are ignored and substituted
by hard-coded sizes coming, I believe, from the array
MathType::aSizeTable[7] (starmath/source/mathtype.hxx). This produces
the (unasked for) 'size 12' and 'size 8' on bodytext and indexes
formulas' elements.

** I'm attaching the patch for LOdev 4.3.7.1 which blocks (hacks off,
really) that (spurious) size setting on import. Ugly, but "worksforme",
saves my time.

2bad) Formulas' rendered images' frames are put too high w/r to the
baseline of the paragraph formula is in. This necessitates re-rendering
(double-clicking+closing) all formulas in the ODT (grand PITA!!)

Not *immediately* relevant to this issue is there are errors in the
importing code, which converts the syntax of the MathType included in MS
Word to the syntax of eqn included in LO.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/36

------------------------------------------------------------------------
On 2015-04-20T08:31:10+00:00 Yury wrote:

Created attachment 114955
LOdev 4.3.7.1 patch blocking those 'size 12' and 'size 8' elements

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/37

------------------------------------------------------------------------
On 2015-09-20T08:39:46+00:00 narayan wrote:

Hi Yury, so if I understand correctly this isn't a final solution but a
temporary workaround? Is there a possibility to resolve this issue, or
is it too difficult to find an answer?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/38

------------------------------------------------------------------------
On 2015-09-20T11:07:23+00:00 Yury wrote:

(In reply to Roeland from comment #17)
> Hi Yury, so if I understand correctly this isn't a final solution but a
> temporary workaround? Is there a possibility to resolve this issue, or is it
> too difficult to find an answer?

This solution is just a workaround, which I use in my local build,
deployed on my machines. Frankly, this is quite a fair solution, see
also https://bugs.documentfoundation.org/show_bug.cgi?id=90406, but it
doesn't seem it can make it into the mainstream.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/39

------------------------------------------------------------------------
On 2016-05-01T17:10:27+00:00 Beluga wrote:

Yury: is this the same as bug 40187 ?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/41

------------------------------------------------------------------------
On 2016-05-01T17:37:27+00:00 Yury wrote:

(In reply to Buovjaga from comment #19)
> Yury: is this the same as bug 40187 ?

Yes, the very same. The source of .DOC, be it Word or LO, affects
nothing.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/42

------------------------------------------------------------------------
On 2016-05-01T17:51:20+00:00 Beluga wrote:

*** Bug 40187 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/44

------------------------------------------------------------------------
On 2017-05-22T13:38:48+00:00 Qa-admin-q wrote:

** Please read this message in its entirety before responding **

To make sure we're focusing on the bugs that affect our users today,
LibreOffice QA is asking bug reporters and confirmers to retest open,
confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked
on this bug report. During that time, it's possible that the bug has
been fixed, or the details of the problem have changed. We'd really
appreciate your help in getting confirmation that the bug is still
present.

If you have time, please do the following:

Test to see if the bug is still present on a currently supported version of 
LibreOffice 
(5.2.7 or 5.3.3  https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the version of 
LibreOffice and 
your operating system, and any changes you see in the bug behavior
 
If the bug is NOT present, please set the bug's Status field to 
RESOLVED-WORKSFORME and leave 
a short comment that includes your version of LibreOffice and Operating System

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular 
meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a 
REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your 
bug pertains to a feature added after 3.3)

http://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to "inherited from OOo";
4b. If the bug was not present in 3.3 - add "regression" to keyword


Feel free to come ask questions or to say hello in our QA chat: 
http://webchat.freenode.net/?channels=libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug-20170522

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/45

------------------------------------------------------------------------
On 2019-01-08T20:02:24+00:00 narayan wrote:

Yury, are you still woking on this? Is there no way to push the
workaround as a temporary solution? or is this not possible?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/46

------------------------------------------------------------------------
On 2019-01-09T06:53:16+00:00 Yury wrote:

To be precise, I'm still _using_ this, locally building from source with
that patch.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/424044/comments/47


** Changed in: df-libreoffice
       Status: Unknown => Confirmed

** Changed in: df-libreoffice
   Importance: Unknown => Medium

** Bug watch added: Document Foundation Bugzilla #90406
   https://bugs.documentfoundation.org/show_bug.cgi?id=90406

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/424044

Title:
  [Upstream] Math Object formula changed causing resize saving .odt to
  .doc

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/424044/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to