W3C home > Mailing lists > Public > www-amaya-dev@w3.org > March 2003

Re: Project about "Amaya"

From: Irene Vatton <irene.vatton@inrialpes.fr>
Date: Mon, 24 Mar 2003 10:15:44 +0100
To: "Veronica" <vesanvi@alumni.uv.es>
Cc: www-amaya-dev@w3.org
Message-Id: <20030324101544.0c6398e4.irene.vatton@inrialpes.fr>

On Sun, 23 Mar 2003 19:09:28 +0100 (CET)
"Veronica"<vesanvi@alumni.uv.es> wrote:

> Hi, I'm working on a project about "Amaya" for my graduation at 
> University. I would like to include the option Validate CSS in the 
> Menu and the W3C Validator there, too. But I need to know whether 
> this option is possible in the Amaya code, which part of the code 
> should be modificated and how it would be compiled.
> Thanks a lot.

Hi veronica,

I added www-amaya-dev@w3.org in cc, because other Amaya developers
could be interested too.

1- Edit the file Amaya/amaya/EDITOR.A to Insert the entry in the right menu
    I suggest to insert it into the menu Style.
    If you add  the following line
    "view:1 Style button:BValidCSS -> ValidCSS;"
    It will create an entry "BValidCSS" into the "Style" menu,  only displayed
    by the formatted view of the document (view:1). When invocating that 
    menu entry it will call the function "ValidCSS (document, view)".

2- Compile the application. The building will stop because the function 
     ValidCSS () doesn't exist.
    In the file Amaya/your_obj/amaya/EDITORactions.proto you will find
    the declaration of the function ValidCSS (). Take a copy of that declaration
   and put it in the file Amaya/amaya/EDITORactions.c.
   Then you have to write the code of the function.

3- You have also to add the text of the new entry into dialogue files.
    Check the position of the new dialogue in the generated file 

4- Open the XML base of dialogues:
    It's available on the CVS base but not included in the tar source
   (please ask us if you need it).
    Pay attention, this XML base uses UTF-8 characters.
    Add the corresponding entry at the right place in the base (just
    after the previous entry).

5- Regenerate dialogue files with the script PERL
    The first time you have to define the parent directory of the
     Amaya tree (for me it's /home/vatton/) and the object directory
    (for me it's LINUX-ELF).

6- Update the file of Amaya profiles Amaya/config/ProfileDefs to make 
    that function available in right profiles.

I guess the integration of validators is interesting for Amaya users. I propose 
to integrate your work in future Amaya releases if you agree.
Let me know if you need more help.
Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail: Irene.Vatton@inria.fr       655 avenue de l'Europe
Tel.: +33 4 76 61 53 61             Montbonnot
Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France
Received on Monday, 24 March 2003 04:15:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:25:49 UTC