[Libreoffice] How to add new commands for Math
rb.henschel at t-online.de
Mon Jun 13 05:02:38 PDT 2011
Hi Rodolf, hi all,
> Thank you. I almost could do what I'm supposed to (thanks tml and moggi).
> But I now have another issue: the OpenSymbol font doesn't have all
> math operators mentioned by Unicode (like "there does not exist"
> 0x2204) and some diacritics like inverted breve(ligature) (0x0361).
> How can it be done?
I think, that it needs a more general discussion. I see no license
information in the opens___.ttf file. But I guess, that SUN/Oracle holds
the copyright on that font. So it might be, that it is not possible to
add new symbols.
My suggestion -not to you personally but in general- is to deliver the
STIX fonts and change totally from OpenSymbol to STIX. The STIX fonts
have all the math symbols someone needs.
> And how can I got some MathType documentation to know how to export it
> these new data?
> 2011/6/10 Michael Meeks<michael.meeks at novell.com>:
>> Hi there,
>> On Fri, 2011-06-10 at 08:56 -0300, Rodolfo wrote:
>>> Hi. I'm new here at LibO development.
>> Welcome ! :-) fantastic to have you.
>>> I have interest on improve the Math component of LibreOffice by adding
>>> some new commands into it: things like a wide inverted breve for
>>> description of an arc between points A and B.
>> Sounds exciting.
>>> In order to do so, I've been looking& changing files with WideVec in
>>> starmath module (files like starmath.h, commands.src, parse.cxx, etc).
>>> Not successfully, though. My "wideibreve" attribute command isn't even
>>> recognized as a command: its texts appears normally.
>> Oh - that sucks; any chance you can send a patch so we can have a read
>> through / play here ? [ always good to talk code ].
>>> I know it's kinda vague, but any guides what I should do for add any
>>> new command? And how to put it into the toolbox?
>> I just had a poke; UI stuff is in .src files - in this case
>> starmath/source/toolbox.src - you would need to add a new magic number
>> in a .hrc file for that button (I guess), and then the src files are
>> associated with source files via those #define magic names. so eg. git
>> grep for RID_XCDOTY.
>> Having said that - in this case, there seems to be some magic, whereby
>> the toolboxitem identifier, is also the identifier of another string
>> that is a command ;-)
>> Looks like you'd just want to add a new entry for each of those&
>> bingo :-)
>> Are you on IRC ? poke me mmeeks on #libreoffice-dev on freenode for
>> something more interactive.
>> Hope that helps !
>> michael.meeks at novell.com<><, Pseudo Engineer, itinerant idiot
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
More information about the LibreOffice