7 Commits

Author SHA256 Message Date
7832fb85eb Upgrade to 0.2.0
Modernized API & New Truncation Features:
  - BREAKING: utf8.width() and utf8.widthindex() parameter order
    changed
  - BREAKING: ambi_is_double (boolean) replaced with ambiwidth
    (integer)
  - NEW: utf8.widthlimit() for intelligent width-based truncation
  - NEW: Byte range parameters i, j for width functions
  - NEW: utf8.version constant
  - IMPROVED: Complete documentation rewrite with examples
  - IMPROVED: Comprehensive test coverage for all new features
  - FIXED: Various grammar and formatting issues in documentation
2026-02-03 02:43:20 +01:00
401feff8a5 Enable lua55 build. 2026-01-23 22:39:41 +01:00
ec7c73b99c Enable lua55 build 2026-01-21 21:44:23 +01:00
87d912a334 Switch off building lua51 build of the package. 2025-10-24 16:50:10 +02:00
630616354a Make the package buildable with LuaJIT. 2025-10-12 09:52:58 +02:00
baeb47c2ce Add luajit version to _multibuild 2025-10-06 10:49:07 +02:00
49264d8bae Update to 0.1.6:
- Add 'normalize_nfc' and 'isnfc' functions
  - Update to Unicode 15.1
  - Add new 'grapheme_indices' function
  - Improve grammar, spelling, and formatting of README.md
  - Fix bugs in NFC normalization code
  - Explicitly include limits.h instead of transitively assuming
    it
2025-07-25 23:00:16 +02:00
7 changed files with 69 additions and 12 deletions

1
.gitattributes vendored
View File

@@ -21,3 +21,4 @@
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*.changes merge=merge-changes

9
.gitignore vendored
View File

@@ -1 +1,8 @@
.osc
*.osc
_scmsync.obsinfo
_buildconfig-*
_buildinfo-*.xml
*.obscpio
_build.*
.pbuild
lua*luautf8-*-build/

BIN
0.2.0.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,5 +1,6 @@
<multibuild>
<package>lua51</package>
<package>luajit</package>
<package>lua53</package>
<package>lua54</package>
<package>lua55</package>
</multibuild>

View File

@@ -1,3 +1,46 @@
-------------------------------------------------------------------
Tue Feb 3 01:37:49 UTC 2026 - Matej Cepl <mcepl@cepl.eu>
- Upgrade to 0.2.0, Modernized API & New Truncation Features:
- BREAKING: utf8.width() and utf8.widthindex() parameter order
changed
- BREAKING: ambi_is_double (boolean) replaced with ambiwidth
(integer)
- NEW: utf8.widthlimit() for intelligent width-based truncation
- NEW: Byte range parameters i, j for width functions
- NEW: utf8.version constant
- IMPROVED: Complete documentation rewrite with examples
- IMPROVED: Comprehensive test coverage for all new features
- FIXED: Various grammar and formatting issues in documentation
-------------------------------------------------------------------
Fri Jan 23 21:39:41 UTC 2026 - Matej Cepl <mcepl@cepl.eu>
- Enable lua55 build.
-------------------------------------------------------------------
Fri Oct 24 14:50:10 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Switch off building lua51 build of the package.
-------------------------------------------------------------------
Sun Oct 12 07:52:14 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Make the package buildable with LuaJIT.
- Add warnings-away.patch to remove compilation warnings.
-------------------------------------------------------------------
Fri Jul 25 20:57:36 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Update to 0.1.6:
- Add 'normalize_nfc' and 'isnfc' functions
- Update to Unicode 15.1
- Add new 'grapheme_indices' function
- Improve grammar, spelling, and formatting of README.md
- Fix bugs in NFC normalization code
- Explicitly include limits.h instead of transitively assuming
it
-------------------------------------------------------------------
Mon Apr 1 02:00:36 UTC 2024 - Gordon Leung <pirateclip@protonmail.com>

View File

@@ -28,13 +28,14 @@
%define luarock_arch %{_arch}
%endif
%endif
Version: 0.1.5+git6
Version: 0.2.0
Release: 0
Summary: A utf-8 support module for Lua and LuaJIT
License: MIT
Group: Development/Languages/Other
URL: https://github.com/starwing/luautf8
Source: %{mod_name}-%{version}.tar.zst
# Source: %%{mod_name}-%%{version}.tar.zst
Source: https://github.com/starwing/luautf8/archive/refs/tags/%{version}.tar.gz
BuildRequires: %{flavor}-devel
BuildRequires: %{flavor}-luarocks
BuildRequires: lua-macros
@@ -60,17 +61,21 @@ test in lua test suite2.
%autosetup -n %{mod_name}-%{version}
%build
%luarocks_build "rockspecs/%{mod_name}-%{rock_version}.rockspec"
%__cc %{optflags} -fPIC %(pkgconf --cflags lua) -c lutf8lib.c -o lutf8lib.o
%__cc -shared %{?build_ldflags} %(pkgconf --libs lua) -o lua-utf8.so lutf8lib.o
%install
%luarocks_install "%{mod_name}-%{rock_version}.linux-%{luarock_arch}.rock"
install -dD %{buildroot}%{lua_archdir}
install -p -m 755 lua-utf8.so %{buildroot}%{lua_archdir}
%check
for testf in test*.lua
do
lua $testf
done
%files
%{lua_archdir}
%{luarocks_treedir}/%{mod_name}
%docdir %{luarocks_treedir}/%{mod_name}/%{rock_version}/doc
%license %{luarocks_treedir}/%{mod_name}/%{rock_version}/doc/LICENSE
%license LICENSE
%changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6c20ea6902d71b5ec0136877868648a827b01b5c5fe13cf28bca32c2151afef3
size 430351