(In reply to dante19031999 from comment #19)
> Your starmath syntax is just wrong. The command = needs valid expressions at
> both sides, newline indicates end of expression, it is not an expression on
> itself.
> a+b_ij = {} newline {} = c+d

Agree. That is how we handle the NEWLINE command. As pointed out in
comment 4 and comment 5 above. And, attempt to modify parser behavior
were not viable.

And this becomes a documentation issue against describing behavior of
NEWLINE on formula layout [1][2]. What should be said about SM use of
NEWLINE command and its effect on parsing starmath/mathml syntax for
rendering of formula(s) to canvas?

=-ref-=
[1] 
https://help.libreoffice.org/latest/en-US/text/smath/guide/newline.html?DbPAR=MATH#bm_id1295205
[2] 
https://help.libreoffice.org/latest/en-US/text/smath/01/05040000.html?DbPAR=MATH#bm_id3148730

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/281053

Title:
  [Upstream] Math equation editor: "newline" fails after symbols

Status in LibreOffice:
  Invalid
Status in OpenOffice:
  In Progress
Status in libreoffice package in Ubuntu:
  Confirmed
Status in openoffice.org package in Ubuntu:
  Won't Fix

Bug description:
  1) lsb_release -rd
  Description:  Ubuntu 11.10
  Release:      11.10

  2) apt-cache policy libreoffice-writer
  libreoffice-writer:
    Installed: 1:3.4.3-3ubuntu2
    Candidate: 1:3.4.3-3ubuntu2
    Version table:
   *** 1:3.4.3-3ubuntu2 0
          500 http://us.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages
          100 /var/lib/dpkg/status

  apt-cache policy libreoffice-math
  libreoffice-math:
    Installed: 1:3.4.3-3ubuntu2
    Candidate: 1:3.4.3-3ubuntu2
    Version table:
   *** 1:3.4.3-3ubuntu2 0
          500 http://us.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages
          100 /var/lib/dpkg/status

  3) What is expected to happen in LibreOffice Writer via the Terminal:

  cd ~/Desktop && wget
  
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/281053/+attachment/2417117/+files/math_newline_issue.tar.gz
  && file-roller -h math_newline_issue.tar.gz && cd math_newline_issue
  && lowriter -nologo math_newline_issue.odt

  is no upside down question marks are presented in the Math formulas.

  4) What happens is the upside down question marks are present
  erroneously due to "newline" command. If "newline" is preceded or
  followed by some characters (as +, -, =, which are often needed), some
  error marks "¿" are obtained, and perhaps only a single line if
  displayed (it depends on the character and its relative position to
  "newline"). Examples :

  a+b_ij = newline = c+d    # single line; error mark
  a+b_ij newline = c+d      # two lines; missing "="; error mark
  a+b_ij newline + c+d      # correct behaviour !!  The "+" sign does fine 
after newline...
  a+b_ij + newline c+d     # ... but not before: single line, error mark here
  a+b_ij = newline c+d     # single line, error mark. The "=" sign does bad 
whether after or before newline

  WORKAROUND: {} newline {}

  ProblemType: Bug
  Architecture: i386
  Date: Fri Oct 10 03:31:54 2008
  DistroRelease: Ubuntu 8.04
  NonfreeKernelModules: nvidia
  Package: openoffice.org-core 1:2.4.1-1ubuntu2
  PackageArchitecture: i386
  ProcEnviron:
   
PATH=/usr/lib/openoffice/program:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
   LANG=es_ES.UTF-8
   SHELL=/bin/bash
  SourcePackage: openoffice.org
  Uname: Linux 2.6.24-19-rt i686

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to