flowchart LR
white_dye[白色の染料]
bone_meal[骨粉] --> white_dye
lily_of_the_valley[スズラン] --> white_dye
light_gray_dye[薄灰色の染料]
black_dye --> bw_light_gray_dye
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
| -- 常用漢字と規範字の対応表 | |
| with joyo_itaiji (常用漢字, 異体字) as (joyo_kangxi {漢字, 康熙字典体}; joyo {漢字, 漢字} distinct) | |
| with joyo_zvar (常用漢字, 異体字) as ( | |
| j: joyo_itaiji | |
| join u: unihan_variant on u.property = 'kZVariant' and u.UCS = j.異体字 | |
| {常用漢字, 異体字}; | |
| j: joyo_itaiji | |
| join m: mjsm_JIS包摂規準UCS統合規則 on j.異体字 = m.縮退UCS | |
| join mji on mji.MJ文字図形名 = m.MJ文字図形名 | |
| [実装したUCS is not null] |
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
| -- SQLite | |
| WITH | |
| joyo_itaiji (常用漢字, 異体字) AS ( | |
| SELECT DISTINCT joyo_kangxi.漢字 AS 常用漢字, joyo_kangxi.康熙字典体 AS 異体字 | |
| FROM joyo_kangxi | |
| UNION | |
| SELECT DISTINCT joyo.漢字, joyo.漢字 | |
| FROM joyo | |
| ), | |
| joyo_zvar (常用漢字, 異体字) AS ( |
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* range(a, b) { | |
| for (let i = a; i <= b; i++) { | |
| yield i; | |
| } | |
| } | |
| function* decode(s) { | |
| const b = Buffer.from(s, "latin1"); | |
| if (b.length === 1) { | |
| for (const i of range(0x80, 0x9f)) { |
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
| let i = BigInt(Deno.args[0]); | |
| while (true) { | |
| if (i <= 0n) throw new RangeError(); | |
| console.log(String(i)); | |
| if (i === 1n) break; | |
| if (i % 2n === 0n) { | |
| i /= 2n; | |
| } else { | |
| i = i * 3n + 1n; | |
| } |
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
| マリ|アイザワマキ|マリア|イザワマキ | |
| ユリ|アイザワマキ|ユリア|イザワマキ | |
| レイ|アイザワマキ|レイア|イザワマキ | |
| マリ|アイハラユウ|マリア|イハラユウ | |
| ユリ|アイハラユウ|ユリア|イハラユウ | |
| レイ|アイハラユウ|レイア|イハラユウ | |
| ハヅキ|アイミチコ|ハヅキアイ|ミチコ | |
| ハヅキ|アイヨウコ|ハヅキアイ|ヨウコ | |
| ハヅキ|アイリサ|ハヅキアイ|リサ | |
| ユウキ|アオイユウ|ユウキアオイ|ユウ |
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
| import { parse } from "https://deno.land/[email protected]/flags/mod.ts" | |
| import { TextDecoder } from 'https://cdn.skypack.dev/text-decoding' | |
| const sjisDecoder = new TextDecoder("shift-jis") | |
| const typeOptions = new Map([ | |
| [0, "西暦から和暦へ変換"], | |
| [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
| import sys | |
| import fontforge | |
| def processFont(filename): | |
| font = fontforge.open(filename) | |
| try: | |
| for glyph in font.glyphs(): | |
| if glyph.unicode != -1: | |
| print("%s,%s,%d,%d" % (filename, glyph.glyphname, glyph.unicode, glyph.width)) |
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
| // SPDX-License-Identifier: MIT-0 | |
| /* | |
| * Copyright 2021 Ryusei Yamaguchi | |
| * | |
| * 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. |
See Terms of Use for definitions of Unicode Inc.'s Data Files and Software.
NOTICE TO USER: Carefully read the following legal agreement.
BY DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING UNICODE INC.'S DATA FILES ("DATA FILES"), AND/OR SOFTWARE ("SOFTWARE"), YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
COPYRIGHT AND PERMISSION NOTICE