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
Ben Wiley Sittler
20d502297d
now truecolor works
16 years ago
Ben Wiley Sittler
e0042e87b9
now arrow keys, function keys, etc. work
16 years ago
Nicolas Vion
f016c8f416
* Check that a caca_figfont was loaded before using it in caca_put_figchar()
16 years ago
Sam Hocevar
fae3c19835
libcaca: add fallback rotated glyphs to cope with third-party software.
16 years ago
Jean-Yves Lamoureux
da3549dec7
* Made Cocoa driver BEAUTIFUL ('fixed' default font size to constant values to make the look a bit more natural)
16 years ago
Sam Hocevar
d063465bf6
Fix <cucul.h> installation again.
16 years ago
Sam Hocevar
5cc440e199
Add a cucul.h symbolic link upon installation.
16 years ago
Sam Hocevar
e1562a8d46
libcaca: move codecs and import/export functions into subdirectories.
16 years ago
Sam Hocevar
149a29b38e
libcaca: fix a minor warning on DOS targets.
16 years ago
Sam Hocevar
e8f04805fd
Renamed msvc into win32.
16 years ago
Sam Hocevar
f3c3eac054
Reorganise MSVC files so that each project is with its source code.
16 years ago
Sam Hocevar
aadfe70d8d
Move stubs.h to caca/caca_stubs.h since it's only used by the library.
16 years ago
Sam Hocevar
f92312c512
libcaca: fix an infinite loop in the .pc file.
16 years ago
Sam Hocevar
16c3765dd7
configure.ac: use more modern autoconf syntax.
16 years ago
Sam Hocevar
045aa33b70
Properly export legacy 0.9 symbols.
16 years ago
Sam Hocevar
ebabc96cea
Fix for the libcucul symlinks installation, courtesy of Ben Wiley Sittler.
16 years ago
Ben Wiley Sittler
0b3b3e6d30
switch to weak aliases so it at least compiles on Mac OS X; note that the aliases do not actually work, so there is no cucul binary compatiblity in fact
16 years ago
Ben Wiley Sittler
0b303fab5b
remove reference to obsolete common.h
16 years ago
Ben Wiley Sittler
e24cd204b0
add missing CUCUL_* compatiblity constants
16 years ago
Sam Hocevar
9424863c81
Support for platforms where shared libraries are not called *.so.
16 years ago
Sam Hocevar
02e29b8cdc
End of the libcucul merge: add symbolic links where appropriate.
16 years ago
Sam Hocevar
00961e6088
caca, cxx: install symlinks for backwards compatibility with libcucul.
16 years ago
Sam Hocevar
ad4b8cfc99
.gitignore: ignore caca_types.h.
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
850fc14032
* Fix plugin build.
16 years ago
Sam Hocevar
9752e826d8
* Check for FTGL in the configure step, because we will use it later.
* Better CFLAGS and LDFLAGS propagation to the Makefiles.
16 years ago
Sam Hocevar
621f107c72
* Documentation fixes (due to renamings, some parameters were no longer
documented).
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
6a3f5c21f0
* Changed most of the long ints in the API into C99 types. WARNING: this
completely breaks compatibility with previous versions of libcaca on
64-bit systems.
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
725f29ee8e
* Put back all the shit in struct caca_event to avoid breaking existing
applications. I'll think of a migration path later.
17 years ago
Sam Hocevar
3602fc98be
* The SLang and ncurses drivers now put back the TERM environment variable
if they modified it.
17 years ago
Sam Hocevar
db1a77f0d0
* Only call glutInit() once through the program's lifetime.
* Free the internal font when closing the GL driver.
* Hide the window when closing the GL driver, because freeglut's
glutDestroyWindow() does not really closes the window.
17 years ago
Sam Hocevar
367e1ef512
* Fix a tiny use of uninitialised memory in caca_get_event() that may have
lead to deadlocks.
17 years ago
Sam Hocevar
b7a785ff38
* Implemented caca_set_display_driver() to change driver at runtime.
17 years ago
Sam Hocevar
e15e962928
* Implement caca_create_display_with_driver() to specify an output driver
without using environment variables..
* Implement caca_get_display_driver() to return the current display's
output driver.
* Add a simple example program to test caca_create_display_with_driver().
17 years ago