From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 5DB56BB9A for ; Mon, 7 Nov 2005 14:50:48 +0100 (CET) Received: from tintin.inria.fr (tintin.inria.fr [128.93.24.126]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jA7Dom3g003178 for ; Mon, 7 Nov 2005 14:50:48 +0100 Date: Mon, 7 Nov 2005 14:50:47 +0100 From: Maxence Guesdon To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] ocamldoc charset specification? Message-ID: <20051107145047.4e6971cb@tintin.inria.fr> In-Reply-To: <4360AF46.7060201@andrej.com> References: <4360AF46.7060201@andrej.com> Organization: INRIA X-Mailer: Sylpheed-Claws 1.0.5 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 436F5BB8.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; maxence:01 guesdon:01 maxence:01 guesdon:01 caml-list:01 ocamldoc:01 andrej:01 andrej:01 ocamldoc:01 wrote:01 css:98 directive:02 encoding:02 encoding:02 inheriting:03 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On Thu, 27 Oct 2005 12:43:18 +0200 Andrej Bauer wrote: > Is it possible to tell ocamldoc that the generated HTML files should > specify that they are encoded in a given charset (in my case > iso-8859-2)? Or is there a way to tell in a CSS stylesheet that the > encoding of the HTML file is iso-8859-2? > > If neither of the above is possible, what is a reasonable solution? I > would like to avoid the use of .htaccess and DefaultCharset directive, > if possible. > > Note: I am not asking for ocamldoc to recode from one charset to > another, just to put information about the encoding in the html file. Hello, Two solutions: 1) make a string replacement after the generation of html files. 2) create a custom ocamldoc generator with a geenrator class inheriting from the standard html generator and change the part where the encoding is generated. Regards, -- Maxence Guesdon