bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gettext] [PATCH 2/3] Document python-brace-for mat.


From: Daiki Ueno
Subject: [bug-gettext] [PATCH 2/3] Document python-brace-for mat.
Date: Fri, 14 Dec 2012 17:47:43 +0900

---
 gettext-tools/doc/gettext.texi | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gettext-tools/doc/gettext.texi b/gettext-tools/doc/gettext.texi
index 9abfe1f..fe9fac8 100644
--- a/gettext-tools/doc/gettext.texi
+++ b/gettext-tools/doc/gettext.texi
@@ -1503,6 +1503,12 @@ Likewise for Shell, see @ref{sh-format}.
 @kwindex address@hidden flag}
 Likewise for Python, see @ref{python-format}.
 
address@hidden python-brace-format
address@hidden address@hidden flag}
address@hidden no-python-brace-format
address@hidden address@hidden flag}
+Likewise for Python brace, see @ref{python-format}.
+
 @item lisp-format
 @kwindex address@hidden flag}
 @itemx no-lisp-format
@@ -9035,6 +9041,11 @@ a variable reference is ignored.
 @node python-format, lisp-format, sh-format, Translators for other Languages
 @subsection Python Format Strings
 
+There are two kinds format strings in Python: those acceptable to the
+Python built-in @code{%} operator, labelled as @samp{python-format},
+and those acceptable to the @code{string.format} function,
+labelled as @samp{python-brace-format}.
+
 Python format strings are described in
 @w{Python Library reference} /
 @w{2. Built-in Types, Exceptions and Functions} /
@@ -9043,6 +9054,16 @@ Python format strings are described in
 @w{2.2.6.2. String Formatting Operations}.
 @uref{http://www.python.org/doc/2.2.1/lib/typesseq-strings.html}.
 
+Python brace format strings are described in
address@hidden Library reference} /
address@hidden Text Processing Services} /
address@hidden string — Common string operations} /
address@hidden String Formatting}.
+In brief, Python brace format uses placeholders put between
+braces (@address@hidden and @address@hidden).  The placeholder must have the 
syntax
+of simple identifiers.
address@hidden://docs.python.org/3/library/string.html#string-formatting}
+
 @node lisp-format, elisp-format, python-format, Translators for other Languages
 @subsection Lisp Format Strings
 
-- 
1.7.11.7




reply via email to

[Prev in Thread] Current Thread [Next in Thread]