[Flex-help] Please help me about linguistic typology
flex is a tool for generating scanners
Brought to you by:
wlestes
From: t ly <tl...@li...> - 2013-06-16 06:32:39
|
Hello everybody, With the advice of a friend, I start to learn to use LaTex instead of MS Word for my redaction. He said that it will take me little time at the beginning, but it will help me to save a lot of time after. I began to find that he's right :) Today, i try to convert some of my work-in-progress doucments from Word to Latex; but, i have alot of useless whitespace in the converted documents. On a francophone forum of Ubuntu users, one member suggest me to use Lex, a much more powerful text processing tool, to deal with it; but nobody know exactly how to do these following tasks: 1) Remove all useless whitespace (spaces and tabs) at the end of the line. 2) Replace all tabs with a fixed number of spaces, 4 for example. 3) Put a single white after a punctuation marks [,;:!?]. 4) Restore the forgotten upper-cases (transform the letters which found after punctuation marks [.!?] to capital letters. So, I wonder if you'd be kind enough to give me some lines of code which could do that. Thank you in advance for any help you can provide! |