Lisp HUG Maillist Archive

creating a wordprocessor like widget using CAPI

Hello

Over the last few days I have experimented with creating a widget in 
CAPI that can display structured markup such as xml, html and custom 
formats.

It is fairly easy to use pinboard-layout to create a read-only display 
of either the html/xml code with custom indentation, different colors 
and fonts for tags and text etc., custom line wrap policies and the 
like, and it is equally easy to create a web-browser/word-proessor style 
view of the same data with headers in big bold letters on lines by 
themself, extra vertical space in between paragraphs, bullet lists etc.

However making these widgets editable, so the user can type characters, 
delete characters, cut'n paste text, select text, select say a header in 
the word-processor view or a tag in the html/xml view, seems to be left 
as a non-trivial and time consuming exercise for the programmer. The 
editor-pane is not useable for this purpose, because it only supports 
text and only one font for the whole editor.

Now before I run away to javax.swing.JTextPane and its friends, I would 
like to ask if  I am the only one who has been looking for something 
like this functionality in CAPI, and if perhaps someone somewhere has a 
solution. Also if possible it would be good to hear if xanalys is 
working on adding something like this to CAPI in a not so distant future.

    Kristian


Unable to render article 2464 because of ":DEFAULT stream decoding error on #<SB-SYS:FD-STREAM for \"socket 192.168.43.216:64731, peer: 116.202.254.214:119\" {1002A540A3}>: the octet sequence #(248 114 101 110) cannot be decoded." error

Unable to render article 2471 because of ":DEFAULT stream decoding error on #<SB-SYS:FD-STREAM for \"socket 192.168.43.216:64732, peer: 116.202.254.214:119\" {10036D8B53}>: the octet sequence #(248 114 101 110) cannot be decoded." error

Re: creating a wordprocessor like widget using CAPI

Unable to parse email body. Email id is 2465

Updated at: 2020-12-10 08:56 UTC