FrontPage › FortuneMacro
Fortune 매크로 플러그인은 GNU fortune프로그램을 이용한 매크로입니다.
현재 유닉스만 지원하며 다음을 만족시켜야 합니다.
- fortune이 설치되어 있어야 한다. /usr/bin/fortune, /usr/share/games/fortune/
- 이게 맞지 않는다면 plugin/fortune.php에서 소스를 직접 조정해 주세요.
사용예 ¶
[[Fortune]] (default art)
What a bonanza! An unknown beginner to be directed by Lubitsch, in a script
by Wilder and Brackett, and to play with Paramount's two superstars, Gary
Cooper and Claudette Colbert, and to be beaten up by both of them!
-- David Niven, "Bring On the Empty Horses"
[[Fortune(love)]]
The seven year itch comes from fooling around during the fourth, fifth,
and sixth years.
[[Fortune(*)]]
To one large turkey add one gallon of vermouth and a demijohn of Angostura
bitters. Shake.
-- F. Scott Fitzgerald, recipe for turkey cocktail.
특징 ¶
Fortune 매크로는 fortune파일의 인덱스를 직접 읽어들여 사용하므로 FortuneCookies를 읽어들이는 RandomQuoteMacro보다 매우 빠릅니다.
Please see also