OpenOffice.org Forum :: Request for a macro: add words to spell checker dictionary

43 views
Skip to first unread message

Hans List

unread,
Jan 11, 2014, 2:01:43 AM1/11/14
to CafeTran Google Group

Selcuk Akyuz

unread,
Jan 11, 2014, 6:35:20 PM1/11/14
to cafetra...@googlegroups.com
On Saturday, January 11, 2014 9:01:43 AM UTC+2, Hans list wrote:

http://www.oooforum.org/forum/viewtopic.phtml?t=153542


Thanks for the link Hans. I added this macro in LibreOffice:

------------------------------------
REM  *****  BASIC  *****

Sub Main

End Sub

Sub add2dic

oDok = StarDesktop.getCurrentComponent()
oViewCursor = oDok.getCurrentController().getViewCursor()
oCur = oViewCursor.getText().createTextCursorByRange(oViewCursor)
if oCur.IsCollapsed then
   if NOT oCur.isStartOfWord() then
      oCur.gotoStartofWord(FALSE)
   endif
   oCur.gotoEndofWord(TRUE)
   sWort = oCur.getString
else
   sWort = oCur.getString
end if
if (Len(sWort) = 0) or (inStr(sWort, " ") > 0) then
   exit sub
end if
oWBListe = createUnoService ("com.sun.star.linguistic2.DictionaryList")
oWB = oWBListe.getDictionaryByName("standard.dic")
oWB.add(sWort, FALSE, "")
End Sub
------------------------------------

But nothing happens when I run this macro. A file should be created I guess, but where?


I use Zemberek in LibreOffice, perhaps that is the problem.

Most Windows users prefer Microsoft Office speller. Is it planned for CT in any of the future versions?

Selçuk


Selcuk Akyuz

unread,
Jan 11, 2014, 8:57:48 PM1/11/14
to cafetra...@googlegroups.com
On Sunday, January 12, 2014 1:35:20 AM UTC+2, Selcuk Akyuz wrote:
Most Windows users prefer Microsoft Office speller. Is it planned for CT in any of the future versions?

Selçuk


Other Java based programs - WordFast, OmegaT, SwordFish and Heartsome, does any of them support MS Office spell checker?

Selçuk
 

Martin Brüggemeier

unread,
Jan 11, 2014, 9:48:37 PM1/11/14
to cafetra...@googlegroups.com
Am 12.01.2014 02:57, schrieb Selcuk Akyuz:

>
> Other Java based programs - WordFast, OmegaT, SwordFish and Heartsome,
> does any of them support MS Office spell checker?
>
Wordfast and OmegaT don't (I don't know about the other two).

Cheers,
Martin


--
Martin Br�ggemeier
Diplom-�bersetzer/Translator (EN <> DE, ES > DE)
Josefstr. 27, D-48683 Ahaus
Tel.: +49 (0) 2561 7559073
Fax: +49 (0) 2561 7559074
Mobil: +49 (0) 1578 7559075

Hans list

unread,
Jan 12, 2014, 3:20:59 AM1/12/14
to cafetra...@googlegroups.com
I had one of the versions of the macro versions working at that time. You'll have to fiddle around, like I had ;).

About support for Word: very unlikely, since that would break the cross-platform concept.

You could team up with some colleagues and let someone compile your own Turkish dictionary for Hunspell. There is a guy at Curacao that offers this as a service. Shouldn't be that expensive and perhaps you can sell it.

Hans list

unread,
Jan 12, 2014, 4:52:51 AM1/12/14
to cafetra...@googlegroups.com

Creating a hunspell dictionary for use as spellcheck in Open Office: http://www.suares.com/index.php?page_id=1&news_id=233

Michael is doing this for UK English, since he couldn't find a decent speller.

Well, at least: I've advised him to do so ;). He doesn't always follow my suggestions, much like my girlfriend.

Reply all
Reply to author
Forward
0 new messages