Skip to content

Instantly share code, notes, and snippets.

Avatar

Júlio Reis Tintazul

View GitHub Profile
@Tintazul
Tintazul / StraightQuotes2CurlyQuotes.bas
Last active Dec 19, 2019 — forked from dajare/StraightQuotes2CurlyQuotes.bas
LibreOffice Macro: straight single and double quotes to curly ones
View StraightQuotes2CurlyQuotes.bas
sub StraightQuotes2CurlyQuotes
' Kudos to David for main code: https://gist.github.com/dajare/3924560
' Kudos to Villeroy for simpler, better find patterns:
' https://forum.openoffice.org/en/forum/viewtopic.php?f=30&t=39902
' Kudos to Kaloian Droganov for how to make the macro atomic:
' http://stackoverflow.com/questions/853372/how-to-make-a-macro-atomic
rem ----------------------------------------------------------------------
dim document as object
dim dispatcher as object
dim undo as object