Ben Wiley Sittler
62b20bc8d1
copy import.c to import.php in preparation for phpizing
16 years ago
Ben Wiley Sittler
4b01269d8a
only fill the preview iframe when javascript is enabled
16 years ago
Ben Wiley Sittler
995edf8021
merge latest CLI example bugfixes into the HTML versions
16 years ago
Ben Wiley Sittler
e7305d8b68
fix typo in PHP binding of caca_set_Attr that caused segfault on linux; also remove workaround for spurious extra-argument requirement from two of the PHP examples
16 years ago
Ben Wiley Sittler
b76e1ed2b2
now generates HTML
16 years ago
Ben Wiley Sittler
b4375871d7
copy fullwidth.php to www in preparation for htmlizing
16 years ago
Ben Wiley Sittler
5558dbadc7
added copyright info for PHP conversion (blah blah blah...)
16 years ago
Ben Wiley Sittler
3ac8510e4c
now works as PHP
16 years ago
Ben Wiley Sittler
1e7ae2c712
copy fullwidth.c to fullwidth.php in preparation for phpizing
16 years ago
Ben Wiley Sittler
1e933f8d50
only assume svg preview ability in opera, WebKit and Gecko
16 years ago
Nicolas Vion
ab44c8daa7
* Improve object layer for caca-php
16 years ago
Ben Wiley Sittler
28121eec77
do not add history entries for iframe transitions
16 years ago
Ben Wiley Sittler
3336b41178
add missing id
16 years ago
Ben Wiley Sittler
dc32a8ac41
use some javascript to show inline previews using <iframe/> for some
of the formats (so far, html, html3, bbfr, and svg)
16 years ago
Ben Wiley Sittler
7b47610259
.caca files get an extension, too
16 years ago
Ben Wiley Sittler
a684af9ed6
suggest extensions for some of the inline formats too, since browsers
sometimes send them to external viewers and become confused if the
filename ends in '.php' (despite our correct content-type!)
16 years ago
Ben Wiley Sittler
9c556c4071
text formats embedding escape sequences get sent as attachments too
16 years ago
Ben Wiley Sittler
f1eedaf0b1
working HTML version of export.php accepting an optional file upload and exporting it using the selected format
16 years ago
Ben Wiley Sittler
242103d6d5
another typo
16 years ago
Ben Wiley Sittler
e8cd1896b7
spaces -> tabs
16 years ago
Ben Wiley Sittler
9712d7a48e
add missing content-type in the HTML case
16 years ago
Ben Wiley Sittler
6a373704cc
typo
16 years ago
Ben Wiley Sittler
36ccbf8220
make examples/demo.php executable
16 years ago
Ben Wiley Sittler
28300073de
copy export.php to www in preparation for htmlizing
16 years ago
Ben Wiley Sittler
ea2f4ff159
export.php is now actually php, and appears to work identically to its
C predecessor.
16 years ago
Ben Wiley Sittler
8d104f9b86
copy export.c to export.php in preparation for phpizing
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
Nicolas Vion
6dafdbfc5a
* Remove \t from content of $moo
* Change canvas size
* Fix coordinate of label "Moo!"
16 years ago
Nicolas Vion
be5de36e0f
* Change canvas size
16 years ago
Ben Wiley Sittler
ee088b89c1
htmlification of colors.php
16 years ago
Nicolas Vion
7910300a6e
* Fix coordinate of label "Moo!"
16 years ago
Ben Wiley Sittler
d32095400b
copy colors.php to www in preparation for htmlizing
16 years ago
Ben Wiley Sittler
ca055aa258
PHP conversion of colors.c
16 years ago
Ben Wiley Sittler
872ae6565a
copy colors.c to colors.php in preparation for phpizing
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
Nicolas Vion
ccb9757dcd
* Remove tabs from content of $moo
16 years ago
Nicolas Vion
74a6345966
* Improve Dithering and Canvas php classes
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
a9b0e626f9
forgot backslashes
16 years ago
Ben Wiley Sittler
2bb297d690
htmlification of truecolor.php; evidently there are some bugs yet in the html3 exporter
16 years ago
Ben Wiley Sittler
ada40425ce
copy truecolor.php to www in preparation for htmlizing
16 years ago
Ben Wiley Sittler
283ea9423c
convert to PHP and make executable
16 years ago
Ben Wiley Sittler
e359fec1ab
copy truecolor.c to truecolor.php in preparation for phpizing
16 years ago
Nicolas Vion
2eab7a6106
* Improve class "Dither"
16 years ago
Nicolas Vion
879ae0ce03
* Add class "Dither" to php object layer
16 years ago
Ben Wiley Sittler
b6db5dc781
add missing whitespace before /> so that the XHTML works in more plain-HTML parsers; quote attributes in double quotes rather than single quotes for the same reason
16 years ago
Ben Wiley Sittler
ef3b597946
add a <table summary="..." /> attribute so screenreader software does not
get hopelessly lost.
16 years ago