內容簡介
Lexicographer 可以使用您選擇的關鍵字,在博客中創建一個字母索引。這個索引可以包含在任何頁面、文章或文本小工具中。以下是這樣一個索引的示例。
我寫這個外掛是因為我喜歡在博客上創造新詞並將其定義,從而在幾篇文章中創建一個詞典。不僅沒有所有詞彙的列表,Google也無法找到單詞,因為它無法處理我加在其中的標記,就像字典一樣。Leccicographer 解決了這兩個問題。
Lexicographer 的索引分成幾個部分,根據術語的首字母。這樣的部分目前是為拉丁字母(A-Z,帶有變音符號的字母與無變音符號的版本分組)、印地語字符和泰盧固字符創建的。所有的阿拉伯數字(0-9)都創建一個單獨的“#”部分。所有其他首字母都進入特殊部分,標題為“*”。歡迎為其他書寫系統添加支持的貢獻!
使用方法
Lexicographer 不會在 WordPress 的管理介面中添加任何新元素。相反,您可以按照以下方式使用它:
在您定義術語的文章和頁面中,使用類別為lemma 的 Span ,例如:<span class="lemma">ˌsu·per·ca·liˌfra·gi·lis·ticˌex·pi·a·liˈdo·cious</span>(當然標記是可選的)。
在您想讓索引插入的頁面(或文章、文本小工具)中,貼上以下簡碼:
[lexicographer_index]
在這個位置,索引將被插入。它將包含已定義的術語,並連接至其定義。
簡碼屬性:
anchorlinks [true/false, default: true]:如果為 true,將創建對術語的
錨定鏈接。如果為 false,將創建指向包含該術語的文章的鏈接。
headerlevel [int, default: 3]:在索引中使用哪個標題級別來標示首字母
的部分。
支援
如果您有問題或建議,請在 poststelle ät texttheater döt net 聯繫我。
外掛標籤
開發者團隊
原文外掛簡介
Lexicographer creates an alphabetical index of your blog, using keywords you choose. The index can be included in any page, post or text widget. Here’s an example of such an index.
I wrote this plugin because I like to invent words and define them on my blog, thereby creating a dictionary distributed over several posts. Not only was there no list of all the words available, it was also that Google wouldn’t find the words because it couldn’t deal with the stress marks I put in there, dictionary-style. Lexicographer solves both of these problems.
Lexicographer’s index is divided into sections, according to the initial characters of terms. Such sections are currently created for the Latin letters (A-Z, letters with diacritics are grouped with the non-diacriticized versions), Hindi characters, and Telugu characters. A single section “#” is created for all Arabic digits (0-9). All other initial characters go into a special section titled “*”. Contributions to add support for other writing systems are welcome!
Usage
Lexicographer does not add any new elements to the WordPress admin interface. Instead, you use it as follows:
In the posts and pages where you define terms, use “Edit as HTML” and put the words and terms to index in spans of class lemma, like so: ˌsu·per·ca·liˌfra·gi·lis·ticˌex·pi·a·liˈdo·cious (the stress and hyphenation marks are of course optional).
In the page (or post, or text widget) where you’d like the index to live, paste the following shortcode:
[lexicographer_index]
At this place, the index will be inserted. It will consist of the defined terms, linking to the definitions.
Shortcode attributes:
anchorlinks [true/false, default: true]: If true, anchored links to the terms
will be created. If false, links to the post(s) containing the term will be
created.
headerlevel [int, default: 3]: Which heading level to use for the capical
characters in the index.
Support
If you have questions or suggestions, contact me at poststelle ät texttheater döt net.
