First problem:
Where should I store the files? I logged in, looked at the file list, and considered creating a new "Extensions" directory, but, I figured that was a bold step on my part. I have multiple files and directories that I can store there:

1. Extension building document
2. Macro directory and files
3. Description files (one for each language)

More stuff may be added to the extension later...

For now, I built the extension and placed it here:

http://www.pitonyak.org/OOoDocWikiCleanup_0_0_1.oxt

Eventually, I suppose that we should add the extension to the extension web site, but, I would like to make sure that it works first. I have no idea how to use the wiki macros. Although I could take the time to find out, well, I am lazy and I think that it means that I must do something with WIKI to make it work.

Open the extension manager and add the file shown above. Open a new word document, and you will have menu entries under Tools > Add-ons> OOoDocWikiCleanup. I created one entry for each subroutine that accepts an argument.

I created translations for English, German, Spanish, Russian, French, and Japanese. If you are willing to spend about 10 minutes translating text, well, here is what I have in English (I will not bother including my machine translated versions for each):

Post-process the output of MediaWiki Export Filter from Sun Wiki Publisher.
Code created by TJFrazier.
Extension created by Andrew Pitonyak.

I also have menu commands and some display information. This is what I have now for publisher and display name:

setPublisherName("en", "OOo Documentation Project", "http://wiki.services.openoffice.org/wiki/User:TJFrazier/WikiBasic";)
setDisplayName("en", "OOo Documentation WIKI Cleanup")

setPublisherName("fr", "Projet de documentation d'OOo", "http://wiki.services.openoffice.org/wiki/User:TJFrazier/WikiBasic";)
setDisplayName("fr", "Nettoyage de la documentation WIKI d'OOo")

setPublisherName("de", "OOo Unterlagen-Projekt", "http://wiki.services.openoffice.org/wiki/User:TJFrazier/WikiBasic";)
setDisplayName("de", "Reinigung der OOo Unterlagen-WIKI")

setPublisherName("es", "Proyecto de la documentación de OOo", "http://wiki.services.openoffice.org/wiki/User:TJFrazier/WikiBasic";)
setDisplayName("es", "Limpieza de la documentación WIKI de OOo")

setPublisherName("ru", "Проект документации OOo", "http://wiki.services.openoffice.org/wiki/User:TJFrazier/WikiBasic";)
setDisplayName("ru", "Ыборка документации WIKI OOo")

setPublisherName("ja", "OOoドキュメンテーションプロジェクト", "http://wiki.services.openoffice.org/wiki/User:TJFrazier/WikiBasic";)
setDisplayName("ja", "OOoドキュメンテーションWIKI一掃")

And the Menu commands:

beginMenuItems
beginCommand
beginTitles("Writer, WriterWeb")
setTitle("Tip Note Caution", "en")
setTitle("Attention de note de bout", "fr")
setTitle("Spitze-Anmerkungs-Vorsicht", "de")
setTitle("Precaución de la nota de la extremidad", "es")
setTitle("Предосторежение примечания подсказки", "ru")
setTitle("先端のノートの注意", "ja")
endTitles
setURL("Basic", "OOoDocWikiCleanup", "WikiCleanup", "TipNoteCautionCleanup")
setTarget() ' you may simply omit this line
endCommand
beginCommand
beginTitles("Writer, WriterWeb")
setTitle("Bold", "en")
setTitle("Bold", "fr")
setTitle("Fett", "de")
setTitle("En negrilla", "es")
setTitle("Смелейше", "ru")
setTitle("大胆", "ja")
endTitles
setURL("Basic", "OOoDocWikiCleanup", "WikiCleanup", "WikiBold")
setTarget() ' you may simply omit this line
endCommand
beginCommand
beginTitles("Writer, WriterWeb")
setTitle("Caution", "en")
setTitle("Attention", "fr")
setTitle("Vorsicht", "de")
setTitle("Precaución", "es")
setTitle("Предосторежение", "ru")
setTitle("注意", "ja")
endTitles
setURL("Basic", "OOoDocWikiCleanup", "WikiCleanup", "WikiCaution")
setTarget() ' you may simply omit this line
endCommand
beginCommand
beginTitles("Writer, WriterWeb")
setTitle("Italics", "en")
setTitle("Italiques", "fr")
setTitle("Kursivschriften", "de")
setTitle("It3alicos", "es")
setTitle("Курсивы", "ru")
setTitle("イタリック体", "ja")
endTitles
setURL("Basic", "OOoDocWikiCleanup", "WikiCleanup", "WikiItalics")
setTarget() ' you may simply omit this line
endCommand
beginCommand
beginTitles("Writer, WriterWeb")
setTitle("Note", "en")
setTitle("Note", "fr")
setTitle("Anmerkung", "de")
setTitle("Nota", "es")
setTitle("Примечание", "ru")
setTitle("ノート", "ja")
endTitles
setURL("Basic", "OOoDocWikiCleanup", "WikiCleanup", "WikiNote")
setTarget() ' you may simply omit this line
endCommand
beginCommand
beginTitles("Writer, WriterWeb")
setTitle("Now Wiki", "en")
setTitle("Maintenant", "fr")
setTitle("Jetzt", "de")
setTitle("Ahora", "es")
setTitle("Теперь", "ru")
setTitle("今度は", "ja")
endTitles
setURL("Basic", "OOoDocWikiCleanup", "WikiCleanup", "WikiNowiki")
setTarget() ' you may simply omit this line
endCommand
beginCommand
beginTitles("Writer, WriterWeb")
setTitle("Source", "en")
setTitle("Source", "fr")
setTitle("Quelle", "de")
setTitle("Fuente", "es")
setTitle("Источник", "ru")
setTitle("源", "ja")
endTitles
setURL("Basic", "OOoDocWikiCleanup", "WikiCleanup", "WikiSource")
setTarget() ' you may simply omit this line
endCommand
beginCommand
beginTitles("Writer, WriterWeb")
setTitle("Tip", "en")
setTitle("Bout", "fr")
setTitle("Spitze", "de")
setTitle("Extremidad", "es")
setTitle("Подсказка", "ru")
setTitle("先端", "ja")
endTitles
setURL("Basic", "OOoDocWikiCleanup", "WikiCleanup", "WikiTip")
setTarget() ' you may simply omit this line
endCommand
beginCommand
beginTitles("Writer, WriterWeb")
setTitle("Terminal Type", "en")
setTitle("Type terminal", "fr")
setTitle("Terminalart", "de")
setTitle("Tipo terminal", "es")
setTitle("Терминальный тип", "ru")
setTitle("ターミナルタイプ", "ja")
endTitles
setURL("Basic", "OOoDocWikiCleanup", "WikiCleanup", "WikiTT")
setTarget() ' you may simply omit this line
endCommand
endMenuItems



--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to