Lars Gullik Bjønnes wrote: > Btw. Does Qt even support utf-16? I thought they only supported ucs-2. > AFAICS there is not support for surrogate chars in Qt.
Yes : utf16 : http://doc.trolltech.com/4.2/qstring.html surrogate : Qt documentation talks about it for grapheme cluster (id est 2 characters resulting in one character on screen) : http://doc.trolltech.com/4.2/qtextlayout.html > > | Would you consider using Qstring for storing unicode strings ? Qstring > | is now part of QtCore a subset of Qt. > > I'd hope to not do that. > > Currently I am still exploring storing ucs-4 codepoints in the > std::vector that contains the characters of the document. Also quite > luckily codepoint conversion is quite fast. > I hope you consider that if you leave LyX to sail the seven seas in your yacht, another programmer will have more difficulty to pick up the project if it is LarsGullikUnicodeLibrary than if it is Qstring (documented, book about it, used in many projects), even if hacking LarsGullikUnicode Library is certainly funnier than reusing boring stuff out off the shelf. Cheers, Charles -- http://www.kde-france.org