text is here

Posted in haskell, open source, Uncategorized
8 comments on “text is here
  1. Ewan says:

    “Better protection against rare crashes on really huge volumes of data.”

    What constitutes a “really huge volume of data”?

  2. Chris B says:

    It sounds great. I did have one issue though – I upgraded, but the text-icu package on Hackage still seems to depend on text 0.9. Since I’m using the unicode normalisation from text-icu, I can’t use the new version of text. Is it easy/possible to get text-icu to work with the latest version of text?

  3. Chris, thanks for bringing that to my attention. text-icu is now out, with updated deps. Sorry for the delay!

  4. Chris B says:

    Hi Bryan, I was wondering if I could make a request. In your text-icu library you have a function charFullName which takes a unicode character and maps it to the unicode character name (e.g. LATIN CAPITAL LETTER A WITH ACUTE).

    I can’t find any way to go the other way, to start from a full name and get the unicode character which corresponds to it. Is there any easy way to do this that I’m missing?

    If not, could I request if for some future release? I guess I could write a function myself just by scanning all the possibilities, but that is likely to be very slow.

  5. Chris B says:

    Since I think you use Python as well, I can give an example of a function that does this. In Python, unicodedata.lookup(name) will map a name to the character that it corresponds to.

  6. Chris B says:

    Sorry to keep spam you: just to let you know that I tried

    lookupCharName name = head . filter ((==name) . charFullName) $ (map chr [1..])

    (which is obviously unsafe) to see how fast it is, and is actually surprisingly speedy. Something similar but a bit safer is probably good enough for my purposes, although undoubtedly the ICU library will be able to do the mapping a lot faster than that function can.

  7. Chris, I just uploaded text-icu, which has the function you need.

  8. Chris B says:

    Hi Bryan, thanks a lot for your help. I appreciate it.

Leave a Reply

Your email address will not be published. Required fields are marked *