Open shawnmjones opened 3 years ago
Hi Shawn,
I somehow have missed the issue. I solved the unexpected newline, space character issue by adding a string strip.
In the case of other link parameters, there need separate implementations for each algorithm.
I'm keeping the issue open, until I'm able to complete for each algorithm.
One of the largest problems we have is parsing link-formatted TimeMaps. The RegexLinkParser gets farther than any other implementation I've seen, besides the solution I implemented in AIU, and even AIU has issues with the occasional TimeMap.
It parses a TimeMap into the appropriate relationships, but with the following unexpected behaviors:
strip
this off, but they will not expect thistitle
key in the resulting dict -- I realize that this is part of RFC5988, but link-parse does not produce empty entries foranchor
,rev
, or other link parameters listed in that RFC so this is confusingHere's what I did with RegexLinkParser:
timemap
Here's the code in ipython: