Sign in Join

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

Mailing lists / fpc-devel / 2008-07

Unicode Letters

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

ik
to theo

In hebrew (at least) the punctuation is a different char that comes after the letter, but painted like it was part of the letter, so you can parse each word and ignore non letter value (it arrives in different range in the unicode table).

Ido

theo wrote 16 lines
Is there a way to separate unicode letters from punctuation and the like? The reason is simple: I would like to separate words in a text for a spell-checker. I see there are tables which list unicode categories http://www.sql-und-xml.de/unicode-database/#kategorien Is there already something for freepascal to get such information? Is there a better way to do what I need? Thanks Theo _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

theo
to ik
Show quoted text 7 lines
In hebrew (at least) the punctuation is a different char that comes after the letter, but painted like it was part of the letter, so you can parse each word and ignore non letter value (it arrives in different range in the unicode table).

Yes, the question is: which are non letter values in the upper unicode ranges?
I've now written some code myself to do this and separate the words. If you're interested, I can post a download link here.

Thank you
Theo

Reply by email