I was really happy to find out about this plugin.
My main problem its not scan the words of an RTL languages.
I checked the source and the Hebrew letters show right and are defined
as Unicode.
Any idea ?
Currently this OpenOffice plugin doesn't support Unicode. This is a
feature I will be working on in the future.
-- Larry Gadea
Waiting eagerly :)
I expect that..:)
I want to use Google Desktop Search and your plugin. ;)
The string in the openoffice.org xml file is utf-8 encoded string.
However, variant type has only 2 choices - ansi or unicode. So, if we
just convert utf-8 into unicode then it will work. I pasted my test
implementation below. It seems to work for me with Korean. You can
download compiled binary for testing at
http://oooko.ncity.net/files/goooplugin.zip .
bool LarGDSPlugin::SendTextFileEvent(...)
{
...
if (SUCCEEDED(hr)) {
hr = spEvent->AddProperty(CComBSTR(L"format"),
CComVariant(ContentType.c_str()));
}
if (SUCCEEDED(hr)) {
// get exact buffer size
int n = MultiByteToWideChar(CP_UTF8, 0, Content.c_str(),
Content.size(), 0, 0);
LPOLESTR buffer = new OLECHAR[n];
//convert utf-8 to unicode
MultiByteToWideChar(CP_UTF8, 0, Content.c_str(), Content.size(),
buffer, n);
// assign content property
hr = spEvent->AddProperty(CComBSTR(L"content"),
CComVariant(buffer));
delete[] buffer;
}
...
Thanks for your great job, Larry :-)
Wow, thats excellent! I'll look into implementing that into the plugin.
-- Larry Gadea
Thanks :-) I hope more people can enjoy the plugin in their language
soon.
-Jeongkyu Kim
And I wait, where OO plugin can work with unicode.
WBR, Zebar