summaryrefslogtreecommitdiff
path: root/doc/ref/api-data.texi
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2014-09-12 17:00:59 +0200
committerMark H Weaver <mhw@netris.org>2014-09-29 21:54:14 -0400
commit3157d455039f137ca5dfa8b9fbc4a3404ce00606 (patch)
treeb3a094024d19ba2fc207c1554ac37af92c4dfdac /doc/ref/api-data.texi
parent7a71a45cfd6092402d540e9bc5d2432941a8a336 (diff)
downloadguile-3157d455039f137ca5dfa8b9fbc4a3404ce00606.tar.gz
Add (ice-9 unicode) module
* libguile/unicode.c: * libguile/unicode.h: * test-suite/tests/unicode.test: * module/ice-9/unicode.scm: New files. * module/Makefile.am: * libguile/Makefile.am: * test-suite/Makefile.am: * libguile/init.c: Wire new files into the build. * doc/ref/api-data.texi: Add docs.
Diffstat (limited to 'doc/ref/api-data.texi')
-rw-r--r--doc/ref/api-data.texi18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/ref/api-data.texi b/doc/ref/api-data.texi
index acdf9ca2b..c1dd7610f 100644
--- a/doc/ref/api-data.texi
+++ b/doc/ref/api-data.texi
@@ -2331,6 +2331,24 @@ lowercase, and titlecase forms respectively. The type
@code{scm_t_wchar} is a signed, 32-bit integer.
@end deftypefn
+Characters also have ``formal names'', which are defined by Unicode.
+These names can be accessed in Guile from the @code{(ice-9 unicode)}
+module:
+
+@example
+(use-modules (ice-9 unicode))
+@end example
+
+@deffn {Scheme Procedure} char->formal-name chr
+Return the formal all-upper-case Unicode name of @var{ch},
+as a string, or @code{#f} if the character has no name.
+@end deffn
+
+@deffn {Scheme Procedure} formal-name->char name
+Return the character whose formal all-upper-case Unicode name is
+@var{name}, or @code{#f} if no such character is known.
+@end deffn
+
@node Character Sets
@subsection Character Sets