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 revisionPrevious revision
Last revisionBoth sides next revision
templates_ascii_2_utf8 [2015/03/09 21:17] sweitmanntemplates_ascii_2_utf8 [2016/03/13 08:43] sweitmann
Line 1: Line 1:
-NOT FINISHED! +Start by making copies of your templates and add "UTF8-" in front of each file name:
- +
-Do the following: +
     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
-followed by:+Then create a folder and move the new files into that folder: 
 +    mkdir iso 
 +    mv UTF8-* iso 
 +Now 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
-followed by:+Finally change the "latin1" packages called in each file and insert "utf8" istead:
     find -type f -exec sed -i 's/latin1/utf8/g' {} \;     find -type f -exec sed -i 's/latin1/utf8/g' {} \;
 +That's it!
templates_ascii_2_utf8.txt · Last modified: 2016/03/13 09:04 by sweitmann