Re: How about the status of some code in editcommands.c?

Irene Vatton <[email protected]>
Newsgroups gmane.comp.web.amaya.devel
Organization INRIA
Message-ID <[email protected]>
On Tue, 17 Dec 2002 02:00:50 +0900
[email protected] (Atsuhiko Yamanaka) wrote:

> 
> Hi,
> 
> I'm interested in editing I18N documents in Amaya,
> but it seems there are problems because of the incompleteness of
> chunk of code in 'thotlib/editing/editcommands.c', which is disabled as
> follows,
> 
> #ifdef IV /* not enough stable */
>                           if  (script != ' ' && script != 'D' &&
>                                pSelBox && pSelBox->BxScript != EOS &&
>                                pSelBox->BxScript != script)
> 
> How about the current status of that code?

That development is stuck.

> I understand that Amaya developers are now working on the SVG support and
> if that code is in low priority for core developers, I will start to hack that.
> Is there somebody working on that at present?

Nobody is working on that at present. You could try to do that and I'll help
if you need.

> I also want to know the status of 'SplitForScript' in 
> 'thotlib/view/buildboxes.c'.  I think this function is the essential part
> of about chunk of code, but it seems to me that that function generates wrong
> box chain and I guess that this function will be starting point for that hack.

I don't think so:
There is 2 chains: BxNexChild that links boxes attached to an element and BxNext and
BxPrvious that link displayed boxes.
The box of the root element (pMainBox) is special:
pMainBox->BxPrevious points to the last displayed box
pMainBox->BxNext points to the first displayed box

> Any suggestions or comments are welcome.

The idea is to split the current box with the wrong script and insert a new box
with the right script. The problem is to update all current parameters.
Of course the function SplitForScript should be used.

Happy holiday season.
-- 
     Irene.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.