Roman Numeral Converter
Convert between roman numerals and arabic integers
To download, visit the latest release at GitHub.
All further updates are handled automatically.
This is a fairly simple workflow for converting between roman numerals and arabic integers. This has been made before by Tyler Eich (Packal link), but hasn't been updated since 2015 and stopped working on my computer during an Alfred or macOS update (can't remember which). But I had an use case for this, and therefore I made a new version written in Python for this simple task.
In Alfred, type rn and enter either your roman numeral or arabic integer. Selected result is copied to your clipboard.
The expression is being evaluated as you type it. If the expression cannot be evaluated, for example if you are using illegal characters, user will be notified about that.
The workflow doesn't support incorrectly written roman numerals, i.e. "IC", and will also notify user about this:
The workflow makes use of the following code to focus on the implementation of the conversion between the number systems rather than focusing on a lot of Alfred Workflow related stuff.
OneUpdater to easily check for updates by vitorgalvao.
Alfred Workflow Feedback XML Generation to easily add items by lrrfantasy.
I really wanted the feature I describe above, so I went ahead and modified the code to achieve this behaviour. I don't have any experience with Perl, so I guess the stuff I have rewritten is pretty poorly written code, but for now it works. This is what is now shown when the workflow is called with an expression that can be evaluated:
And this is what it looks like when you insert an expression that can't be evaluated:
I have forked the original repo and made a pull request. For now, the modified workflow can be downloaded from here,