ファイルの種類「JSON」の設定

ファイルの種類「JSON」の設定で、このファイルの種類を、翻訳時またはレビュー時に処理する方法をカスタマイズできます。

手順

  1. Decide for which projects you want to configure file type settings:
    • For the active project, go to the Projects view, and on the Home tab, select Project Settings.
    • For all future projects, go to File > Options.
  2. [ファイルの種類]リストを展開して、[JSON]フィルタを選択します。
  3. Select the Parser page, and then:
    1. Under String value extraction, choose one of the options:
      • Extract all string, to extract all string values that contain a key.
      • Specify rules for extracting, to extract values (numbers, boolean, strings, date time) from specific file paths. If the source file has no value, then that empty value becomes undefined in the target file.
    2. If you choose Specify rules for extracting (under String value extraction), select Add. In the Add JSON Path dialog, type a path, choose a value from the Document Structure Information list, and then select OK.
  4. Select the Writer page, and then:
    1. Under Writer:
      • Select Escape non-ASCII and control characters, so that all symbols are transformed to strings, including the Chinese or Arabic characters. For example, if the option is enabled, certain symbols will look like "\u63d0" (hexdecimal digits). If the option is disabled, the hexadecimal digits will be shown as Unicode characters and will be displayed as such in the target file.
      • Select Enable pretty printing in the target file, so that you avoid having all the content written inline. This option is enabled by default.
    2. Under Unicode UTF-8 byte order mark (BOM), choose when the SDL file support software should insert a UTF-8 BOM in the target file:
      • Preserve: don't add if not originally present
      • Preserve: add if not originally present
      • Remove if present
  5. [埋め込みコンテンツ]ページを選択します。
  6. [文書構造情報で見つかった埋め込みコンテンツを処理する]を選択して、XML 埋め込みコンテンツを処理します。
  7. [追加]を選択して、[埋め込みコンテンツ プロセッサの追加][埋め込みプロセッサ]リストから、埋め込みコンテンツ プロセッサを選択します。
  8. Select the QuickInsert page.
  9. Specify QuickInsert settings to insert tags and formatting, or to insert text and special characters.
  10. [OK]を選択します。