诗酷 shi.cool
A free site for reading classical Chinese poetry, with 53,000 poems, search by a poet's courtesy names, annotations for 3,000 classics, and maps of poets' lives on historical base maps.
- Go
- CBDB
- full-text search
- Leaflet
- MBTiles
- MongoDB
诗酷 has 53,057 poems by 4,459 poets, from before the Qin to the Qing. The corpus comes from Michael Liao’s open-source 中华诗词 project, which keeps each poem in a plain text file. Everything is free to read, with no login.
- Search by any name a poet went by. Readers search for 东坡, 青莲居士 or 杜工部, not 苏轼, 李白 or 杜甫. The site knows 7,455 courtesy names, sobriquets and posthumous titles for 1,829 poets, from Harvard’s CBDB, including forms like 白乐天 and 欧阳永叔. Results show the matching line with the matched characters highlighted, and Traditional-character input is converted.
- Annotations. The 3,000 best-known poems have a modern translation, notes, commentary and pinyin.
- Poets’ journeys. The 行迹图 draws the lives of 828 poets: birthplace, each posting in date order, then burial place. Each one is drawn on a historical map of their own period, from Academia Sinica’s CCTS, so 陆游 appears on a Southern Song map, not a Northern Song one.
- Reading. Font size, vertical text, a poem picture to save or share, and previous/next within a poet’s works.
The site was a Spring Boot app. It now runs as a single Go program: it starts in about 4 seconds, uses about 140 MB of memory, and serves the same URLs, pages and IDs as before.
Posts: the search, the map tiles, moving from Java to Go.
詩酷:一個讀古詩詞的網站
詩酷收錄 53,057 首詩詞、4,459 位詩人,上起先秦,下至清代。詩詞文本來自廖雪峰的開源專案中华诗词,每首詩一個純文字檔。全站免費閱讀,不必登入。
- 用字、號、諡號找詩人:讀者搜的是「東坡」「青蓮居士」「杜工部」,而不是蘇軾、李白、杜甫。網站收錄了哈佛 CBDB 中 1,829 位詩人的 7,455 個字、號、諡號,也認得「白樂天」「歐陽永叔」這類姓加字號的稱呼。搜尋結果會顯示命中的詩句並標出命中的字,輸入繁體也能搜到。
- 注釋:最常讀的 3,000 首附有譯文、注釋、賞析和拼音。
- 詩人行跡:行跡圖把 828 位詩人的一生畫成路線:籍貫、按年份排列的歷任官職所在地、葬地。每人都畫在自己所處年代的歷史地圖上,底圖來自中研院的 CCTS,所以陸游出現在南宋地圖上,而不是北宋地圖上。
- 閱讀:可調字號、直排,可下載或分享詩畫,可在同一位詩人的作品間翻上一首、下一首。
網站原本是 Spring Boot 程式,現在是一個 Go 程式:啟動約 4 秒,佔用約 140 MB 記憶體,網址、頁面和編號與原來完全一致。
相關文章:搜尋、地圖圖磚、從 Java 搬到 Go。
Comments