Version: 1.4.95 (using KDE 3.5.1, Kubuntu Package 4:3.5.1-0ubuntu11 dapper) Compiler: Target: i486-linux-gnu OS: Linux (i686) release 2.6.15-18-k7 When using the bakoma fonts, I should be able to insert a not equals symbol. For some reason I cannot.
In the latest release, this is still an issue. If I am correct in my thinking, fixing it involves simply adding an entry in the drop down list for the unicode character on page 34, unicode code point 2260. It exists in almost every font on my computer, so I assume it is fairly standard. Alternatively, in LyX (and so I assume LaTeX) this character is available by typing "\neq" just as one would type "\alpha" for a Greek letter alpha. I hope this helps. It is one thing keeping me from using KFormula regularly.
The reason is that the font that includes the neq symbol is not included since it seems that is not properly handled in KFormula. I hope to fix this ASAP, but surely it won't be for 1.5.0
I don't know a lot about fonts, but I'm fairly sure the neq glyph is in a lot of fonts... At least, I can find it in KWord when I do insert symbol at unicode code point 2260. I think it's even in some of the bakoma fonts.... I could be totally wrong though.
Yes, you're right, it's also in BaKoMa fonts, but it's not handled properly by KFormula.
SVN commit 534998 by abeaumont: Added 16bit support for keys of symbol characters. Added not equal (neq) symbol. BUG: 123962 M +5 -0 cmmapping.cc M +1 -1 kformuladefs.h M +1 -1 kformuladocument.cc M +4 -4 symbolaction.cc M +2 -2 symbolaction.h M +1 -1 symboltable.cc M +5 -5 symboltable.h --- branches/koffice/1.5/koffice/lib/kformula/cmmapping.cc #534997:534998 @@ -19,6 +19,7 @@ { 0x0398, 0xa3, ORDINARY, boldChar }, { 0x0394, 0xa2, ORDINARY, boldChar }, { 0x0393, 0xa1, ORDINARY, boldChar }, + { 0x2260, 0x2260, ORDINARY, boldChar}, { 0, 0, ORDINARY, normalChar } }; @@ -182,6 +183,7 @@ { 0x03D5, 0x27, ORDINARY, italicChar }, { 0x2323, 0x5e, ORDINARY, italicChar }, { 0x03D6, 0x24, ORDINARY, italicChar }, + { 0x2260, 0x2260, ORDINARY, italicChar }, { 0, 0, ORDINARY, normalChar } }; @@ -316,6 +318,7 @@ { 0xFB03, 0xb1, ORDINARY, normalChar }, { 0xFB00, 0xae, ORDINARY, normalChar }, { 0xFB01, 0xaf, ORDINARY, normalChar }, + { 0x2260, 0x2260, ORDINARY, normalChar }, { 0, 0, ORDINARY, normalChar } }; @@ -582,6 +585,7 @@ { 0x25C0, 0x4a, ORDINARY, normalChar }, { 0x21B1, 0xc2, RELATION, normalChar }, { 0x21B0, 0xc1, RELATION, normalChar }, + { 0x2260, 0x2260, ORDINARY, normalChar }, { 0, 0, ORDINARY, normalChar } }; @@ -706,6 +710,7 @@ { 0xEB0F, 0x3d, ORDINARY, normalChar }, { 0x21B7, 0x79, RELATION, normalChar }, { 0x21B6, 0x78, RELATION, normalChar }, + { 0x2260, 0x2260, ORDINARY, normalChar }, { 0, 0, ORDINARY, normalChar } }; --- branches/koffice/1.5/koffice/lib/kformula/kformuladefs.h #534997:534998 @@ -155,7 +155,7 @@ */ struct InternFontTable { short unicode; - uchar pos; + QChar pos; CharClass cl; CharStyle style; }; --- branches/koffice/1.5/koffice/lib/kformula/kformuladocument.cc #534997:534998 @@ -1110,7 +1110,7 @@ QStringList names = st.allNames(); //QStringList i18nNames; QValueList<QFont> fonts; - QMemArray<uchar> chars( names.count() ); + QMemArray<QChar> chars( names.count() ); int i = 0; for ( QStringList::Iterator it = names.begin(); --- branches/koffice/1.5/koffice/lib/kformula/symbolaction.cc #534997:534998 @@ -37,7 +37,7 @@ class SymbolComboItem : public QListBoxItem { public: - SymbolComboItem( const QString&, const QFont&, uchar, QComboBox* combo ); + SymbolComboItem( const QString&, const QFont&, QChar, QComboBox* combo ); virtual ~SymbolComboItem(); virtual int width( const QListBox* ) const; @@ -50,7 +50,7 @@ QComboBox *m_combo; QString m_name; QFont m_font; - uchar m_symbol; + QChar m_symbol; static int widest; }; @@ -58,7 +58,7 @@ int SymbolComboItem::widest = 0; SymbolComboItem::SymbolComboItem( const QString &name, const QFont &font, - uchar symbol, QComboBox *combo ) + QChar symbol, QComboBox *combo ) : QListBoxItem( combo->listBox() ), m_combo( combo ), m_name( name ), @@ -142,7 +142,7 @@ } void SymbolAction::setSymbols( const QStringList &names, const QValueList<QFont>& fonts, - const QMemArray<uchar>& chars ) + const QMemArray<QChar>& chars ) { m_fonts = fonts; m_chars = chars; --- branches/koffice/1.5/koffice/lib/kformula/symbolaction.h #534997:534998 @@ -38,12 +38,12 @@ const char* name = 0 ); int plug( QWidget*, int index = -1 ); - void setSymbols( const QStringList&, const QValueList<QFont>&, const QMemArray<uchar>& ); + void setSymbols( const QStringList&, const QValueList<QFont>&, const QMemArray<QChar>& ); void updateItems( int ); private: QValueList<QFont> m_fonts; - QMemArray<uchar> m_chars; + QMemArray<QChar> m_chars; }; KFORMULA_NAMESPACE_END --- branches/koffice/1.5/koffice/lib/kformula/symboltable.cc #534997:534998 @@ -146,7 +146,7 @@ } -uchar SymbolTable::character( QChar symbol, CharStyle style ) const +QChar SymbolTable::character( QChar symbol, CharStyle style ) const { return entry( symbol, style ).character(); } --- branches/koffice/1.5/koffice/lib/kformula/symboltable.h #534997:534998 @@ -46,18 +46,18 @@ /** * Defaults for all arguments are provided so it can be used in a QMap. */ - CharTableEntry( CharClass cl=ORDINARY, char font=0, uchar ch=0 ) + CharTableEntry( CharClass cl=ORDINARY, char font=0, QChar ch=0 ) : m_charClass( static_cast<char>( cl ) ), m_font( font ), m_character( ch ) {} char font() const { return m_font; } - uchar character() const { return m_character; } + QChar character() const { return m_character; } CharClass charClass() const { return static_cast<CharClass>( m_charClass ); } private: char m_charClass; char m_font; - uchar m_character; + QChar m_character; }; @@ -84,7 +84,7 @@ /** * symbol font char -> unicode mapping. */ - QMap<uchar, QChar> compatibility; + QMap<QChar, QChar> compatibility; /** * All greek letters that are known. @@ -119,7 +119,7 @@ const CharTableEntry& entry( QChar symbol, CharStyle style=normalChar ) const; QFont font( QChar symbol, CharStyle style=normalChar ) const; - uchar character( QChar symbol, CharStyle style=normalChar ) const; + QChar character( QChar symbol, CharStyle style=normalChar ) const; CharClass charClass( QChar symbol, CharStyle style=normalChar ) const; /**
You need to log in before you can comment on or make changes to this bug.