Christian Moe <m...@christianmoe.com> writes: > Eric Abrahamsen writes: > >> I just had to convert a 200+ page document to Org by hand: searching >> for italics worked, but not replace. > > Looks like pandoc is the way to go, I'll have to try it. > > Still, Search/Replace for italics in LibreOffice ought to work. Try this > recipe: > > 1) Edit -> Find / Replace -> More options: check the box for "regular > expressions". > 2) On "Search for", type "(.*)" (without the quotes, with the parens). > 3) With the cursor still on the "Search for" box, click on "Format" and > select "Italics". > 4) As a replacement, type: "/$1/" (for Org). > 5) Replace all.
I have done that successfully in the past! This time it wouldn't work. In the "other options" menu, after you choose the italics, there's a "including styles" checkbox. Libreoffice would only find the italics if that was checked, but if it was checked, clicking replace wouldn't work -- it would ignore the contents of the replace box, and instead change the style of the paragraph to "paragraph style". No matter what I poked, that's all it would do. I appreciate Libreoffice in a way, but it's mystery behavior like that that makes me get out of it as soon as humanly possible. It can be pandoc's job now!