[
  {
    "lines": [
      "> v3.0.0"
    ], 
    "host": "https://signpuddle.com/server", 
    "meta": "Generated from ApiTxt format (output/fsw.txt) using txt2json.py", 
    "root": "fsw", 
    "title": "Formal SignWriting in ASCII (FSW)"
  }, 
  {
    "lines": [
      "+ Source: [ApiTxt format](../src/fsw.txt) and [JSON objects](../src/fsw.json)", 
      "+ Documents: [API Blueprint](../doc/fsw.md) and [Stand Alone HTML](../doc/fsw.htm)", 
      "+ Live Page: [API Interface](../api/fsw.html) and [JavaScript](../api/fsw.js)"
    ], 
    "group": "FSW", 
    "description": "Resources related to Formal SignWriting in ASCII (FSW)"
  }, 
  {
    "route": "/fsw{?text,style}", 
    "name": "FSW Word", 
    "parameters": [
      {
        "description": "The name of sign", 
        "type": "string", 
        "name": "text", 
        "example": "AS20310S26b02S33100M521x547S33100482x483S20310506x500S26b02503x520"
      }, 
      {
        "description": "Flag to include styling string", 
        "type": "boolean,optional", 
        "name": "style", 
        "example": "true"
      }
    ]
  }, 
  {
    "code": [
      "$fsw = SignWriting\\fsw($text,$style);", 
      "$searchTime = searchtime($timein);", 
      "header(\"Search-Time: \" . $searchTime);", 
      "echo $fsw;"
    ], 
    "method": "GET", 
    "dialog": [
      {
        "request": {
          "name": "one Formal SignWriting in ASCII string"
        }, 
        "responses": [
          {
            "status": 200, 
            "body": [
              "AS20310S26b02S33100M521x547S33100482x483S20310506x500S26b02503x520"
            ], 
            "type": "text/plain;charset=utf-8"
          }
        ]
      }
    ], 
    "name": "First FSW string"
  }, 
  {
    "route": "/fsw/all{?text,style}", 
    "name": "FSW Text", 
    "parameters": [
      {
        "description": "The name of sign", 
        "type": "string", 
        "name": "text", 
        "example": "AS20310S26b02S33100M521x547S33100482x483S20310506x500S26b02503x520"
      }, 
      {
        "description": "Flag to include styling string", 
        "type": "number", 
        "name": "style", 
        "example": "1"
      }
    ]
  }, 
  {
    "code": [
      "$fsw = SignWriting\\fswAll($text,$style);", 
      "$searchTime = searchtime($timein);", 
      "header(\"Search-Time: \" . $searchTime);", 
      "echo $fsw;"
    ], 
    "method": "GET", 
    "dialog": [
      {
        "request": {
          "name": "many Formal SignWriting in ASCII string"
        }, 
        "responses": [
          {
            "status": 200, 
            "body": [
              "AS20310S26b02S33100M521x547S33100482x483S20310506x500S26b02503x520"
            ], 
            "type": "text/plain;charset=utf-8"
          }
        ]
      }
    ], 
    "name": "All FSW strings"
  }, 
  {
    "route": "/fsw/swu{?text}", 
    "name": "FSW to SWU", 
    "parameters": [
      {
        "description": "The name of sign", 
        "type": "string", 
        "name": "text", 
        "example": "AS20310S26b02S33100M521x547S33100482x483S20310506x500S26b02503x520"
      }
    ]
  }, 
  {
    "code": [
      "$swu = SignWriting\\fsw2swu($text);", 
      "$searchTime = searchtime($timein);", 
      "header(\"Search-Time: \" . $searchTime);", 
      "echo $swu;"
    ], 
    "method": "GET", 
    "dialog": [
      {
        "request": {
          "lines": [
            "transformation from ASCII to Unicode characters."
          ], 
          "name": "SWU conversion of FSW string"
        }, 
        "responses": [
          {
            "status": 200, 
            "lines": [
              "requires font SuttonSignWritingOneD"
            ], 
            "body": [
              "\ud836\udc00\ud8d8\udd31\ud8e2\udc23\ud8f4\ude61\ud836\udc03\ud836\udd1b\ud836\udd35\ud8f4\ude61\ud836\udcf4\ud836\udcf5\ud8d8\udd31\ud836\udd0c\ud836\udd06\ud8e2\udc23\ud836\udd09\ud836\udd1a"
            ], 
            "type": "text/plain;charset=utf-8"
          }
        ]
      }
    ], 
    "name": "Text with FSW strings"
  }, 
  {
    "route": "/fsw/svg/{text}", 
    "lines": [
      "Create a stand-alone SVG image using Formal SignWriting in ASCII (FSW)"
    ], 
    "name": "SVG image", 
    "parameters": [
      {
        "description": "The name of sign", 
        "type": "string", 
        "name": "text", 
        "example": "AS20310S26b02S33100M521x547S33100482x483S20310506x500S26b02503x520"
      }
    ]
  }, 
  {
    "code": [
      "$req = $app->request();", 
      "if ($req->get('throwStatus')=='500') {haltNoDatabase();}", 
      "$svg = SignWriting\\svg($text);", 
      "$searchTime = searchtime($timein);", 
      "header(\"Search-Time: \" . $searchTime);", 
      "echo $svg;"
    ], 
    "method": "GET", 
    "dialog": [
      {
        "request": {
          "name": "collection text"
        }, 
        "responses": [
          {
            "status": 200, 
            "body": [
              "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"39\" height=\"64\" viewBox=\"482 483 39 64\">", 
              "  <text style=\"font-size:0%;\">AS20310S26b02S33100M521x547S33100482x483S20310506x500S26b02503x520</text>", 
              "  <svg x='482' y='483'><g transform=\"translate(0.149874875465,34.7500790925) scale(0.00988906872676,-0.00988956850125)\"><path class=\"sym-line\" fill=\"black\" d=\"M1528 3484 c-592 -92 -1088 -447 -1348 -963 -125 -249 -180 -485 -180 -771 0 -480 183 -911 529 -1242 350 -336 780 -508 1271 -508 451 0 864 150 1193 434 326 281 517 620 591 1051 21 121 21 409 0 530 -43 252 -114 444 -237 639 -282 453 -741 750 -1284 831 -127 19 -413 18 -535 -1z m607 -173 c583 -126 1038 -523 1224 -1069 59 -173 75 -277 75 -492 0 -165 -3 -211 -22 -300 -71 -327 -228 -611 -458 -829 -186 -177 -381 -295 -614 -374 -176 -60 -282 -78 -490 -84 -247 -7 -416 19 -628 97 -549 201 -944 674 -1043 1250 -17 97 -17 383 0 480 99 576 495 1050 1043 1250 105 38 177 58 303 81 143 26 467 21 610 -10z M1720 1800 l0 -600 80 0 80 0 0 600 0 600 -80 0 -80 0 0 -600z\"/></g></svg>", 
              "  <svg x='506' y='500'><g transform=\"translate(0.0,15.0) scale(0.01,-0.01)\"><path class=\"sym-fill\" fill=\"white\" d=\"M200 750 l0 -550 300 0 300 0 0 550 0 550 -300 0 -300 0 0 -550z\"/><path class=\"sym-line\" fill=\"black\" d=\"M0 750 l0 -750 750 0 750 0 0 750 0 750 -750 0 -750 0 0 -750z m800 0 l0 -550 -300 0 -300 0 0 550 0 550 300 0 300 0 0 -550z\"/></g></svg>", 
              "  <svg x='503' y='520'><g transform=\"translate(0.196840829729,26.6999810561) scale(0.00975214136907,-0.00983390502079)\"><path class=\"sym-line\" fill=\"black\" d=\"M345 2350 l-350 -350 325 -325 325 -325 -325 -325 -325 -325 353 -353 352 -352 0 303 0 302 350 0 350 0 0 100 0 100 -350 0 -350 0 0 550 0 550 350 0 350 0 0 100 0 100 -350 0 -350 0 -2 300 -3 300 -350 -350z M1600 1350 l0 -1350 100 0 100 0 0 1350 0 1350 -100 0 -100 0 0 -1350z\"/></g></svg>", 
              "</svg>"
            ], 
            "type": "image/svg+xml;charset=utf-8"
          }
        ]
      }
    ], 
    "name": "Retrieve stand alone SVG image"
  }, 
  {
    "route": "/fsw/svg/font/{text}", 
    "lines": [
      "Create an SVG with font using Formal SignWriting in ASCII (FSW)"
    ], 
    "name": "SVG with font", 
    "parameters": [
      {
        "description": "The name of sign", 
        "type": "string", 
        "name": "text", 
        "example": "AS20310S26b02S33100M521x547S33100482x483S20310506x500S26b02503x520"
      }
    ]
  }, 
  {
    "code": [
      "$req = $app->request();", 
      "if ($req->get('throwStatus')=='500') {haltNoDatabase();}", 
      "$svg = SignWriting\\svg($text,true);", 
      "$searchTime = searchtime($timein);", 
      "header(\"Search-Time: \" . $searchTime);", 
      "echo $svg;"
    ], 
    "method": "GET", 
    "dialog": [
      {
        "request": {
          "name": "collection text"
        }, 
        "responses": [
          {
            "status": 200, 
            "body": [
              "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"49\" height=\"69\" viewBox=\"476 466 49 69\">", 
              "  <text font-size=\"0\">AS10011S10019S2e704S2e748M525x535S2e748483x510S10011501x466S2e704510x500S10019476x475</text>", 
              "  <g transform=\"translate(483,510)\"><text class=\"sym-fill\" style=\"pointer-events:none;font-family:'SuttonSignWritingFill';font-size:30px;fill:white;\">\udbed\udee9</text><text class=\"sym-line\" style=\"pointer-events:none;font-family:'SuttonSignWritingLine';font-size:30px;fill:black;\">\udbad\udee9</text></g>", 
              "  <g transform=\"translate(501,466)\"><text class=\"sym-fill\" style=\"pointer-events:none;font-family:'SuttonSignWritingFill';font-size:30px;fill:white;\">\udbc0\udc12</text><text class=\"sym-line\" style=\"pointer-events:none;font-family:'SuttonSignWritingLine';font-size:30px;fill:black;\">\udb80\udc12</text></g>", 
              "  <g transform=\"translate(510,500)\"><text class=\"sym-fill\" style=\"pointer-events:none;font-family:'SuttonSignWritingFill';font-size:30px;fill:white;\">\udbed\udea5</text><text class=\"sym-line\" style=\"pointer-events:none;font-family:'SuttonSignWritingLine';font-size:30px;fill:black;\">\udbad\udea5</text></g>", 
              "  <g transform=\"translate(476,475)\"><text class=\"sym-fill\" style=\"pointer-events:none;font-family:'SuttonSignWritingFill';font-size:30px;fill:white;\">\udbc0\udc1a</text><text class=\"sym-line\" style=\"pointer-events:none;font-family:'SuttonSignWritingLine';font-size:30px;fill:black;\">\udb80\udc1a</text></g>", 
              "</svg>"
            ], 
            "type": "image/svg+xml;charset=utf-8"
          }
        ]
      }
    ], 
    "name": "Retrieve SVG with font"
  }
]
