DF v0.42 information
  • Saves from v0.40.24 are compatible with v0.42.06! We will not be migrating to a new namespace, although the current "DF2014" namespace may be renamed to "v0.42" in the near future.
  • Please mark all v0.42-specific articles/sections with {{new in v0.42}}. For short v0.42-specific information, you can use {{version|0.42.01}}.
Updated 14:38, 30 December 2015 (UTC). This notice may be cached—the current version can be found here.

Utility Talk:Accent Removal

From Dwarf Fortress Wiki
Jump to: navigation, search

Discussion Thread --Jackard 19:15, 26 July 2008 (EDT)

[edit] Troubleshooting

Step by step instruction produces unexpected results because several characters in posted command batch file are getting lost in translation from ASCII into UTF-8 (on the wiki) and back to ASCII after copy-pasting them.

Download correct replace script and use it instead of copy-pasting method suggested in second step. Nophotoavailable 20:28, 1 August 2008 (EDT)

Thanks for this. --Jackard 18:47, 10 August 2008 (EDT)

[edit] Linux FTW

As all modern Linuxen have iconv installed by default, doing this is very easy. Use this command in a normal Bash shell:

for f in language_*.txt; do iconv -f CP437 -t ASCII//TRANSLIT <$f >$f.new; done; rename ".new" "" *.new;

unsigned comment by Db48x

Yeah, I just independently discovered this; took me a bit before I figured out it was CP437. However, your "rename" utility seems different than mine. Mine expects a Perl expression, so the proper usage is
rename -f 's/\.new$//' *.new
but the 'for' loop is fine. I've posted a version on the page that avoids "rename" entirely. — Wisq (talk) 22:17, 18 March 2010 (UTC)
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Advertisement