[Tex/LaTex] Automatic translation of accented characters in Winedt 7

accentscharacterswinedt

I remember that a long time ago, when I was using Winedt (V5.0 I guess) it automatically replace some characters. For example, ç was replaced by \c{c} when I open the file.

Now, I need to do the same again. But I have Winedt 7.0 and I don't know how to translate all the accented characters automatically.

Any help?

Best Answer

I know that this answer comes a bit late and you probably have managed to do it already... (at that time I wasn't a TeX.SX user yet).

In WinEdt 7 (and above) all customizations are made from the Options Interface accessible from the Options menu, which looks like:

enter image description here

To achieve what you want, select the Language, Unicode, Sorting, Translations... branch and then double-click on Translation Tables: the script TranslationTables.ini will open.

Now, if you want to write ç in the editor, but you want the document to contain \c{c}, you have to enable (i.e. set ENABLED=1) the "translation table" named TeX_Write. If you want WinEdt to show ç when you open a document containing \c{c}, you have to enable the "translation table" named TeX_Read.

The same can be done for .bib files, enabling the "translation tables" named BibTeX_Write and BibTeX_Read.

Note that all of them are disabled by default since starting with version 7, WinEdt has Unicode support.

Of course all of them can be further customized to accomplish your personal needs, by adding or removing characters that have to be "translated".

When you've finished with it, remember to click the button Load Current Script in the toolbar of the Options Interface to apply the changes (the first one on the left). Note that if you skip this step nothing will be changed in your configuration...

Related Question