the official website of Kryptech a.k.a. Chris M. Sissons
Welcome to kryptech.name

Hey, thanks for dropping by! The point of this website is to share news, photos, artwork, writings, etc with anyone out there who may like that sort of material. I've posted stuff here that is interesting to me and if it is interesting to you too, then this site has served its purpose. Feel free to comment on anything that has the little icon beside it.

Have fun!
Chris Sissons



 
News - y2010m07d15 @ 8:56:38 PM

Convert OpenOffice.org Writer Rich Text to BB Code Comment on this (0 so far)

I'm part of a little writing group forum. It's been a good experience to push myself to put down my ideas and also receive valuable feedback from other (more skilled) writers. I have so many ideas but I don't like to start writing something unless I'm committeed to getting it done, so this group has been a good challenge for me.

Anyway, I usually write in OpenOffice.org Writer and then share my piece as a PDF. But this session we're sharing on a forum. So if I copied and pasted my italics and any other formatting are lost. I looked for a Firefox add-on or Greasemonkey script to convert rich text to forum BB code but no dice. Sure, one could just write the [i] [/i] tags around italic text but that wouldn't require any slick conversion and thus wouldn't garner any style points.

Just now I discovered a way to use Writer's Find & Replace dialog with regular expressions to grab all italic text and wrap it in the BB tags. Like so:

  • In the Find & Replace dialog, click More Options and check Regular expressions.
  • Click Format, and select 'Italic' typeface under the Font tab. Click OK.
  • In Search for enter .+ (find one or more characters).
  • In Replace with enter [i]$0[/i] (wrap found string in tags).
  • Click Replace All to make the changes. Note that the italicized text will still be in italics.

Sweet! RegExp ftw!

Past News

Expand / Shrink

 
Last Updated

There are 0 new comment(s) since you were last here at 1:51:54 AM on y2010m07d30.

Photos: y2008m11d09 - Isaac pwning Easter in a game of Connect 4.Or could it be the other way around... (more)
Artwork: y2009m03d27 - I'm currently replaying Half-Life 2 so I'm into the whole Freeman thing. Yesterday... (more)
Writings: y2007m02d14 - Right Hand of Offense
Rants: y2008m08d07 - The Fire Doesn't Care If You Sort First
Links: y2009m06d13 - My Facebook page
©   Website development by Chris M. Sissons

 
etc
graphics
music
text
progs