Re: svn: /phd/trunk/ phpdotnet/phd/Format.php phpdotnet/phd/Package/Generic/PDF.php phpdotnet/phd/Package/Generic/XHTML.php
phpdotnet/phd/Package/PEAR/XHTML.php tests/php/TestChunkedXHTML.php tests/php/bug49101-1.phpt tests/php/bug49101-2.p
| From: | Hannes Magnusson | Date: | Thu, 09 Feb 2012 08:58:33 +0000 |
| Subject: | Re: svn: /phd/trunk/ phpdotnet/phd/Format.php phpdotnet/phd/Package/Generic/PDF.php phpdotnet/phd/Package/Generic/XHTML.php phpdotnet/phd/Package/PEAR/XHTML.php tests/php/TestChunkedXHTML.php tests/php/bug49101-1.phpt tests/php/bug49101-2.p |
||
| References: | 1 2 3 4 | Groups: | php.doc.cvs |
| Request: | Send a blank email to doc-cvs+get-9568@lists.php.net to get a copy of this message | ||
On Thu, Feb 9, 2012 at 08:01, Alexey Borzov <borz_off@cs.msu.su> wrote:
> Hi Hannes,
>
> On 08.02.2012 18:48, Hannes Magnusson wrote:
>>>
>>> The best approach is of course to write special code that will translate
>>> "1*" to whatever browsers understand (percents, likely). I am not even
>>> sure
>>
>>
>> Makes sense. Your current solution is probably better then what we had
>> before, unsure what the idea was in the beginning there... been awhile
>> :)
>>
>>> that it is possible to express "3*+1pc" in CSS.
>>
>>
>> I think thats an edgecase scenario that is unlikely to be used.
>
>
> For the record: there exists a Java extensions for DocBook XSL that does
> recalculation of column widths. Looks like it even handles edge cases:
>
>
> http://docbook.svn.sourceforge.net/viewvc/docbook/trunk/xsl-saxon/src/com/nwalsh/saxon/Table.java?revision=8098&view=markup
>
> It can be ported to PhD, but the task is not exactly trivial.
You need to read all the colspecs first, and possibly even the first
row in the table, before being able to calculate the proper width of
all the columns.. something that is very nasty PhD.
I really don't see the logic in a doc writer using this sort of crazy
syntax, so don't consider it worth the effort :]
-Hannes