烟锁池塘柳 -- 下联大搜索

前一段在mitbbs的古典文学版,看到关于“烟锁池塘柳”下联的讨论。这也算是著名“绝对”之一了,机关无非是上联用“金木水火土”五行入偏旁,一般的思路自然也是以五行对下联。简单google一下,多少年来倒也有颇多下联,既有“灯垂锦槛波”、“烽销极塞鸿”的所谓正对,也有“炮镇海城楼”、“板城烧锅酒”之类的谐对,呵呵。

看到古典文学版的Friends提出干脆把所有“金木水火土”作偏旁的汉字都列出来,然后计算机搜索下联。我一时兴起,正好拿这个练手,学习Drupal的Form API,编了个模块,鉴于五行偏旁的汉字排列组合太多,无法穷举,就只随机抽取结果。

现在只有我随机抽取的45个字,很多常用字还没有加入,所以可能还搜不到什么有意义的结果。不过我开放了添加字库的权限,每个人都可以添加五行汉字;如果有平仄偏旁错误的,还可以随时修正。不过只有我才能删除字库。

呵呵,有些煞风景,大家看着玩吧。。。:)

烟锁池塘柳 - 下联大搜索

计划:
  1. 以后有时间再加上推荐+投票功能,大家可以推荐搜索出来的结果,然后投票看看到底哪个下联得票最多,哈哈。
  2. 加入字数统计,显示金木水火土/平仄各有多少字


已知bug

    [*]字库列表排序功能不工作。 已修正(5/29/2007)

Comments

1 - Joetsuihk (未验证)
有趣有趣!
字都用了cck 嗎?
2 - 大米
没有用CCK,就是用Form API自己做的一个form提交,写入数据库。

发表新评论

此内容将保密,不会被其他人看见。
  • 允许的 HTML 标签: <blockquote> <div> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • You can use BBCode tags in the text, URLs will automatically be converted to links.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Every instance of "<!--tableofcontents-->" in the input text will be replaced with a collapsible mediawiki-style table of contents. Accepts options for title, list style, minimum heading level, and maximum heading level as follows: <!--tableofcontents list: ol; title: Table of Contents; minlevel: 1; maxlevel: 3;-->. All arguments are optional and defaults are shown.
  • Every instance heading tags will be modified to include an id attribute for anchor linking.
  • Images can be added to this post.
  • 网页地址和电子邮件地址将会被自动转换为链接。

更多格式化选项信息