Ah, for a sidenote, it struck me this library extremely easily can be wrapped into a "SRFI 75: Unicode" implementation almost only through procedure renaming.
string-ci=? string-ci<? string-ci>? string-ci<=? string-ci>=?char-ci<? char-ci=? char-ci=?char-upper-case? char-lower-case? char-title-case? char-title-case?char-upcase char-downcase char-titlecase char-foldcasestring-upcase string-downcase string-foldcase string-titlecase
Hi guys,A Unicode library for Gambit has been released.Many thanks to Florian Loitsch for releasing the Unicode library for Bigloo, of which this library in many respects is a port.The Unicode library for Gambit does the following Unicode handling:unicode-char-upper unicode-char-lowerunicode-string-upper unicode-string-upper! ; "aBc" => "ABC"unicode-string-lower unicode-string-lower! ; "aBc" => "abc"unicode-string-capitalize-strict! unicode-string-capitalize-strict ; "aBc" => "Abc"string-unicode-ci<? string-unicode-ci<=? string-unicode-ci=? string-unicode-ci>? string-unicode-ci>=?It runs out of the box on vanilla Gambit and on Black Hole.License is New BSD.It's both released on the Dumping grounds http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php/Dumping_Grounds and on GitHub at https://github.com/m-i-k-a-e-l/gambit-unicode .For some more info, please see the copy of the library headers below.Kind regards,Mikael-Gambit Unicode library 1.0New BSD licenseEnables Gambit Scheme with Unicode handling features.Runs out of the box on vanilla Gambit and on Black Hole.The Gambit-specific code and distribution:Copyright (C) 2010-2012 Mikael MoreThe unicode-data.scm generator and Bigloo unicode library this library was inspired by,found in the bigloo-unicode directory:Copyright (C) 2007-2012 Florian Loitsch
The source data for the unicode-data.scm generator, found in the bigloo-unicode/data directory:Copyright (C) 1991-2011 Unicode, Inc.## Exportsunicode-char-upperunicode-char-lowerunicode-string-upper unicode-string-upper! ; "aBc" => "ABC"unicode-string-lower unicode-string-lower! ; "aBc" => "abc"unicode-string-capitalize-strict! ; "aBc" => "Abc"unicode-string-capitalize-strict ;string-unicode-ci<?string-unicode-ci<=?string-unicode-ci=?string-unicode-ci>?string-unicode-ci>=?## Relation with Bigloo Unicode library. Intended scope of use of this library.This library is based on the Unicode library for Bigloo Scheme by Florian Loitsch, as bundledwith the js2scheme distribution as found on http://code.google.com/p/js2scheme/source/browse/ .A copy of this library is provided in this distribution in the bigloo-unicode directory,to enable you to easily generate Unicode constants based on any new Unicode Character Databaseversions.The vesion of the Bigloo Unicode library bundled here is was pulled from the abovementionedrepo the 13:t of May 2012. Florian's last changes were the 12:th of March 2011. Florian's code isto be viewed as stable since at least 2010, to the best of my knowledge the only changes sincethen have been minor restructurings.Please note that the scope of this library and the Bigloo unicode library are different, in thatGambit has complete native Unicode character handling and charset encoding/decoding featuresbuilt-in and thus none of this needs to be provided in a separate library, whereas theBigloo Unicode library provides such functionality to Bigloo.## Distribution overviewunicode.scm - The Gambit Unicode handling libraryunicode-data.scm - The constants required to make unicode.scm spin.Generated out of the Unicode Character Database.bigloo-unicode/* - Florian Loitsch's unicode-data.scm generator, and Bigloo Unicode librarythat was used as inspiration for making this library.Use this to generate a new unicode-data.scm out of a Unicode CharacterDatabase update, if that would ever be released and relevant.Latest version as of the 13:th of May 2012, see more above.bigloo-unicode/data/* - The required files of the Unicode Character Database, see below.## How to update unicode-data.scm with a new version of the Unicode Character DatabaseIn case by any reason this would ever be relevant, here is how to proceed:Update the bigloo-unicode/data/ files (namely SpecialCasing.txt and UnicodeData.txt) withthe new Unicode Character Database files.As of the date of writing, these are released onand you can see the release date of the latest update of them on