Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2015-07

Parsers and Unicode

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

When writing something like a parser, does FPC have anything that exposes the properties of each Unicode codepoint?

I'm thinking in particular of Unicode properties like BidiMirroring, which Perl6 uses to define bracketing characters.
ftp://ftp.unicode.org/Public/UNIDATA/BidiMirroring.txt

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Michael Van Canneyt
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 6 lines
When writing something like a parser, does FPC have anything that exposes the properties of each Unicode codepoint? I'm thinking in particular of Unicode properties like BidiMirroring, which Perl6 uses to define bracketing characters. ftp://ftp.unicode.org/Public/UNIDATA/BidiMirroring.txt

Yes it does. You can use the character or unicodedata units. But this is only available in trunk, and the upcoming 3.0 release.

Michael.

Reply by email

Mark Morgan Lloyd
to Michael Van Canneyt
Michael Van Canneyt wrote 11 lines
On Fri, 24 Jul 2015, Mark Morgan Lloyd wrote: > When writing something like a parser, does FPC have anything that > exposes the properties of each Unicode codepoint? > > I'm thinking in particular of Unicode properties like BidiMirroring, > which Perl6 uses to define bracketing characters. > ftp://ftp.unicode.org/Public/UNIDATA/BidiMirroring.txt Yes it does. You can use the character or unicodedata units. But this is only available in trunk, and the upcoming 3.0 release.

Thanks for that, and thanks also to whoever did the hard work :-)

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Michael Van Canneyt
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 14 lines
Michael Van Canneyt wrote: > On Fri, 24 Jul 2015, Mark Morgan Lloyd wrote: > >> When writing something like a parser, does FPC have anything that exposes >> the properties of each Unicode codepoint? >> >> I'm thinking in particular of Unicode properties like BidiMirroring, which >> Perl6 uses to define bracketing characters. >> ftp://ftp.unicode.org/Public/UNIDATA/BidiMirroring.txt > > Yes it does. You can use the character or unicodedata units. But this is > only available in trunk, and the upcoming 3.0 release. Thanks for that, and thanks also to whoever did the hard work :-)

That would be Inoussa Ouedraogo :)
(hope I spelled it correctly)

Michael.

Reply by email

Inoussa OUEDRAOGO
to Michael Van Canneyt: Yes it does. You can use the character or unicodedata units. But this is only available…

2015-07-25 9:26 GMT+00:00 Michael Van Canneyt :

Show quoted text 15 lines
On Fri, 24 Jul 2015, Mark Morgan Lloyd wrote: When writing something like a parser, does FPC have anything that exposes > the properties of each Unicode codepoint? > > I'm thinking in particular of Unicode properties like BidiMirroring, > which Perl6 uses to define bracketing characters. > ftp://ftp.unicode.org/Public/UNIDATA/BidiMirroring.txt > Yes it does. You can use the character or unicodedata units. But this is only available in trunk, and the upcoming 3.0 release.

Please note that in order to reduce the size of the data files, only the needed properties for the character.pas unit and the unicode string manager (for the Unicode Collation Algorithm) was taken; Bidi Mirroring unfortunately is not included :-/

Inoussa O.

Reply by email