2.6.2 Format of service resource file
A service resource file defines the information displayed in the JP1/AO user interface. The format of the file is described below. Note that the content of the service resource file depends on the type of display elements you are defining. For details about how to define each type of display element, see 2.6.3 Definitions in service resource files.
-
The file name of the service resource file is service_language-code.properties.txt.
As language-code, you can specify a two-character language code (ja, en, or zh) as defined in ISO-639.
-
Define the file contents in the format property-keydelimiting-charactersetting-value. As the delimiting character, you can use an equals sign =, a colon (:), tab characters (\t), or a single-byte space.
-
Enter one property key and setting per line.
-
Property keys can contain the following characters:
-
Single-byte alphanumeric characters
-
Single-byte hyphens (-)
-
Single-byte underscores (_)
-
Single-byte periods (.)
-
-
Characters must be encoded in UTF-8.
-
If you define the same property key in the file more than once, the value of the last occurrence of the property key applies.
-
Lines that begin with a hash mark (#) are handled as comments.
-
Property keys are case sensitive.
-
To specify a character string that contains a forward slash (\), specify two forward slashes (\\) instead.
-
Lines that consist only of single-byte spaces are ignored.
-
On each line of the service resource file, the property key is the character string from the first character that is not a single-byte space to the character immediately preceding the first delimiting character.
-
The setting value is the string from the first non-delimiting character after the delimiting character following the property key to the last character in the line.
For example, the following line in the service resource file represents the property key abc with the setting value =\tc:
abc\t=\tc
However, if the character immediately following the first delimiting character is = or :, the setting value is the character string from the next character that is not a single-byte space or tab character (\t), to the end of the line.
For example, the following line in the service resource file represents the property key abc with the setting value =\tc.
abc\t=\t=\tc
-
You cannot use surrogate pair characters.