web-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Started German website translation


From: Reinhard Mueller
Subject: Re: Started German website translation
Date: 22 Jan 2004 16:14:08 +0100

Am Do, 2004-01-22 um 15.52 schrieb Alfred M. Szmidt:
>    How about using Make and cpp for this?  You include stuff using
>    "#include "foo.html" and run make to generate the htmls for the
>    page.
> 
>    Perhaps this is a stupid idea, but we all know about make and
>    cpp. :)
> 
> You know, this isn't a totally moronic idea, I kinda like it.  Anyone
> else in favour of this instead? :-)

I like this idea, and i did something quite close to that in another
case I was facing a similar problem. However, it caused some troubles
when the text contains the string "/*", which is misinterpreted by cpp
to be the start of a comment, or if the text contains the string "UNIX",
which for cpp is #define'd to 1, and such things.

The approach I had in mind is based on the fact, that every html page
consists of three parts, where only the middle part is variable and the
first x lines and the last y lines of every page are (nearly) identical.
I call the fixed lines at that start of the file the "header" and the
fixed line at the end of the file the "footer", and using a simple cat,
i prepend and append them to the actual content.
(See my other mail).

Thanks,
Reinhard

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


reply via email to

[Prev in Thread] Current Thread [Next in Thread]