v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing Language

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

If you are creating a redirect to the current version's page, do not use any namespace. For example: use #REDIRECT [[Cat]], not #REDIRECT [[Main:Cat]] or #REDIRECT [[cv:Cat]]. See DF:Versions for more information.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 127: Line 127:
  
 
==Input==
 
==Input==
Because ''Dwarf Fortress'' does not properly translate normal Unicode input into [[character table|CP437]], the game's native character set, attempting to enter many of the letters used in the various languages, like á or ô will produce a totally different symbol instead — the symbol whose CP437 code (the bold-italic numbers in the [[character table]]) corresponds to the Unicode number of the letter entered (the unstyled numbers just above the CP437 codes, but note that these are in hexadecimal). Perusing the table will show that this in fact ''only'' lines up correctly for the NUL character (useless) and the "normal" letter/punctuation range from the space (0x20) to ~ (0x7E). Anything else will produce either the corresponding character, if there is one, or unknown results possibly dependent on the host operating system. To insert a particular character outside the "matching" range, such as Ñ, you must find its CP437 code – 0xA5 for Ñ – and insert the character with that code in Unicode - in this case, ¥. DF will conveniently misinterpret your input as the intended character. Note, however, that many character codes in the CP437 set do not correspond to printing characters in unicode ­– 0x7F-0x9F, for example, which covers many of the accented vowels; these won't appear on keyboards, but any kind of direct unicode input will probably still work.
+
Because Dwarf Fortress does not properly translate normal Unicode input into [[character table|CP437]], the game's native character set, attempting to enter many of the letters used in the various languages, like á or ô will produce a totally different symbol instead — the symbol whose CP437 code (the bold-italic numbers in the [[character table]]) corresponds to the Unicode number of the letter entered (the unstyled numbers just above the CP437 codes, but note that these are in hexadecimal). Perusing the table will show that this in fact ''only'' lines up correctly for the NUL character (useless) and the "normal" letter/punctuation range from the space (0x20) to ~ (0x7E). Anything else will produce either the corresponding character, if there is one, or unknown results possibly dependent on the host operating system. To insert a particular character outside the "matching" range, such as Ñ, you must find its CP437 code – 0xA5 for Ñ – and insert the character with that code in Unicode - in this case, ¥. DF will conveniently misinterpret your input as the intended character. Note, however, that many character codes in the CP437 set do not correspond to printing characters in unicode ­– 0x7F-0x9F, for example, which covers many of the accented vowels; these won't appear on keyboards, but any kind of direct unicode input will probably still work.
  
 
== Raws ==
 
== Raws ==
Line 192: Line 192:
 
{{Language}}
 
{{Language}}
  
[[Category:Language|Language]]
+
[[Category:Language| ]]
 
[[ru:Language]]
 
[[ru:Language]]

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)