Sebastian Menge wrote:
Find the list (95 entries) here: http://scratchpad.wikia.com/wiki/Errornames
Thanks for the good start. FYI there are a couple of lines with broken links: 157 160: 171: Do you know the "g/" and "g?" commands? Above gives: Vim Online Error Couldn't find tip 160. Are you sure it exists?
Im not sure howto proceed here. Should we a) find better titles before the import
Yes! In option (b), you have to change every '/' to '__OR__', so you may as well change the titles to something good now. Can you readily do something like this: Put each tip in a separate file on your disk. Name them tip0001, tip0002, etc. Put the list of 1500 tip titles in one file, one title per line. Then edit that file to clean up the titles. Then run a script to rename each tip to match the cleaned-up title.
or b) replace '/' by sth like '__OR__' and fix the whole title later?
Whatever works, but wouldn't this create a whole bunch of problems? I don't understand the internals of wikis but I think your suggestion would create 95 tips with URLs that will later need to be manually edited. Not so easy, and probably involves copying the content from the wiki to a new page, then deleting the old page (I guess).
BTW: For the import I will now use WikipediaFS.
Wow - amazing. How do you get the wiki format files from the VimTips web site? If you're going to do the work, I don't need this answered, but I'm thinking that you're going to need one of the scripts to convert the existing html to wiki format. I noticed that Charles Campbell's script does appropriate things with common html codes like nonbreaking space. Probably all that processing should be done before the files are uploaded? With your scheme, you're going to get 1500 tip files on your disk. It would be great if you could clean them as much as possible before uploading. It would be pretty easy to find all html markups and '&' codes when the files are still on your disk. Easy, but time consuming. Let us know if you want some help. John