A⹀ukoeuopitte / Rinko | リンク集 | Ссылки | Links
edit- Aynu.org Mosem
- Aynuitak-Eonnekunnep
- Tane an Aynuitak-kotupte Itak-uoeroskip
- Aynuitak-nuye Ukosamaani Sait
- Aynuwiki
Sisam itak | 日本語
editUwekarpa | コミュニティ | Сообщество | Community
editカタカナ アニ アヌイェ ルスィ クㇽ アコウㇱテ ㇷ゚、Кирирча ани а⹀нуйе рушуй кур а⹀коуште п
editアイヌ語には複数の表記があり、文字変換器で切り替えられればいいのですが、現時点でアイヌ語版ウィキペディアには変換器がありません。ですが、変換器を自前で用意することができます。
ブックマークレットを使う方法と、ユーザースクリプトを使う方法があります。
ブックマークレット
editブックマークレットとは、ブックマークから実行するスクリプトです。ブックマークのURLにjavascript:
から始まる1行のスクリプトを書いて、そのブックマークを開けば実行されます。
このブックマークレットを実行すれば、ローマ字をカタカナに変換できます。
javascript:(function(){var e,t="data-convert",a="true",i=[["á","a"],["í","i"],["ú","u"],["é","e"],["ó","o"],["(?<=\\w)[-=](?=\\w)",""],[", ?","、"],["\\. ?","。"],["! ?","!"],["\\? ?","?"],[" ?“","「"],["” ?","」"],[" ?‘","『"],["’ ?","』"],["a[hx]","aㇵ"],["i[hx]","iㇶ"],["u[hx]","uㇷ"],["e[hx]","eㇸ"],["o[hx]","oㇹ"],["ar","aㇻ"],["ir","iㇼ"],["ur","uㇽ"],["er","eㇾ"],["or","oㇿ"],["[hxㇵ-ㇹ](?=[hx])","ッ"],["[hxㇵ-ㇹ]a","ハ"],["[hxㇵ-ㇹ]i","ヒ"],["[hḣxㇵ-ㇹ]u","フ"],["[hxㇵ-ㇹ]e","ヘ"],["[hxㇵ-ㇹ]o","ホ"],["[hx]","ㇵ"],["[rㇻ-ㇿ](?=r)","ッ"],["[rㇻ-ㇿ]a","ラ"],["[rㇻ-ㇿ]i","リ"],["[rㇻ-ㇿ]u","ル"],["[rㇻ-ㇿ]e","レ"],["[rㇻ-ㇿ]o","ロ"],["r","ㇽ"],["k(?=k)","ッ"],["ka","カ"],["ki","キ"],["ku","ク"],["ke","ケ"],["ko","コ"],["k","ㇰ"],["g(?=g)","ッ"],["ga","ガ"],["gi","ギ"],["gu","グ"],["ge","ゲ"],["go","ゴ"],["g","ㇰ゙"],["(ts|ċ)a","ツァ"],["ċi","ツィ"],["(ts|ċ)e","ツェ"],["(ts|ċ)o","ツォ"],["(ts|ċ)u","ツ"],["s(?=s)","ッ"],["sa","サ"],["ṡi","スィ"],["su","ス"],["se","セ"],["so","ソ"],["ş(?=ş)","ッ"],["şa","シャ"],["şu","シュ"],["şe","シェ"],["şo","ショ"],["[sş]i","シ"],["d(?=d)","ッ"],["dza","ヅァ"],["dżi","ヅィ"],["dze","ヅェ"],["dzo","ヅォ"],["dzu","ヅ"],["z(?=z)","ッ"],["za","ザ"],["żi","ズィ"],["zu","ズ"],["ze","ゼ"],["zo","ゾ"],["dja","ヂャ"],["dju","ヂュ"],["dje","ヂェ"],["djo","ヂョ"],["d[jz]i","ヂ"],["j(?=j)","ッ"],["ja","ジャ"],["ju","ジュ"],["je","ジェ"],["jo","ジョ"],["[jz]i","ジ"],["ca","チャ"],["cu","チュ"],["ce","チェ"],["co","チョ"],["(ts|c)i","チ"],["(ts|ċ)","ッ"],["ṡ","ㇲ"],["[sş]","ㇱ"],["dż","ッ゙"],["ż","ㇱ゙"],["d[jz]","ッ゙"],["[jz]","ㇱ゙"],["c","ッ"],["ta","タ"],["ti","ティ"],["tu","トゥ"],["te","テ"],["to","ト"],["t","ッ"],["da","ダ"],["di","ディ"],["du","ドゥ"],["de","デ"],["do","ド"],["d","ッ゙"],["na","ナ"],["ni","ニ"],["nu","ヌ"],["ne","ネ"],["no","ノ"],["n","ン"],["m(?=[bmp])","ン"],["b(?=b)","ッ"],["ba","バ"],["bi","ビ"],["bu","ブ"],["be","ベ"],["bo","ボ"],["b","ㇷ゙"],["p(?=p)","ッ"],["pa","パ"],["pi","ピ"],["pu","プ"],["pe","ペ"],["po","ポ"],["p","ㇷ゚"],["ma","マ"],["mi","ミ"],["mu","ム"],["me","メ"],["mo","モ"],["m","ㇺ"],["ya","ヤ"],["yu","ユ"],["ye","イェ"],["yo","ヨ"],["yi?","イ"],["wa","ワ"],["wi","ウィ"],["we","ウェ"],["wo","ウォ"],["wu?","ウ"],["v(?=v)","ッ"],["va","ヴァ"],["vi","ヴィ"],["ve","ヴェ"],["vo","ヴォ"],["vu","ヴ"],["v","ゥ゙"],["f(?=f)","ッ"],["fa","ファ"],["fi","フィ"],["fe","フェ"],["fo","フォ"],["fu","フ"],["f","ㇷ"],["a","ア"],["i","イ"],["u","ウ"],["e","エ"],["o","オ"]];if(null!=(e=document.querySelectorAll('style,.mw-parser-output [lang]:not([lang^="ain"]),.mw-parser-output [lang]:not([lang^="ain"]) *,.mw-editsection *,.external,pre')))for(var r=0;r<e.length;r++)e[r].getAttribute(t)!=a&&e[r].setAttribute(t,a);if(null!=(e=document.querySelectorAll(".mw-parser-output *,#mw-panel-toc-list :nth-child(n+2) *,#firstHeading *,#catlinks ul *,.mw-prefixindex-list *,.mw-allpages-chunk *,.mw-category *"))){for(var r=0;r<e.length;r++)if(e[r].getAttribute(t)!=a&&(e[r].setAttribute(t,a),e[r].hasChildNodes())){var o=e=>{for(var t=e.split(" | "),a=0;a<i.length;a++)t[0]=t[0].replace(RegExp(i[a][0],"ig"),i[a][1]);return t.join(" | ")};if(0==e[r].childElementCount)e[r].textContent=o(e[r].textContent);else{var n=e[r],l=document.createTextNode("");n.replaceWith(l);for(var u=document.createDocumentFragment(),d=n.firstElementChild;null!=d;)d.replaceWith(document.createTextNode("\x1a")),u.appendChild(d),d=n.firstElementChild;var s=o(n.textContent).split("\x1a");n.textContent="",n.appendChild(document.createTextNode(s[0]));for(var h=1;h<s.length;h++)n.appendChild(u.firstElementChild),n.appendChild(document.createTextNode(s[h]));l.replaceWith(n)}}}})();
このブックマークレットを実行すれば、ローマ字をキリル文字に変換できます。
javascript:(function(){var e,t="data-convert",r="true",l=[["Á","Á"],["á","á"],["Í","Í"],["í","í"],["Ú","Ú"],["ú","ú"],["É","É"],["é","é"],["Ó","Ó"],["ó","ó"],["A","А"],["a","а"],["I","И"],["i","и"],["U","У"],["u","у"],["E","Э"],["e","э"],["O","О"],["o","о"],["K","К"],["k","к"],["G","Г"],["g","г"],["S","С"],["s","с"],["Z","З"],["z","з"],["Ṡ","С̇"],["ṡ","с̇"],["Ż","З̇"],["ż","з̇"],["Ş","Ш"],["ş","ш"],["J","Ж"],["J","ж"],["C","Ч"],["c","ч"],["Ċ","Ц"],["ċ","ц"],["T","Т"],["t","т"],["D","Д"],["d","д"],["N","Н"],["n","н"],["Ḣ","Х̇"],["ḣ","х̇"],["[HX]","Х"],["[hx]","х"],["P","П"],["p","п"],["B","Б"],["b","б"],["M","М"],["m","м"],["Y","Й"],["y","й"],["R","Р"],["r","р"],["W","Ў"],["w","ў"],["V","В"],["v","в"],["F","Ф"],["f","ф"]];if(null!=(e=document.querySelectorAll('style,.mw-parser-output [lang]:not([lang^="ain"]),.mw-parser-output [lang]:not([lang^="ain"]) *,.mw-editsection *,.external,pre')))for(var n=0;n<e.length;n++)e[n].getAttribute(t)!=r&&e[n].setAttribute(t,r);if(null!=(e=document.querySelectorAll(".mw-parser-output *,#mw-panel-toc-list :nth-child(n+2) *,#firstHeading *,#catlinks ul *,.mw-prefixindex-list *,.mw-allpages-chunk *,.mw-category *"))){for(var n=0;n<e.length;n++)if(e[n].getAttribute(t)!=r&&(e[n].setAttribute(t,r),e[n].hasChildNodes())){var a=e=>{for(var t=e.split(" | "),r=0;r<l.length;r++)t[0]=t[0].replace(RegExp(l[r][0],"g"),l[r][1]);return t.join(" | ")};if(0==e[n].childElementCount)e[n].textContent=a(e[n].textContent);else{var i=e[n],o=document.createTextNode("");i.replaceWith(o);for(var p=document.createDocumentFragment(),d=i.firstElementChild;null!=d;)d.replaceWith(document.createTextNode("\x1a")),p.appendChild(d),d=i.firstElementChild;var u=a(i.textContent).split("\x1a");i.textContent="",i.appendChild(document.createTextNode(u[0]));for(var c=1;c<u.length;c++)i.appendChild(p.firstElementChild),i.appendChild(document.createTextNode(u[c]));o.replaceWith(i)}}}})();
ブックマークレットの設定
editこのページでは、tuをトゥでなくト゚にするなど、ブックマークレットを細かく設定できます。
ユーザースクリプト
edit「Tampermonkey」というユーザースクリプト(任意のJavaScript)を実行する拡張機能があります。ページを開いたら自動的にユーザースクリプトが実行されます。
このユーザースクリプトを登録すれば、ローマ字をカタカナに変換できます。設定でキリル文字にもできます。
詳しくはこちら
edit見ている間だけホームページを書き換える方法【ブックマークレット】【拡張機能】
記事の執筆
edit記事はローマ字で書いてほしいので、カタカナで書きたい人は先にこちらに書きたい内容をカタカナで書いて、ローマ字に変換してから記事に貼り付けてほしいです。
Aynuitak-Itokpa-Inuye Eutasare
ローマ字からカタカナへの変換は正確にできるので、書きたかった内容が破綻することはないはずです。