utf8proc.git
8 years agoStatic library support improvements (#123)
past-due [Mon, 30 Apr 2018 01:37:12 +0000 (21:37 -0400)]
Static library support improvements (#123)

* `#define UTF8PROC_STATIC` to disable DLLEXPORT

`#define UTF8PROC_STATIC` to disable DLLEXPORT

* [CMake] Automatically define UTF8PROC_STATIC if BUILD_SHARED_LIBS is off

* [Makefile] Support additional UTF8PROC_DEFINES, which can be used to specify flags like `-DUTF8PROC_STATIC`

8 years ago[CMake] Use target_compile_definitions to avoid affecting global definitions (#121)
past-due [Fri, 27 Apr 2018 16:55:53 +0000 (12:55 -0400)]
[CMake] Use target_compile_definitions to avoid affecting global definitions (#121)

8 years agonote Unicode 10 support
Steven G. Johnson [Fri, 27 Apr 2018 16:51:07 +0000 (12:51 -0400)]
note Unicode 10 support

8 years agoupdate to unicode 10 (#132)
Steven G. Johnson [Fri, 27 Apr 2018 16:50:19 +0000 (12:50 -0400)]
update to unicode 10 (#132)

8 years agoversion bump to 2.1.1 (#131)
Steven G. Johnson [Fri, 27 Apr 2018 13:58:34 +0000 (09:58 -0400)]
version bump to 2.1.1 (#131)

8 years agofix make clean
Steven G. Johnson [Fri, 27 Apr 2018 13:30:37 +0000 (09:30 -0400)]
fix make clean

8 years agomissing return code, success message in test/misc.c
Steven G. Johnson [Fri, 27 Apr 2018 13:10:38 +0000 (09:10 -0400)]
missing return code, success message in test/misc.c

8 years agomake internal function static
Steven G. Johnson [Fri, 27 Apr 2018 12:57:54 +0000 (08:57 -0400)]
make internal function static

8 years agoadded test for #128
Steven G. Johnson [Fri, 27 Apr 2018 12:23:10 +0000 (08:23 -0400)]
added test for #128

8 years agopossible fix for #128 (#129)
Benito van der Zander [Fri, 27 Apr 2018 12:06:14 +0000 (14:06 +0200)]
possible fix for #128 (#129)

Does this help? I do not really remember what I wrote back then

8 years agoUse LDFLAGS when building libutf8proc.dylib (#125)
Ryan Schmidt [Wed, 18 Apr 2018 14:50:15 +0000 (09:50 -0500)]
Use LDFLAGS when building libutf8proc.dylib (#125)

8 years agoFix declaration-after-statement warning when compiling in strict C90 mode. (#113)
Branko Čibej [Thu, 21 Sep 2017 16:27:24 +0000 (18:27 +0200)]
Fix declaration-after-statement warning when compiling in strict C90 mode. (#113)

9 years agoUpdate documentation to reflect Unicode 9.0.0. (#107)
Christopher Baker [Thu, 8 Jun 2017 16:29:54 +0000 (11:29 -0500)]
Update documentation to reflect Unicode 9.0.0. (#107)

This makes the inline documentation match the README.

9 years agoEnsure generated const data tables are hidden via "static" (#100)
Paul Smith [Sun, 19 Feb 2017 22:33:25 +0000 (17:33 -0500)]
Ensure generated const data tables are hidden via "static" (#100)

9 years agodon't set MAKE variable in Makefile (#99)
Jameson Nash [Sat, 18 Feb 2017 15:14:45 +0000 (15:14 +0000)]
don't set MAKE variable in Makefile (#99)

fix #95

9 years agoremoved inclusion of non-portable header file (#94)
Árpád Goretity  [Sat, 14 Jan 2017 13:12:29 +0000 (14:12 +0100)]
removed inclusion of non-portable header file (#94)

9 years agoDon't use cached version of UnicodeData.txt (#92)
Michael Hatherly [Wed, 4 Jan 2017 00:44:23 +0000 (02:44 +0200)]
Don't use cached version of UnicodeData.txt (#92)

Ref: https://github.com/JuliaLang/julia/pull/19725, UnicodeData.txt is
now being cached in JuliaLang/julia's build.

9 years agofix typo in NEWS date
Steven G. Johnson [Mon, 26 Dec 2016 21:01:42 +0000 (16:01 -0500)]
fix typo in NEWS date

9 years agoversion 2.1 release
Steven G. Johnson [Mon, 26 Dec 2016 20:52:48 +0000 (15:52 -0500)]
version 2.1 release

9 years agoupdate NEWS [ci skip]
Steven G. Johnson [Sun, 11 Dec 2016 21:42:24 +0000 (16:42 -0500)]
update NEWS [ci skip]

9 years agoupdate to unifont 9.0.04
Steven G. Johnson [Sun, 11 Dec 2016 21:35:27 +0000 (16:35 -0500)]
update to unifont 9.0.04

9 years agowhoops
Steven G. Johnson [Sun, 11 Dec 2016 21:18:52 +0000 (16:18 -0500)]
whoops

9 years agouse ptrdiff_t rather than ssize_t, as ssize_t is non-standard (it is POSIX, not C)
Steven G. Johnson [Sun, 11 Dec 2016 21:17:11 +0000 (16:17 -0500)]
use ptrdiff_t rather than ssize_t, as ssize_t is non-standard (it is POSIX, not C)

9 years agouse stdbool.h and inttypes.h in MSVC 2013 and later, and use more C99-compatible...
Steven G. Johnson [Sun, 11 Dec 2016 12:15:53 +0000 (07:15 -0500)]
use stdbool.h and inttypes.h in MSVC 2013 and later, and use more C99-compatible definitions of false and true earlier (fix #90)

9 years agoupdate .gitignore for custom test
Steven G. Johnson [Wed, 30 Nov 2016 15:46:01 +0000 (10:46 -0500)]
update .gitignore for custom test

9 years agonew utf8proc_map_custom for hooking in user-defined custom mappings (#89)
Steven G. Johnson [Wed, 30 Nov 2016 15:40:26 +0000 (10:40 -0500)]
new utf8proc_map_custom for hooking in user-defined custom mappings (#89)

* new utf8proc_map_custom for hooking in user-defined custom mappings

* whoops, add test program

* NEWS, version bump for 2.1

* change test functions to static so that gcc doesn't complain about missing prototypes

9 years agosilence MSVC warning about conversion to uint8 (fix #86)
Steven G. Johnson [Wed, 30 Nov 2016 15:09:18 +0000 (10:09 -0500)]
silence MSVC warning about conversion to uint8 (fix #86)

9 years agotypo in docstrings
Steven G. Johnson [Tue, 29 Nov 2016 18:49:03 +0000 (13:49 -0500)]
typo in docstrings

9 years agoTlsa/ucs4 normalize (#88)
Michael Drake [Mon, 21 Nov 2016 14:22:39 +0000 (14:22 +0000)]
Tlsa/ucs4 normalize (#88)

* Split codepoint sequence normalisation out into separate function.

This creates utf8proc_normalize_utf32() which takes and returns
a UTF-32 string, applying the following options:

- UTF8PROC_NLF2LS
- UTF8PROC_NLF2PS
- UTF8PROC_NLF2LF
- UTF8PROC_STRIPCC
- UTF8PROC_COMPOSE
- UTF8PROC_STABLE

The utf8proc_reencode() function has been updated to call the
new utf8proc_normalize_utf32().

* Update code documentation: utf8proc_reencode handles UTF8PROC_CHARBOUND.

9 years agoChange definition of UINT16_MAX macro (#84)
Jakub Vít [Sun, 4 Sep 2016 18:44:39 +0000 (19:44 +0100)]
Change definition of UINT16_MAX macro (#84)

Change UINT16_MAX from `~(utf8proc_uint16_t)0` to fixed value `65535U` to prevent weird behaviour in complex expressions.

9 years agoadd missing links
Steven G. Johnson [Wed, 27 Jul 2016 12:04:38 +0000 (08:04 -0400)]
add missing links

9 years agodate fix in NEWS
Steven G. Johnson [Wed, 27 Jul 2016 11:59:43 +0000 (07:59 -0400)]
date fix in NEWS

9 years agoNEWS and version numbers for 2.0.2 (#81)
Tony Kelman [Wed, 27 Jul 2016 11:58:49 +0000 (04:58 -0700)]
NEWS and version numbers for 2.0.2 (#81)

* Add NEWS.md items for #79 and #80

* Prepare version numbers for 2.0.2

* Also update API version to 2.0.2

9 years agouse a different variable name for nested loop in bench.c (#80)
Tony Kelman [Tue, 26 Jul 2016 21:54:17 +0000 (14:54 -0700)]
use a different variable name for nested loop in bench.c (#80)

and declare it ahead of time to avoid "error: 'for' loop initial declarations are only allowed in C99 mode"

10 years agoMove -Wmissing-prototypes from Makefile to .travis.yml (#79)
Tony Kelman [Sat, 16 Jul 2016 10:16:03 +0000 (03:16 -0700)]
Move -Wmissing-prototypes from Makefile to .travis.yml (#79)

since MSVC doesn't understand this flag, and the current
mechanism for building Julia with MSVC goes through the makefile

10 years agoConvert compiler warnings to errors for Travis builds (#73)
petercolberg [Wed, 13 Jul 2016 16:58:28 +0000 (12:58 -0400)]
Convert compiler warnings to errors for Travis builds (#73)

10 years agoadded NEWS for #78
Steven G. Johnson [Wed, 13 Jul 2016 16:42:07 +0000 (12:42 -0400)]
added NEWS for #78

10 years agoUse versioned Unicode data URLs (#78)
petercolberg [Wed, 13 Jul 2016 16:40:59 +0000 (12:40 -0400)]
Use versioned Unicode data URLs (#78)

This ensures the tests keep working when a new Unicode version is released.

10 years agoNEWS and version bump for 2.0.1 release, to come out shortly
Steven G. Johnson [Wed, 13 Jul 2016 16:39:05 +0000 (12:39 -0400)]
NEWS and version bump for 2.0.1 release, to come out shortly

10 years agoFix incorrect use of `lbc` instead of `lbc_override` (#77)
Keno Fischer [Wed, 13 Jul 2016 16:33:50 +0000 (12:33 -0400)]
Fix incorrect use of `lbc` instead of `lbc_override` (#77)

10 years agoadd appveyor badge to readme
Tony Kelman [Wed, 13 Jul 2016 16:18:40 +0000 (09:18 -0700)]
add appveyor badge to readme

[ci skip]

10 years agoNEWS update
Steven G. Johnson [Wed, 13 Jul 2016 16:02:47 +0000 (12:02 -0400)]
NEWS update

10 years agothe ABI version was already bumped in #62, does not need to be bumped again in #70
Steven G. Johnson [Wed, 13 Jul 2016 15:00:17 +0000 (11:00 -0400)]
the ABI version was already bumped in #62, does not need to be bumped again in #70

10 years agoNEWS for 2.0
Steven G. Johnson [Wed, 13 Jul 2016 14:57:37 +0000 (10:57 -0400)]
NEWS for 2.0

10 years agoWalk back ABI breaking changes (#76)
Keno Fischer [Wed, 13 Jul 2016 14:41:13 +0000 (10:41 -0400)]
Walk back ABI breaking changes (#76)

10 years agoupdate to Unifont 9 (for Unicode 9 charwidths) (#75)
Steven G. Johnson [Tue, 12 Jul 2016 20:30:05 +0000 (16:30 -0400)]
update to Unifont 9 (for Unicode 9 charwidths) (#75)

10 years agoSmaller tables (#68)
Benito van der Zander [Tue, 12 Jul 2016 15:51:50 +0000 (17:51 +0200)]
Smaller tables (#68)

* convert sequences to utf-16 (saves 25kb)

* store sequence length in properties instead using -1 termination (saves 10kb)

* cache index for slightly faster data creation

* store lower/upper/title mapping in sequence array (saves 25kb). Add utf8proc_totitle, as title_mapping cannot be used to get the title codepoint anymore. Rename xxx_mapping to xxx_seqindex, so programs assuming a value with the old meaning fail at compile time

* change combination array data type to uint16 (saves 40kb)

* merge 1st and 2nd comb index (saves 50kb)

* kill empty prefix/suffix in combination array (saves 50kb)

* there was no need to have a separate combination start array, it can be merged in a single array

* some fixes

* mark the table as const again

* and regen

10 years agonote Unicode 9 support (from #70) in README
Steven G. Johnson [Tue, 28 Jun 2016 20:06:00 +0000 (16:06 -0400)]
note Unicode 9 support (from #70) in README

10 years agoUnicode 9 updates (#70)
Keno Fischer [Tue, 28 Jun 2016 20:04:25 +0000 (16:04 -0400)]
Unicode 9 updates (#70)

* Updates for Unicode 9.0.0 TR29 Changes

- New rules GB10/(12/13) are used to combine emoji-zwj sequences/
  (force grapheme breaks every two RI codepoints). Unfortunately this
  breaks statelessness of grapheme-boundary determination. Deal with
  this by ignoring the problem in utf8proc_grapheme_break, and by
  hacking in a special case in decompose

- ZWJ moved to its own boundclass, update what is now GB9 accordingly.

- Add comments to indicate which rule a given case implements

- The Number of bound classes Now exceeds 4 bits, expand to 8 and
  reorganize fields

* Import Unicode 9 data

* Update Grapheme break API to expose state override

* Bump MAJOR version

10 years agoMerge pull request #69 from JuliaLang/tk/cache
Steven G. Johnson [Wed, 1 Jun 2016 12:52:41 +0000 (08:52 -0400)]
Merge pull request #69 from JuliaLang/tk/cache

fix the travis cache

10 years agofix the travis cache
Tony Kelman [Wed, 1 Jun 2016 04:20:38 +0000 (21:20 -0700)]
fix the travis cache

certificate is expired on cache.e.ip.saba.us, it now lives at cache.julialang.org

10 years agoMerge pull request #66 from michaelnmmeyer/master
Steven G. Johnson [Thu, 4 Feb 2016 15:57:25 +0000 (10:57 -0500)]
Merge pull request #66 from michaelnmmeyer/master

Fix overrun

10 years agoFix overrun
Michaël Meyer [Thu, 4 Feb 2016 03:01:19 +0000 (04:01 +0100)]
Fix overrun

10 years agoMerge pull request #62 from michaelnmmeyer/master
Steven G. Johnson [Wed, 9 Dec 2015 23:59:05 +0000 (18:59 -0500)]
Merge pull request #62 from michaelnmmeyer/master

Reduce the size of the binary.

10 years agoBump version number.
Michaël Meyer [Wed, 9 Dec 2015 22:35:45 +0000 (23:35 +0100)]
Bump version number.

10 years agoReduce the size of the binary.
Michaël Meyer [Wed, 9 Dec 2015 18:55:48 +0000 (19:55 +0100)]
Reduce the size of the binary.

Use integers instead of pointers in Unicode tables. Saves 226 kb / 716 kb in the
compiled library.

10 years agoMerge pull request #61 from fgsch/issue_60
Steven G. Johnson [Tue, 24 Nov 2015 21:53:05 +0000 (16:53 -0500)]
Merge pull request #61 from fgsch/issue_60

Silence warning with -Wextra

10 years agoSilence warning with -Wextra
Federico G. Schwindt [Tue, 24 Nov 2015 20:09:10 +0000 (20:09 +0000)]
Silence warning with -Wextra

Fixes #60.

10 years agoupdate Unicode version in header-file comment
Steven G. Johnson [Sun, 1 Nov 2015 13:36:04 +0000 (08:36 -0500)]
update Unicode version in header-file comment

10 years agoupdate copyright statements to list recent contributors and year
Steven G. Johnson [Sun, 1 Nov 2015 13:34:01 +0000 (08:34 -0500)]
update copyright statements to list recent contributors and year

10 years agoMerge pull request #59 from petercolberg/master
Steven G. Johnson [Sun, 1 Nov 2015 13:10:02 +0000 (08:10 -0500)]
Merge pull request #59 from petercolberg/master

Version 1.3.1

10 years agoUpdate NEWS for version 1.3.1
Peter Colberg [Sun, 1 Nov 2015 00:51:36 +0000 (20:51 -0400)]
Update NEWS for version 1.3.1

10 years agoIncrement patch version
Peter Colberg [Sun, 1 Nov 2015 00:51:26 +0000 (20:51 -0400)]
Increment patch version

10 years agoMerge pull request #58 from petercolberg/master
Steven G. Johnson [Sat, 31 Oct 2015 22:13:25 +0000 (18:13 -0400)]
Merge pull request #58 from petercolberg/master

Fix build warnings

10 years agoFix deprecated warnings with Julia 0.4
Peter Colberg [Sat, 31 Oct 2015 17:59:38 +0000 (13:59 -0400)]
Fix deprecated warnings with Julia 0.4

10 years agoTest `make install`
Peter Colberg [Fri, 30 Oct 2015 22:46:28 +0000 (18:46 -0400)]
Test `make install`

Generate reproducible manifest of installed files.

10 years agoTest `make clean`
Peter Colberg [Fri, 30 Oct 2015 19:57:00 +0000 (15:57 -0400)]
Test `make clean`

10 years agoFix sscanf argument type for format %x
Peter Colberg [Fri, 30 Oct 2015 19:27:18 +0000 (15:27 -0400)]
Fix sscanf argument type for format %x

10 years agoFix missing static declarations for internal functions
Peter Colberg [Fri, 30 Oct 2015 19:24:34 +0000 (15:24 -0400)]
Fix missing static declarations for internal functions

10 years agoFix implicit function declarations
Peter Colberg [Fri, 30 Oct 2015 19:22:09 +0000 (15:22 -0400)]
Fix implicit function declarations

10 years agoMove common test functions to separate module
Peter Colberg [Fri, 30 Oct 2015 19:13:48 +0000 (15:13 -0400)]
Move common test functions to separate module

This resolves warnings for missing function prototypes.

10 years agoFix installation of shared library symlinks
Peter Colberg [Fri, 30 Oct 2015 18:57:16 +0000 (14:57 -0400)]
Fix installation of shared library symlinks

Use relative symlinks that are independent of installation prefix.

Drop superfluous .so.MAJOR.MINOR symlink, which is and should never
be needed in practice. The purpose of shared library symlinks is to
provide libraries for compile-time linking (.so) and for run-time
linking using the SONAME (.so.MAJOR).

10 years agoAdd missing files to `make clean`
Peter Colberg [Fri, 30 Oct 2015 18:56:03 +0000 (14:56 -0400)]
Add missing files to `make clean`

10 years agoMerge pull request #57 from petercolberg/master
Steven G. Johnson [Fri, 30 Oct 2015 16:48:43 +0000 (12:48 -0400)]
Merge pull request #57 from petercolberg/master

Fix MingW build test

10 years agoFix MinGW build test
Peter Colberg [Fri, 30 Oct 2015 04:52:49 +0000 (00:52 -0400)]
Fix MinGW build test

10 years agoDescribe interactive debugging for appveyor
Peter Colberg [Fri, 30 Oct 2015 04:52:41 +0000 (00:52 -0400)]
Describe interactive debugging for appveyor

10 years agoMerge pull request #56 from petercolberg/master
Steven G. Johnson [Fri, 30 Oct 2015 01:45:52 +0000 (21:45 -0400)]
Merge pull request #56 from petercolberg/master

Fix Travis build and improve build reproducibility

10 years agoUse consistent indentation in Travis config
Peter Colberg [Fri, 30 Oct 2015 00:28:14 +0000 (20:28 -0400)]
Use consistent indentation in Travis config

Indent with 4 spaces, as in the Travis config for Julia.

10 years agoSet URLCACHE to JuliaLang cache server for Travis builds
Peter Colberg [Fri, 30 Oct 2015 00:07:35 +0000 (20:07 -0400)]
Set URLCACHE to JuliaLang cache server for Travis builds

Download Unicode data from upstream server by default.

Download GNU Unifont from reliable GNU mirror by default.

10 years agoGenerate fontforge font files in makefile
Peter Colberg [Thu, 29 Oct 2015 23:48:49 +0000 (19:48 -0400)]
Generate fontforge font files in makefile

Revise the script to directly read fontforge font files, which are
generated in the makefile. This permits overriding the fontforge path
during the build, and executing fontforge in parallel with make -j.

Avoid duplicating download URLs in the script, which ensures that the
script itself works without network access, e.g., when downloading the
data files on a developer machine with network access and executing the
script on a build machine without network access.

10 years agoUpdate Unicode data
Peter Colberg [Thu, 29 Oct 2015 23:41:16 +0000 (19:41 -0400)]
Update Unicode data

Fixes Travis builds on Ubuntu 12.04 LTS with Ruby 1.9.3-p551.

10 years agoMerge pull request #55 from petercolberg/master
Steven G. Johnson [Thu, 29 Oct 2015 17:30:56 +0000 (13:30 -0400)]
Merge pull request #55 from petercolberg/master

Do not export internal unsafe_encode_char()

10 years agoEnable compiler warnings in makefile
Peter Colberg [Thu, 29 Oct 2015 05:17:20 +0000 (01:17 -0400)]
Enable compiler warnings in makefile

10 years agoDo not export internal unsafe_encode_char()
Peter Colberg [Thu, 29 Oct 2015 04:45:39 +0000 (00:45 -0400)]
Do not export internal unsafe_encode_char()

11 years agoadd missing NEWS links
Steven G. Johnson [Mon, 6 Jul 2015 16:28:50 +0000 (12:28 -0400)]
add missing NEWS links

11 years agoupdated NEWS for 1.3
Steven G. Johnson [Mon, 6 Jul 2015 15:34:46 +0000 (11:34 -0400)]
updated NEWS for 1.3

11 years agoMerge pull request #51 from JuliaLang/cjh/unifont8
Steven G. Johnson [Mon, 6 Jul 2015 15:09:20 +0000 (11:09 -0400)]
Merge pull request #51 from JuliaLang/cjh/unifont8

Update character widths from Unifont 8.0.01

11 years agoUpdate Unicode data
Jiahao Chen [Mon, 29 Jun 2015 20:43:07 +0000 (16:43 -0400)]
Update Unicode data

11 years agoUpdate Unifont to 8.0.01
Jiahao Chen [Mon, 29 Jun 2015 20:42:34 +0000 (16:42 -0400)]
Update Unifont to 8.0.01

11 years agoMerge pull request #49 from JuliaLang/cjh/mw
Steven G. Johnson [Fri, 26 Jun 2015 18:28:30 +0000 (14:28 -0400)]
Merge pull request #49 from JuliaLang/cjh/mw

Try again to update Unicode 8 data

11 years agoUpdated Unicode 8 data - now sorted internally by data generator
Jiahao Chen (陈家豪) [Fri, 26 Jun 2015 16:12:13 +0000 (12:12 -0400)]
Updated Unicode 8 data - now sorted internally by data generator

11 years agoUpdate Unicode data
Jiahao Chen [Fri, 26 Jun 2015 16:01:27 +0000 (12:01 -0400)]
Update Unicode data

11 years agosort keys to try to eliminate data dependence on Ruby version
Steven G. Johnson [Thu, 25 Jun 2015 23:15:57 +0000 (19:15 -0400)]
sort keys to try to eliminate data dependence on Ruby version

11 years agoFix gitignore to ignore .so*
Jiahao Chen (陈家豪) [Thu, 25 Jun 2015 22:00:01 +0000 (18:00 -0400)]
Fix gitignore to ignore .so*

11 years agofix #46 (make sure symbol-like codepoints have nonzero width even if they aren't...
Steven G. Johnson [Wed, 24 Jun 2015 18:07:15 +0000 (14:07 -0400)]
fix #46 (make sure symbol-like codepoints have nonzero width even if they aren't in Unifont)

11 years agoupdate NEWS for #43 and #45
Steven G. Johnson [Wed, 24 Jun 2015 15:49:16 +0000 (11:49 -0400)]
update NEWS for #43 and #45

11 years agoUpdate README.md
Jiahao Chen [Tue, 23 Jun 2015 21:21:36 +0000 (17:21 -0400)]
Update README.md

Link to Lua-mojibake (closes #44)

Bump Unicode version (ref: #45)

11 years agoMerge pull request #45 from JuliaLang/cjh/unicode8
Jiahao Chen [Tue, 23 Jun 2015 21:18:59 +0000 (17:18 -0400)]
Merge pull request #45 from JuliaLang/cjh/unicode8

Update data to Unicode 8.0.0 standard

11 years agoForce Travis to spit out diff
Jiahao Chen [Tue, 23 Jun 2015 17:12:13 +0000 (13:12 -0400)]
Force Travis to spit out diff

11 years agoUpdated data file to Unicode 8.0.0
Jiahao Chen [Sat, 20 Jun 2015 12:14:32 +0000 (08:14 -0400)]
Updated data file to Unicode 8.0.0