Page 1 of 1

New HFCL word processor and other improvements - Part 2

Posted: Tue May 31, 2016 10:41 am
by kcarmody
New HFCL word processor WordWriter
  • Uses tab control to develop interface similar to ribbon interface
  • In this tab, uses images and options from SAMPLES\Applications\MiniWriter
  • Includes bubble alternatives for keyboard access to buttons
  • Incorporates back end features of WordScribe
  • Window can be moved and resized
  • Stores settings in registry
  • File can be opened from the command line
  • Reads and writes RTF, ANSI TXT, and Unicode TXT files
  • Above features makes it a practical alternative to WordPad
WordWriter is based on the quasi-ribbon interface in MiniWriter, which is in SAMPLES\Applications\MiniWriter\.

Below is a screenshot of the quasi-ribbon interface in MiniWriter.
MiniWriterScreen.png
MiniWriterScreen.png (68.27 KiB) Viewed 5840 times
The above interface is similar to that of WordPad in Windows 7, below.
WordPadW7Screen.png
WordPadW7Screen.png (67.03 KiB) Viewed 5840 times
Continued in part 3

Re: New HFCL word processor and other improvements - Part 2

Posted: Tue May 31, 2016 1:08 pm
by Rathinagiri
Looking great!

Re: New HFCL word processor and other improvements - Part 2

Posted: Tue May 31, 2016 1:39 pm
by serge_girard
Looks very nice, Kevin!

Many thanks. Is it possible to save as HTML?

Serge

Re: New HFCL word processor and other improvements - Part 2

Posted: Tue May 31, 2016 4:28 pm
by kcarmody
serge_girard wrote:Is it possible to save as HTML?
It's possible, but I think you mean how easy would it be. So far WordScribe and WordWriter only read and write file formats supported by the Rich Edit control, and HTML does not seem to be included in these formats. So we would need something to convert between RTF and HTML. It might no be very hard to print to HTML using QHTM. But I'm not at all sure about this.

I tried using the SELECT PRINTER PDF command to print to a PDF. I got a PDF, and it had the right number of pages, but all the pages were blank. I did not see right away how to fix this.

Re: New HFCL word processor and other improvements - Part 2

Posted: Tue May 31, 2016 7:27 pm
by quartz565
Very nice, Kevin!

Re: New HFCL word processor and other improvements - Part 2

Posted: Tue May 31, 2016 8:34 pm
by esgici
Thanks Mr. Carmody :D

Re: New HFCL word processor and other improvements - Part 2

Posted: Wed Jun 01, 2016 9:49 am
by serge_girard
Hi Kevin,

I now use a 3rd party software to convert RTF to HTML; it's called RTF Tools (from Jani Giannoudis).
This works fine but it has to be called from command line level.

Serge

Re: New HFCL word processor and other improvements - Part 2

Posted: Mon Jun 06, 2016 4:22 pm
by kcarmody
kcarmody wrote:
serge_girard wrote:Is it possible to save as HTML?
It's possible, but I think you mean how easy would it be. So far WordScribe and WordWriter only read and write file formats supported by the Rich Edit control, and HTML does not seem to be included in these formats. So we would need something to convert between RTF and HTML. It might no be very hard to print to HTML using QHTM. But I'm not at all sure about this.
serge_girard wrote:I now use a 3rd party software to convert RTF to HTML; it's called RTF Tools (from Jani Giannoudis).
This works fine but it has to be called from command line level.
Some time ago, I wrote a library in Harbour called UnicodeLib (http://kevincarmody.com/software/akshar ... unicodelib). It converts between HTML, RTF, TXT, and some other formats, but it is focused on text only. It does not input or output formatting such as bold, italic, subscripts, font changes, indents, bullets, tables, or graphics. I don't think this is the right way to support HTML in WordWriter. I think that, if WordWriter were to support HTML, it should read and write formatting just as it does with RTF.