会社ごとに内容が異なったり、旅客鉄道株式会社運賃減額第1種、第2種で取り扱いが異なるので注意。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"os" | |
"fmt" | |
"regexp" | |
) | |
func main() { | |
txt := os.Args[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cream_puff": "https://i.imgur.com/hdCfrlU.png", | |
"dgm": "https://i.imgur.com/2Dzyb9n.png", | |
"hiroshima_hiroshima": "https://i.imgur.com/2MCRPDe.png", | |
"hiroshima_omichi": "https://i.imgur.com/rAvmDlb.png", | |
"hiroshima_pref": "https://i.imgur.com/4JmCjnU.png", | |
"hyogo_akashi":"https://i.imgur.com/2rm8tji.png", | |
"hyogo_amagasaki":"https://i.imgur.com/CW020rk.png", | |
"hyogo_ashiya":"https://i.imgur.com/19YlEqk.png", | |
"hyogo_himeji":"https://i.imgur.com/dg0a3M8.png", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
あかし :hyogo_akashi: 地名 | |
あしや :hyogo_ashiya: 地名 | |
あしや :hyogo_ashiya: 地名 | |
あだちく :tokyo_adachi: 地名 | |
あまがさき :hyogo_amagasaki: 地名 | |
いばらき :osaka_ibaraki: 地名 | |
ゔぃむ :vim: 固有名詞 | |
うぶんつ :ubuntu: 固有名詞 | |
おうむ :parrot: 名詞 | |
おおさか :osaka_osaka: 地名 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
importClass(Packages.com.sun.star.uno.UnoRuntime); | |
importClass(Packages.javax.swing.JOptionPane); | |
importClass(Packages.com.sun.star.sheet.XSpreadsheetDocument); | |
importClass(Packages.com.sun.star.frame.XModel); | |
importClass(Packages.com.sun.star.container.XIndexAccess); | |
importClass(Packages.com.sun.star.table.XCellRange); | |
importClass(Packages.com.sun.star.table.XCell); | |
// get Document Object | |
var doc = UnoRuntime.queryInterface( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MIT License | |
Copyright (c) 2023 mitsugu oyama | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function evaluateXPath(prefix, aNode, aExpr) { | |
// | |
// prefix : namespace | |
// aNode : DOM node | |
// aExpr : XPath text | |
// | |
// return value : DOM element or DOM node | |
// | |
// See URL for xpath expressions | |
// https://developer.mozilla.org/ja/docs/Web/XPath/Introduction_to_using_XPath_in_JavaScript#implementing_a_user_defined_namespace_resolver |