To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=58767





------- Additional comments from [EMAIL PROTECTED] Thu Jul  6 01:02:18 -0700 
2006 -------
The problem actually is that the entries in the dictionary are already converted
to UTF-8 while the verrsion string of the dictionary says ("WBSWG2") which means
it states to be a thread encoded positive dictionary (as it was still used in SO
5.x).
Since SO6 that version string should have been "WBSWG6" which indicates an UTF-8
encoded dictionary and thus does not used thread encoding anymore when reading
or writing the dictionary.

The problem could probably solved by just editing that version string in an
(hex)editor.
But to be sure I wrote a conversion macro that reads the entries and writes new
dictionaries. Be sure to call that macro from an environment with UTF-8 
encoding!
And just in case make backups from the original dictionaries before.

Please change the "aNewDicDirURL" in the macro to point to a suitable
output directory.
=================================

Sub Main

xDicList = createUnoService("com.sun.star.linguistic2.DictionaryList")
aDics = xDicList.getDictionaries()
nDics = ubound( aDics ) + 1

aNewDicDirURL = "file:///c:/NewDics"

for i = 0 to nDics - 1
        xDic = aDics(i)
        aDicName = xDic.getName()
        if aDicName <> "IgnoreAllList" then
                aDicLocale = xDic.getLocale()
                eDicType = xDic.getDictionaryType
                aEntries = xDic.getEntries()
                nEntries = xDic.getCount()
                
                aURL = aNewDicDirURL + "/" + aDicName
                xNewDic = xDicList.createDictionary( aDicName, aDicLocale, 
eDicType, aURL )
                for k = 0 to nEntries - 1
                        aEntry = aEntries(k)
                        xEntry = xDic.getEntry( aEntry.getDictionaryWord() )
                        xNewDic.addEntry( xEntry )
                next k
                xNewDic.storeToURL( aURL, DimArray() )   
        endif
next i

End Sub

=================================

When the macro has successfully run and the you have exited the running Office
you just need to copy the new converted dictionary to their respective locations
(either user/wordbook or the respective subdirectory in share/wordbook).
After that things should be fine with all locale settings.

Tl->Ms2: Please check. What still makes me wonder is that the dictionary
versions that we used were also "WBSWG2" but we did not encounter the problem...

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to