unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Mike Gran <spk121@yahoo.com>
To: Neil Jerram <neil@ossau.uklinux.net>
Cc: Guile Development <guile-devel@gnu.org>
Subject: Re: Minor queries about Unicode char docs
Date: Mon, 31 Aug 2009 18:40:29 -0700	[thread overview]
Message-ID: <1251769229.17414.5768.camel@localhost.localdomain> (raw)
In-Reply-To: <87ocpwuvui.fsf@arudy.ossau.uklinux.net>

On Mon, 2009-08-31 at 11:21 +0100, Neil Jerram wrote:
> I think there's a case here for making the docstring not identical to
> the corresponding manual text.  In the manual context, the section
> begins with talking about Unicode, so "Unicode" can be assumed for
> everything that follows.  But in the docstring, when someone types
> (help char<?), they'll just see
> 
>   Return `#t' iff the code point of `x' is less than the code
>   point of `y', else `#f'.
> 
> For this context I think it would be clearer to say
> 
>   Return `#t' iff the Unicode code point of `x' is less than the
>   code point of `y', else `#f'.

Sounds good.

> 
> +Case-insensitive character comparisons of characters use @emph{Unicode
> +case folding}.  In case folding comparisons, if a character is
> +lowercase and has an uppercase form that can be expressed as a single
> +character, it is converted to uppercase before comparison.  Unicode
> +case folding is language independent: it uses rules that are generally
> +true, but, it cannot cover all cases for all languages.
> 
> That's very clear, but what if a character doesn't have an uppercase
> form that can be expressed as a single character?  Does Guile then
> throw an exception, or does it perform the comparison with the
> lowercase code point?

I see what you mean.  The text should have something like...

"In case folding comparisons, if a character is lowercase and has an
uppercase form that can be expressed as a single character, its
uppercase form is used in the comparison.  All other characters are not
modified for the comparison.  Note that the German letter Sharp S
(Eszett) is not uppercased before the comparison since its plural has
two characters instead of one."

> 
> Thanks!
> 
>      Neil

Thanks,

Mike





  reply	other threads:[~2009-09-01  1:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-31 10:21 Minor queries about Unicode char docs Neil Jerram
2009-09-01  1:40 ` Mike Gran [this message]
2009-09-01  1:43   ` Mike Gran
2009-09-01 21:46   ` Neil Jerram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1251769229.17414.5768.camel@localhost.localdomain \
    --to=spk121@yahoo.com \
    --cc=guile-devel@gnu.org \
    --cc=neil@ossau.uklinux.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).