Generate CUE file from tracklist?

I have also done this:
/t/10946/1

But it only works for timestamped tracklists
like:
[00:00] Artist 1 - Title 1
[04:30] Artist 2 - Title 2
[08:45] Artist 3 - Title 3
...

It does not work perfectly. It does not work when there are hours in the timestamp. And it does not write the correct trackindexes. You have to change them afterward.