Federico Bruni <[email protected]> writes: > Il sab, feb 22, 2014 at 6:38 , Federico Bruni > <[email protected]> ha scritto: >> $ file -i ftp/ScriabinA/O59/prelude/prelude.ly >> ftp/ScriabinA/O59/prelude/prelude.ly: text/plain; charset=us-ascii >> >> Can I run iconv on it, right? >> This again will break the diff (see previous thread), but it's >> needed. One more thing to add to the wiki? If you give me the ok, I >> can edit the page myself. > > I can convert with Gedit. However, what's wrong with the following > commands? > > $ iconv -f US-ASCII -t UTF-8 ftp/ScriabinA/O59/prelude/prelude.ly > > ftp/ScriabinA/O59/prelude/prelude.ly
Same output and input file. The output redirection operator truncates the output file to be empty before iconv is run, so it just converts an empty file. > I've tried also recode, but it doesn't work: > > $ recode -v UTF-8 ftp/ScriabinA/O59/prelude/prelude.ly > Request: UTF-8..:libiconv:..CHAR > Shrunk to: UTF-8..CHAR > Recoding ftp/ScriabinA/O59/prelude/prelude.ly... done > $ file -bi ftp/ScriabinA/O59/prelude/prelude.ly > text/plain; charset=us-ascii US-ASCII is a subset of UTF-8, so there is nothing to convert here. What you want is recode tex..utf-8 here. The problem is that there are things like "avec d\\'efi" here which get turned into "avec d\éfi" because of the doubled backslash. At any rate, you should probably look at _all_ \\ sequences first. There is a lot of TeX stuff in there that will stop working, not just accents. -- David Kastrup _______________________________________________ Mutopia-discuss mailing list [email protected] http://lists.bcn.mythic-beasts.com/mailman/listinfo/mutopia-discuss
