texmacs-dev
[Top][All Lists]
Advanced

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

Re: [Texmacs-dev] The "Creat Web site" issue and a proposed solution


From: Joris van der Hoeven
Subject: Re: [Texmacs-dev] The "Creat Web site" issue and a proposed solution
Date: Thu, 19 Aug 2004 15:35:42 +0200 (CEST)

On Wed, 18 Aug 2004, Andreas Seidl wrote:
> 2. First attempt for a solution
>
> I tried to add copying of graphics files to tmweb.scm. I got stuck,
> however, as I do not know what an url is and what the following
> functions do when called by tmweb-convert-dir:
>
> url-append
> url-any
> url-expand
> url-complete
> url-wildcard
>
> and there are even more of such functions in the subsequent procedures
> tmweb-convert-file-dir and tmweb-convert-file.

An url is a file, an url on the web, or a collection of urls.
Typically, a path or "all .tm files in a directory" are
collections of urls. You should take a look at url.cpp
in order to find out more about urls. We have primitives
for building urls, filtering urls (for instance,
keep only the read-only urls in a collection),
expanding them, etc.

> 4. Proposed Solution
>
> Copy all files (recursively) from the source to the destination
> directory, then generate the exported .html files in the destination
> directory. (I think it does not hurt to have the .tm files sit in the
> distination directory next to the .html files).
>
> I think this would allow most people to migrate their webpage to TeXmacs
> (once the remaining glitches of html export are resolved)

Seems to be a good idea. Actually, we might copy all files except
for files with the .tm extension, ~ suffix or CVS directories.
If you have time and propose such a patch (good way to find out
more about the urls), I will include it. Otherwise, it may take
some time...

> 5. One remaining problem
>
> One can't build a web page with TeXmacs and link to a .tm file to
> download.

This should be done using the markup. Probably you
may work out something using the "specific" tag.





reply via email to

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