[Groonga-commit] droonga/droonga.org at 8f8ad7c [gh-pages] Highlight syntax of JSON of translation files

Back to archive index

KITAITI Makoto null+****@clear*****
Mon Nov 16 02:21:40 JST 2015


KITAITI Makoto	2015-11-16 02:21:40 +0900 (Mon, 16 Nov 2015)

  New Revision: 8f8ad7c2bd67c2553ec6457d7a00b18a5267a77b
  https://github.com/droonga/droonga.org/commit/8f8ad7c2bd67c2553ec6457d7a00b18a5267a77b

  Merged 83212a0: Merge pull request #20 from KitaitiMakoto/typos

  Message:
    Highlight syntax of JSON of translation files

  Modified files:
    _po/ja/tutorial/1.1.2/basic/index.po
    ja/tutorial/1.1.2/basic/index.md

  Modified: _po/ja/tutorial/1.1.2/basic/index.po (+87 -85)
===================================================================
--- _po/ja/tutorial/1.1.2/basic/index.po    2015-11-16 02:18:47 +0900 (af44597)
+++ _po/ja/tutorial/1.1.2/basic/index.po    2015-11-16 02:21:40 +0900 (d5a98c2)
@@ -249,101 +249,103 @@ msgid "catalog.json:"
 msgstr ""
 
 msgid ""
-"    {\n"
-"      \"version\": 2,\n"
-"      \"effectiveDate\": \"2013-09-01T00:00:00Z\",\n"
-"      \"datasets\": {\n"
-"        \"Default\": {\n"
-"          \"nWorkers\": 4,\n"
-"          \"plugins\": [\"groonga\", \"crud\", \"search\", \"dump\", \"system\"],\n"
-"          \"schema\": {\n"
-"            \"Store\": {\n"
-"              \"type\": \"Hash\",\n"
-"              \"keyType\": \"ShortText\",\n"
-"              \"columns\": {\n"
-"                \"location\": {\n"
-"                  \"type\": \"Scalar\",\n"
-"                  \"valueType\": \"WGS84GeoPoint\"\n"
-"                }\n"
+"~~~json\n"
+"{\n"
+"  \"version\": 2,\n"
+"  \"effectiveDate\": \"2013-09-01T00:00:00Z\",\n"
+"  \"datasets\": {\n"
+"    \"Default\": {\n"
+"      \"nWorkers\": 4,\n"
+"      \"plugins\": [\"groonga\", \"crud\", \"search\", \"dump\", \"system\"],\n"
+"      \"schema\": {\n"
+"        \"Store\": {\n"
+"          \"type\": \"Hash\",\n"
+"          \"keyType\": \"ShortText\",\n"
+"          \"columns\": {\n"
+"            \"location\": {\n"
+"              \"type\": \"Scalar\",\n"
+"              \"valueType\": \"WGS84GeoPoint\"\n"
+"            }\n"
+"          }\n"
+"        },\n"
+"        \"Location\": {\n"
+"          \"type\": \"PatriciaTrie\",\n"
+"          \"keyType\": \"WGS84GeoPoint\",\n"
+"          \"columns\": {\n"
+"            \"store\": {\n"
+"              \"type\": \"Index\",\n"
+"              \"valueType\": \"Store\",\n"
+"              \"indexOptions\": {\n"
+"                \"sources\": [\"location\"]\n"
+"              }\n"
+"            }\n"
+"          }\n"
+"        },\n"
+"        \"Term\": {\n"
+"          \"type\": \"PatriciaTrie\",\n"
+"          \"keyType\": \"ShortText\",\n"
+"          \"normalizer\": \"NormalizerAuto\",\n"
+"          \"tokenizer\": \"TokenBigram\",\n"
+"          \"columns\": {\n"
+"            \"stores__key\": {\n"
+"              \"type\": \"Index\",\n"
+"              \"valueType\": \"Store\",\n"
+"              \"indexOptions\": {\n"
+"                \"position\": true,\n"
+"                \"sources\": [\"_key\"]\n"
+"              }\n"
+"            }\n"
+"          }\n"
+"        }\n"
+"      },\n"
+"      \"replicas\": [\n"
+"        {\n"
+"          \"dimension\": \"_key\",\n"
+"          \"slicer\": \"hash\",\n"
+"          \"slices\": [\n"
+"            {\n"
+"              \"volume\": {\n"
+"                \"address\": \"192.168.100.50:10031/droonga.000\"\n"
 "              }\n"
 "            },\n"
-"            \"Location\": {\n"
-"              \"type\": \"PatriciaTrie\",\n"
-"              \"keyType\": \"WGS84GeoPoint\",\n"
-"              \"columns\": {\n"
-"                \"store\": {\n"
-"                  \"type\": \"Index\",\n"
-"                  \"valueType\": \"Store\",\n"
-"                  \"indexOptions\": {\n"
-"                    \"sources\": [\"location\"]\n"
-"                  }\n"
-"                }\n"
+"            {\n"
+"              \"volume\": {\n"
+"                \"address\": \"192.168.100.50:10031/droonga.001\"\n"
 "              }\n"
 "            },\n"
-"            \"Term\": {\n"
-"              \"type\": \"PatriciaTrie\",\n"
-"              \"keyType\": \"ShortText\",\n"
-"              \"normalizer\": \"NormalizerAuto\",\n"
-"              \"tokenizer\": \"TokenBigram\",\n"
-"              \"columns\": {\n"
-"                \"stores__key\": {\n"
-"                  \"type\": \"Index\",\n"
-"                  \"valueType\": \"Store\",\n"
-"                  \"indexOptions\": {\n"
-"                    \"position\": true,\n"
-"                    \"sources\": [\"_key\"]\n"
-"                  }\n"
-"                }\n"
+"            {\n"
+"              \"volume\": {\n"
+"                \"address\": \"192.168.100.50:10031/droonga.002\"\n"
 "              }\n"
 "            }\n"
-"          },\n"
-"          \"replicas\": [\n"
+"          ]\n"
+"        },\n"
+"        {\n"
+"          \"dimension\": \"_key\",\n"
+"          \"slicer\": \"hash\",\n"
+"          \"slices\": [\n"
 "            {\n"
-"              \"dimension\": \"_key\",\n"
-"              \"slicer\": \"hash\",\n"
-"              \"slices\": [\n"
-"                {\n"
-"                  \"volume\": {\n"
-"                    \"address\": \"192.168.100.50:10031/droonga.000\"\n"
-"                  }\n"
-"                },\n"
-"                {\n"
-"                  \"volume\": {\n"
-"                    \"address\": \"192.168.100.50:10031/droonga.001\"\n"
-"                  }\n"
-"                },\n"
-"                {\n"
-"                  \"volume\": {\n"
-"                    \"address\": \"192.168.100.50:10031/droonga.002\"\n"
-"                  }\n"
-"                }\n"
-"              ]\n"
+"              \"volume\": {\n"
+"                \"address\": \"192.168.100.50:10031/droonga.010\"\n"
+"              }\n"
 "            },\n"
 "            {\n"
-"              \"dimension\": \"_key\",\n"
-"              \"slicer\": \"hash\",\n"
-"              \"slices\": [\n"
-"                {\n"
-"                  \"volume\": {\n"
-"                    \"address\": \"192.168.100.50:10031/droonga.010\"\n"
-"                  }\n"
-"                },\n"
-"                {\n"
-"                  \"volume\": {\n"
-"                    \"address\": \"192.168.100.50:10031/droonga.011\"\n"
-"                  }\n"
-"                },\n"
-"                {\n"
-"                  \"volume\": {\n"
-"                    \"address\": \"192.168.100.50:10031/droonga.012\"\n"
-"                  }\n"
-"                }\n"
-"              ]\n"
+"              \"volume\": {\n"
+"                \"address\": \"192.168.100.50:10031/droonga.011\"\n"
+"              }\n"
+"            },\n"
+"            {\n"
+"              \"volume\": {\n"
+"                \"address\": \"192.168.100.50:10031/droonga.012\"\n"
+"              }\n"
 "            }\n"
 "          ]\n"
 "        }\n"
-"      }\n"
-"    }"
+"      ]\n"
+"    }\n"
+"  }\n"
+"}\n"
+"~~~"
 msgstr ""
 
 msgid "This `catalog.json` defines a dataset `Default` as:"
@@ -414,7 +416,7 @@ msgid "stores.jsons:"
 msgstr ""
 
 msgid ""
-"~~~\n"
+"~~~json\n"
 "{\n"
 "  \"dataset\": \"Default\",\n"
 "  \"type\": \"add\",\n"
@@ -906,7 +908,7 @@ msgid "search-all-stores.json:"
 msgstr ""
 
 msgid ""
-"~~~\n"
+"~~~json\n"
 "{\n"
 "  \"dataset\": \"Default\",\n"
 "  \"type\": \"search\",\n"

  Modified: ja/tutorial/1.1.2/basic/index.md (+86 -84)
===================================================================
--- ja/tutorial/1.1.2/basic/index.md    2015-11-16 02:18:47 +0900 (b85aa37)
+++ ja/tutorial/1.1.2/basic/index.md    2015-11-16 02:21:40 +0900 (bbeeab0)
@@ -116,101 +116,103 @@ Successfully installed droonga-engine.
 
 catalog.json:
 
-    {
-      "version": 2,
-      "effectiveDate": "2013-09-01T00:00:00Z",
-      "datasets": {
-        "Default": {
-          "nWorkers": 4,
-          "plugins": ["groonga", "crud", "search", "dump", "system"],
-          "schema": {
-            "Store": {
-              "type": "Hash",
-              "keyType": "ShortText",
-              "columns": {
-                "location": {
-                  "type": "Scalar",
-                  "valueType": "WGS84GeoPoint"
-                }
+~~~json
+{
+  "version": 2,
+  "effectiveDate": "2013-09-01T00:00:00Z",
+  "datasets": {
+    "Default": {
+      "nWorkers": 4,
+      "plugins": ["groonga", "crud", "search", "dump", "system"],
+      "schema": {
+        "Store": {
+          "type": "Hash",
+          "keyType": "ShortText",
+          "columns": {
+            "location": {
+              "type": "Scalar",
+              "valueType": "WGS84GeoPoint"
+            }
+          }
+        },
+        "Location": {
+          "type": "PatriciaTrie",
+          "keyType": "WGS84GeoPoint",
+          "columns": {
+            "store": {
+              "type": "Index",
+              "valueType": "Store",
+              "indexOptions": {
+                "sources": ["location"]
+              }
+            }
+          }
+        },
+        "Term": {
+          "type": "PatriciaTrie",
+          "keyType": "ShortText",
+          "normalizer": "NormalizerAuto",
+          "tokenizer": "TokenBigram",
+          "columns": {
+            "stores__key": {
+              "type": "Index",
+              "valueType": "Store",
+              "indexOptions": {
+                "position": true,
+                "sources": ["_key"]
+              }
+            }
+          }
+        }
+      },
+      "replicas": [
+        {
+          "dimension": "_key",
+          "slicer": "hash",
+          "slices": [
+            {
+              "volume": {
+                "address": "192.168.100.50:10031/droonga.000"
               }
             },
-            "Location": {
-              "type": "PatriciaTrie",
-              "keyType": "WGS84GeoPoint",
-              "columns": {
-                "store": {
-                  "type": "Index",
-                  "valueType": "Store",
-                  "indexOptions": {
-                    "sources": ["location"]
-                  }
-                }
+            {
+              "volume": {
+                "address": "192.168.100.50:10031/droonga.001"
               }
             },
-            "Term": {
-              "type": "PatriciaTrie",
-              "keyType": "ShortText",
-              "normalizer": "NormalizerAuto",
-              "tokenizer": "TokenBigram",
-              "columns": {
-                "stores__key": {
-                  "type": "Index",
-                  "valueType": "Store",
-                  "indexOptions": {
-                    "position": true,
-                    "sources": ["_key"]
-                  }
-                }
+            {
+              "volume": {
+                "address": "192.168.100.50:10031/droonga.002"
               }
             }
-          },
-          "replicas": [
+          ]
+        },
+        {
+          "dimension": "_key",
+          "slicer": "hash",
+          "slices": [
             {
-              "dimension": "_key",
-              "slicer": "hash",
-              "slices": [
-                {
-                  "volume": {
-                    "address": "192.168.100.50:10031/droonga.000"
-                  }
-                },
-                {
-                  "volume": {
-                    "address": "192.168.100.50:10031/droonga.001"
-                  }
-                },
-                {
-                  "volume": {
-                    "address": "192.168.100.50:10031/droonga.002"
-                  }
-                }
-              ]
+              "volume": {
+                "address": "192.168.100.50:10031/droonga.010"
+              }
+            },
+            {
+              "volume": {
+                "address": "192.168.100.50:10031/droonga.011"
+              }
             },
             {
-              "dimension": "_key",
-              "slicer": "hash",
-              "slices": [
-                {
-                  "volume": {
-                    "address": "192.168.100.50:10031/droonga.010"
-                  }
-                },
-                {
-                  "volume": {
-                    "address": "192.168.100.50:10031/droonga.011"
-                  }
-                },
-                {
-                  "volume": {
-                    "address": "192.168.100.50:10031/droonga.012"
-                  }
-                }
-              ]
+              "volume": {
+                "address": "192.168.100.50:10031/droonga.012"
+              }
             }
           ]
         }
-      }
+      ]
     }
+  }
+}
+~~~
 
 この`catalog.json`では、データセット`Starbucks`を以下のように定義しています:
 
@@ -250,7 +252,7 @@ Dronga Engine が起動したので、データを投入しましょう。
 
 stores.jsons:
 
-~~~
+~~~json
 {
   "dataset": "Default",
   "type": "add",
@@ -732,7 +734,7 @@ Droonga engineを用いてスターバックスの店舗データベースを検
 
 search-all-stores.json:
 
-~~~
+~~~json
 {
   "dataset": "Default",
   "type": "search",
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index