Hello community, here is the log from the commit of package libansilove for openSUSE:Factory checked in at 2020-02-18 13:29:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libansilove (Old) and /work/SRC/openSUSE:Factory/.libansilove.new.26092 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libansilove" Tue Feb 18 13:29:53 2020 rev:5 rq:775117 version:1.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/libansilove/libansilove.changes 2020-01-21 21:04:00.844951003 +0100 +++ /work/SRC/openSUSE:Factory/.libansilove.new.26092/libansilove.changes 2020-02-18 13:29:55.084762338 +0100 @@ -1,0 +2,10 @@ +Mon Feb 17 19:29:37 UTC 2020 - Martin Hauke <[email protected]> + +- Update to version 1.2.0 + * Correct section number in manual page. + * Add initial manual pages for all library functions and file + formats renders + * Stop calculating columnMax in the PCBoard loader, it's unused + * Add support for user-specified columns in the PCBoard loader + +------------------------------------------------------------------- Old: ---- libansilove-1.1.9.tar.gz New: ---- libansilove-1.2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libansilove.spec ++++++ --- /var/tmp/diff_new_pack.7TpfcP/_old 2020-02-18 13:29:55.808763745 +0100 +++ /var/tmp/diff_new_pack.7TpfcP/_new 2020-02-18 13:29:55.808763745 +0100 @@ -1,7 +1,7 @@ # # spec file for package libansilove # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # Copyright (c) 2019, Martin Hauke <[email protected]> # # All modifications and additions to the file contributed by third parties @@ -20,7 +20,7 @@ %global sover 1 %global libname %{name}%{sover} Name: libansilove -Version: 1.1.9 +Version: 1.2.0 Release: 0 Summary: Library for converting ANSI, ASCII, and other formats to PNG License: BSD-2-Clause @@ -89,5 +89,6 @@ %{_includedir}/ansilove.h %{_libdir}/libansilove.so %{_mandir}/man3/libansilove.3%{?ext_man} +%{_mandir}/man3/ansilove_*.3%{?ext_man} %changelog ++++++ libansilove-1.1.9.tar.gz -> libansilove-1.2.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/.travis.yml new/libansilove-1.2.0/.travis.yml --- old/libansilove-1.1.9/.travis.yml 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/.travis.yml 2020-02-17 13:00:16.000000000 +0100 @@ -31,7 +31,7 @@ coverity_scan: project: name: "ansilove/libansilove" - version: 1.1.9 + version: 1.2.0 description: "Library for converting ANSI, ASCII, and other formats to PNG" notification_email: [email protected] build_command_prepend: cmake . diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/CMakeLists.txt new/libansilove-1.2.0/CMakeLists.txt --- old/libansilove-1.1.9/CMakeLists.txt 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/CMakeLists.txt 2020-02-17 13:00:16.000000000 +0100 @@ -1,8 +1,8 @@ cmake_minimum_required (VERSION 2.6) set(LIB_VERSION_MAJOR 1) -set(LIB_VERSION_MINOR 1) -set(LIB_VERSION_PATCH 9) +set(LIB_VERSION_MINOR 2) +set(LIB_VERSION_PATCH 0) set(LIB_VERSION_STRING ${LIB_VERSION_MAJOR}.${LIB_VERSION_MINOR}.${LIB_VERSION_PATCH}) project (ansilove C) @@ -39,4 +39,16 @@ install(TARGETS ansilove DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(FILES include/ansilove.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) -install(FILES libansilove.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3/) +install(FILES man/libansilove.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3/) +install(FILES man/ansilove_clean.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3/) +install(FILES man/ansilove_error.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3/) +install(FILES man/ansilove_init.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3/) +install(FILES man/ansilove_loadfile.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3/) +install(FILES man/ansilove_savefile.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3/) +install(FILES man/ansilove_ansi.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3/) +install(FILES man/ansilove_artworx.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3/) +install(FILES man/ansilove_binary.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3/) +install(FILES man/ansilove_icedraw.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3/) +install(FILES man/ansilove_pcboard.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3/) +install(FILES man/ansilove_tundra.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3/) +install(FILES man/ansilove_xbin.3 DESTINATION ${CMAKE_INSTALL_MANDIR}/man3/) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/ChangeLog new/libansilove-1.2.0/ChangeLog --- old/libansilove-1.1.9/ChangeLog 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/ChangeLog 2020-02-17 13:00:16.000000000 +0100 @@ -1,3 +1,12 @@ +libansilove 1.2.0 (2020-02-17) + +- Correct section number in manual page. +- Add initial manual pages for all library functions and file formats renders +- Stop calculating columnMax in the PCBoard loader, it's unused +- Add support for user-specified columns in the PCBoard loader + + + libansilove 1.1.9 (2020-01-20) - Remove unneeded gdImageColorAllocate calls in the ADF and IDF loaders diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/THANKS new/libansilove-1.2.0/THANKS --- old/libansilove-1.1.9/THANKS 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/THANKS 2020-02-17 13:00:16.000000000 +0100 @@ -11,7 +11,7 @@ Fonts: -- dMG of Ascii Arena for his Amiga Fonts (https://www.trueschool.se) +- dMG for the excellent Amiga bitmap fonts package (https://www.trueschool.se) - Kosta Kostis (http://www.kostis.net) for his fantastic CPI tools - Dimitar Zhekov for the Terminus font (http://terminus-font.sourceforge.net) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/TODO new/libansilove-1.2.0/TODO --- old/libansilove-1.1.9/TODO 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/TODO 1970-01-01 01:00:00.000000000 +0100 @@ -1,3 +0,0 @@ -- Allow enabling DOS aspect ratio + retina at the same time -- Wrap lines longer than 80 columns -- Complete the manual page for the library diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/example/example.c new/libansilove-1.2.0/example/example.c --- old/libansilove-1.1.9/example/example.c 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/example/example.c 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,7 @@ #include <ansilove.h> -int main() +int +main() { struct ansilove_ctx ctx; struct ansilove_options options; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/include/ansilove.h new/libansilove-1.2.0/include/ansilove.h --- old/libansilove-1.1.9/include/ansilove.h 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/include/ansilove.h 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * ansilove.h - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus @@ -20,11 +20,11 @@ #define ANSILOVE_EXTERN __attribute__((visibility("default"))) /* Version number */ -#define ANSILOVE_VERSION "1.1.9" +#define ANSILOVE_VERSION "1.2.0" #define ANSILOVE_VERSION_MAJOR 1 -#define ANSILOVE_VERSION_MINOR 1 -#define ANSILOVE_VERSION_PATCH 9 +#define ANSILOVE_VERSION_MINOR 2 +#define ANSILOVE_VERSION_PATCH 0 /* Error codes */ #define ANSILOVE_INVALID_PARAM 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/libansilove.3 new/libansilove-1.2.0/libansilove.3 --- old/libansilove-1.1.9/libansilove.3 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/libansilove.3 1970-01-01 01:00:00.000000000 +0100 @@ -1,81 +0,0 @@ -.\" -.\" Copyright (c) 2011-2020, Stefan Vogt, Brian Cassidy, and Frederic Cambus -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions are met: -.\" -.\" * Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" -.\" * Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS -.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -.\" POSSIBILITY OF SUCH DAMAGE. -.\" -.Dd $Mdocdate: January 17 2020 $ -.Dt LIBANSILOVE 1 -.Os -.Sh NAME -.Nm libansilove -.Nd Library for converting ANSI, ASCII, and other formats to PNG -.Sh DESCRIPTION -.Nm -is a library to convert ANSi and artscene related file formats into PNG -images, supporting ANSI (.ANS), PCBoard (.PCB), Binary (.BIN), Artworx -(.ADF), iCE Draw (.IDF), Tundra (.TND) and XBin (.XB) formats. -.Pp -It creates size optimized 4-bit PNG files and supports 80x25 and 80x50 -PC fonts (including all the 14 MS-DOS charsets), Amiga fonts, and -iCE colors. -.Pp -All library functions take a context, defined as an -.Em ansilove_ctx -structure in -.Pa include/ansilove.h : -.Bd -literal -struct ansilove_ctx { - uint8_t *buffer; - size_t maplen; - size_t length; - struct ansilove_png png; - uint8_t error; -}; -.Ed -.Pp -Options are passed to the different loaders using the -.Em ansilove_options -structure in -.Pa include/ansilove.h : -.Bd -literal -struct ansilove_options { - bool diz; - bool dos; - bool icecolors; - bool truecolor; - int16_t columns; - uint8_t font; - uint8_t bits; - uint8_t mode; - uint8_t scale_factor; -}; -.Ed -.Sh AUTHORS -.An -nosplit -.Nm -was written by -.An Stefan Vogt , -.An Brian Cassidy , -and -.An Frederic Cambus . diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/man/ansilove_ansi.3 new/libansilove-1.2.0/man/ansilove_ansi.3 --- old/libansilove-1.1.9/man/ansilove_ansi.3 1970-01-01 01:00:00.000000000 +0100 +++ new/libansilove-1.2.0/man/ansilove_ansi.3 2020-02-17 13:00:16.000000000 +0100 @@ -0,0 +1,43 @@ +.\" +.\" Copyright (c) 2011-2020, Stefan Vogt, Brian Cassidy, and Frederic Cambus +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions are met: +.\" +.\" * Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" +.\" * Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS +.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\" POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd $Mdocdate: February 14 2020 $ +.Dt ANSILOVE_ANSI 3 +.Os +.Sh NAME +.Nm ansilove_ansi +.Nd Process and render ANSI content +.Sh SYNOPSIS +.In ansilove.h +.Ft int +.Fn ansilove_ansi "struct ansilove_ctx *ctx" "struct ansilove_options *options" +.Sh SEE ALSO +.Xr ansilove_artworx 3 , +.Xr ansilove_binary 3 , +.Xr ansilove_icedraw 3 , +.Xr ansilove_pcboard 3 , +.Xr ansilove_tundra 3 , +.Xr ansilove_xbin 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/man/ansilove_artworx.3 new/libansilove-1.2.0/man/ansilove_artworx.3 --- old/libansilove-1.1.9/man/ansilove_artworx.3 1970-01-01 01:00:00.000000000 +0100 +++ new/libansilove-1.2.0/man/ansilove_artworx.3 2020-02-17 13:00:16.000000000 +0100 @@ -0,0 +1,43 @@ +.\" +.\" Copyright (c) 2011-2020, Stefan Vogt, Brian Cassidy, and Frederic Cambus +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions are met: +.\" +.\" * Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" +.\" * Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS +.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\" POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd $Mdocdate: February 14 2020 $ +.Dt ANSILOVE_ARTWORX 3 +.Os +.Sh NAME +.Nm ansilove_artworx +.Nd Process and render Artworx content +.Sh SYNOPSIS +.In ansilove.h +.Ft int +.Fn ansilove_artworx "struct ansilove_ctx *ctx" "struct ansilove_options *options" +.Sh SEE ALSO +.Xr ansilove_ansi 3 , +.Xr ansilove_binary 3 , +.Xr ansilove_icedraw 3 , +.Xr ansilove_pcboard 3 , +.Xr ansilove_tundra 3 , +.Xr ansilove_xbin 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/man/ansilove_binary.3 new/libansilove-1.2.0/man/ansilove_binary.3 --- old/libansilove-1.1.9/man/ansilove_binary.3 1970-01-01 01:00:00.000000000 +0100 +++ new/libansilove-1.2.0/man/ansilove_binary.3 2020-02-17 13:00:16.000000000 +0100 @@ -0,0 +1,43 @@ +.\" +.\" Copyright (c) 2011-2020, Stefan Vogt, Brian Cassidy, and Frederic Cambus +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions are met: +.\" +.\" * Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" +.\" * Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS +.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\" POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd $Mdocdate: February 14 2020 $ +.Dt ANSILOVE_BINARY 3 +.Os +.Sh NAME +.Nm ansilove_binary +.Nd Process and render binary content +.Sh SYNOPSIS +.In ansilove.h +.Ft int +.Fn ansilove_binary "struct ansilove_ctx *ctx" "struct ansilove_options *options" +.Sh SEE ALSO +.Xr ansilove_ansi 3 , +.Xr ansilove_artworx 3 , +.Xr ansilove_icedraw 3 , +.Xr ansilove_pcboard 3 , +.Xr ansilove_tundra 3 , +.Xr ansilove_xbin 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/man/ansilove_clean.3 new/libansilove-1.2.0/man/ansilove_clean.3 --- old/libansilove-1.1.9/man/ansilove_clean.3 1970-01-01 01:00:00.000000000 +0100 +++ new/libansilove-1.2.0/man/ansilove_clean.3 2020-02-17 13:00:16.000000000 +0100 @@ -0,0 +1,41 @@ +.\" +.\" Copyright (c) 2011-2020, Stefan Vogt, Brian Cassidy, and Frederic Cambus +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions are met: +.\" +.\" * Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" +.\" * Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS +.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\" POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd $Mdocdate: February 14 2020 $ +.Dt ANSILOVE_CLEAN 3 +.Os +.Sh NAME +.Nm ansilove_clean +.Nd Clean up an ansilove context +.Sh SYNOPSIS +.In ansilove.h +.Ft char * +.Fn ansilove_error "struct ansilove_ctx *ctx" +.Sh SEE ALSO +.Xr ansilove_error 3 , +.Xr ansilove_init 3 , +.Xr ansilove_loadfile 3 , +.Xr ansilove_savefile 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/man/ansilove_error.3 new/libansilove-1.2.0/man/ansilove_error.3 --- old/libansilove-1.1.9/man/ansilove_error.3 1970-01-01 01:00:00.000000000 +0100 +++ new/libansilove-1.2.0/man/ansilove_error.3 2020-02-17 13:00:16.000000000 +0100 @@ -0,0 +1,41 @@ +.\" +.\" Copyright (c) 2011-2020, Stefan Vogt, Brian Cassidy, and Frederic Cambus +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions are met: +.\" +.\" * Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" +.\" * Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS +.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\" POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd $Mdocdate: February 14 2020 $ +.Dt ANSILOVE_ERROR 3 +.Os +.Sh NAME +.Nm ansilove_error +.Nd Return an error string +.Sh SYNOPSIS +.In ansilove.h +.Ft char * +.Fn ansilove_error "struct ansilove_ctx *ctx" +.Sh SEE ALSO +.Xr ansilove_clean 3 , +.Xr ansilove_init 3 , +.Xr ansilove_loadfile 3 , +.Xr ansilove_savefile 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/man/ansilove_icedraw.3 new/libansilove-1.2.0/man/ansilove_icedraw.3 --- old/libansilove-1.1.9/man/ansilove_icedraw.3 1970-01-01 01:00:00.000000000 +0100 +++ new/libansilove-1.2.0/man/ansilove_icedraw.3 2020-02-17 13:00:16.000000000 +0100 @@ -0,0 +1,43 @@ +.\" +.\" Copyright (c) 2011-2020, Stefan Vogt, Brian Cassidy, and Frederic Cambus +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions are met: +.\" +.\" * Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" +.\" * Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS +.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\" POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd $Mdocdate: February 14 2020 $ +.Dt ANSILOVE_ICEDRAW 3 +.Os +.Sh NAME +.Nm ansilove_icedraw +.Nd Process and render iCE Draw content +.Sh SYNOPSIS +.In ansilove.h +.Ft int +.Fn ansilove_icedraw "struct ansilove_ctx *ctx" "struct ansilove_options *options" +.Sh SEE ALSO +.Xr ansilove_ansi 3 , +.Xr ansilove_artworx 3 , +.Xr ansilove_binary 3 , +.Xr ansilove_pcboard 3 , +.Xr ansilove_tundra 3 , +.Xr ansilove_xbin 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/man/ansilove_init.3 new/libansilove-1.2.0/man/ansilove_init.3 --- old/libansilove-1.1.9/man/ansilove_init.3 1970-01-01 01:00:00.000000000 +0100 +++ new/libansilove-1.2.0/man/ansilove_init.3 2020-02-17 13:00:16.000000000 +0100 @@ -0,0 +1,41 @@ +.\" +.\" Copyright (c) 2011-2020, Stefan Vogt, Brian Cassidy, and Frederic Cambus +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions are met: +.\" +.\" * Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" +.\" * Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS +.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\" POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd $Mdocdate: February 14 2020 $ +.Dt ANSILOVE_INIT 3 +.Os +.Sh NAME +.Nm ansilove_init +.Nd Initialize libansilove +.Sh SYNOPSIS +.In ansilove.h +.Ft int +.Fn ansilove_init "struct ansilove_ctx *ctx" "struct ansilove_options *options" +.Sh SEE ALSO +.Xr ansilove_clean 3 , +.Xr ansilove_error 3 , +.Xr ansilove_loadfile 3 , +.Xr ansilove_savefile 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/man/ansilove_loadfile.3 new/libansilove-1.2.0/man/ansilove_loadfile.3 --- old/libansilove-1.1.9/man/ansilove_loadfile.3 1970-01-01 01:00:00.000000000 +0100 +++ new/libansilove-1.2.0/man/ansilove_loadfile.3 2020-02-17 13:00:16.000000000 +0100 @@ -0,0 +1,41 @@ +.\" +.\" Copyright (c) 2011-2020, Stefan Vogt, Brian Cassidy, and Frederic Cambus +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions are met: +.\" +.\" * Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" +.\" * Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS +.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\" POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd $Mdocdate: February 14 2020 $ +.Dt ANSILOVE_LOADFILE 3 +.Os +.Sh NAME +.Nm ansilove_loadfile +.Nd Load a file from disk +.Sh SYNOPSIS +.In ansilove.h +.Ft int +.Fn ansilove_loadfile "struct ansilove_ctx *ctx" "char *input" +.Sh SEE ALSO +.Xr ansilove_clean 3 , +.Xr ansilove_error 3 , +.Xr ansilove_init 3 , +.Xr ansilove_savefile 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/man/ansilove_pcboard.3 new/libansilove-1.2.0/man/ansilove_pcboard.3 --- old/libansilove-1.1.9/man/ansilove_pcboard.3 1970-01-01 01:00:00.000000000 +0100 +++ new/libansilove-1.2.0/man/ansilove_pcboard.3 2020-02-17 13:00:16.000000000 +0100 @@ -0,0 +1,43 @@ +.\" +.\" Copyright (c) 2011-2020, Stefan Vogt, Brian Cassidy, and Frederic Cambus +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions are met: +.\" +.\" * Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" +.\" * Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS +.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\" POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd $Mdocdate: February 14 2020 $ +.Dt ANSILOVE_PCBOARD 3 +.Os +.Sh NAME +.Nm ansilove_pcboard +.Nd Process and render PCBoard content +.Sh SYNOPSIS +.In ansilove.h +.Ft int +.Fn ansilove_pcboard "struct ansilove_ctx *ctx" "struct ansilove_options *options" +.Sh SEE ALSO +.Xr ansilove_ansi 3 , +.Xr ansilove_artworx 3 , +.Xr ansilove_binary 3 , +.Xr ansilove_icedraw 3 , +.Xr ansilove_tundra 3 , +.Xr ansilove_xbin 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/man/ansilove_savefile.3 new/libansilove-1.2.0/man/ansilove_savefile.3 --- old/libansilove-1.1.9/man/ansilove_savefile.3 1970-01-01 01:00:00.000000000 +0100 +++ new/libansilove-1.2.0/man/ansilove_savefile.3 2020-02-17 13:00:16.000000000 +0100 @@ -0,0 +1,41 @@ +.\" +.\" Copyright (c) 2011-2020, Stefan Vogt, Brian Cassidy, and Frederic Cambus +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions are met: +.\" +.\" * Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" +.\" * Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS +.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\" POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd $Mdocdate: February 14 2020 $ +.Dt ANSILOVE_SAVEFILE 3 +.Os +.Sh NAME +.Nm ansilove_savefile +.Nd Output PNG data to a file +.Sh SYNOPSIS +.In ansilove.h +.Ft int +.Fn ansilove_savefile "struct ansilove_ctx *ctx" "char *output" +.Sh SEE ALSO +.Xr ansilove_clean 3 , +.Xr ansilove_error 3 , +.Xr ansilove_init 3 , +.Xr ansilove_loadfile 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/man/ansilove_tundra.3 new/libansilove-1.2.0/man/ansilove_tundra.3 --- old/libansilove-1.1.9/man/ansilove_tundra.3 1970-01-01 01:00:00.000000000 +0100 +++ new/libansilove-1.2.0/man/ansilove_tundra.3 2020-02-17 13:00:16.000000000 +0100 @@ -0,0 +1,43 @@ +.\" +.\" Copyright (c) 2011-2020, Stefan Vogt, Brian Cassidy, and Frederic Cambus +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions are met: +.\" +.\" * Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" +.\" * Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS +.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\" POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd $Mdocdate: February 14 2020 $ +.Dt ANSILOVE_TUNDRA 3 +.Os +.Sh NAME +.Nm ansilove_tundra +.Nd Process and render TundraDraw content +.Sh SYNOPSIS +.In ansilove.h +.Ft int +.Fn ansilove_tundra "struct ansilove_ctx *ctx" "struct ansilove_options *options" +.Sh SEE ALSO +.Xr ansilove_ansi 3 , +.Xr ansilove_artworx 3 , +.Xr ansilove_binary 3 , +.Xr ansilove_icedraw 3 , +.Xr ansilove_pcboard 3 , +.Xr ansilove_xbin 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/man/ansilove_xbin.3 new/libansilove-1.2.0/man/ansilove_xbin.3 --- old/libansilove-1.1.9/man/ansilove_xbin.3 1970-01-01 01:00:00.000000000 +0100 +++ new/libansilove-1.2.0/man/ansilove_xbin.3 2020-02-17 13:00:16.000000000 +0100 @@ -0,0 +1,43 @@ +.\" +.\" Copyright (c) 2011-2020, Stefan Vogt, Brian Cassidy, and Frederic Cambus +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions are met: +.\" +.\" * Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" +.\" * Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS +.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\" POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd $Mdocdate: February 14 2020 $ +.Dt ANSILOVE_XBIN 3 +.Os +.Sh NAME +.Nm ansilove_xbin +.Nd Process and render XBin content +.Sh SYNOPSIS +.In ansilove.h +.Ft int +.Fn ansilove_xbin "struct ansilove_ctx *ctx" "struct ansilove_options *options" +.Sh SEE ALSO +.Xr ansilove_ansi 3 , +.Xr ansilove_artworx 3 , +.Xr ansilove_binary 3 , +.Xr ansilove_icedraw 3 , +.Xr ansilove_pcboard 3 , +.Xr ansilove_tundra 3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/man/libansilove.3 new/libansilove-1.2.0/man/libansilove.3 --- old/libansilove-1.1.9/man/libansilove.3 1970-01-01 01:00:00.000000000 +0100 +++ new/libansilove-1.2.0/man/libansilove.3 2020-02-17 13:00:16.000000000 +0100 @@ -0,0 +1,81 @@ +.\" +.\" Copyright (c) 2011-2020, Stefan Vogt, Brian Cassidy, and Frederic Cambus +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions are met: +.\" +.\" * Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" +.\" * Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS +.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +.\" POSSIBILITY OF SUCH DAMAGE. +.\" +.Dd $Mdocdate: January 17 2020 $ +.Dt LIBANSILOVE 3 +.Os +.Sh NAME +.Nm libansilove +.Nd Library for converting ANSI, ASCII, and other formats to PNG +.Sh DESCRIPTION +.Nm +is a library to convert ANSi and artscene related file formats into PNG +images, supporting ANSI (.ANS), PCBoard (.PCB), Binary (.BIN), Artworx +(.ADF), iCE Draw (.IDF), Tundra (.TND) and XBin (.XB) formats. +.Pp +It creates size optimized 4-bit PNG files and supports 80x25 and 80x50 +PC fonts (including all the 14 MS-DOS charsets), Amiga fonts, and +iCE colors. +.Pp +All library functions take a context, defined as an +.Em ansilove_ctx +structure in +.Pa include/ansilove.h : +.Bd -literal +struct ansilove_ctx { + uint8_t *buffer; + size_t maplen; + size_t length; + struct ansilove_png png; + uint8_t error; +}; +.Ed +.Pp +Options are passed to the different loaders using the +.Em ansilove_options +structure in +.Pa include/ansilove.h : +.Bd -literal +struct ansilove_options { + bool diz; + bool dos; + bool icecolors; + bool truecolor; + int16_t columns; + uint8_t font; + uint8_t bits; + uint8_t mode; + uint8_t scale_factor; +}; +.Ed +.Sh AUTHORS +.An -nosplit +.Nm +was written by +.An Stefan Vogt , +.An Brian Cassidy , +and +.An Frederic Cambus . diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/clean.c new/libansilove-1.2.0/src/clean.c --- old/libansilove-1.1.9/src/clean.c 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/clean.c 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * clean.c - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/config.h new/libansilove-1.2.0/src/config.h --- old/libansilove-1.1.9/src/config.h 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/config.h 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * config.h - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/drawchar.c new/libansilove-1.2.0/src/drawchar.c --- old/libansilove-1.1.9/src/drawchar.c 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/drawchar.c 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * drawchar.c - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/drawchar.h new/libansilove-1.2.0/src/drawchar.h --- old/libansilove-1.1.9/src/drawchar.h 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/drawchar.h 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * drawchar.h - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/error.c new/libansilove-1.2.0/src/error.c --- old/libansilove-1.1.9/src/error.c 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/error.c 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * error.c - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/fonts.c new/libansilove-1.2.0/src/fonts.c --- old/libansilove-1.1.9/src/fonts.c 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/fonts.c 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * fonts.c - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/fonts.h new/libansilove-1.2.0/src/fonts.h --- old/libansilove-1.1.9/src/fonts.h 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/fonts.h 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * fonts.h - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/init.c new/libansilove-1.2.0/src/init.c --- old/libansilove-1.1.9/src/init.c 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/init.c 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * init.c - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/loaders/ansi.c new/libansilove-1.2.0/src/loaders/ansi.c --- old/libansilove-1.1.9/src/loaders/ansi.c 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/loaders/ansi.c 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * ansi.c - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/loaders/artworx.c new/libansilove-1.2.0/src/loaders/artworx.c --- old/libansilove-1.1.9/src/loaders/artworx.c 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/loaders/artworx.c 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * artworx.c - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/loaders/binary.c new/libansilove-1.2.0/src/loaders/binary.c --- old/libansilove-1.1.9/src/loaders/binary.c 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/loaders/binary.c 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * binary.c - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/loaders/icedraw.c new/libansilove-1.2.0/src/loaders/icedraw.c --- old/libansilove-1.1.9/src/loaders/icedraw.c 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/loaders/icedraw.c 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * icedraw.c - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/loaders/pcboard.c new/libansilove-1.2.0/src/loaders/pcboard.c --- old/libansilove-1.1.9/src/loaders/pcboard.c 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/loaders/pcboard.c 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * pcboard.c - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus @@ -47,6 +47,9 @@ struct fontStruct fontData; size_t loop = 0, structIndex = 0; + options->columns = options->columns ? options->columns : 80; + uint16_t columns = options->columns; + /* font selection */ select_font(&fontData, options->font); @@ -55,7 +58,7 @@ uint8_t character, *cursor; uint32_t background = 0, foreground = 7; - uint32_t column = 0, row = 0, columnMax = 0, rowMax = 0; + uint32_t column = 0, row = 0, rowMax = 0; /* PCB buffer structure array definition */ struct pcbChar *ptr, *pcboard_buffer; @@ -66,7 +69,7 @@ while (loop < ctx->length) { cursor = &ctx->buffer[loop]; - if (column == 80) { + if (column == columns) { row++; column = 0; } @@ -98,7 +101,6 @@ column = 0; row = 0; - columnMax = 0; rowMax = 0; /* reset pcboard buffer */ @@ -120,10 +122,7 @@ } break; default: - /* record number of columns and lines used */ - if (column > columnMax) - columnMax = column; - + /* record number of lines used */ if (row > rowMax) rowMax = row; @@ -150,11 +149,10 @@ loop++; } - columnMax++; rowMax++; /* allocate buffer image memory */ - canvas = gdImageCreate(80 * options->bits, (rowMax)*fontData.height); + canvas = gdImageCreate(columns * options->bits, (rowMax)*fontData.height); if (!canvas) { ctx->error = ANSILOVE_GD_ERROR; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/loaders/tundra.c new/libansilove-1.2.0/src/loaders/tundra.c --- old/libansilove-1.1.9/src/loaders/tundra.c 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/loaders/tundra.c 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * tundra.c - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/loaders/xbin.c new/libansilove-1.2.0/src/loaders/xbin.c --- old/libansilove-1.1.9/src/loaders/xbin.c 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/loaders/xbin.c 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * xbin.c - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/loadfile.c new/libansilove-1.2.0/src/loadfile.c --- old/libansilove-1.1.9/src/loadfile.c 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/loadfile.c 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * loadfile.c - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/output.c new/libansilove-1.2.0/src/output.c --- old/libansilove-1.1.9/src/output.c 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/output.c 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * output.c - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/output.h new/libansilove-1.2.0/src/output.h --- old/libansilove-1.1.9/src/output.h 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/output.h 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * output.h - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libansilove-1.1.9/src/savefile.c new/libansilove-1.2.0/src/savefile.c --- old/libansilove-1.1.9/src/savefile.c 2020-01-20 16:08:36.000000000 +0100 +++ new/libansilove-1.2.0/src/savefile.c 2020-02-17 13:00:16.000000000 +0100 @@ -1,6 +1,6 @@ /* * savefile.c - * libansilove 1.1.9 + * libansilove 1.2.0 * https://www.ansilove.org * * Copyright (c) 2011-2020 Stefan Vogt, Brian Cassidy, and Frederic Cambus
