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
Ben Wiley Sittler
609f1b8f43
echo rendered string in form value
16 years ago
Nicolas Vion
28a91b7d51
* Remove white and yellow colors for letters
16 years ago
Nicolas Vion
c93f953445
* Add an input box in sample web page figlet.php
16 years ago
Ben Wiley Sittler
05d915e155
remove the stylesheet, as it does not seem to help at the moment. also remove the <pre></pre> in figlet.php since it does not seem to make a difference since the table markup includes <tt></tt> inside each cell.
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
c8b3044c43
more conforming to 79-character limit and using tabs
16 years ago
Ben Wiley Sittler
ec5aa385a4
generate self-referencing script URI correctly, taking into account that the
script might be content-negotiated, renamed, symlinked, or otherwise
alised in URI-space.
16 years ago
Ben Wiley Sittler
68386adecd
added a link so you can view the image only (also good for
lynx/elinks) and some alt="..." text so the validator does not complain.
16 years ago
Nicolas Vion
74475a3583
* Change structure of sample file render.php
16 years ago
Ben Wiley Sittler
419d70e614
send correct content-type; add a missing doctype (although technically the table is not allowed inside pre, but that we will need to find another fix for)
16 years ago
Ben Wiley Sittler
34b0a2f3fb
apparently php inw ww dir should not be executable?
16 years ago
Ben Wiley Sittler
70beafa3a6
better UI, maybe?
16 years ago
Ben Wiley Sittler
260b5acc17
seems to work
16 years ago
Ben Wiley Sittler
3fbfa5e3d2
copy render.php to www in preparation for htmlizing
16 years ago
Ben Wiley Sittler
f4ff053390
HTML conversion of text.php
16 years ago
Ben Wiley Sittler
eae053c927
add missing newline at end of file
16 years ago
Ben Wiley Sittler
5eb92c7713
apparently php inw ww dir should not be executable?
16 years ago
Ben Wiley Sittler
dd1478f372
copy text.php to www in preparation for htmlizing
16 years ago
Nicolas Vion
3b43a64898
* Improve php object layer "caca.php"
16 years ago
Nicolas Vion
b834c10f56
* Change permission of web sample files
16 years ago
Nicolas Vion
134b256865
* Improve php class layer for caca-php
16 years ago
Nicolas Vion
dc3d7c0899
* Add skeleton of php class layer for caca-php
16 years ago
Nicolas Vion
bff86e8b8f
* Add web sample program: dithering.php
16 years ago
Ben Wiley Sittler
d47306565f
oops! make the .php executable
16 years ago
Nicolas Vion
bf31ad01f7
* Add web sample "figlet.php"
16 years ago