Re: (no subject)

"Mark Davis" <[email protected]>
Newsgroups gmane.comp.lib.icu.general
Message-ID <006f01c35059$b7153e40$87763009@DAVIS1>
In this, we simply provide the properties given by the Unicode
consortium. In general, it is difficult to absolutely categorize
characters as being 'opening' or 'closing', since it varies by
language.

Perhaps you can supply more information about the task that you need
this for; that might help people on this list to see if they can offer
any help.

Mark

P.S. Moved this to the general list, since it is not ICU4C-specific.
__________________________________
http://www.macchiato.com
►  “Eppur si muove” ◄

----- Original Message ----- 
From: "Elisha Berns" <[email protected]>
To: <[email protected]>
Sent: Monday, July 21, 2003 20:30
Subject: (no subject)


> Hi,
>
> I have a few questions about the properties and categories of some
> punctuation characters.
>
> Basically my question is what is the best way to tell if quotation
marks
> and parentheses (plus the other bracketing characters such as '[' or
'{'
> are opening or closing punctuation.  I assume you would use a
> combination of properties and categories; however, there doesn't
seem to
> be a clear way to do it:
>
> For one,the property set Bidi_Mirrored includes pairs of parentheses
> that have left and right glyphs because their meaning changes
depending
> on the direction of the text.  However, Bidi_Mirrored does not
include
> quotation marks which have pairs of left and right glyphs, even
though
> apparently, the meaning of quotation marks changes depending on the
> direction of the text (whether it is an opening or closing quotation
> mark), similar to Bidi_Mirrored.
>
> On the other hand Quotation_Mark is a property set exclusively for
all
> the various types of quotation marks.  But to discern whether it is
an
> opening or closing quotation mark, you would need to check the
> categories of Open_Punctuation and Close_Punctuation???
>
> But Open_Punctation and Close_Punctuation only include a basic
quotation
> mark, U0022, and not the ones that are "Bidi_Mirrored".  And the
> categories Intial_Punctuation and Final_Punctuation only include
U00AB
> and U00BB which are left and right facing quotation marks, but not
all
> the variants in the Quotation_Mark property set.
>
> So it really isn't clear how to use ICU to discern between opening
and
> closing parens and quotation marks.
>
> Thanks for any replies,
>
> Yours,
>
> Elisha Berns
> [email protected]
> tel. (310) 556 - 8332
> fax (310) 556 - 2839
>
>
> _______________________________________________
> [email protected] - icu4c-support mailing list
> To Un/Subscribe:
>
http://oss.software.ibm.com/developerworks/oss/mailman/listinfo/icu4c-support
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.