[kupu-dev] Add charmap to kupu
Jordi Martinez
jordim at guellconsulting.com
Wed Aug 20 12:13:22 CEST 2008
Jordi Martinez wrote:
> Guido Wesdorp wrote:
>
>> Jordi Martinez wrote:
>>
>>> Could someone point me to the right direction please?
>>>
>>>
>>>
>> I think regarding the dialog, you just want to add some HTML that gets
>> displayed/hidden with a button, and add both the HTML and the button
>> stuff into .kupu files for the XSL make system. Then when the user
>> chooses a symbol to add, do something like (assuming you have the
>> character is 'mychar'):
>>
>> var sel = kupu.getSelection();
>> var tnode = kupu.getInnerDocument().createTextNode(mychar);
>> sel.replaceWithNode(tnode, true);
>>
>> This should replace the current selection with a text node, and select
>> the added node.
>>
>> I hope this helps (and indeed works, didn't actually try)... ;)
>>
>> Cheers,
>>
>> Guido
>>
>>
> Hi Guido!
> I would like to add a button to the toolbar. If you click on it I need a
> dialog box with the list of phonetics symbols. The user click on every
> symbol he/she needs and they appear in a text box he/she could edit
>
> When finish to add symbols click on the ok button and the text in the
> text box is inserted in the document
>
> Similar how windows charmap works but only for phonetics symbols
>
> Cheers!
> _______________________________________________
> kupu-dev mailing list
> kupu-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/kupu-dev
>
>
I forget to mention it will be useful to have a clear step-by-step tutorial
Thanks!
More information about the kupu-dev
mailing list