rename addlinks.go fixlinks.go

This commit is contained in:
chai2010 2016-01-05 16:25:39 +08:00
parent 9825a7cce5
commit 666f57bed5
2 changed files with 12 additions and 8 deletions

View File

@ -31,7 +31,7 @@ review:
go run zh2tw.go . .md$$ zh2tw go run zh2tw.go . .md$$ zh2tw
fixlink: fixlink:
go run addlinks.go . .md$$ go run fixlinks.go . .md$$
cover: cover:
composite cover_patch.png cover_bgd.png cover.jpg composite cover_patch.png cover_bgd.png cover.jpg

View File

@ -8,11 +8,11 @@
// 给特殊模式标定的单词增加链接. // 给特殊模式标定的单词增加链接.
// //
// Example: // Example:
// addlinks // fixlinks
// addlinks dir "\.go$" // fixlinks dir "\.go$"
// //
// Help: // Help:
// addlinks -h // fixlinks -h
// //
package main package main
@ -29,12 +29,12 @@ import (
const MaxFileSize = 8 << 20 // 8MB const MaxFileSize = 8 << 20 // 8MB
const usage = ` const usage = `
Usage: addlinks dir [nameFilter] Usage: fixlinks dir [nameFilter]
addlinks -h fixlinks -h
Example: Example:
addlinks fixlinks
addlinks dir "\.go$" fixlinks dir "\.go$"
Report bugs to <chaishushan{AT}gmail.com>. Report bugs to <chaishushan{AT}gmail.com>.
` `
@ -133,13 +133,17 @@ var _RegexpLinksTable = func() map[*regexp.Regexp]string {
var _LinkTable = map[string]string{ var _LinkTable = map[string]string{
// 人名 // 人名
"Alan Donovan": "https://github.com/adonovan",
"Brian Kernighan": "http://www.cs.princeton.edu/~bwk/",
"Alan A. A. Donovan": "https://github.com/adonovan", "Alan A. A. Donovan": "https://github.com/adonovan",
"Brian W. Kernighan": "http://www.cs.princeton.edu/~bwk/", "Brian W. Kernighan": "http://www.cs.princeton.edu/~bwk/",
"Robert Griesemer": "http://research.google.com/pubs/author96.html", "Robert Griesemer": "http://research.google.com/pubs/author96.html",
"Rob Pike": "http://genius.cat-v.org/rob-pike/", "Rob Pike": "http://genius.cat-v.org/rob-pike/",
"Ken Thompson": "http://genius.cat-v.org/ken-thompson/", "Ken Thompson": "http://genius.cat-v.org/ken-thompson/",
"Russ Cox": "http://research.swtch.com/",
"Niklaus Wirth": "https://en.wikipedia.org/wiki/Niklaus_Wirth", "Niklaus Wirth": "https://en.wikipedia.org/wiki/Niklaus_Wirth",
"Tony Hoare": "https://en.wikipedia.org/wiki/Tony_Hoare", "Tony Hoare": "https://en.wikipedia.org/wiki/Tony_Hoare",
"Fred Brooks": "http://www.cs.unc.edu/~brooks/",
// 图书 // 图书
"The C Programming Language": "http://s3-us-west-2.amazonaws.com/belllabs-microsite-dritchie/cbook/index.html", "The C Programming Language": "http://s3-us-west-2.amazonaws.com/belllabs-microsite-dritchie/cbook/index.html",