You are here: Re: [PHP] Non-trivial task of converting text to HTML « PHP « IT news, forums, messages
Re: [PHP] Non-trivial task of converting text to HTML

Posted by Eric Gorr on 12/08/05 17:44

Quoting Roman Ivanov <gamblergluck@yahoo.com>:

> Eric Gorr wrote:
>> Quoting Roman Ivanov <gamblergluck@yahoo.com>:
>>
>>> Output text should be correctly formatted without using lots of
>>> br's and &nbsp;'s. Doing so manually is not a problem, I would just
>>> use <p> for web paragraphs, and <p class="book"> for book
>>> paragraphs. However, formatting such text with a scrip is very
>>> difficult. Does anyone knows a good exaple of such script?
>>
>>
>> How do you intend to distinguish between a web paragraph and a book
>> paragraph?
>
> Good question. I don't know. If I would know, than writing scipt
> would be simple. It would be interesting to hear how other developers
> deal with such kind of things.
>
>> How can you even accomplish this manually?
>
> By reading the text. *smiley*

Based on the samples you provides, it is unclear how you can
distinguish between
the two based on reading the text without an understanding of what the text is
saying.

If you are seeking an algorithm that can accurately determine what the text is
saying and make a decision on how to proceed, I am afraid you won't find
anything.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация