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.

Difference between revisions of "DF2014:Language token"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(LethosorBot moved page DF2014:Language token to Language token: Migrating v50 page (2354/4618) (content))
Tag: New redirect
 
(Migrating v50 page (2354/4618) (content))
Tag: Removed redirect
 
Line 1: Line 1:
#REDIRECT [[Language token]]
+
{{Quality|Exceptional|21:42, 17 May 2015 (UTC)}}
 +
{{av}}
 +
{{Modding}}
 +
 
 +
'''Language tokens''' are used within the language_*.txt raw files. Each [[token]] is permitted in a specific context.
 +
 
 +
__TOC__
 +
{{clear}}
 +
 
 +
==WORD==
 +
{| {{prettytable}}
 +
|- bgcolor="#dddddd"
 +
! width="20%" | Token
 +
! width="20%" | Arguments
 +
! width="60%" | Description
 +
 
 +
|-
 +
| {{text anchor|NOUN}}
 +
|
 +
* singular
 +
* plural
 +
| Begins defining a noun usage of a word.
 +
 
 +
|-
 +
| {{text anchor|ADJ}}
 +
|
 +
* adjective
 +
| Begins defining an adjective usage of a word.
 +
 
 +
|-
 +
| {{text anchor|PREFIX}}
 +
|
 +
* prefix
 +
| Begins defining a prefix usage of a word.
 +
 
 +
|-
 +
| {{text anchor|VERB}}
 +
|
 +
* present first person
 +
* present third person
 +
* [[wikipedia:preterite|preterite]]
 +
* past participle
 +
* present participle
 +
| Defines a verb usage of a word.
 +
 
 +
|-
 +
| {{text anchor|ADJ_DIST}}
 +
| number 1-7
 +
| Determines what order the adjective being defined comes in when in a string of multiple adjectives.
 +
 
 +
|-
 +
| {{text anchor|THE_NOUN_SING}}
 +
|
 +
| Lets the singular noun form of the word be used after "the" ("The X of Y", where X is the word with the tag).
 +
 
 +
|-
 +
| {{text anchor|THE_NOUN_PLUR}}
 +
|
 +
| As above, but with plural ("The Xs of Y").
 +
 
 +
|-
 +
| {{text anchor|THE_COMPOUND_NOUN_SING}}
 +
|
 +
| Lets the singular noun form of the word be used as part of a compound noun after "the" ("The Z-X of Y").
 +
 
 +
|-
 +
| {{text anchor|THE_COMPOUND_NOUN_PLUR}}
 +
|
 +
| As above, but with plural ("The Z-Xs of Y").
 +
 
 +
|-
 +
| {{text anchor|THE_COMPOUND_ADJ}}
 +
|
 +
| Lets the adjective form of the word be used as part of a compound noun after "the" ("The Z-X of Y").
 +
 
 +
|-
 +
| {{text anchor|OF_NOUN_SING}}
 +
|
 +
| Lets the singular noun form of the word be used after "of" ("The Y of X").
 +
 
 +
|-
 +
| {{text anchor|OF_NOUN_PLUR}}
 +
|
 +
| As above, but with plural ("The Y of Xs").
 +
 
 +
|-
 +
| {{text anchor|FRONT_COMPOUND_NOUN_SING}}
 +
|
 +
| Lets the singular noun form of the word be used at the front of a compound noun ("XY", as in surnames).
 +
 
 +
|-
 +
| {{text anchor|FRONT_COMPOUND_NOUN_PLUR}}
 +
|
 +
| As above, but with plural.
 +
 
 +
|-
 +
| {{text anchor|REAR_COMPOUND_NOUN_SING}}
 +
|
 +
| Lets the singular noun form of the word be used at the rear of a compound noun ("YX", as in surnames).
 +
 
 +
|-
 +
| {{text anchor|REAR_COMPOUND_NOUN_PLUR}}
 +
|
 +
| As above, but with plural.
 +
 
 +
|-
 +
| {{text anchor|FRONT_COMPOUND_ADJ}}
 +
|
 +
| Lets the adjective form of the word be used at the front of a compound noun.
 +
 
 +
|-
 +
| {{text anchor|REAR_COMPOUND_ADJ}}
 +
|
 +
| As above, but at the rear instead.
 +
 
 +
|-
 +
| {{text anchor|FRONT_COMPOUND_PREFIX}}
 +
|
 +
| Allows the prefix form to be appended as a prefix to a compound noun.
 +
 
 +
|-
 +
| {{text anchor|THE_COMPOUND_PREFIX}}
 +
|
 +
| Allows the prefix form to be appended as a prefix to a compound noun following "the".
 +
 
 +
|-
 +
| {{text anchor|STANDARD_VERB}}
 +
|
 +
| Allows the verb to be used in a compound noun and for its participles to be used as adjectives.
 +
|}
 +
 
 +
==SYMBOL==
 +
{| {{prettytable}}
 +
|- bgcolor="#dddddd"
 +
! width="20%" | Token
 +
! width="20%" | Arguments
 +
! width="60%" | Description
 +
 
 +
|-
 +
| {{text anchor|S_WORD}}
 +
|
 +
* WORD
 +
| Specifies the given WORD (defined in #REDIRECT [[language_words.txt]]) as belonging to the symbol being defined. A given word can belong to multiple symbols.
 +
|}
 +
 
 +
==TRANSLATION==
 +
 
 +
{| {{prettytable}}
 +
|- bgcolor="#dddddd"
 +
! width="20%" | Token
 +
! width="20%" | Arguments
 +
! width="60%" | Description
 +
 
 +
|-
 +
| {{text anchor|T_WORD}}
 +
|
 +
* WORD
 +
* translation
 +
| Specifies a translation from a given WORD (defined in language_words.txt) into the language being defined.
 +
|}
 +
 
 +
==English instead of dwarven language==
 +
You can hack the language files with this regular expression command:
 +
 
 +
'''<nowiki>:%s/T_WORD:\([A-Z_ -]*\):[^\]]*\]/T_WORD:\1:\L\1]/</nowiki>'''
 +
 
 +
==See also==
 +
[[40d:Language]] (has expanded explanations of parts of the language system, which seems to still be the same in this version)
 +
 
 +
{{Category|Modding}}
 +
{{Category|Tokens}}
 +
[[ru:Language token]]

Latest revision as of 03:37, 20 December 2022

This article is about an older version of DF.

Language tokens are used within the language_*.txt raw files. Each token is permitted in a specific context.

WORD[edit]

Token Arguments Description
NOUN
  • singular
  • plural
Begins defining a noun usage of a word.
ADJ
  • adjective
Begins defining an adjective usage of a word.
PREFIX
  • prefix
Begins defining a prefix usage of a word.
VERB
  • present first person
  • present third person
  • preterite
  • past participle
  • present participle
Defines a verb usage of a word.
ADJ_DIST number 1-7 Determines what order the adjective being defined comes in when in a string of multiple adjectives.
THE_NOUN_SING Lets the singular noun form of the word be used after "the" ("The X of Y", where X is the word with the tag).
THE_NOUN_PLUR As above, but with plural ("The Xs of Y").
THE_COMPOUND_NOUN_SING Lets the singular noun form of the word be used as part of a compound noun after "the" ("The Z-X of Y").
THE_COMPOUND_NOUN_PLUR As above, but with plural ("The Z-Xs of Y").
THE_COMPOUND_ADJ Lets the adjective form of the word be used as part of a compound noun after "the" ("The Z-X of Y").
OF_NOUN_SING Lets the singular noun form of the word be used after "of" ("The Y of X").
OF_NOUN_PLUR As above, but with plural ("The Y of Xs").
FRONT_COMPOUND_NOUN_SING Lets the singular noun form of the word be used at the front of a compound noun ("XY", as in surnames).
FRONT_COMPOUND_NOUN_PLUR As above, but with plural.
REAR_COMPOUND_NOUN_SING Lets the singular noun form of the word be used at the rear of a compound noun ("YX", as in surnames).
REAR_COMPOUND_NOUN_PLUR As above, but with plural.
FRONT_COMPOUND_ADJ Lets the adjective form of the word be used at the front of a compound noun.
REAR_COMPOUND_ADJ As above, but at the rear instead.
FRONT_COMPOUND_PREFIX Allows the prefix form to be appended as a prefix to a compound noun.
THE_COMPOUND_PREFIX Allows the prefix form to be appended as a prefix to a compound noun following "the".
STANDARD_VERB Allows the verb to be used in a compound noun and for its participles to be used as adjectives.

SYMBOL[edit]

Token Arguments Description
S_WORD
  • WORD
Specifies the given WORD (defined in #REDIRECT language_words.txt) as belonging to the symbol being defined. A given word can belong to multiple symbols.

TRANSLATION[edit]

Token Arguments Description
T_WORD
  • WORD
  • translation
Specifies a translation from a given WORD (defined in language_words.txt) into the language being defined.

English instead of dwarven language[edit]

You can hack the language files with this regular expression command:

:%s/T_WORD:\([A-Z_ -]*\):[^\]]*\]/T_WORD:\1:\L\1]/

See also[edit]

40d:Language (has expanded explanations of parts of the language system, which seems to still be the same in this version)