On Tue, May 24, 2005 at 10:58:47PM +0300, Amit Aronovitch wrote: > avraham wrote: > > >You are really fast with your reactions and with your fingers. > >Re your question: Can you give me a reliable criterium to recognize > >automatically the "paragraph structure of the initial document" ? > > > > > That really depends on the style of the text. > Many times if you look for lines having fullstop ('.') as their last > non-whitespace, you'll get a good enough approximation for where to > insert the "end of paragraph"s. > In other texts you can be a bit more restrictive, e.g. demand that the > following line is empty, or starts with whitespace. > > Another note: if your'e preserving line structure, normally you'd also > want to preserve spaces and maybe even make it fixed font (because > sometimes plaintext files contain tables, ascii graphics and other stuff > which depends on char positions) in these cases you normally just > enclose the whole text with \begin{verbatim} .... \end{verbatim} > > > ================================================================= > To unsubscribe, send mail to [EMAIL PROTECTED] with > the word "unsubscribe" in the message body, e.g., run the command > echo unsubscribe | mail [EMAIL PROTECTED] > Hi Amit, I agree fully with your first remark. I would add to that there is no universal best way to present a text. That depends on half a milion circumstances of various kinds. I do not try "to conserve line structure", or any other kind of structure. I am merely after an easy and "cheap" way to obtain immediately a dvi file that would allow me to judge what is to do (interactively) to obtain a text well formated for the specific task, in a second step. Of course, if you have a 500 pages draft, you will try to automate as much of this step as possible. But then, you have a specific case with specific sonstraints and characteristics. I fail to see how to devise an universally applicable for this second step. And for a short draft, it is not worthwhile to bother. Bye, Avraham
================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]