Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60387 - in trunk/tools/quickbook: . doc test
From: daniel_james_at_[hidden]
Date: 2010-03-09 15:58:02


Author: danieljames
Date: 2010-03-09 15:58:01 EST (Tue, 09 Mar 2010)
New Revision: 60387
URL: http://svn.boost.org/trac/boost/changeset/60387

Log:
32 bit unicode characters.
Text files modified:
   trunk/tools/quickbook/doc/quickbook.qbk | 1 +
   trunk/tools/quickbook/phrase.hpp | 8 ++++----
   trunk/tools/quickbook/test/unicode-escape.gold | 17 +++++++++++++++++
   trunk/tools/quickbook/test/unicode-escape.quickbook | 9 ++++++++-
   4 files changed, 30 insertions(+), 5 deletions(-)

Modified: trunk/tools/quickbook/doc/quickbook.qbk
==============================================================================
--- trunk/tools/quickbook/doc/quickbook.qbk (original)
+++ trunk/tools/quickbook/doc/quickbook.qbk 2010-03-09 15:58:01 EST (Tue, 09 Mar 2010)
@@ -635,6 +635,7 @@
 [section Unicode escape]
 
 You can enter any 16-bit unicode character by using `\u` followed by its 4 digit
+hexadecimal code, or a 32-bit character by using `\U` followed by an 8 digit
 hexadecimal code. eg.
 
 [pre'''

Modified: trunk/tools/quickbook/phrase.hpp
==============================================================================
--- trunk/tools/quickbook/phrase.hpp (original)
+++ trunk/tools/quickbook/phrase.hpp 2010-03-09 15:58:01 EST (Tue, 09 Mar 2010)
@@ -275,10 +275,10 @@
                         str_p("\\n") [actions.break_]
                     | "\\ " // ignore an escaped char
                     | '\\' >> punct_p [actions.raw_char]
- | "\\u">> repeat_p(4)
- [
- chset<>("0-9a-fA-F")
- ] [actions.escape_unicode]
+ | "\\u" >> repeat_p(4) [chset<>("0-9a-fA-F")]
+ [actions.escape_unicode]
+ | "\\U" >> repeat_p(8) [chset<>("0-9a-fA-F")]
+ [actions.escape_unicode]
                     | (
                             ("'''" >> !eol) [actions.escape_pre]
>> *(anychar_p - "'''") [actions.raw_char]

Modified: trunk/tools/quickbook/test/unicode-escape.gold
==============================================================================
--- trunk/tools/quickbook/test/unicode-escape.gold (original)
+++ trunk/tools/quickbook/test/unicode-escape.gold 2010-03-09 15:58:01 EST (Tue, 09 Mar 2010)
@@ -82,4 +82,21 @@
       &#x3A9;&#x3C9; Omega
     </listitem>
   </itemizedlist>
+ <para>
+ In the unlikely event that you've got a Mahjong font:
+ </para>
+ <itemizedlist>
+ <listitem>
+ &#x1F000; East Wind
+ </listitem>
+ <listitem>
+ &#x1F001; South Wind
+ </listitem>
+ <listitem>
+ &#x1F002; West Wind
+ </listitem>
+ <listitem>
+ &#x1F003; North Wind
+ </listitem>
+ </itemizedlist>
 </article>

Modified: trunk/tools/quickbook/test/unicode-escape.quickbook
==============================================================================
--- trunk/tools/quickbook/test/unicode-escape.quickbook (original)
+++ trunk/tools/quickbook/test/unicode-escape.quickbook 2010-03-09 15:58:01 EST (Tue, 09 Mar 2010)
@@ -27,4 +27,11 @@
 * \u03A6\u03C6 Phi
 * \u03A7\u03C7 Chi
 * \u03A8\u03C8 Psi
-* \u03A9\u03C9 Omega
\ No newline at end of file
+* \u03A9\u03C9 Omega
+
+In the unlikely event that you've got a Mahjong font:
+
+* \U0001F000 East Wind
+* \U0001F001 South Wind
+* \U0001F002 West Wind
+* \U0001F003 North Wind
\ No newline at end of file


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk