{"id":6948,"date":"2022-08-13T10:59:17","date_gmt":"2022-08-13T01:59:17","guid":{"rendered":"https:\/\/www.sambuichi.jp\/?p=6948"},"modified":"2022-08-30T07:27:52","modified_gmt":"2022-08-29T22:27:52","slug":"jp-pint-0-9-3-%e3%82%b9%e3%82%ad%e3%83%bc%e3%83%9e%e3%83%88%e3%83%ad%e3%83%b3%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%ae%e8%a7%a3%e6%9e%90%e3%83%84%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/www.sambuichi.jp\/?p=6948","title":{"rendered":"JP PINT 0.9.3 \u30b9\u30ad\u30fc\u30de\u30c8\u30ed\u30f3\u30d5\u30a1\u30a4\u30eb\u306e\u89e3\u6790\u30d7\u30ed\u30b0\u30e9\u30e0"},"content":{"rendered":"<p>Views: 107<\/p><style>\n\/*! Asciidoctor default stylesheet | MIT License | https:\/\/asciidoctor.org *\/\n\/* Uncomment the following line when using as a custom stylesheet *\/\n@import \"https:\/\/fonts.googleapis.com\/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700\"; \nhtml{font-family:sans-serif;-webkit-text-size-adjust:100%}\na{background:none}\na:focus{outline:thin dotted}\na:active,a:hover{outline:0}\nh1{font-size:2em;margin:.67em 0}\nb,strong{font-weight:bold}\nabbr{font-size:.9em}\nabbr[title]{cursor:help;border-bottom:1px dotted #dddddf;text-decoration:none}\ndfn{font-style:italic}\nhr{height:0}\nmark{background:#ff0;color:#000}\ncode,kbd,pre,samp{font-family:monospace;font-size:1em}\npre{white-space:pre-wrap}\nq{quotes:\"\\201C\" \"\\201D\" \"\\2018\" \"\\2019\"}\nsmall{font-size:80%}\nsub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}\nsup{top:-.5em}\nsub{bottom:-.25em}\nimg{border:0}\nsvg:not(:root){overflow:hidden}\nfigure{margin:0}\naudio,video{display:inline-block}\naudio:not([controls]){display:none;height:0}\nfieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}\nlegend{border:0;padding:0}\nbutton,input,select,textarea{font-family:inherit;font-size:100%;margin:0}\nbutton,input{line-height:normal}\nbutton,select{text-transform:none}\nbutton,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}\nbutton[disabled],html input[disabled]{cursor:default}\ninput[type=checkbox],input[type=radio]{padding:0}\nbutton::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}\ntextarea{overflow:auto;vertical-align:top}\ntable{border-collapse:collapse;border-spacing:0}\n*,::before,::after{box-sizing:border-box}\nhtml,body{font-size:100%}\nbody{background:#fff;color:rgba(0,0,0,.8);padding:0;margin:0;font-family:\"Noto Serif\",\"DejaVu Serif\",serif;line-height:1;position:relative;cursor:auto;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-wrap:anywhere;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}\na:hover{cursor:pointer}\nimg,object,embed{max-width:100%;height:auto}\nobject,embed{height:100%}\nimg{-ms-interpolation-mode:bicubic}\n.left{float:left!important}\n.right{float:right!important}\n.text-left{text-align:left!important}\n.text-right{text-align:right!important}\n.text-center{text-align:center!important}\n.text-justify{text-align:justify!important}\n.hide{display:none}\nimg,object,svg{display:inline-block;vertical-align:middle}\ntextarea{height:auto;min-height:50px}\nselect{width:100%}\n.subheader,.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{line-height:1.45;color:#7a2518;font-weight:400;margin-top:0;margin-bottom:.25em}\ndiv,dl,dt,dd,ul,ol,li,h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6,pre,form,p,blockquote,th,td{margin:0;padding:0}\na{color:#2156a5;text-decoration:underline;line-height:inherit}\na:hover,a:focus{color:#1d4b8f}\na img{border:0}\np{line-height:1.6;margin-bottom:1.25em;text-rendering:optimizeLegibility}\np aside{font-size:.875em;line-height:1.35;font-style:italic}\nh1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{font-family:\"Open Sans\",\"DejaVu Sans\",sans-serif;font-weight:300;font-style:normal;color:#ba3925;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.0125em}\nh1 small,h2 small,h3 small,#toctitle small,.sidebarblock>.content>.title small,h4 small,h5 small,h6 small{font-size:60%;color:#e99b8f;line-height:0}\nh1{font-size:2.125em}\nh2{font-size:1.6875em}\nh3,#toctitle,.sidebarblock>.content>.title{font-size:1.375em}\nh4,h5{font-size:1.125em}\nh6{font-size:1em}\nhr{border:solid #dddddf;border-width:1px 0 0;clear:both;margin:1.25em 0 1.1875em}\nem,i{font-style:italic;line-height:inherit}\nstrong,b{font-weight:bold;line-height:inherit}\nsmall{font-size:60%;line-height:inherit}\ncode{font-family:\"Droid Sans Mono\",\"DejaVu Sans Mono\",monospace;font-weight:400;color:rgba(0,0,0,.9)}\nul,ol,dl{line-height:1.6;margin-bottom:1.25em;list-style-position:outside;font-family:inherit}\nul,ol{margin-left:1.5em}\nul li ul,ul li ol{margin-left:1.25em;margin-bottom:0}\nul.square li ul,ul.circle li ul,ul.disc li ul{list-style:inherit}\nul.square{list-style-type:square}\nul.circle{list-style-type:circle}\nul.disc{list-style-type:disc}\nol li ul,ol li ol{margin-left:1.25em;margin-bottom:0}\ndl dt{margin-bottom:.3125em;font-weight:bold}\ndl dd{margin-bottom:1.25em}\nblockquote{margin:0 0 1.25em;padding:.5625em 1.25em 0 1.1875em;border-left:1px solid #ddd}\nblockquote,blockquote p{line-height:1.6;color:rgba(0,0,0,.85)}\n@media screen and (min-width:768px){h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2}\nh1{font-size:2.75em}\nh2{font-size:2.3125em}\nh3,#toctitle,.sidebarblock>.content>.title{font-size:1.6875em}\nh4{font-size:1.4375em}}\ntable{background:#fff;margin-bottom:1.25em;border:1px solid #dedede;word-wrap:normal}\ntable thead,table tfoot{background:#f7f8f7}\ntable thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{padding:.5em .625em .625em;font-size:inherit;color:rgba(0,0,0,.8);text-align:left}\ntable tr th,table tr td{padding:.5625em .625em;font-size:inherit;color:rgba(0,0,0,.8)}\ntable tr.even,table tr.alt{background:#f8f8f7}\ntable thead tr th,table tfoot tr th,table tbody tr td,table tr td,table tfoot tr td{line-height:1.6}\nh1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2;word-spacing:-.05em}\nh1 strong,h2 strong,h3 strong,#toctitle strong,.sidebarblock>.content>.title strong,h4 strong,h5 strong,h6 strong{font-weight:400}\n.center{margin-left:auto;margin-right:auto}\n.stretch{width:100%}\n.clearfix::before,.clearfix::after,.float-group::before,.float-group::after{content:\" \";display:table}\n.clearfix::after,.float-group::after{clear:both}\n:not(pre).nobreak{word-wrap:normal}\n:not(pre).nowrap{white-space:nowrap}\n:not(pre).pre-wrap{white-space:pre-wrap}\n:not(pre):not([class^=L])>code{font-size:.9375em;font-style:normal!important;letter-spacing:0;padding:.1em .5ex;word-spacing:-.15em;background:#f7f7f8;border-radius:4px;line-height:1.45;text-rendering:optimizeSpeed}\npre{color:rgba(0,0,0,.9);font-family:\"Droid Sans Mono\",\"DejaVu Sans Mono\",monospace;line-height:1.45;text-rendering:optimizeSpeed}\npre code,pre pre{color:inherit;font-size:inherit;line-height:inherit}\npre>code{display:block}\npre.nowrap,pre.nowrap pre{white-space:pre;word-wrap:normal}\nem em{font-style:normal}\nstrong strong{font-weight:400}\n.keyseq{color:rgba(51,51,51,.8)}\nkbd{font-family:\"Droid Sans Mono\",\"DejaVu Sans Mono\",monospace;display:inline-block;color:rgba(0,0,0,.8);font-size:.65em;line-height:1.45;background:#f7f7f7;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.2),inset 0 0 0 .1em #fff;margin:0 .15em;padding:.2em .5em;vertical-align:middle;position:relative;top:-.1em;white-space:nowrap}\n.keyseq kbd:first-child{margin-left:0}\n.keyseq kbd:last-child{margin-right:0}\n.menuseq,.menuref{color:#000}\n.menuseq b:not(.caret),.menuref{font-weight:inherit}\n.menuseq{word-spacing:-.02em}\n.menuseq b.caret{font-size:1.25em;line-height:.8}\n.menuseq i.caret{font-weight:bold;text-align:center;width:.45em}\nb.button::before,b.button::after{position:relative;top:-1px;font-weight:400}\nb.button::before{content:\"[\";padding:0 3px 0 2px}\nb.button::after{content:\"]\";padding:0 2px 0 3px}\np a>code:hover{color:rgba(0,0,0,.9)}\n#header,#content,#footnotes,#footer{width:100%;margin:0 auto;max-width:62.5em;*zoom:1;position:relative;padding-left:.9375em;padding-right:.9375em}\n#header::before,#header::after,#content::before,#content::after,#footnotes::before,#footnotes::after,#footer::before,#footer::after{content:\" \";display:table}\n#header::after,#content::after,#footnotes::after,#footer::after{clear:both}\n#content{margin-top:1.25em}\n#content::before{content:none}\n#header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0}\n#header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf}\n#header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px}\n#header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap}\n#header .details span:first-child{margin-left:-.125em}\n#header .details span.email a{color:rgba(0,0,0,.85)}\n#header .details br{display:none}\n#header .details br+span::before{content:\"\\00a0\\2013\\00a0\"}\n#header .details br+span.author::before{content:\"\\00a0\\22c5\\00a0\";color:rgba(0,0,0,.85)}\n#header .details br+span#revremark::before{content:\"\\00a0|\\00a0\"}\n#header #revnumber{text-transform:capitalize}\n#header #revnumber::after{content:\"\\00a0\"}\n#content>h1:first-child:not([class]){color:rgba(0,0,0,.85);border-bottom:1px solid #dddddf;padding-bottom:8px;margin-top:0;padding-top:1rem;margin-bottom:1.25rem}\n#toc{border-bottom:1px solid #e7e7e9;padding-bottom:.5em}\n#toc>ul{margin-left:.125em}\n#toc ul.sectlevel0>li>a{font-style:italic}\n#toc ul.sectlevel0 ul.sectlevel1{margin:.5em 0}\n#toc ul{font-family:\"Open Sans\",\"DejaVu Sans\",sans-serif;list-style-type:none}\n#toc li{line-height:1.3334;margin-top:.3334em}\n#toc a{text-decoration:none}\n#toc a:active{text-decoration:underline}\n#toctitle{color:#7a2518;font-size:1.2em}\n@media screen and (min-width:768px){#toctitle{font-size:1.375em}\nbody.toc2{padding-left:15em;padding-right:0}\n#toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto}\n#toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em}\n#toc.toc2>ul{font-size:.9em;margin-bottom:0}\n#toc.toc2 ul ul{margin-left:0;padding-left:1em}\n#toc.toc2 ul.sectlevel0 ul.sectlevel1{padding-left:0;margin-top:.5em;margin-bottom:.5em}\nbody.toc2.toc-right{padding-left:0;padding-right:15em}\nbody.toc2.toc-right #toc.toc2{border-right-width:0;border-left:1px solid #e7e7e9;left:auto;right:0}}\n@media screen and (min-width:1280px){body.toc2{padding-left:20em;padding-right:0}\n#toc.toc2{width:20em}\n#toc.toc2 #toctitle{font-size:1.375em}\n#toc.toc2>ul{font-size:.95em}\n#toc.toc2 ul ul{padding-left:1.25em}\nbody.toc2.toc-right{padding-left:0;padding-right:20em}}\n#content #toc{border:1px solid #e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;border-radius:4px}\n#content #toc>:first-child{margin-top:0}\n#content #toc>:last-child{margin-bottom:0}\n#footer{max-width:none;background:rgba(0,0,0,.8);padding:1.25em}\n#footer-text{color:hsla(0,0%,100%,.8);line-height:1.44}\n#content{margin-bottom:.625em}\n.sect1{padding-bottom:.625em}\n@media screen and (min-width:768px){#content{margin-bottom:1.25em}\n.sect1{padding-bottom:1.25em}}\n.sect1:last-child{padding-bottom:0}\n.sect1+.sect1{border-top:1px solid #e7e7e9}\n#content h1>a.anchor,h2>a.anchor,h3>a.anchor,#toctitle>a.anchor,.sidebarblock>.content>.title>a.anchor,h4>a.anchor,h5>a.anchor,h6>a.anchor{position:absolute;z-index:1001;width:1.5ex;margin-left:-1.5ex;display:block;text-decoration:none!important;visibility:hidden;text-align:center;font-weight:400}\n#content h1>a.anchor::before,h2>a.anchor::before,h3>a.anchor::before,#toctitle>a.anchor::before,.sidebarblock>.content>.title>a.anchor::before,h4>a.anchor::before,h5>a.anchor::before,h6>a.anchor::before{content:\"\\00A7\";font-size:.85em;display:block;padding-top:.1em}\n#content h1:hover>a.anchor,#content h1>a.anchor:hover,h2:hover>a.anchor,h2>a.anchor:hover,h3:hover>a.anchor,#toctitle:hover>a.anchor,.sidebarblock>.content>.title:hover>a.anchor,h3>a.anchor:hover,#toctitle>a.anchor:hover,.sidebarblock>.content>.title>a.anchor:hover,h4:hover>a.anchor,h4>a.anchor:hover,h5:hover>a.anchor,h5>a.anchor:hover,h6:hover>a.anchor,h6>a.anchor:hover{visibility:visible}\n#content h1>a.link,h2>a.link,h3>a.link,#toctitle>a.link,.sidebarblock>.content>.title>a.link,h4>a.link,h5>a.link,h6>a.link{color:#ba3925;text-decoration:none}\n#content h1>a.link:hover,h2>a.link:hover,h3>a.link:hover,#toctitle>a.link:hover,.sidebarblock>.content>.title>a.link:hover,h4>a.link:hover,h5>a.link:hover,h6>a.link:hover{color:#a53221}\ndetails,.audioblock,.imageblock,.literalblock,.listingblock,.stemblock,.videoblock{margin-bottom:1.25em}\ndetails{margin-left:1.25rem}\ndetails>summary{cursor:pointer;display:block;position:relative;line-height:1.6;margin-bottom:.625rem;outline:none;-webkit-tap-highlight-color:transparent}\ndetails>summary::-webkit-details-marker{display:none}\ndetails>summary::before{content:\"\";border:solid transparent;border-left:solid;border-width:.3em 0 .3em .5em;position:absolute;top:.5em;left:-1.25rem;transform:translateX(15%)}\ndetails[open]>summary::before{border:solid transparent;border-top:solid;border-width:.5em .3em 0;transform:translateY(15%)}\ndetails>summary::after{content:\"\";width:1.25rem;height:1em;position:absolute;top:.3em;left:-1.25rem}\n.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{text-rendering:optimizeLegibility;text-align:left;font-family:\"Noto Serif\",\"DejaVu Serif\",serif;font-size:1rem;font-style:italic}\ntable.tableblock.fit-content>caption.title{white-space:nowrap;width:0}\n.paragraph.lead>p,#preamble>.sectionbody>[class=paragraph]:first-of-type p{font-size:1.21875em;line-height:1.6;color:rgba(0,0,0,.85)}\n.admonitionblock>table{border-collapse:separate;border:0;background:none;width:100%}\n.admonitionblock>table td.icon{text-align:center;width:80px}\n.admonitionblock>table td.icon img{max-width:none}\n.admonitionblock>table td.icon .title{font-weight:bold;font-family:\"Open Sans\",\"DejaVu Sans\",sans-serif;text-transform:uppercase}\n.admonitionblock>table td.content{padding-left:1.125em;padding-right:1.25em;border-left:1px solid #dddddf;color:rgba(0,0,0,.6);word-wrap:anywhere}\n.admonitionblock>table td.content>:last-child>:last-child{margin-bottom:0}\n.exampleblock>.content{border:1px solid #e6e6e6;margin-bottom:1.25em;padding:1.25em;background:#fff;border-radius:4px}\n.exampleblock>.content>:first-child{margin-top:0}\n.exampleblock>.content>:last-child{margin-bottom:0}\n.sidebarblock{border:1px solid #dbdbd6;margin-bottom:1.25em;padding:1.25em;background:#f3f3f2;border-radius:4px}\n.sidebarblock>:first-child{margin-top:0}\n.sidebarblock>:last-child{margin-bottom:0}\n.sidebarblock>.content>.title{color:#7a2518;margin-top:0;text-align:center}\n.exampleblock>.content>:last-child>:last-child,.exampleblock>.content .olist>ol>li:last-child>:last-child,.exampleblock>.content .ulist>ul>li:last-child>:last-child,.exampleblock>.content .qlist>ol>li:last-child>:last-child,.sidebarblock>.content>:last-child>:last-child,.sidebarblock>.content .olist>ol>li:last-child>:last-child,.sidebarblock>.content .ulist>ul>li:last-child>:last-child,.sidebarblock>.content .qlist>ol>li:last-child>:last-child{margin-bottom:0}\n.literalblock pre,.listingblock>.content>pre{border-radius:4px;overflow-x:auto;padding:1em;font-size:.8125em}\n@media screen and (min-width:768px){.literalblock pre,.listingblock>.content>pre{font-size:.90625em}}\n@media screen and (min-width:1280px){.literalblock pre,.listingblock>.content>pre{font-size:1em}}\n.literalblock pre,.listingblock>.content>pre:not(.highlight),.listingblock>.content>pre[class=highlight],.listingblock>.content>pre[class^=\"highlight \"]{background:#f7f7f8}\n.literalblock.output pre{color:#f7f7f8;background:rgba(0,0,0,.9)}\n.listingblock>.content{position:relative}\n.listingblock code[data-lang]::before{display:none;content:attr(data-lang);position:absolute;font-size:.75em;top:.425rem;right:.5rem;line-height:1;text-transform:uppercase;color:inherit;opacity:.5}\n.listingblock:hover code[data-lang]::before{display:block}\n.listingblock.terminal pre .command::before{content:attr(data-prompt);padding-right:.5em;color:inherit;opacity:.5}\n.listingblock.terminal pre .command:not([data-prompt])::before{content:\"$\"}\n.listingblock pre.highlightjs{padding:0}\n.listingblock pre.highlightjs>code{padding:1em;border-radius:4px}\n.listingblock pre.prettyprint{border-width:0}\n.prettyprint{background:#f7f7f8}\npre.prettyprint .linenums{line-height:1.45;margin-left:2em}\npre.prettyprint li{background:none;list-style-type:inherit;padding-left:0}\npre.prettyprint li code[data-lang]::before{opacity:1}\npre.prettyprint li:not(:first-child) code[data-lang]::before{display:none}\ntable.linenotable{border-collapse:separate;border:0;margin-bottom:0;background:none}\ntable.linenotable td[class]{color:inherit;vertical-align:top;padding:0;line-height:inherit;white-space:normal}\ntable.linenotable td.code{padding-left:.75em}\ntable.linenotable td.linenos,pre.pygments .linenos{border-right:1px solid;opacity:.35;padding-right:.5em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}\npre.pygments span.linenos{display:inline-block;margin-right:.75em}\n.quoteblock{margin:0 1em 1.25em 1.5em;display:table}\n.quoteblock:not(.excerpt)>.title{margin-left:-1.5em;margin-bottom:.75em}\n.quoteblock blockquote,.quoteblock p{color:rgba(0,0,0,.85);font-size:1.15rem;line-height:1.75;word-spacing:.1em;letter-spacing:0;font-style:italic;text-align:justify}\n.quoteblock blockquote{margin:0;padding:0;border:0}\n.quoteblock blockquote::before{content:\"\\201c\";float:left;font-size:2.75em;font-weight:bold;line-height:.6em;margin-left:-.6em;color:#7a2518;text-shadow:0 1px 2px rgba(0,0,0,.1)}\n.quoteblock blockquote>.paragraph:last-child p{margin-bottom:0}\n.quoteblock .attribution{margin-top:.75em;margin-right:.5ex;text-align:right}\n.verseblock{margin:0 1em 1.25em}\n.verseblock pre{font-family:\"Open Sans\",\"DejaVu Sans\",sans-serif;font-size:1.15rem;color:rgba(0,0,0,.85);font-weight:300;text-rendering:optimizeLegibility}\n.verseblock pre strong{font-weight:400}\n.verseblock .attribution{margin-top:1.25rem;margin-left:.5ex}\n.quoteblock .attribution,.verseblock .attribution{font-size:.9375em;line-height:1.45;font-style:italic}\n.quoteblock .attribution br,.verseblock .attribution br{display:none}\n.quoteblock .attribution cite,.verseblock .attribution cite{display:block;letter-spacing:-.025em;color:rgba(0,0,0,.6)}\n.quoteblock.abstract blockquote::before,.quoteblock.excerpt blockquote::before,.quoteblock .quoteblock blockquote::before{display:none}\n.quoteblock.abstract blockquote,.quoteblock.abstract p,.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{line-height:1.6;word-spacing:0}\n.quoteblock.abstract{margin:0 1em 1.25em;display:block}\n.quoteblock.abstract>.title{margin:0 0 .375em;font-size:1.15em;text-align:center}\n.quoteblock.excerpt>blockquote,.quoteblock .quoteblock{padding:0 0 .25em 1em;border-left:.25em solid #dddddf}\n.quoteblock.excerpt,.quoteblock .quoteblock{margin-left:0}\n.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{color:inherit;font-size:1.0625rem}\n.quoteblock.excerpt .attribution,.quoteblock .quoteblock .attribution{color:inherit;font-size:.85rem;text-align:left;margin-right:0}\np.tableblock:last-child{margin-bottom:0}\ntd.tableblock>.content{margin-bottom:1.25em;word-wrap:anywhere}\ntd.tableblock>.content>:last-child{margin-bottom:-1.25em}\ntable.tableblock,th.tableblock,td.tableblock{border:0 solid #dedede}\ntable.grid-all>*>tr>*{border-width:1px}\ntable.grid-cols>*>tr>*{border-width:0 1px}\ntable.grid-rows>*>tr>*{border-width:1px 0}\ntable.frame-all{border-width:1px}\ntable.frame-ends{border-width:1px 0}\ntable.frame-sides{border-width:0 1px}\ntable.frame-none>colgroup+*>:first-child>*,table.frame-sides>colgroup+*>:first-child>*{border-top-width:0}\ntable.frame-none>:last-child>:last-child>*,table.frame-sides>:last-child>:last-child>*{border-bottom-width:0}\ntable.frame-none>*>tr>:first-child,table.frame-ends>*>tr>:first-child{border-left-width:0}\ntable.frame-none>*>tr>:last-child,table.frame-ends>*>tr>:last-child{border-right-width:0}\ntable.stripes-all>*>tr,table.stripes-odd>*>tr:nth-of-type(odd),table.stripes-even>*>tr:nth-of-type(even),table.stripes-hover>*>tr:hover{background:#f8f8f7}\nth.halign-left,td.halign-left{text-align:left}\nth.halign-right,td.halign-right{text-align:right}\nth.halign-center,td.halign-center{text-align:center}\nth.valign-top,td.valign-top{vertical-align:top}\nth.valign-bottom,td.valign-bottom{vertical-align:bottom}\nth.valign-middle,td.valign-middle{vertical-align:middle}\ntable thead th,table tfoot th{font-weight:bold}\ntbody tr th{background:#f7f8f7}\ntbody tr th,tbody tr th p,tfoot tr th,tfoot tr th p{color:rgba(0,0,0,.8);font-weight:bold}\np.tableblock>code:only-child{background:none;padding:0}\np.tableblock{font-size:1em}\nol{margin-left:1.75em}\nul li ol{margin-left:1.5em}\ndl dd{margin-left:1.125em}\ndl dd:last-child,dl dd:last-child>:last-child{margin-bottom:0}\nli p,ul dd,ol dd,.olist .olist,.ulist .ulist,.ulist .olist,.olist .ulist{margin-bottom:.625em}\nul.checklist,ul.none,ol.none,ul.no-bullet,ol.no-bullet,ol.unnumbered,ul.unstyled,ol.unstyled{list-style-type:none}\nul.no-bullet,ol.no-bullet,ol.unnumbered{margin-left:.625em}\nul.unstyled,ol.unstyled{margin-left:0}\nli>p:empty:only-child::before{content:\"\";display:inline-block}\nul.checklist>li>p:first-child{margin-left:-1em}\nul.checklist>li>p:first-child>.fa-square-o:first-child,ul.checklist>li>p:first-child>.fa-check-square-o:first-child{width:1.25em;font-size:.8em;position:relative;bottom:.125em}\nul.checklist>li>p:first-child>input[type=checkbox]:first-child{margin-right:.25em}\nul.inline{display:flex;flex-flow:row wrap;list-style:none;margin:0 0 .625em -1.25em}\nul.inline>li{margin-left:1.25em}\n.unstyled dl dt{font-weight:400;font-style:normal}\nol.arabic{list-style-type:decimal}\nol.decimal{list-style-type:decimal-leading-zero}\nol.loweralpha{list-style-type:lower-alpha}\nol.upperalpha{list-style-type:upper-alpha}\nol.lowerroman{list-style-type:lower-roman}\nol.upperroman{list-style-type:upper-roman}\nol.lowergreek{list-style-type:lower-greek}\n.hdlist>table,.colist>table{border:0;background:none}\n.hdlist>table>tbody>tr,.colist>table>tbody>tr{background:none}\ntd.hdlist1,td.hdlist2{vertical-align:top;padding:0 .625em}\ntd.hdlist1{font-weight:bold;padding-bottom:1.25em}\ntd.hdlist2{word-wrap:anywhere}\n.literalblock+.colist,.listingblock+.colist{margin-top:-.5em}\n.colist td:not([class]):first-child{padding:.4em .75em 0;line-height:1;vertical-align:top}\n.colist td:not([class]):first-child img{max-width:none}\n.colist td:not([class]):last-child{padding:.25em 0}\n.thumb,.th{line-height:0;display:inline-block;border:4px solid #fff;box-shadow:0 0 0 1px #ddd}\n.imageblock.left{margin:.25em .625em 1.25em 0}\n.imageblock.right{margin:.25em 0 1.25em .625em}\n.imageblock>.title{margin-bottom:0}\n.imageblock.thumb,.imageblock.th{border-width:6px}\n.imageblock.thumb>.title,.imageblock.th>.title{padding:0 .125em}\n.image.left,.image.right{margin-top:.25em;margin-bottom:.25em;display:inline-block;line-height:0}\n.image.left{margin-right:.625em}\n.image.right{margin-left:.625em}\na.image{text-decoration:none;display:inline-block}\na.image object{pointer-events:none}\nsup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super}\nsup.footnote a,sup.footnoteref a{text-decoration:none}\nsup.footnote a:active,sup.footnoteref a:active{text-decoration:underline}\n#footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em}\n#footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0}\n#footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em}\n#footnotes .footnote a:first-of-type{font-weight:bold;text-decoration:none;margin-left:-1.05em}\n#footnotes .footnote:last-of-type{margin-bottom:0}\n#content #footnotes{margin-top:-.625em;margin-bottom:0;padding:.75em 0}\ndiv.unbreakable{page-break-inside:avoid}\n.big{font-size:larger}\n.small{font-size:smaller}\n.underline{text-decoration:underline}\n.overline{text-decoration:overline}\n.line-through{text-decoration:line-through}\n.aqua{color:#00bfbf}\n.aqua-background{background:#00fafa}\n.black{color:#000}\n.black-background{background:#000}\n.blue{color:#0000bf}\n.blue-background{background:#0000fa}\n.fuchsia{color:#bf00bf}\n.fuchsia-background{background:#fa00fa}\n.gray{color:#606060}\n.gray-background{background:#7d7d7d}\n.green{color:#006000}\n.green-background{background:#007d00}\n.lime{color:#00bf00}\n.lime-background{background:#00fa00}\n.maroon{color:#600000}\n.maroon-background{background:#7d0000}\n.navy{color:#000060}\n.navy-background{background:#00007d}\n.olive{color:#606000}\n.olive-background{background:#7d7d00}\n.purple{color:#600060}\n.purple-background{background:#7d007d}\n.red{color:#bf0000}\n.red-background{background:#fa0000}\n.silver{color:#909090}\n.silver-background{background:#bcbcbc}\n.teal{color:#006060}\n.teal-background{background:#007d7d}\n.white{color:#bfbfbf}\n.white-background{background:#fafafa}\n.yellow{color:#bfbf00}\n.yellow-background{background:#fafa00}\nspan.icon>.fa{cursor:default}\na span.icon>.fa{cursor:inherit}\n.admonitionblock td.icon [class^=\"fa icon-\"]{font-size:2.5em;text-shadow:1px 1px 2px rgba(0,0,0,.5);cursor:default}\n.admonitionblock td.icon .icon-note::before{content:\"\\f05a\";color:#19407c}\n.admonitionblock td.icon .icon-tip::before{content:\"\\f0eb\";text-shadow:1px 1px 2px rgba(155,155,0,.8);color:#111}\n.admonitionblock td.icon .icon-warning::before{content:\"\\f071\";color:#bf6900}\n.admonitionblock td.icon .icon-caution::before{content:\"\\f06d\";color:#bf3400}\n.admonitionblock td.icon .icon-important::before{content:\"\\f06a\";color:#bf0000}\n.conum[data-value]{display:inline-block;color:#fff!important;background:rgba(0,0,0,.8);border-radius:50%;text-align:center;font-size:.75em;width:1.67em;height:1.67em;line-height:1.67em;font-family:\"Open Sans\",\"DejaVu Sans\",sans-serif;font-style:normal;font-weight:bold}\n.conum[data-value] *{color:#fff!important}\n.conum[data-value]+b{display:none}\n.conum[data-value]::after{content:attr(data-value)}\npre .conum[data-value]{position:relative;top:-.125em}\nb.conum *{color:inherit!important}\n.conum:not([data-value]):empty{display:none}\ndt,th.tableblock,td.content,div.footnote{text-rendering:optimizeLegibility}\nh1,h2,p,td.content,span.alt,summary{letter-spacing:-.01em}\np strong,td.content strong,div.footnote strong{letter-spacing:-.005em}\np,blockquote,dt,td.content,span.alt,summary{font-size:1.0625rem}\np{margin-bottom:1.25rem}\n.sidebarblock p,.sidebarblock dt,.sidebarblock td.content,p.tableblock{font-size:1em}\n.exampleblock>.content{background:#fffef7;border-color:#e0e0dc;box-shadow:0 1px 4px #e0e0dc}\n.print-only{display:none!important}\n@page{margin:1.25cm .75cm}\n@media print{*{box-shadow:none!important;text-shadow:none!important}\nhtml{font-size:80%}\na{color:inherit!important;text-decoration:underline!important}\na.bare,a[href^=\"#\"],a[href^=\"mailto:\"]{text-decoration:none!important}\na[href^=\"http:\"]:not(.bare)::after,a[href^=\"https:\"]:not(.bare)::after{content:\"(\" attr(href) \")\";display:inline-block;font-size:.875em;padding-left:.25em}\nabbr[title]{border-bottom:1px dotted}\nabbr[title]::after{content:\" (\" attr(title) \")\"}\npre,blockquote,tr,img,object,svg{page-break-inside:avoid}\nthead{display:table-header-group}\nsvg{max-width:100%}\np,blockquote,dt,td.content{font-size:1em;orphans:3;widows:3}\nh2,h3,#toctitle,.sidebarblock>.content>.title{page-break-after:avoid}\n#header,#content,#footnotes,#footer{max-width:none}\n#toc,.sidebarblock,.exampleblock>.content{background:none!important}\n#toc{border-bottom:1px solid #dddddf!important;padding-bottom:0!important}\nbody.book #header{text-align:center}\nbody.book #header>h1:first-child{border:0!important;margin:2.5em 0 1em}\nbody.book #header .details{border:0!important;display:block;padding:0!important}\nbody.book #header .details span:first-child{margin-left:0!important}\nbody.book #header .details br{display:block}\nbody.book #header .details br+span::before{content:none!important}\nbody.book #toc{border:0!important;text-align:left!important;padding:0!important;margin:0!important}\nbody.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-break-before:always}\n.listingblock code[data-lang]::before{display:block}\n#footer{padding:0 .9375em}\n.hide-on-print{display:none!important}\n.print-only{display:block!important}\n.hide-for-print{display:none!important}\n.show-for-print{display:inherit!important}}\n@media amzn-kf8,print{#header>h1:first-child{margin-top:1.25rem}\n.sect1{padding:0!important}\n.sect1+.sect1{border:0}\n#footer{background:none}\n#footer-text{color:rgba(0,0,0,.6);font-size:.9em}}\n@media amzn-kf8{#header,#content,#footnotes,#footer{padding:0}}\n<\/style>\n<div id=\"header\">\n<\/div>\n<div id=\"content\">\n<div class=\"sect1 data-line-1\">\n<h2 id=\"_jp_pint_0_9_3\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\">JP PINT 0.9.3\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb<\/h2>\n<div class=\"sectionbody\">\n<div class=\"imageblock text-center data-line-3\">\n<div class=\"content\">\n<img decoding=\"async\" src=\"https:\/\/www.sambuichi.jp\/wp-content\/uploads\/2022\/08\/JP-PINT-0.9.3.png\" alt=\"JP PINT 0.9.3\">\n<\/div>\n<\/div>\n<div class=\"paragraph data-line-5\">\n<p><a href=\"https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/\" class=\"undefined\" data-href=\"https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/\">https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/<\/a><\/p>\n<\/div>\n<div class=\"paragraph data-line-7\">\n<p>\u753b\u9762\u5de6\u4e0b\u306e\u300cDownload resources\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068zip\u30d5\u30a1\u30a4\u30eb\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3053\u306ezip\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n<div class=\"listingblock data-line-9\">\n<div class=\"content\">\n<pre>\r\n.\r\n\u251c\u2500\u2500 common\r\n\u2502   \u2514\u2500\u2500 docs\r\n\u2502       \u251c\u2500\u2500 bis.pdf\r\n\u2502       \u251c\u2500\u2500 compliance.pdf\r\n\u2502       \u2514\u2500\u2500 release-notes.pdf\r\n\u2514\u2500\u2500 trn-invoice\r\n    \u251c\u2500\u2500 codelist\r\n    \u2502   \u251c\u2500\u2500 Aligned-TaxCategoryCodes.gc\r\n    \u2502   \u251c\u2500\u2500 Aligned-TaxCategoryCodes.yaml\r\n    \u2502   \u251c\u2500\u2500 Aligned-TaxExemptionCodes.gc\r\n    \u2502   \u251c\u2500\u2500 Aligned-TaxExemptionCodes.yaml\r\n    \u2502   \u251c\u2500\u2500 ICD.gc\r\n    \u2502   \u251c\u2500\u2500 ICD.yaml\r\n    \u2502   \u251c\u2500\u2500 ISO3166.gc\r\n    \u2502   \u251c\u2500\u2500 ISO3166.yaml\r\n    \u2502   \u251c\u2500\u2500 ISO4217.gc\r\n    \u2502   \u251c\u2500\u2500 ISO4217.yaml\r\n    \u2502   \u251c\u2500\u2500 MimeCode.gc\r\n    \u2502   \u251c\u2500\u2500 MimeCode.yaml\r\n    \u2502   \u251c\u2500\u2500 SEPA.gc\r\n    \u2502   \u251c\u2500\u2500 SEPA.yaml\r\n    \u2502   \u251c\u2500\u2500 UNCL1001-inv.gc\r\n    \u2502   \u251c\u2500\u2500 UNCL1001-inv.yaml\r\n    \u2502   \u251c\u2500\u2500 UNCL1153.gc\r\n    \u2502   \u251c\u2500\u2500 UNCL1153.yaml\r\n    \u2502   \u251c\u2500\u2500 UNCL2005.gc\r\n    \u2502   \u251c\u2500\u2500 UNCL2005.yaml\r\n    \u2502   \u251c\u2500\u2500 UNCL4461.gc\r\n    \u2502   \u251c\u2500\u2500 UNCL4461.yaml\r\n    \u2502   \u251c\u2500\u2500 UNCL5189.gc\r\n    \u2502   \u251c\u2500\u2500 UNCL5189.yaml\r\n    \u2502   \u251c\u2500\u2500 UNCL7143.gc\r\n    \u2502   \u251c\u2500\u2500 UNCL7143.yaml\r\n    \u2502   \u251c\u2500\u2500 UNCL7161.gc\r\n    \u2502   \u251c\u2500\u2500 UNCL7161.yaml\r\n    \u2502   \u251c\u2500\u2500 UNECERec20.gc\r\n    \u2502   \u251c\u2500\u2500 UNECERec20.yaml\r\n    \u2502   \u251c\u2500\u2500 eas.gc\r\n    \u2502   \u2514\u2500\u2500 eas.yaml\r\n    \u251c\u2500\u2500 schematron\r\n    \u2502   \u251c\u2500\u2500 PINT-UBL-validation-preprocessed.sch\r\n    \u2502   \u2514\u2500\u2500 PINT-jurisdiction-aligned-rules.sch\r\n    \u251c\u2500\u2500 semantic-model.yaml\r\n    \u2514\u2500\u2500 syntax-binding.yaml<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph data-line-56\">\n<p>\u89e3\u51cd\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001\uff12\u3064\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n<div class=\"paragraph data-line-58\">\n<p>common\/docs\/bis.pdf \u306f\u3001<br \/>\n<a href=\"https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/bis\/\" data-href=\"https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/bis\/\">Peppol International (PINT) model for Billing<\/a><br \/>\n\u3092PDF\u51fa\u529b\u3057\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<\/div>\n<div class=\"paragraph data-line-62\">\n<p>trn-invoice\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u306f\u3001\u30c7\u30b8\u30bf\u30eb\u30a4\u30f3\u30dc\u30a4\u30b9\u95a2\u9023\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\ncodelist\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u306f\u3001<strong>.gc\u30d5\u30a1\u30a4\u30eb\u3068<\/strong>.yaml\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u3059\u3002Aligned-TaxCategoryCodes.gc\u306f\u3001generic code\u306eXML\u6587\u66f8\u3002Aligned-TaxCategoryCodes.yaml\u306f\u3001genericcode\u306eXML\u6587\u66f8\u3067\u3059\u3002<\/p>\n<\/div>\n<div class=\"listingblock data-line-67\">\n<div class=\"title\">Aligned-TaxCategoryCodes.gc<\/div>\n<div class=\"content\">\n<pre class=\"highlight\"><code class=\"language-xml\" data-lang=\"xml\">\r\n<?xml version=\"1.0\"?>\r\n<gc:Codelist xmlns:gc=\"http:\/\/docs.oasis-open.org\/codelist\/ns\/genericode\/1.0\/\">\r\n  <gc:Identification>\r\n    <gc:ShortName Lang=\"en\">Aligned tax category codes<\/gc:ShortName>\r\n    <gc:Version>D.16B<\/gc:Version>\r\n  <\/gc:Identification>\r\n  <gc:ColumnSet>\r\n    <gc:Column Id=\"id\" Use=\"required\">\r\n      <gc:ShortName>Identifier<\/gc:ShortName>\r\n      <gc:Data Type=\"string\"\/>\r\n    <\/gc:Column>\r\n    <gc:Column Id=\"name\" Use=\"optional\">\r\n      <gc:ShortName>Name<\/gc:ShortName>\r\n      <gc:Data Type=\"string\"\/>\r\n    <\/gc:Column>\r\n    <gc:Column Id=\"description\" Use=\"optional\">\r\n      <gc:ShortName>Description<\/gc:ShortName>\r\n      <gc:Data Type=\"string\"\/>\r\n    <\/gc:Column>\r\n    <gc:Key Id=\"idKey\">\r\n      <gc:ColumnRef Ref=\"id\"\/>\r\n    <\/gc:Key>\r\n  <\/gc:ColumnSet>\r\n  <gc:SimpleCodeList>\r\n    <gc:Row>\r\n      <gc:Value ColumnRef=\"id\">\r\n        <gc:SimpleValue>AA<\/gc:SimpleValue>\r\n      <\/gc:Value>\r\n      <gc:Value ColumnRef=\"name\">\r\n        <gc:SimpleValue>Lower rate<\/gc:SimpleValue>\r\n      <\/gc:Value>\r\n      <gc:Value ColumnRef=\"description\">\r\n        <gc:SimpleValue>Tax rate is lower than standard rate.<\/gc:SimpleValue>\r\n      <\/gc:Value>\r\n    <\/gc:Row>\r\n    <gc:Row>\r\n      <gc:Value ColumnRef=\"id\">\r\n        <gc:SimpleValue>E<\/gc:SimpleValue>\r\n      <\/gc:Value>\r\n      <gc:Value ColumnRef=\"name\">\r\n        <gc:SimpleValue>Exempt from tax<\/gc:SimpleValue>\r\n      <\/gc:Value>\r\n      <gc:Value ColumnRef=\"description\">\r\n        <gc:SimpleValue>Code specifying that taxes are not applicable.<\/gc:SimpleValue>\r\n      <\/gc:Value>\r\n    <\/gc:Row>\r\n    <gc:Row>\r\n      <gc:Value ColumnRef=\"id\">\r\n        <gc:SimpleValue>G<\/gc:SimpleValue>\r\n      <\/gc:Value>\r\n      <gc:Value ColumnRef=\"name\">\r\n        <gc:SimpleValue>Free export item, tax not charged<\/gc:SimpleValue>\r\n      <\/gc:Value>\r\n      <gc:Value ColumnRef=\"description\">\r\n        <gc:SimpleValue>Code specifying that the item is free export and taxes are not charged.<\/gc:SimpleValue>\r\n      <\/gc:Value>\r\n    <\/gc:Row>\r\n    <gc:Row>\r\n      <gc:Value ColumnRef=\"id\">\r\n        <gc:SimpleValue>O<\/gc:SimpleValue>\r\n      <\/gc:Value>\r\n      <gc:Value ColumnRef=\"name\">\r\n        <gc:SimpleValue>Outside scope of tax<\/gc:SimpleValue>\r\n      <\/gc:Value>\r\n      <gc:Value ColumnRef=\"description\">\r\n        <gc:SimpleValue>Code specifying not subject to tax.<\/gc:SimpleValue>\r\n      <\/gc:Value>\r\n    <\/gc:Row>\r\n    <gc:Row>\r\n      <gc:Value ColumnRef=\"id\">\r\n        <gc:SimpleValue>S<\/gc:SimpleValue>\r\n      <\/gc:Value>\r\n      <gc:Value ColumnRef=\"name\">\r\n        <gc:SimpleValue>Standard rate<\/gc:SimpleValue>\r\n      <\/gc:Value>\r\n      <gc:Value ColumnRef=\"description\">\r\n        <gc:SimpleValue>Code specifying the standard rate.<\/gc:SimpleValue>\r\n      <\/gc:Value>\r\n    <\/gc:Row>\r\n  <\/gc:SimpleCodeList>\r\n<\/gc:Codelist><\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"listingblock data-line-152\">\n<div class=\"title\">Aligned-TaxCategoryCodes.yaml<\/div>\n<div class=\"content\">\n<pre>\r\nmetadata:\r\n  title:\r\n    en: Aligned tax category codes\r\n  description:\r\n    en: Codes specifying tax categories in jurisdictions.\r\n  identifier: AlignedTaxCat\r\n  agency: UN\/CEFACT\r\n  language: en\r\n  version:\r\n    identifier: D.16B\r\n    status: published\r\ncontent:\r\n- id: AA\r\n  name:\r\n    en: Lower rate\r\n  description:\r\n    en: Tax rate is lower than standard rate.\r\n- id: E\r\n  name:\r\n    en: Exempt from tax\r\n  description:\r\n    en: Code specifying that taxes are not applicable.\r\n- id: G\r\n  name:\r\n    en: Free export item, tax not charged\r\n  description:\r\n    en: Code specifying that the item is free export and taxes are not charged.\r\n- id: O\r\n  name:\r\n    en: Outside scope of tax\r\n  description:\r\n    en: Code specifying not subject to tax.\r\n- id: S\r\n  name:\r\n    en: Standard rate\r\n  description:\r\n    en: Code specifying the standard rate.<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph data-line-192\">\n<p>\u305d\u3057\u3066\u3001schematron\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u306e\u304c\u3001\u30b9\u30ad\u30fc\u30de\u30c8\u30ed\u30f3\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002PINT-UBL-validation-preprocessed.sch\u304c\u30b7\u30a7\u30a2\u30c9\u30eb\u30fc\u30eb\u3001PINT-jurisdiction-aligned-rules.sch\u304c\u30a2\u30e9\u30a4\u30f3\u30c9\u30eb\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<\/div>\n<div class=\"listingblock data-line-193\">\n<div class=\"content\">\n<pre>\r\n.\r\n\u2514\u2500\u2500 trn-invoice\r\n    \u251c\u2500\u2500 schematron\r\n    \u2502   \u251c\u2500\u2500 PINT-UBL-validation-preprocessed.sch\r\n    \u2502   \u2514\u2500\u2500 PINT-jurisdiction-aligned-rules.sch<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1 data-line-201\">\n<h2 id=\"_schematron\u30d5\u30a1\u30a4\u30eb\u3092json\u306b\u5909\u63db\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\">schematron\u30d5\u30a1\u30a4\u30eb\u3092json\u306b\u5909\u63db\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph data-line-202\">\n<p>\u6700\u8fd1\u3069\u3046\u3082XML\u6280\u8853\u8005\u304c\u5c11\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u99b4\u67d3\u307f\u306e\u3042\u308bjson\u306b\u5909\u63db\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8a66\u4f5c\u3057\u307e\u3057\u305f\u3002<\/p>\n<\/div>\n<div class=\"listingblock data-line-203\">\n<div class=\"content\">\n<pre>\r\n#!\/usr\/bin\/env python3\r\n#coding: utf-8\r\n#\r\n# generate JSON from XML Schematron\r\n#\r\n# designed by SAMBUICHI, Nobuyuki (Sambuichi Professional Engineers Office)\r\n# written by SAMBUICHI, Nobuyuki (Sambuichi Professional Engineers Office)\r\n#\r\n# MIT License\r\n#\r\n# Copyright (c) 2021 SAMBUICHI Nobuyuki (Sambuichi Professional Engineers Office)\r\n#\r\n# Permission is hereby granted, free of charge, to any person obtaining a copy\r\n# of this software and associated documentation files (the \"Software\"), to deal\r\n# in the Software without restriction, including without limitation the rights\r\n# to use, copy, modify, merge, publish, distribute, sublicense, and\/or sell\r\n# copies of the Software, and to permit persons to whom the Software is\r\n# furnished to do so, subject to the following conditions:\r\n#\r\n# The above copyright notice and this permission notice shall be included in all\r\n# copies or substantial portions of the Software.\r\n#\r\n# THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\n# SOFTWARE.\r\nimport xml.etree.ElementTree as ET\r\nfrom collections import defaultdict\r\nimport re\r\nimport json\r\nimport sys\r\nimport os\r\nimport argparse\r\n\r\nfrom dic2etree import *\r\n\r\ndictID = defaultdict(type(''))\r\ndictXpath = defaultdict(type(''))\r\n\r\ndef file_path(pathname):\r\n  if '\/' == pathname[0:1]:\r\n    return pathname\r\n  else:\r\n    dir = os.path.dirname(__file__)\r\n    new_path = os.path.join(dir, pathname)\r\n    return new_path\r\n\r\ndef dict_to_tsv(tsv, root):\r\n  def setup_record(context, id, flag, test, text):\r\n    test = test.strip()\r\n    test = ' '.join(test.split())\r\n    text = text.strip()\r\n    text = ' '.join(text.split())\r\n    terms_pattern = 'I?BT-[0-9]*'\r\n    terms = re.findall(terms_pattern, text, flags=re.IGNORECASE)\r\n    terms = ' '.join(terms)\r\n    groups_pattern = 'I?BG-[0-9]*'\r\n    groups = re.findall(groups_pattern, text, flags=re.IGNORECASE)\r\n    groups = ' '.join(groups)\r\n    record = [context, id, flag, test, text, groups, terms]\r\n    return record\r\n\r\n  def process_pattern(tsv, pattern):\r\n    pattern_id = pattern['@id']\r\n    rules = pattern['sch:rule']\r\n    if isinstance(rules, dict):\r\n      try:\r\n        context = rules['@context']\r\n        d = rules['sch:assert']\r\n        if isinstance(d, list):\r\n          for v in d:\r\n            record = setup_record(context, v['@id'], v['@flag'], v['@test'], v['#text'])\r\n            tsv.append(record)\r\n        elif isinstance(d, dict):\r\n          record = setup_record(context, d['@id'], d['@flag'], d['@test'], d['#text'])\r\n          tsv.append(record)\r\n        else:\r\n          if verbose:\r\n            print(json.dumps(d))\r\n          pass\r\n      except Exception as expt:\r\n        if verbose:\r\n          print(expt.args)\r\n        pass\r\n    elif isinstance(rules, list):\r\n      for rule in rules:\r\n        try:\r\n          context = rule['@context']\r\n          d = rule['sch:assert']\r\n          if isinstance(d, list):\r\n            for v in d:\r\n              record = setup_record(context, v['@id'], v['@flag'], v['@test'], v['#text'])\r\n              tsv.append(record)\r\n          elif isinstance(d, dict):\r\n            record = setup_record(context, d['@id'], d['@flag'], d['@test'], d['#text'])\r\n            tsv.append(record)\r\n          else:\r\n            if verbose:\r\n              print(json.dumps(d))\r\n            pass\r\n        except Exception as expt:\r\n          if verbose:\r\n            print(expt.args)\r\n          pass\r\n    else:\r\n      pass\r\n    return tsv\r\n\r\n  tsv.append(record)\r\n  if 'sch:pattern' in root:\r\n    pattern = root['sch:pattern']\r\n    tsv = process_pattern(tsv, pattern)\r\n  elif root['sch:schema'] and isinstance(root['sch:schema'], dict):\r\n    for tag, body in root['sch:schema'].items():\r\n      if 'sch:pattern' == tag:\r\n        for pattern in body:\r\n          tsv = process_pattern(tsv, pattern)\r\n\r\nif __name__ == '__main__':\r\n  # Create the parser\r\n  parser = argparse.ArgumentParser(prog='invoice2tsv',\r\n                                  usage='%(prog)s [options] pintFile -o out_file',\r\n                                  description='\u30b9\u30ad\u30fc\u30de\u30c8\u30ed\u30f3\u30d5\u30a1\u30a4\u30eb\u3092json\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u63db')\r\n  # Add the arguments\r\n  parser.add_argument('pintFile', metavar='pintfile', type=str, help='\u5165\u529b\u30b9\u30ad\u30fc\u30de\u30c8\u30ed\u30f3\u30d5\u30a1\u30a4\u30eb)\r\n  parser.add_argument('-o', '--out')\r\n  parser.add_argument('-v', '--verbose', action='store_true')\r\n  args = parser.parse_args()\r\n  pint_file = file_path(args.pintFile)\r\n  pre, ext = os.path.splitext(pint_file)\r\n  # tmp_file = pre + '.tmp'\r\n  if args.out:\r\n    out_file = args.out.lstrip()\r\n    out_file = file_path(out_file)\r\n  else:\r\n    out_file = pre + '.json'\r\n  verbose = args.verbose\r\n  # Check if infile exists\r\n  if not os.path.isfile(pint_file):\r\n    print('\u5165\u529b\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u305b\u3093')\r\n    sys.exit()\r\n  if verbose:\r\n    print('** START ** ', __file__)\r\n\r\n  pint_tree = ET.parse(pint_file)\r\n  pint_root = pint_tree.getroot()\r\n\r\n  pint_dict = etree_to_dict(pint_root)\r\n\r\n  dicJson = json.dumps(pint_dict)\r\n  dicJson = re.sub('{' + ns[''] + '}', '', dicJson)\r\n  dicJson = re.sub('{' + ns['cac'] + '}', 'cac:', dicJson)\r\n  dicJson = re.sub('{' + ns['cbc'] + '}', 'cbc:', dicJson)\r\n  dicJson = re.sub('{' + ns['sch'] + '}', 'sch:', dicJson)\r\n  pint_dict2 = json.loads(dicJson)\r\n  pint_tsv = []\r\n  dict_to_tsv(pint_tsv, pint_dict2)\r\n\r\n  pint_set = set([json.dumps(x) for x in pint_tsv])\r\n  pint_list = list(pint_set)\r\n  tsv = [json.loads(w) for w in pint_list]\r\n  header = ['Context', 'Identifier', 'Flag', 'Test', 'Message', 'BG', 'BT']\r\n  rules = []\r\n  for d in tsv:\r\n    rule = {}\r\n    i = 0\r\n    for h in header:\r\n      rule[h] = d[i]\r\n      i += 1\r\n    rules.append(rule)\r\n\r\n  with open(out_file,'w',newline='') as f:\r\n    json.dump(rules, f, indent=4)\r\n\r\n  if verbose:\r\n    print(f'** END ** {out_file}')<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph data-line-384\">\n<p>\u5b9f\u884c\u6642\u306b\u306f\u3001\u89e3\u6790\u5bfe\u8c61\u306e\u30b9\u30ad\u30fc\u30de\u30c8\u30ed\u30f3\u30d5\u30a1\u30a4\u30eb\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<code>\"args\":[\"trn-invoice\/schematron\/PINT-UBL-validation-preprocessed.sch\",\"-v\"]<\/code><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"sect1 data-line-387\">\n<h2 id=\"_xml\u3068python_dict\u306e\u30c7\u30fc\u30bf\u5909\u63db\u30e9\u30a4\u30d6\u30e9\u30ea\">XML\u3068Python dict\u306e\u30c7\u30fc\u30bf\u5909\u63db\u30e9\u30a4\u30d6\u30e9\u30ea<\/h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph data-line-388\">\n<p>XML\u306e\u89e3\u6790\u306b\u306f\u3001\uff40xml.etree.ElementTree\uff40\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002ElementTree\u3092\u76f4\u63a5\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u64cd\u4f5c\u3057\u306a\u304f\u3066\u3082\u6e08\u307e\u3059\u305f\u3081\u306b\u3001dic2etree\u30e9\u30a4\u30d6\u30e9\u30ea\u3092 <a href=\"https:\/\/stackoverflow.com\/questions\/7684333\/converting-xml-to-dictionary-using-elementtree\" data-href=\"https:\/\/stackoverflow.com\/questions\/7684333\/converting-xml-to-dictionary-using-elementtree\">stackoverflow converting xml to dictionary using elementtree<\/a> \u3092\u53c2\u8003\u306b\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n<\/div>\n<div class=\"listingblock data-line-389\">\n<div class=\"content\">\n<pre>\r\n\u251c\u2500\u2500 dic2etree\r\n\u2502   \u251c\u2500\u2500 __init__.py\r\n\u2502   \u2514\u2500\u2500 dic2etree.py<\/pre>\n<\/div>\n<\/div>\n<div class=\"listingblock data-line-395\">\n<div class=\"title\"><em>__init__.py<\/em><\/div>\n<div class=\"content\">\n<pre>\r\nfrom .dic2etree import dict_to_etree\r\nfrom .dic2etree import etree_to_dict\r\nns = {\r\n  '': 'urn:oasis:names:specification:ubl:schema:xsd:Invoice-2',\r\n  'xsd': 'http:\/\/www.w3.org\/2001\/XMLSchema',\r\n  'xsi': 'http:\/\/www.w3.org\/2001\/XMLSchema-instance',\r\n  'ext': 'urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2',\r\n  'cac': 'urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2',\r\n  'cbc': 'urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2',\r\n  'qdt': 'urn:oasis:names:specification:ubl:schema:xsd:QualifiedDataTypes-2',\r\n  'udt': 'urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-2',\r\n  'ccts': 'urn:un:unece:uncefact:documentation:2',\r\n  'cn': 'urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2',\r\n  'ubl': 'urn:oasis:names:specification:ubl:schema:xsd:Invoice-2',\r\n  'sch': 'http:\/\/purl.oclc.org\/dsdl\/schematron'\r\n}\r\n__all__ = ['dict_to_etree', 'etree_to_dict', 'ns']<\/pre>\n<\/div>\n<\/div>\n<div class=\"listingblock data-line-416\">\n<div class=\"title\">dic2etree.py<\/div>\n<div class=\"content\">\n<pre>\r\n# convert between ElementTree from\/to dict\r\n#\r\n# designed by SAMBUICHI, Nobuyuki (Sambuichi Professional Engineers Office)\r\n# written by SAMBUICHI, Nobuyuki (Sambuichi Professional Engineers Office)\r\n#\r\n# MIT License\r\n#\r\n# Copyright (c) 2021 SAMBUICHI Nobuyuki (Sambuichi Professional Engineers Office)\r\n#\r\n# Permission is hereby granted, free of charge, to any person obtaining a copy\r\n# of this software and associated documentation files (the \"Software\"), to deal\r\n# in the Software without restriction, including without limitation the rights\r\n# to use, copy, modify, merge, publish, distribute, sublicense, and\/or sell\r\n# copies of the Software, and to permit persons to whom the Software is\r\n# furnished to do so, subject to the following conditions:\r\n#\r\n# The above copyright notice and this permission notice shall be included in all\r\n# copies or substantial portions of the Software.\r\n#\r\n# THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\n# SOFTWARE.\r\nimport xml.etree.ElementTree as ET\r\nfrom collections import defaultdict\r\nimport pprint\r\n\r\nET.register_namespace('cac', 'urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2')\r\nET.register_namespace('cbc', 'urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2')\r\nET.register_namespace('qdt', 'urn:oasis:names:specification:ubl:schema:xsd:QualifiedDataTypes-2')\r\nET.register_namespace('udt', 'urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-2')\r\nET.register_namespace('ccts', 'urn:un:unece:uncefact:documentation:2')\r\nET.register_namespace('', 'urn:oasis:names:specification:ubl:schema:xsd:Invoice-2')\r\n\r\n# https:\/\/stackoverflow.com\/questions\/7684333\/converting-xml-to-dictionary-using-elementtree\r\ndef etree_to_dict(t):\r\n  d = {t.tag: {} if t.attrib else None}\r\n  children = list(t)\r\n  if children:\r\n    dd = defaultdict(list)\r\n    for dc in map(etree_to_dict, children):\r\n      for k, v in dc.items():\r\n        dd[k].append(v)\r\n    d = {t.tag: {k: v[0] if len(v) == 1 else v for k, v in dd.items()}}\r\n  if t.attrib:\r\n    d[t.tag].update(('@' + k, v) for k, v in t.attrib.items())\r\n  if t.text:\r\n    text = t.text.strip()\r\n    if children or t.attrib:\r\n      if text:\r\n        d[t.tag]['#text'] = text\r\n    else:\r\n      d[t.tag] = text\r\n  return d\r\n\r\ndef dict_to_etree(d, root):\r\n  def _to_etree(d, root):\r\n    if not d:\r\n      pass\r\n    elif isinstance(d, str):\r\n      root.text = d\r\n    elif isinstance(d, dict):\r\n      for k,v in d.items():\r\n        assert isinstance(k, str)\r\n        if k.startswith('#'):\r\n          try:\r\n            assert k == '#text' and isinstance(v, str)\r\n            root.text = v\r\n          except (Exception, ValueError, TypeError) as e:\r\n            print(e, v)\r\n        elif k.startswith('@'):\r\n          if isinstance(v, str): # 2021-06-05\r\n            root.set(k[1:], v)\r\n          else:\r\n            pass\r\n        elif isinstance(v, list):\r\n          for e in v:\r\n            _to_etree(e, ET.SubElement(root, k))\r\n        else:\r\n          _to_etree(v, ET.SubElement(root, k))\r\n    else:\r\n      assert d == 'invalid type', (type(d), d)\r\n  assert isinstance(d, dict) and len(d) == 1\r\n  tag, body = next(iter(d.items()))\r\n  _to_etree(body, root)\r\n  return root<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"footer\">\n<div id=\"footer-text\">\nLast updated 2022-08-13 12:20:48 +0900\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Views: 107 JP PINT 0.9.3\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb https:\/\/test-docs.peppol.eu\/pint\/pint-jp\/work-v1\/pint-jp\/ \u753b\u9762\u5de6\u4e0b\u306e\u300cDownload r [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":6952,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[21,45,49,50],"tags":[],"_links":{"self":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/6948"}],"collection":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6948"}],"version-history":[{"count":9,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/6948\/revisions"}],"predecessor-version":[{"id":7042,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/posts\/6948\/revisions\/7042"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=\/wp\/v2\/media\/6952"}],"wp:attachment":[{"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6948"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sambuichi.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}