alown/manga-squirrel — Issue #16: [bug] URL-ifying with the .hack//&+]{[&{}& series
Author: alown
Created: 2011-11-02 22:39:44+00:00
State: open

As expected the amount of random punctuation in the .hack series titles was too much for the currently simply url'ify method.

For example:
.hack//4koma => hack_4koma
.hack//ALCOR => hack_alcor
.hack//G.U.+ => hack_g_u
.Hack//GnU => hack_gnu
.Hack//Legend of Twilight => hack_legend_of_twilight
.hack//Link => hack_link
.hack//XXXX => hack_xxxx

So, in conclusion:
- Periods at the start are dropped
- The '//' is replaced with a single '_'
- A trailing '.+' is removed (is all leading and trailing punctuation removed?)
- A middle period is replaced with a '_'
etc.

As such, a few changes can be made to the urlify method, but due to the irregularity, it might be easiest to have a new configuration file option ('urlform') which allows you to manually override the urlify output with a custom form for ones link '.hack//G.U.+' which are ridiculously punctuated.