summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2016-02-13 22:30:06 +0900
committershimizukawa <shimizukawa@gmail.com>2016-02-14 19:28:58 +0900
commite6a5a3a92e938fcd75866b4227db9e0524d58f7c (patch)
tree193a7211fd4ce3a042e087f8c9b836de040f5bbe /doc
parent358a13ee72a538eed1c1d8b5001cf68760934e22 (diff)
downloadsphinx-git-e6a5a3a92e938fcd75866b4227db9e0524d58f7c.tar.gz
classifier of glossary terms can be used for index entries grouping key. The classifier also be used for translation. See also :ref:`glossary-directive`.
Diffstat (limited to 'doc')
-rw-r--r--doc/markup/para.rst20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/markup/para.rst b/doc/markup/para.rst
index cc03a9f13..ba2cc52f5 100644
--- a/doc/markup/para.rst
+++ b/doc/markup/para.rst
@@ -183,6 +183,24 @@ Glossary
(When the glossary is sorted, the first term determines the sort order.)
+ If you want to specify "grouping key" for general index entries, you can put a "key"
+ as "term : key". For example::
+
+ .. glossary::
+
+ term 1 : A
+ term 2 : B
+ Definition of both terms.
+
+ Note that "key" is used for grouping key as is.
+ The "key" isn't normalized; key "A" and "a" become different groups.
+ The whole characters in "key" is used instead of a first character; it is used for
+ "Combining Character Sequence" and "Surrogate Pairs" grouping key.
+
+ In i18n situation, you can specify "localized term : key" even if original text only
+ have "term" part. In this case, translated "localized term" will be categorized in
+ "key" group.
+
.. versionadded:: 0.6
You can now give the glossary directive a ``:sorted:`` flag that will
automatically sort the entries alphabetically.
@@ -190,6 +208,8 @@ Glossary
.. versionchanged:: 1.1
Now supports multiple terms and inline markup in terms.
+ .. versionchanged:: 1.4
+ Index key for glossary term should be considered *experimental*.
Grammar production displays
---------------------------