Some other improvements ?
Hello Happy team
Thanks for your reply. Mine is late. I was on funeral for a friend. I apologize.
Actually, I didn't see other case, but il do not means it can't occur.
I thought : Maybe if you put [A-Z] in your regular expression, you will not have any trouble with this kind of problem, except if it causes unwanted effects.
If I dared, I would suggest you some other improvements :
In a file name, when you encounter a character forbidden, especially by MS-DOS, you replace it by an underscore one. It is clever.
But some of them are useful to explain and light the structure and the meaning of this file name. So I have to replace them manually by other acceptable characters. My correspondances are the following :
" -> ' quote to single quote
: -> - colon to minus
? -> ¿ question mark to question mark inverted
/ -> + slash to plus (Yes, it's not perfect because of the dates where minus would more suitable, but it works for items like "Arte reportage" or "Invitation au voyage" and so on.)
\ -> + antislash to plus
| -> I vertical bar to I (But if you have any other suggestion ...)
* -> % Star to percent
< -> ( less to left parenthesis
> -> ) more to ritht parenthesis
It seems that other characters are suitable with MS-DOS names except maybe, some strange used by Slavic people, for instance. They must be treated manually.
Could it be possible to have an arrangement with that ? I will have less work for getting the good names, especially for the first three which concern about 80% of updates.
Thanks for reading and what you can do
Regards
CB
|