Recent

Author Topic: Editor WYSIWYG FreePascal  (Read 10015 times)

meulinux

  • Guest
Editor WYSIWYG FreePascal
« on: October 21, 2011, 12:04:12 am »
Não encontrei uma solução.

Preciso de um editor que salve como .html
Não precisa ter muitas propriedades, apenas que tenha formatação em texto, listas, etc..

Tentei usar o fpDoc, LzRichEdit, LazHelp e não consigo salvar para .html

Procurei algo como rtftohtml para usar no freepascal e nada, nada e nada.

Pretendo usar o thtmlport para visualizar os dados (string contendo o código .html), mas não encontrei uma solução "editor .html", nem uma gambiarra para converter .rtf (do componente lzRichEdit) para .html


Alguém poderia me ajudar com isso? Nunca vi uma solução final sobre esse assunto, procurei no Google e nada...

Agradeço muito por qualquer informação, pode ser em qualquer idioma, desde que tenha códigos do Lazarus, o resto eu me viro.


Esqueci de dizer:
Usei o componente XDevToolKit mas não reconhece o .rtf do LzRichEdit, ele procura por mais um arquivo .hpj

Can't open WinHelp project file /home/meulinux/teste.hpj

CvtHelp & HelpUtil: Convert WinHelp RTF to HTML:
http://wiki.lazarus.freepascal.org/XDev_Toolkit
« Last Edit: October 21, 2011, 12:22:57 am by meulinux »

IPguy

  • Sr. Member
  • ****
  • Posts: 385
Re: Editor WYSIWYG FreePascal
« Reply #1 on: October 21, 2011, 12:19:43 am »
Sorry - I cannot resist ...

Quote
Sorry, my English is bad. Using Google Translator
Is Google Translator broken?
It translated Portuguese to Portuguese?  grin

----------------------

I have not found a solution.

I need an editor to save as. Html
No need to have many properties, only to have text formatting, lists, etc. ..

I tried to use fpDoc, LzRichEdit, LazHelp and I can not save to. Html

I tried to use something like rtftohtml in FreePascal and nothing, nothing and nothing.

Thtmlport intend to use to view the data (string containing the code. Html), but have not found a solution "editor. Html", or a workaround to convert. RTF (lzRichEdit component) to. Html

Could anyone help me with this? I've never seen a final solution on this issue, googled and nothing ...

I am very grateful for any information, can be in any language, provided they have codes of Lazarus, the rest I turn.

meulinux

  • Guest
Re: Editor WYSIWYG FreePascal
« Reply #2 on: October 21, 2011, 12:27:20 am »
Quote
Sorry - I cannot resist ...

Is Google Translator broken?
It translated Portuguese to Portuguese?  grin

You're in the Portuguese forum, so here, I write in my language.

Thanks

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9791
  • Debugger - SynEdit - and more
    • wiki
Re: Editor WYSIWYG FreePascal
« Reply #3 on: October 21, 2011, 02:27:11 am »
You're in the Portuguese forum, so here, I write in my language.
Well, I made the same assumption...

Some people like me, use the "recent unread" overview. And it does not tell you which forum a message is in.

I learned to ignore anything where the subject is not English. But you used an English subject... Not your fault. But it leads to the assumption there is an English message.

IPguy

  • Sr. Member
  • ****
  • Posts: 385
Re: Editor WYSIWYG FreePascal
« Reply #4 on: October 21, 2011, 02:56:28 am »
Thank you. 
As you suggested, I was browsing the "Recent", not in the Portuguese forum and I did not check the bread crumbs line to see in which forum the message was posted.

There has been a habit in the forum for quite some time to do translations, which I liked.  Many of the contributors who choose to write first in their language and translate to English have had great questions, hints or solutions.  Having language specific forums deprives a large set of forum users of those resources and restricts the resources who can help the language specific posters.

meulinux, I was teasing, not chiding.  I was amused by the tag line, given that none of the message was in English.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Editor WYSIWYG FreePascal
« Reply #5 on: October 21, 2011, 10:45:51 am »
I learned to ignore anything where the subject is not English. But you used an English subject... Not your fault. But it leads to the assumption there is an English message.

Amazingly this title is valid portuguese, because the word order is correct. "Editor" in english is "Editor" in portuguese. WYSIWYG is a technical term without an easy translation. FreePascal is written wrongly, of course.

I think this sentense is not valid english because the word order is wrong, in english it would be "WYSIWYG Free Pascal Editor"

vvzh

  • Jr. Member
  • **
  • Posts: 58
Re: Editor WYSIWYG FreePascal
« Reply #6 on: October 21, 2011, 03:08:49 pm »
AFAIK, there is no ready to use Lazarus component that could edit HTML. There are two options I know of:
* write your own one;
* start standalone editor program (e.g. Seamonkey Composer) using TProcess. If you do not have separate HTML files and rather deal with HTML content in database you can save this content to a temporary file, open it in external HTML editor and then read the result back into your program.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Editor WYSIWYG FreePascal
« Reply #7 on: October 21, 2011, 03:20:23 pm »
There is another solution: implement a new library which can read rtf and output html. I've been thinking of writing a new library called fpdocuments for some time. It would be modules to allow easily supporting more formats in the future.

If you can write the RTF import module, I can write the general structure of the library and the html output. It would be placed in the Lazarus-CCR

 

TinyPortal © 2005-2018