Sam Hocevar
f32c24a10d
build: fix the WTFPL homepage and copyright information.
12 years ago
Sam Hocevar
a09f027727
Add the copyright unit test and update copyright information everywhere.
15 years ago
Sam Hocevar
107ff4b815
Large source code cleanup, getting rid of spaces, tabs, and svn keywords.
15 years ago
Sam Hocevar
1edad92edc
Simpler and more accurate troff colour selection.
15 years ago
Pascal Terjan
c73ff6d51d
* Always draw all background in troff output, on beginning of lines too
15 years ago
Sam Hocevar
3584efdf4b
Fix the source code to reduce testsuite errors.
15 years ago
Pascal Terjan
a2fff59c1e
* Always draw all background in troff output
15 years ago
Pascal Terjan
f8a477f2ab
* Map colors to the ones known by groff, defining mines don't work
15 years ago
Pascal Terjan
c7ec6a0e94
* Improve a bit troff export
15 years ago
Pascal Terjan
1c669cd86b
* Add experimental troff export
15 years ago
Sam Hocevar
644ee4a78a
Coding style: remove tabs and trailing spaces.
15 years ago
Pascal Terjan
ac9b1074b4
Fix limits settings in area export
15 years ago
Sam Hocevar
d3ef2bbecd
Add caca_export_area_to_memory() to export only a selected part of the
current canvas. This is useful to export dirty rectangles. Accordingly,
add caca_import_area_from_memory() and caca_import_area_from_file().
15 years ago
Sam Hocevar
11428406c1
Split import.c and export.c to create a new text.c codec file in order
to keep source files under 1,000 lines of code.
15 years ago
Pascal Terjan
d1db2df568
Revert r3478
15 years ago
Pascal Terjan
33f2264bcd
Import/export dirty rectangles
15 years ago
Sam Hocevar
fc193a4b99
Fix a few implicit cast related warnings on VC++.
15 years ago
Ben Wiley Sittler
07d9dcc348
preserve column alignment better by breaking cells at spaces; preserve
readability of fullwidth characters better by not placing cell
boundaries between them unneccessarily
16 years ago
Ben Wiley Sittler
e434549a4d
force a column alignment after each column containing a fullwidth character.
16 years ago
Ben Wiley Sittler
d32f8eb7f8
fix foreground-color and quoting bugs in the "html" exporter; also,
the output is now labelled as XHTML 1.0 Strict, since it does conform
to that DTD. also removed spurious cellpadding and cellspacing from
<div /> markup. also handle non-characters by conversion to
replacement character, and handle more control characters by
conversion to no-break space. finally, switch from to the
equivalent   so that a non-validating XML parser (which is most
of them) can correctly parse this document.
16 years ago
Ben Wiley Sittler
e8756c7c46
do not split a fullwidth character in the middle. yes, in some
degenerate cases this will lead to incorrectly-displayed tables. i
don't yet have a solution.
16 years ago
Ben Wiley Sittler
567ae29030
do not expand tabs here. instead, importers need to understand '\t'
and fill the canvas up to the tab stop with it. once that works,
support will be added here (treating it as space.) also, fewer columns
are now generated. apparently generating a minimal number of them
fixes a bunch of the table-layout bugs.
16 years ago
Ben Wiley Sittler
afcad730a8
some unicode characters could overflow the buffer; handle more control
characters and non-unicode codepoints when generating HTML.
16 years ago
Ben Wiley Sittler
f4b036ef09
optimization: when the canvas is only a single line, we can always
optimize by merging cells
16 years ago
Ben Wiley Sittler
86a512cf34
work around table layout bugs by ensuring that if there are multiple
cells on any row of the table then the very first row does not use the
cell-merging optimization; this appears to fix the last of the table
layout bugs seen in truecolor.php; also fix the foreground and
background color bugs seen in truecolor.php.
16 years ago
Ben Wiley Sittler
ef3b597946
add a <table summary="..." /> attribute so screenreader software does not
get hopelessly lost.
16 years ago
Ben Wiley Sittler
cb49816e2e
use a single table cell for adjacent attribute runs provided the background color will be the same; this allows us to avoid special stylesheets for our example programs
16 years ago
Ben Wiley Sittler
8cc4c277b3
output valid XHTML (it's valid HTML3 too); note that this drops the COLS=... attribute on the table, but that had previously been calculated incorrectly anyhow so i doubt it mattered
16 years ago
Ben Wiley Sittler
e6e8418523
fix table border, colors, and quoting of <, ", ', and > in html3 output
16 years ago
Ben Wiley Sittler
7273a9dbf2
correctly account for tabs in html3 export
16 years ago
Sam Hocevar
e1562a8d46
libcaca: move codecs and import/export functions into subdirectories.
16 years ago
Sam Hocevar
319cc69db3
Continue the libcaca/libcucul merge. Source and binary compatibility
are almost there.
16 years ago
Sam Hocevar
f61816ceb7
Starting refactoring to get rid of libcucul. The initial reason for the
split is rendered moot by the plugin system: when enabled, binaries do
not link directly with libX11 or libGL. I hope this is a step towards
more consisteny and clarity.
16 years ago
Sam Hocevar
4ea785f818
* Remove all unsigned ints from exported functions. Signed arithmetic is
far better for error checking.
16 years ago
Sam Hocevar
ec68a634cf
* Get rid of the last long types in the API.
* Use size_t and ssize_t where appropriate.
16 years ago
Sam Hocevar
f44b5e11fa
* Changed most "unsigned char" variables into "uint8_t", including in
prototypes. As they are equivalent, this does not break the ABI.
16 years ago
Sam Hocevar
99b5396e8e
* Remove #include <stdint.h> etc. from "common.h". Instead, make sure that
<cucul.h> will provide the C99 types, even if libcaca has been installed.
* Rename what's left of "common.h" to "stubs.h".
* Remove all references to erroneous <inttypes.h> from source files.
16 years ago
Sam Hocevar
b8d3f71ae8
* Fix canvas export for the caca format. We now export all frames.
* Fix the sprite import/export example.
17 years ago
Sam Hocevar
ac91d59360
* Add a French BBCode exporter, for use on http://libcaca.skyrock.com/ for
instance.
17 years ago
Sam Hocevar
9c72677ccf
* Add cucul_get_version() and caca_get_version() and updated C++ bindings
accordingly.
* The C++ test example no longer needs "config.h".
17 years ago
Sam Hocevar
b519d05bce
* Export cucul_attr_to_rgb12_bg(), cucul_attr_to_rgb12_fg() and
cucul_attr_to_argb64() (previously _cucul_attr_to_rgb12bg,
_cucul_attr_to_rgb12fg and _cucul_attr_to_argb4) in the official
libcucul API.
* Cleanup complete: libcaca no longer depends on "cucul_internals.h".
17 years ago
Sam Hocevar
2149829bdf
* Added as many "const" qualifiers as possible to the public API.
17 years ago
Sam Hocevar
9597783308
* Bwarf, typo in the no warranty clause.
18 years ago
Sam Hocevar
33058757da
* Add a no warranty clause to the code.
18 years ago
Sam Hocevar
f1f00897c5
* Fix shadowing declarations.
18 years ago
Sam Hocevar
55765045c8
* Support for CUCUL_DEFAULT and CUCUL_TRANSPARENT in the HTML exporters.
* Updated export test accordingly.
18 years ago
Sam Hocevar
51936f585c
* Got rid of HAVE_ERRNO_H ifdefs by defining seterrno()/geterrno() functions.
* More debugging information in the import/export and font functions.
18 years ago
Sam Hocevar
18f1f68be7
* Add a debug() function and a --enable-debug configure flag.
18 years ago
Sam Hocevar
40aa3b7933
* Documentation updates. Moved the canvas and font format definitions to
the Doxygen documentation.
18 years ago
Sam Hocevar
aa3e191ccd
* Documentation fixes and TODO updates.
18 years ago