text is here

Posted in haskell, open source, Uncategorized
9 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.

  9. Paul says:

    An exceptionally great puisblh. This short article covers for me personally what this particular topic is determined by plus some of the essential benefits that can be resulting from knowing about it as should you. A buddy once remarked that you’ve got a completely different way of thinking whenever you do something for several as opposed to when youre just toying with it. When it comes to this kind of subject, I believe you’re taking, or even begin to think of, a far more professional as well as thorough approach to each what and how you write, which allows you to carry on and obtain better as well as manual other people who have no idea anything by what you’ve discussed right here. Thank you.

Leave a Reply

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