本來這個blog是記錄開發輸入法的點滴的,後來越來越雜,現在什麼都記錄了。

2014年7月20日 星期日

2014年7月1日 星期二

Hong Kong Coins in SVG format

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   version="1.1"
   width="420"
   height="420" >

   <g id="tenCents" transform="translate(210,210)">
      <defs>
        <path id="tenCents_EnglishPath"
              d="M -172 0
                 A 172 172 0 0 0 172 0 " />
      </defs>

      <circle fill="none" style="fill:darkgoldenrod;stroke:red;stroke-width:1px;" stroke="red" stroke-width="1px" r="205"/>
      <circle fill="none" stroke="red" stroke-width="1px" r="195"/>

      <text font-family="HanWangLiSuMedium" text-anchor="middle" font-size="60" fill="none" stroke="red" stroke-width="1px" y="-145" transform="rotate(-25)" ></text>
      <text font-family="HanWangLiSuMedium" text-anchor="middle" font-size="60" fill="none" stroke="red" stroke-width="1px" y="-145" transform="rotate(30)" ></text>

      <text y="60" font-family="Basemic Times" font-size="240" fill="none" stroke="red" stroke-width="2px" text-anchor="middle" letter-spacing="-10">10</text>

      <text y="110" font-family="EucrosiaUPC" font-size="50" fill="none" stroke="red" stroke-width="1px" text-anchor="middle" transform="matrix(1.3 0 0 1 0 0)">2014</text>

      <g transform="rotate(-35)">
      <text font-family="EucrosiaUPC" font-size="70" fill="none" stroke="red" stroke-width="1px">
        <textPath xlink:href="#tenCents_EnglishPath" letter-spacing="7">TEN CENTS</textPath>
      </text>
      </g>
   </g>

</svg>

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   version="1.1"
   width="450"
   height="450" >

   <g id="twentyCents" transform="translate(225,225)">
       <defs>
         <path id="twentyCentsDollars_EnglishPath"
               d="M -180 0
            A 180 180 0 0 0 180 0 " />
      
       </defs>

       <!-- Generate with two_dollars_outline.c,
            12 210.0 10.0
            12 220.0 10.0 -->
       <path fill="darkgoldenrod" stroke="red" stroke-width="1px" transform="rotate(-5)"
           d="
              M 210.000,0.000
              C 198.289,26.105 198.289,26.105 202.844,54.352
              C 203.253,84.190 203.253,84.190 181.865,105.000
              C 158.671,121.752 158.671,121.752 148.492,148.492
              C 133.928,174.538 133.928,174.538 105.000,181.865
              C 76.537,184.776 76.537,184.776 54.352,202.844
              C 28.716,218.118 28.716,218.118 0.000,210.000
              C -26.105,198.289 -26.105,198.289 -54.352,202.844
              C -84.190,203.253 -84.190,203.253 -105.000,181.865
              C -121.752,158.671 -121.752,158.671 -148.492,148.492
              C -174.538,133.928 -174.538,133.928 -181.865,105.000
              C -184.776,76.537 -184.776,76.537 -202.844,54.352
              C -218.118,28.716 -218.118,28.716 -210.000,0.000
              C -198.289,-26.105 -198.289,-26.105 -202.844,-54.352
              C -203.253,-84.190 -203.253,-84.190 -181.865,-105.000
              C -158.671,-121.752 -158.671,-121.752 -148.492,-148.492
              C -133.928,-174.538 -133.928,-174.538 -105.000,-181.865
              C -76.537,-184.776 -76.537,-184.776 -54.352,-202.844
              C -28.716,-218.118 -28.716,-218.118 -0.000,-210.000
              C 26.105,-198.289 26.105,-198.289 54.352,-202.844
              C 84.190,-203.253 84.190,-203.253 105.000,-181.865
              C 121.752,-158.671 121.752,-158.671 148.492,-148.492
              C 174.538,-133.928 174.538,-133.928 181.865,-105.000
              C 184.776,-76.537 184.776,-76.537 202.844,-54.352
              C 218.118,-28.716 218.118,-28.716 210.000,-0.000

              M 220.000, 0.000
              C 208.203, 27.411 208.203, 27.411 212.504, 56.940
              C 212.492, 88.017 212.492, 88.017 190.526, 110.000
              C 166.604, 127.840 166.604, 127.840 155.563, 155.563
              C 140.015, 182.471 140.015, 182.471 110.000, 190.526
              C 80.364, 194.015 80.364, 194.015 56.940, 212.504
              C 30.021, 228.032 30.021, 228.032 0.000, 220.000
              C -27.411, 208.203 -27.411, 208.203 -56.940, 212.504
              C -88.017, 212.492 -88.017, 212.492 -110.000, 190.526
              C -127.840, 166.604 -127.840, 166.604 -155.563, 155.563
              C -182.471, 140.015 -182.471, 140.015 -190.526, 110.000
              C -194.015, 80.364 -194.015, 80.364 -212.504, 56.940
              C -228.032, 30.021 -228.032, 30.021 -220.000, 0.000
              C -208.203, -27.411 -208.203, -27.411 -212.504, -56.940
              C -212.492, -88.017 -212.492, -88.017 -190.526, -110.000
              C -166.604, -127.840 -166.604, -127.840 -155.563, -155.563
              C -140.015, -182.471 -140.015, -182.471 -110.000, -190.526
              C -80.364, -194.015 -80.364, -194.015 -56.940, -212.504
              C -30.021, -228.032 -30.021, -228.032 -0.000, -220.000
              C 27.411, -208.203 27.411, -208.203 56.940, -212.504
              C 88.017, -212.492 88.017, -212.492 110.000, -190.526
              C 127.840, -166.604 127.840, -166.604 155.563, -155.563
              C 182.471, -140.015 182.471, -140.015 190.526, -110.000
              C 194.015, -80.364 194.015, -80.364 212.504, -56.940
              C 228.032, -30.021 228.032, -30.021 220.000, -0.000 " />

       <text font-family="HanWangLiSuMedium" text-anchor="middle" font-size="80" fill="none" stroke="red" stroke-width="1px" y="-130" transform="rotate(-25)" ></text>
       <text font-family="HanWangLiSuMedium" text-anchor="middle" font-size="80" fill="none" stroke="red" stroke-width="1px" y="-130" transform="rotate(30)" ></text>
      
       <text y="70" font-family="EucrosiaUPC" font-size="350" fill="none" stroke="red" stroke-width="2px" text-anchor="middle" transform="matrix(0.8 0 0 1 0 0)">20</text>
      
       <text y="120" font-family="EucrosiaUPC" font-size="60" fill="none" stroke="red" stroke-width="1px" text-anchor="middle" transform="matrix(1 0 0 1 0 0)">2014</text>
      
       <g transform="rotate(-30)">
       <text font-family="EucrosiaUPC" font-size="60" fill="none" stroke="red" stroke-width="1px">
         <textPath xlink:href="#twentyCentsDollars_EnglishPath" letter-spacing="5.8">TWENTY CENTS</textPath>
       </text>
       </g>
   </g>

</svg>

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   version="1.1"
   width="540"
   height="540" >

   <g id="fiftyCents" transform="translate(270,270)">
      <defs>
        <path id="fiftyCents_EnglishPath"
              d="M -215 0
                 A 215 215 0 0 0 215 0 " />
      </defs>

      <circle fill="darkgoldenrod" stroke="red" stroke-width="1px" r="260"/>
      <circle fill="none" stroke="red" stroke-width="1px" r="250"/>

      <text font-family="HanWangLiSuMedium" text-anchor="middle" font-size="80" fill="none" stroke="red" stroke-width="1px" y="-180" transform="rotate(-30)" ></text>
      <text font-family="HanWangLiSuMedium" text-anchor="middle" font-size="80" fill="none" stroke="red" stroke-width="1px" y="-180" transform="rotate(30)" ></text>

      <text x="-50" y="80" font-family="EucrosiaUPC" font-size="400" fill="none" stroke="red" stroke-width="2px" text-anchor="middle" transform="matrix(1.1 0 0 1 0 0)">5</text>
      <text x="100" y="80" font-family="EucrosiaUPC" font-size="400" fill="none" stroke="red" stroke-width="2px" text-anchor="middle" transform="matrix(0.9 0 0 1 0 0)">0</text>

      <text y="140" font-family="EucrosiaUPC" font-size="70" fill="none" stroke="red" stroke-width="1px" text-anchor="middle" transform="matrix(1.2 0 0 1 0 0)">2014</text>

      <g transform="rotate(-35)">
      <text font-family="EucrosiaUPC" font-size="80" fill="none" stroke="red" stroke-width="1px">
        <textPath xlink:href="#fiftyCents_EnglishPath" letter-spacing="9.5">FIFTY CENTS</textPath>
      </text>
      </g>
   </g>


</svg>

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   version="1.1"
   width="620"
   height="620" >

   <g id="oneDollar" transform="translate(310,310)">
      <defs>
        <path id="oneDollar_EnglishPath"
              d="M -260 0
                 A 260 260 0 0 0 260 0 " />
      </defs>

      <circle fill="lightgray" stroke="red" stroke-width="1px" r="300"/>
      <circle fill="none" stroke="red" stroke-width="1px" r="290"/>

      <text font-family="HanWangLiSuMedium" text-anchor="middle" font-size="120" fill="none" stroke="red" stroke-width="1px" y="-195" transform="rotate(-28)" ></text>
      <text font-family="HanWangLiSuMedium" text-anchor="middle" font-size="120" fill="none" stroke="red" stroke-width="1px" y="-195" transform="rotate(30)" ></text>

      <text y="90" font-family="Basemic Times" font-size="360" fill="none" stroke="red" stroke-width="2px" text-anchor="middle" transform="matrix(1.3 0 0 1 0 0)">1</text>

      <text y="170" font-family="EucrosiaUPC" font-size="80" fill="none" stroke="red" stroke-width="1px" text-anchor="middle" transform="matrix(1.3 0 0 1 0 0)">2014</text>

      <g transform="rotate(-40)">
      <text font-family="EucrosiaUPC" font-size="85" fill="none" stroke="red" stroke-width="1px">
        <textPath xlink:href="#oneDollar_EnglishPath" letter-spacing="9">ONE DOLLAR</textPath>
      </text>
      </g>
   </g>
</svg>

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   version="1.1"
   width="680"
   height="680" >

   <g id="twoDollars" transform="translate(340,340)">
       <defs>
         <path id="twoDollarsDollars_EnglishPath"
               d="M -280 0
            A 280 280 0 0 0 280 0 " />
      
       </defs>

       <!-- Generate with two_dollars_outline.c,
            12 320.0 10.0
            12 310.0 10.0 -->
       <path fill="lightgray" stroke="red" stroke-width="1px" transform="rotate(-20)"
           d="
                M 0.000, 320.000
                C 39.810, 302.391 39.810, 302.391 82.822, 309.096
                C 128.199, 309.500 128.199, 309.500 160.000, 277.128
                C 185.672, 241.973 185.672, 241.973 226.274, 226.274
                C 265.773, 203.935 265.773, 203.935 277.128, 160.000
                C 281.783, 116.718 281.783, 116.718 309.096, 82.822
                C 332.134, 43.726 332.134, 43.726 320.000, 0.000
                C 302.391, -39.810 302.391, -39.810 309.096, -82.822
                C 309.500, -128.199 309.500, -128.199 277.128, -160.000
                C 241.973, -185.672 241.973, -185.672 226.274, -226.274
                C 203.935, -265.773 203.935, -265.773 160.000, -277.128
                C 116.718, -281.783 116.718, -281.783 82.822, -309.096
                C 43.726, -332.134 43.726, -332.134 0.000, -320.000
                C -39.810, -302.391 -39.810, -302.391 -82.822, -309.096
                C -128.199, -309.500 -128.199, -309.500 -160.000, -277.128
                C -185.672, -241.973 -185.672, -241.973 -226.274, -226.274
                C -265.773, -203.935 -265.773, -203.935 -277.128, -160.000
                C -281.783, -116.718 -281.783, -116.718 -309.096, -82.822
                C -332.134, -43.726 -332.134, -43.726 -320.000, -0.000
                C -302.391, 39.810 -302.391, 39.810 -309.096, 82.822
                C -309.500, 128.199 -309.500, 128.199 -277.128, 160.000
                C -241.973, 185.672 -241.973, 185.672 -226.274, 226.274
                C -203.935, 265.773 -203.935, 265.773 -160.000, 277.128
                C -116.718, 281.783 -116.718, 281.783 -82.822, 309.096
                C -43.726, 332.134 -43.726, 332.134 -0.000, 320.000

                M 0.000, 310.000
                C 38.505, 292.476 38.505, 292.476 80.234, 299.437
                C 124.372, 300.261 124.372, 300.261 155.000, 268.468
                C 179.585, 234.039 179.585, 234.039 219.203, 219.203
                C 257.840, 197.847 257.840, 197.847 268.468, 155.000
                C 272.544, 112.892 272.544, 112.892 299.437, 80.234
                C 322.220, 42.421 322.220, 42.421 310.000, 0.000
                C 292.476, -38.505 292.476, -38.505 299.437, -80.234
                C 300.261, -124.372 300.261, -124.372 268.468, -155.000
                C 234.039, -179.585 234.039, -179.585 219.203, -219.203
                C 197.847, -257.840 197.847, -257.840 155.000, -268.468
                C 112.892, -272.544 112.892, -272.544 80.234, -299.437
                C 42.421, -322.220 42.421, -322.220 0.000, -310.000
                C -38.505, -292.476 -38.505, -292.476 -80.234, -299.437
                C -124.372, -300.261 -124.372, -300.261 -155.000, -268.468
                C -179.585, -234.039 -179.585, -234.039 -219.203, -219.203
                C -257.840, -197.847 -257.840, -197.847 -268.468, -155.000
                C -272.544, -112.892 -272.544, -112.892 -299.437, -80.234
                C -322.220, -42.421 -322.220, -42.421 -310.000, -0.000
                C -292.476, 38.505 -292.476, 38.505 -299.437, 80.234
                C -300.261, 124.372 -300.261, 124.372 -268.468, 155.000
                C -234.039, 179.585 -234.039, 179.585 -219.203, 219.203
                C -197.847, 257.840 -197.847, 257.840 -155.000, 268.468
                C -112.892, 272.544 -112.892, 272.544 -80.234, 299.437
                C -42.421, 322.220 -42.421, 322.220 -0.000, 310.000
             " />

       <text font-family="HanWangLiSuMedium" text-anchor="middle" font-size="130" fill="none" stroke="red" stroke-width="1px" y="-190" transform="rotate(-25)" ></text>
       <text font-family="HanWangLiSuMedium" text-anchor="middle" font-size="130" fill="none" stroke="red" stroke-width="1px" y="-190" transform="rotate(35)" ></text>
      
       <text y="110" font-family="EucrosiaUPC" font-size="550" fill="none" stroke="red" stroke-width="2px" text-anchor="middle" transform="matrix(1 0 0 1 0 0)">2</text>
      
       <text y="190" font-family="EucrosiaUPC" font-size="100" fill="none" stroke="red" stroke-width="1px" text-anchor="middle" transform="matrix(1 0 0 1 0 0)">2014</text>
      
       <g transform="rotate(-32)">
       <text font-family="EucrosiaUPC" font-size="100" fill="none" stroke="red" stroke-width="1px">
         <textPath xlink:href="#twoDollarsDollars_EnglishPath" letter-spacing="5.8">TWO DOLLARS</textPath>
       </text>
       </g>
   </g>

</svg>

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   version="1.1"
   width="630"
   height="630" >

   <g id="fiveDollars" transform="translate(315,315)">
      <defs>
        <path id="fiveDollars_EnglishPath"
              d="M -280 0
                 A 280 280 0 0 0 280 0 " />
      </defs>

      <circle fill="lightgray" stroke="red" stroke-width="1px" r="310"/>
      <circle fill="none" stroke="red" stroke-width="1px" r="300"/>

      <text font-family="HanWangLiSuMedium" text-anchor="middle" font-size="120" fill="none" stroke="red" stroke-width="1px" y="-210" transform="rotate(-25)" ></text>
      <text font-family="HanWangLiSuMedium" text-anchor="middle" font-size="120" fill="none" stroke="red" stroke-width="1px" y="-210" transform="rotate(30)" ></text>

      <text y="100" font-family="EucrosiaUPC" font-size="550" fill="none" stroke="red" stroke-width="2px" text-anchor="middle" transform="matrix(1.3 0 0 1 0 0)">5</text>

      <text y="170" font-family="EucrosiaUPC" font-size="80" fill="none" stroke="red" stroke-width="1px" text-anchor="middle" transform="matrix(1.3 0 0 1 0 0)">2014</text>

      <g transform="rotate(-30)">
      <text font-family="EucrosiaUPC" font-size="100" fill="none" stroke="red" stroke-width="1px">
        <textPath xlink:href="#fiveDollars_EnglishPath" letter-spacing="9.5">FIVE DOLLARS</textPath>
      </text>
      </g>
   </g>

</svg>

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:cc="http://creativecommons.org/ns#"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:svg="http://www.w3.org/2000/svg"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   version="1.1"
   width="571"
   height="570" >

   <g id="tenDollars" transform="translate(285,285)">
      <defs>
        <path id="tenDollars_EnglishPath"
              d="M -250 0
                 A 250 250 0 0 0 250 0 " />
        <g id="stripes">
           <path fill="none" stroke="red" stroke-width="1px" transform="rotate(  0)" d="M 185 0 h 10"/>
           <path fill="none" stroke="red" stroke-width="1px" transform="rotate( 10)" d="M 185 0 h 10"/>
           <path fill="none" stroke="red" stroke-width="1px" transform="rotate( 20)" d="M 185 0 h 10"/>
           <path fill="none" stroke="red" stroke-width="1px" transform="rotate( 30)" d="M 185 0 h 10"/>
           <path fill="none" stroke="red" stroke-width="1px" transform="rotate( 40)" d="M 185 0 h 10"/>
           <path fill="none" stroke="red" stroke-width="1px" transform="rotate( 50)" d="M 185 0 h 10"/>
        </g>  

      </defs>

      <circle fill="lightgray" stroke="red" stroke-width="1px" r="280"/>
      <circle fill="none" stroke="red" stroke-width="1px" r="270"/>

      <circle fill="darkgoldenrod" stroke="red" stroke-width="1px" r="195"/>
         <use xlink:href="#stripes" transform="rotate(  0)" />
         <use xlink:href="#stripes" transform="rotate( 60)" />
         <use xlink:href="#stripes" transform="rotate(120)" />
         <use xlink:href="#stripes" transform="rotate(180)" />
         <use xlink:href="#stripes" transform="rotate(240)" />
         <use xlink:href="#stripes" transform="rotate(300)" />
      <circle fill="none" stroke="red" stroke-width="1px" r="185"/>

      <text font-family="HanWangLiSuMedium" text-anchor="middle" font-size="80" fill="none" stroke="red" stroke-width="1px" y="-205" transform="rotate(-25)" ></text>
      <text font-family="HanWangLiSuMedium" text-anchor="middle" font-size="80" fill="none" stroke="red" stroke-width="1px" y="-205" transform="rotate(30)" ></text>

      <text y="90" font-family="Basemic Times" font-size="320" fill="none" stroke="red" stroke-width="2px" text-anchor="middle" letter-spacing="-10" >10</text>

      <text y="150" font-family="EucrosiaUPC" font-size="70" fill="none" stroke="red" stroke-width="1px" text-anchor="middle" transform="matrix(1.2 0 0 1 0 0)">2014</text>

      <g transform="rotate(-35)">
      <text font-family="EucrosiaUPC" font-size="80" fill="none" stroke="red" stroke-width="1px">
        <textPath xlink:href="#tenDollars_EnglishPath" letter-spacing="9">TEN DOLLARS</textPath>
      </text>
      </g>
   </g>

</svg>