User Tools

Site Tools


templates_ascii_2_utf8

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
templates_ascii_2_utf8 [2016/03/13 08:43]
sweitmann
templates_ascii_2_utf8 [2016/03/13 09:04] (current)
sweitmann
Line 1: Line 1:
-Start by making copies ​of your templates and add "UTF8-" in front of each file name:+Start by converting the content ​of your template files to UTF8:
     for i in `ls -R *.tex`; do iconv -f ISO-8859-1 -t UTF8 $i -o UTF8-$i; done     for i in `ls -R *.tex`; do iconv -f ISO-8859-1 -t UTF8 $i -o UTF8-$i; done
-Then create a folder and move the new files into that folder: +You can now move the new UTF8-template ​files into another ​folder: 
-    mkdir iso +    mkdir utf8 
-    mv UTF8-* ​iso +    mv UTF8-* ​utf8 
-Now navigate into the new folder and remove the "​UTF8-"​ part of the file names:+Then navigate into the new folder and remove the "​UTF8-"​ part of the file names:
     for file in UTF8-*; do mv "​$file"​ "​${file:​5}";​ done     for file in UTF8-*; do mv "​$file"​ "​${file:​5}";​ done
-Finally change ​the "​latin1"​ packages ​called in each file and insert ​"​utf8" ​istead:+As a last step you need to exchange ​the call for "​latin1"​ packages ​to "​utf8" ​packages instead:
     find -type f -exec sed -i '​s/​latin1/​utf8/​g'​ {} \;     find -type f -exec sed -i '​s/​latin1/​utf8/​g'​ {} \;
 That's it! That's it!
templates_ascii_2_utf8.txt · Last modified: 2016/03/13 09:04 by sweitmann