iosMath icon indicating copy to clipboard operation
iosMath copied to clipboard

\rightharpoonup spacing not correct

Open kekearif opened this issue 7 years ago • 0 comments

Hey, I need to add the rightharpoonup command. I am modifying MTMathAtomFactory like so:

+ (NSDictionary<NSString*, NSString*>*) accents
{
    static NSDictionary* accents = nil;
    if (!accents) {
        accents = @{
                    @"grave" : @"\u0300",
                    @"acute" : @"\u0301",
                    @"hat" : @"\u0302",  // In our implementation hat and widehat behave the same.
                    @"tilde" : @"\u0303", // In our implementation tilde and widetilde behave the same.
                    @"bar" : @"\u0304",
                    @"breve" : @"\u0306",
                    @"dot" : @"\u0307",
                    @"ddot" : @"\u0308",
                    @"check" : @"\u030C",
                    @"vec" : @"\u20D7",
                    @"widehat" : @"\u0302",
                    @"widetilde" : @"\u0303",
                    @"rightharpoonup" : @"\u21C0",
                    };
    }
    return accents;
}

This returns the correct symbol when the command is used on its own.

screen shot 2017-10-17 at 21 26 56

However if I try to accent something with it the vertical spacing appears to be incorrect. e.g.

screen shot 2017-10-17 at 21 26 47

How can I go about adjusting this? Am I on the right track here?

kekearif avatar Oct 17 '17 13:10 kekearif