The most geekish discovery EVER :-)

There is a not-very-documented feature in MacOS 10.9 that I just stumbled upon.

If you save a text file in SMILES format, Mac will show the correct image, scalable, in preview.
SMILES screen shot!
This is a very simple text file. It’s the shorthand for the chemical structure of DDT, and its sole content is


which is the Simplified Molecular-Input Line Entry System, or SMILES, abbreviation.

It doesn’t make that the icon of the file, just next to it you can see the BBEdit document for a really large molecule (which also renders) that I copied from the Wikipedia entry on SMILES.

Now, I’m nowhere near geek enough to dig into the UNIX guts and find the function call. But it’s pretty cool.


Converting complex docs to decent HTML ain’t easy.

It’s well known (to anybody who has tried it) that Microsoft Word’s “save as HTML” or “save as web page” command generates a crap-ton of stuff that is intended to make the file act as a stand-alone, editable document that is identical when re-opened. And converting these to decent HTML is an odious chore, not easily done.
Especially if there are images.I have a huge amount of Word files, with Chemdraw images in them, that I’m trying to convert to web pages.
One link I found, at this blog, suggested that viewing the document in Gmail’s previewer might help. Now, since that blog post is over three years old, I am not surprised that things have changed.
In fact, the HTML of a Google Doc is just as horrible.

Saving Word to Rich Text isn’t much better. You lose all the images.

One of the first tasks I’m going to learn is a workflow to convert all my class worksheets to web pages. This is a pain in the patoot, but it’s gotta happen somehow, sometime. I’d like to be able to keep the images, at least some of them. Others may get replaced with interactive bits later, but just getting the basic stuff into HTML is Job 1.

A program called RapidWeaver allows simple editing and I can drag images into it from Word. But the code is just as icky.
There are word to RTF to HTML converters out there, and they sacrifice images. I have a few programs like TextWrangler too, which can do some.

But it’s going to take a bit of work just to figure out a decent flow.

Why can’t those dips at MS just save your document with a style sheet? Grr….
Continue reading

Achievement Unlocked!

Here’s the big news I hinted at yesterday! I’m officially approved for my first sabbatical ever. I’ll be working on converting my class notes and worksheets into a coherent whole, adding in reflection and metacognitive questions,  then making them into an e-book with interactive figures and (I hope) even machine-checkable exercises.

To do this I’ll be doing a lot of learning of software tools and web tools, probably integrating ChemDoodle into HTML and maybe iBooks Author. You can read all about my learning curve – and see betas of some of the tech stuff – by following posts tagged Sabbatical.

I’ll have to learn how to take my rudimentary HTML skills from “yay, I can make a link tag” to quite a bit higher. Fortunately my employer has a site license to so I can get plenty of tutorials from there.