I wasn't sure whether to post this here or somewhere else. I asked hilariousandco who said it can be in Meta or Off-topic. Hope it stays here though. Here it goes.
Sometimes when I create threads, I like to write the content in Word, and then I copy/paste the text to Bitcointalk. I find the Word environment easier to work with. When a thread has plenty of bbcode entries such as bold, italicised, underlined, different font sizes, etc., it can become tiresome working with each line of text to make it look the way you want it to.
When preparing the 2nd post in
My Football Gambling System: A Betting Experiment, I needed to highlight each line individually and add bbcodes for
underlined, green/red text, and bold text. It was time-consuming and tiresome. I thought: There has to be an easier way to do this.
I tried with a few online tools that convert a Word doc/docx into bbcode, such as
https://any2bb.com/ or
http://www.ecardmax.com/hoteditor/. But that didn’t give me satisfactory results. I put the results of these two converters in the screenshot below one next to the other. Compare it with the
2nd post in my thread, and you will notice how messed up the formatting is.
After a lot of searching, I finally came across a bbcode extension for
Libre Office. I downloaded and installed Libre office, installed the extension and gave it a try. I finally got somewhere and was able to produce a decent copy of my Word document.
Below is a screenshot of how it looks when you convert a Word text to bbcode with Libre Office and the
bbkode extension. On the left side are the results of the conversion with Libre Office. On the right is a screenshot taken from the thread, which was edited line by line in Bitcointalk.
As you can see, they are almost identical. There seems to be a difference in the colour shades between the two screenshots. But honestly, I prefer the green colour on the left more than the original.
The resulting bbcode of the converted document is quite messy, but it works:
[B][SIZE=12pt]Paris FC[/SIZE][/B]
[U][SIZE=10pt]Round 1[/SIZE][/U][SIZE=10pt]
[/SIZE][SIZE=10pt]Chambly vs [/SIZE][COLOR=#00B050][SIZE=10pt]Paris FC [/SIZE][/COLOR][SIZE=10pt]0:3
[/SIZE][SIZE=10pt]Odds: 3.25
[/SIZE][SIZE=10pt]Stake: $3.00[/SIZE][SIZE=10pt]
[/SIZE][B][SIZE=10pt]Profit/Loss: +$9.75[/SIZE][/B][SIZE=10pt]
[/SIZE][SIZE=10pt]
[/SIZE][U][SIZE=10pt]Round 2[/SIZE][/U][SIZE=10pt]
[/SIZE][COLOR=#FF0000][SIZE=10pt]Paris FC [/SIZE][/COLOR][SIZE=10pt]vs Valenciennes 1:0
[/SIZE][SIZE=10pt]Odds: 3.10
[/SIZE][SIZE=10pt]Stake: $3.00[/SIZE][SIZE=10pt]
[/SIZE][B][SIZE=10pt]Profit/Loss: -$3.00[/SIZE][/B][SIZE=10pt]
[/SIZE][SIZE=10pt]
[/SIZE][U][SIZE=10pt]Round 3[/SIZE][/U][SIZE=10pt]
[/SIZE][SIZE=10pt]Amiens vs [/SIZE][COLOR=#00B050][SIZE=10pt]Paris FC [/SIZE][/COLOR][SIZE=10pt]1:2
[/SIZE][SIZE=10pt]Odds: 3.50
[/SIZE][SIZE=10pt]Stake: $6.00[/SIZE][SIZE=10pt]
[/SIZE][B][SIZE=10pt]Profit/Loss: +$21.00[/SIZE][/B][SIZE=10pt]
[/SIZE][SIZE=10pt]
[/SIZE][U][SIZE=10pt]Round 4[/SIZE][/U][SIZE=10pt]
[/SIZE][COLOR=#FF0000][SIZE=10pt]Paris FC [/SIZE][/COLOR][SIZE=10pt]vs Nancy 0:2
[/SIZE][SIZE=10pt]Odds: 2.80
[/SIZE][SIZE=10pt]Stake: $3.00[/SIZE][SIZE=10pt]
[/SIZE][B][SIZE=10pt]Profit/Loss: -$3.00[/SIZE][/B]
Here is how you can do it as well:
1. Download and install Libre Office from the official website:
https://www.libreoffice.org/2. Download and install the BBkode extension for Libre Office:
https://extensions.libreoffice.org/en/extensions/show/bbkode3. Edit your document in Libre Office or copy/paste the finished document from Word.
4. Highlight the text that you want to convert to bbcode.
5. In Libre Office, click on
Tools > Add-Ons > BBcode 6. A new window will appear with the text converted to bbcode. Click inside the box, hit CTRL+A to copy the content, and paste it into your topic/post on Bitcointalk. Play around with the “equalise font name” and “equalise font size” options to see the results.
This is not a perfect solution and can’t recreate everything. But it can help with the basics.
If someone knows a better way, please share it.
EDIT: FatFork found an excellent online converter that works with lists and tables as well. It's easy to use and produces great results.
The link to his post can be found here >
SCEditor