On Mon, 09 Mar 2009 09:52:38 +0100
Thomas Lange - Sun Germany - ham02 - Hamburg <[email protected]>
dijo:

> John Jason Jordan wrote:
> 
> > I have a formula in Writer 3.01 (Ubuntu Intrepid) which almost works.
> > The code is:
> > 
> > left lbrace alignl stack {left [ +liquid right ]~"___"~"]"rsub word #
> > left [ +nasal right ]~"___"~"]"rsub ~"___"~"]"rsub word # left [ stack
> > {+syllabic} # {+front} right ]~"___"~"]"rsub word  # "___ " _word left
> > [ +syllabic right ] }  right rbrace 
> > 
> > You can test this by copying and pasting the above code into the
> > formula editor in your installation of OOo. (But watch out for the line
> > endings that my e-mail client may have entered.)
> > 
> > The problem is "left [ stack {+syllabic} # {+front} right ]
> > ~"___"~"]"rsub word." This is supposed to stack, but it does not. 
> > 
> > The only thing I can think of is that there might be a limitation in
> > OOo Math where you can have only one stack in a formula - i.e., you
> > can't nest a stack within a stack. If that is so, then I am stuck. But
> > if the problem is just that I haven't got the code right, I'm hoping
> > there is an expert on formulas here who can tell me what is wrong.
> > 
> 
> The head over ? character in the displayed formula indicates a syntax
> error (unfortunately not necessarily at th eposition where it is displayed).
> The problem is you are trying to do something that is not allowed at all
> By writing
> 
>   left [ stack {+syllabic} # {+front} right ]~"___"~"]"rsub word  #
> 
> 
> You want a single expression the
>   left [ stack {+syllabic} # {+front} right ]
> part to include a line boundary #. That will never work!
> An expression must always be completed in its stack/matrix/binom cell.
> 
> Thus either you have to remove the # in the mid or you need to supply
> the terminating right ] in the first cell and the starting left [ in the
> other cell. Be reminded that you can add right none to the first and
> left none to the second. Maybe that is what you wanted it to look like.

I finally got it to work with this syntax:

left lbrace alignl stack  {`left [ +approximant right ]~"___
X"_0~"]"rsub stem # `left [ +nasal right ]~"___ X"_0~"]"rsub stem #
`left [ binom {+syllabic} {+front} right ]~"___ X"_0~"]"rsub stem  # `
{"___ "  _stem left [ +syllabic right ]} }  right rbrace 

Note that I changed the offending section from "stack" with the
elements separated by #, to "binom" without the #.

The problem wasn't that I had left out a terminating bracket; it was
that the stack function refused to work in a bracket element nested
inside a brace element. If I took just the bracket element out and used
it as a standalone formula it appeared fine.

Luckily the bracket needed only two items, so I was able to substitute
"binom" for "stack," and that got me home.

I wish I could find a complete reference to the formula commands with
examples. The Help is only a couple of pages. I found a PDF online that
was six pages, but it was written in 2005 and half the features were
not displayed with examples.
-- 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to