file_path stringlengths 3 280 | file_language stringclasses 66 values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108 values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
js/fix-toc.js | JavaScript | // fix some issues in TOC generated by Hugo (Blackfriday or Goldmark)
(function() {
const toc = document.getElementById('TableOfContents');
if (!toc) return;
// fix header ids and a hrefs if a header contains a link
toc.querySelectorAll('a[href^="#"]').forEach((a) => {
let id = a.getAttribute('href').replace(/^#/, '');
const h = document.getElementById(id);
// remove the URL from the id
id = id.replace(/-https?-.+$/, '');
if (h) h.id = id; a.href = '#' + id;
// if the TOC item has two <a>'s, remove the second if the first is empty
if (a.innerHTML !== '') return;
const a2 = a.nextElementSibling;
if (!a2 || a2.tagName !== 'A') return;
a.innerHTML = a2.innerHTML;
a2.remove();
});
// Blackfriday may generate a TOC that has an empty bullet when all headings
// are h2 and there is no h1: https://github.com/gohugoio/hugo/issues/1778#issuecomment-420036687
let li, ul = toc.querySelector('ul');
if (ul.childElementCount !== 1) return;
li = ul.firstElementChild;
if (li.tagName !== 'LI') return;
// remove <ul><li></li></ul> where <ul> only contains one <li>
ul.outerHTML = li.innerHTML;
})();
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/fold-details.js | JavaScript | // fold elements with <details>: https://yihui.org/en/2023/09/code-folding/
(d => {
const cfg = d.currentScript?.dataset, cls = 'folder'; let status = !!cfg?.open;
d.querySelectorAll(cfg?.selector || 'pre:not([class])>code[class],pre[class]').forEach(el => {
const s1 = d.createElement('details'), s2 = d.createElement('summary');
s1.className = cls; s1.open = status;
s2.innerText = (cfg?.label || 'Details') + (cfg?.tagName ? ` <${el.tagName}>` : '');
// special case: for <code>, put its parent <pre> inside <details>
if (el.tagName === 'CODE' && el.parentNode.tagName === 'PRE') el = el.parentNode;
s1.append(s2);
el.before(s1);
s1.append(el);
});
// add a button to the page to toggle all <details> elements
if (!cfg?.hasOwnProperty('button')) return;
const p = d.querySelector(cfg.parent);
let btn = d.querySelector(cfg.button);
if (!btn && !p) return; // must provide either a button or a container
if (!btn) {
btn = d.createElement('button');
btn.id = 'toggle-all';
p.insertAdjacentElement(cfg.position || 'afterbegin', btn);
}
const l1 = cfg.buttonLabel || 'Show Details', l2 = cfg.buttonLabel2 || 'Hide Details';
function setText() {
btn.innerText = status ? l2 : l1;
}
setText();
btn.onclick = (e) => {
status = !status;
d.querySelectorAll(`details.${cls}`).forEach(el => {
el.open = status;
});
setText();
};
})(document);
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/fold-output.js | JavaScript | // toggle output of source code by clicking on source code
(() => {
const blocks = [];
document.querySelectorAll('pre>code[class^=language-],pre[class^=language-]').forEach(el => {
// if <code> is selected, use its parent
if (el.tagName === 'CODE' && el.parentNode.tagName === 'PRE') el = el.parentNode;
blocks.indexOf(el) < 0 && blocks.push(el);
});
let s1, s2; // local and global show/hide status
blocks.forEach(el => {
el.onclick = e => {
let sb = el.nextElementSibling;
while (sb && blocks.indexOf(sb) < 0) {
s1 = s2; // use global status if exists
if (s1 === undefined) s1 = sb.style.display === '';
sb.style.display = s1 ? 'none' : '';
sb = sb.nextElementSibling;
}
// Alt/Ctrl + Click to toggle all output
(e.altKey || e.ctrlKey) && (s2 = s1, blocks.forEach(b => b !== el && b.click()), s2 = undefined);
s1 = undefined;
};
});
})();
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/fullwidth.js | JavaScript | // look for overflowed <pre> and <table>, and assign .fullwidth class to them
document.querySelectorAll('pre,table,#TableOfContents').forEach(node => {
function fullwidth(el) {
el.classList.add('fullwidth');
}
// skip if already in .fullwidth container
if (node.closest('.fullwidth')) return;
switch (node.tagName) {
case 'PRE':
const el = node.firstElementChild;
el?.tagName === 'CODE' && el.scrollWidth > el.offsetWidth && fullwidth(el.parentNode);
break;
case 'TABLE':
const p = node.parentElement;
p && p.offsetWidth < node.offsetWidth && fullwidth(node);
break;
default:
// assume it's #TableOfContents for now
node.querySelectorAll('a').forEach(a => {
// if a TOC line is wrapped, make TOC full-width
!node.classList.contains('fullwidth') && a.getClientRects().length > 1 && fullwidth(node);
});
}
});
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/fuse-search.js | JavaScript | // perform searching via Fuse.js with data from /index.json
(d => {
const input = d.querySelector('#search-input'),
output = d.querySelector('.search-results');
if (!input || !output) return;
const ds = input.dataset;
// load search index for Fuse.js
let fuse;
input.addEventListener('focus', e => {
if (fuse) return;
input.placeholder = ds.infoInit ||
'Loading search index... Please hold on.';
const request = new XMLHttpRequest();
request.responseType = 'json';
request.addEventListener('load', e => {
const res = request.response;
if (!res || res.length === 0) {
input.placeholder = ds.infoFail ||
'Failed to load search index!';
return;
}
input.placeholder = ds.infoOk || 'Type to search:';
input.focus();
fuse = new Fuse(res, {
keys: [{name: 'title', weight: 5}, 'content'],
useExtendedSearch: true,
includeMatches: true,
ignoreLocation: true,
threshold: 0.1
});
}, false);
request.open('GET', ds.indexUrl || '/index.json');
request.send(null);
});
// highlight the keyword of the maximum length in content
function highlight(res, key, len) {
let indices;
for (let m of res.matches) {
if (m.key === key) indices = m.indices;
}
const text = res.item[key];
if (!indices) return text.substr(0, len);
let p, pair, k = 0, n = Math.ceil(len / 2);
while (pair = indices.shift()) {
if (pair[1] - pair[0] >= k) {
p = pair;
k = p[1] - p[0];
}
}
return (p[0] - n > 0 ? '[...] ' : '') + text.substring(p[0] - n, p[0]) +
'<b>' + text.substring(p[0], p[1] + 1) + '</b>' +
text.substring(p[1] + 1, p[1] + 1 + n) +
(p[1] + 1 + n < text.length ? ' [...] ' : '');
}
// debounce the search for better performance and UX
function debounce(fn, delay) {
let timeout;
return function(...args) {
clearTimeout(timeout);
timeout = setTimeout(() => fn(...args), delay);
};
}
const len = ds.textLength || 300, // number of chars for each search result
lim = ds.limit || 50, // max number of search results
delay = ds.delay || 500, // search delay after input
tpl = output.firstElementChild.cloneNode(true); // search result template
output.innerHTML = '';
function search() {
if (!fuse) return;
output.innerHTML = '';
// display search results in <section> and highlight keywords
for (let res of fuse.search(input.value, {'limit': lim})) {
const sec = tpl.cloneNode(true);
const a = sec.querySelector('a');
a.href = res.item.uri;
a.innerHTML = highlight(res, 'title', len);
sec.querySelector('.search-preview').innerHTML = highlight(res, 'content', len);
output.appendChild(sec);
}
}
const isMobi = /Mobi/i.test(navigator.userAgent);
input.addEventListener(isMobi ? 'change' : 'input', isMobi ? search : debounce(search, delay));
})(document);
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/g2-column.js | JavaScript | // support columnar data format in G2
G2.register('data.column', (options) => {
const { value } = options;
return async () => {
let d = value;
// handle URL strings if necessary
if (typeof value === 'string') {
const resp = await fetch(value);
d = await resp.json();
}
const keys = Object.keys(d);
if (keys.length === 0) return [];
// convert to row-based data
return d[keys[0]].map((_, i) =>
keys.reduce((row, key) => (row[key] = d[key][i], row), {})
);
};
});
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/hash-notes.js | JavaScript | // convert <!--# comments --> to <span class="hash-notes">comments</span>
(d => {
function toSpan(el) {
const t = el.textContent, r = /^#[\s\n]+([\s\S]+)[\s\n]+$/;
if (!r.test(t)) return;
d.body.classList.add('has-notes', 'hide-notes');
// use <p> if the comment's parent is not <p>; otherwise use inline <span>
const s = d.createElement(el.parentNode.nodeName === 'P' ? 'span' : 'p');
s.className = 'hash-note';
s.innerText = t.replace(r, '$1');
s.innerHTML = s.innerHTML
.replace(/\[([^\]]+)\]\(([^)]+)\)/g, '<a href="$2">$1</a>')
.replace(/(^|[^"])(https?:\/\/)([-a-zA-Z0-9%._=/\+]+)(#)?([-a-zA-Z0-9%._=\+]+)?/g, '$1<a href="$2$3$4$5">$3$4</a>');
el.before(s);
el.remove();
};
function findComments(el) {
el.childNodes.forEach(node => {
node.nodeType === Node.COMMENT_NODE ? toSpan(node) : findComments(node);
});
};
findComments(d.body);
})(document);
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/heading-anchor.js | JavaScript | document.querySelectorAll('h1,h2,h3,h4,h5,h6').forEach(h => {
if (h.id && !h.querySelector('.anchor'))
h.insertAdjacentHTML('beforeend', ` <span class="anchor"><a href="#${h.id}"></a></span>`);
});
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/key-buttons.js | JavaScript | (d => {
const a1 = ['Enter', 'Up', 'Down', 'Left', 'Right'];
const a2 = ['↵', '↑', '↓', '←', '→'];
function drawArrows(x) {
a1.map((v, i) => x = x.replace(new RegExp(`>${v}<`, 'g'), ` title="${v + (i ? ' Arrow' : '')}">${a2[i]}<`));
return x;
}
// 1. individual keys; 2. modifiers; 3. normal keys
const k1 = 'Esc|Tab|PageUp|PageDown|Space|Delete|Home|End|PrtScr?|PrintScreen|' +
Array(12).fill().map((v, i) => 'F' + (i + 1)).concat(a1).join('|'),
k2 = 'Ctrl|Control|Shift|Alt|Cmd|Command|fn',
k3 = '[a-zA-Z0-9]|Click',
r1 = new RegExp(`^(${k1}|${k2})$`),
r2 = new RegExp(`^(${k2}) [/+] `),
r3 = new RegExp(`^(${k1}|${k2}|${k3})( [/+] )(.*)`);
d.querySelectorAll(':not(pre) > code').forEach(el => {
if (el.childElementCount > 0) return;
let t = el.innerText;
if (r1.test(t)) {
el.outerHTML = drawArrows(`<kbd>${t}</kbd>`);
return;
}
if (!r2.test(t)) return;
let t2 = ''; t += ' + ';
while (r3.test(t)) {
t2 += t.replace(r3, '<kbd>$1</kbd>$2');
t = t.replace(r3, '$3');
}
if (t === '') el.outerHTML = drawArrows(t2.replace(/ \+ $/, ''));
});
})(document);
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/load-highlight.js | JavaScript | hljs.configure({languages: []});
hljs.highlightAll ? hljs.highlightAll() : hljs.initHighlightingOnLoad();
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/load-pangu.js | JavaScript | pangu.spacingPage();
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/load-typekit.js | JavaScript | (d => {
// https://www.kirupa.com/html5/detect_whether_font_is_installed.htm
const canvas = d.createElement("canvas"), context = canvas.getContext("2d"),
text = "abcdefghijklmnopqrstuvwxyz0123456789";
context.font = "72px monospace";
const size = context.measureText(text).width;
for (let font of [' SC', ' CN', ' TC', ' TW', '']) {
context.font = `72px 'Source Han Serif${font}', monospace`;
// no need to load TypeKit if Source Hans Serif has been installed
if (context.measureText(text).width != size) return;
}
let config = {kitId: 'kwz5xar', scriptTimeout: 3000, async: true},
h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='https://use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)
})(document);
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/math-code.js | JavaScript | // <code>$math$</code> to \(math\), and <code>$$math$$</code> to $$math$$:
// https://yihui.org/en/2018/07/latex-math-markdown/
document.querySelectorAll(':not(pre) > code:not(.nolatex)').forEach(code => {
// skip <pre> tags and <code> that has children or the nolatex class
if (code.childElementCount > 0) return;
let text = code.textContent;
if (/^\$[^$]/.test(text) && /[^$]\$$/.test(text)) {
text = text.replace(/^\$/, '\\(').replace(/\$$/, '\\)');
code.textContent = text;
}
if (/^\\\((.|\s)+\\\)$/.test(text) || /^\\\[(.|\s)+\\\]$/.test(text) ||
/^\$(.|\s)+\$$/.test(text) ||
/^\\begin\{([^}]+)\}(.|\s)+\\end\{[^}]+\}$/.test(text)) {
code.outerHTML = code.innerHTML; // remove <code></code>
}
});
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/mathjax-config.js | JavaScript | // enable MathJax equation numbering: https://docs.mathjax.org/en/latest/input/tex/eqnumbers.html
(() => {
m = window.MathJax || {}; // make sure not to override existing config
m.tex = m.tex || {};
m.tex.tags = m.tex.tags || 'ams';
window.MathJax = m;
})();
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/no-highlight.js | JavaScript | document.querySelectorAll('pre > code:only-child').forEach(code => {
const cls = code.className;
if (cls === '' || cls === 'hljs') {
code.className = 'nohighlight';
} else if (/^language-/.test(cls) && !/hljs/.test(cls)) {
code.className += ' hljs';
}
})
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/number-captions.js | JavaScript | // number figure and table captions
// config options via data-foo attributes of this <script>:
// * data-colon: the colon character (':' by default);
// * data-fig-label: label for figure captions ('Figure ' by default)
// * data-tab-label: label for table captions ('Table ' by default)
(d => {
const cfg = d.currentScript?.dataset, colon = cfg?.colon || ':';
function NUM(target, label) {
d.querySelectorAll(target).forEach((el, i) => {
// do not number it again if already numbered
el.querySelector('.cap-num') ||
el.insertAdjacentHTML('afterbegin', `<span class="cap-num">${label}${i + 1}${colon}</span> `);
});
}
NUM('figure > figcaption, .figure > p.caption, .float > .figcaption', cfg?.figLabel || 'Figure ');
NUM('table > caption', cfg?.tabLabel || 'Table ');
})(document);
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/number-sections.js | JavaScript | // add section numbers to headings
(d => {
// find the body of the article
let b;
['.article', '.body', 'article', 'body'].forEach(s => {
if (!b) b = d.querySelector(s);
});
const hs = b.querySelectorAll('h1, h2, h3, h4, h5, h6');
if (hs.length === 0) return;
// normalize Pandoc's .header-section-number class to .section-number
b.querySelectorAll('span.header-section-number').forEach(el => {
el.classList.add('section-number');
});
// already numbered?
if (b.querySelector('span.section-number')) {
// avoid Pandoc's numbering from 0 (e.g., 0.1, 0.1.1, 0.2, ...) when top-level heading is not h1
b.querySelectorAll('span.section-number').forEach(s => {
s.innerText = s.innerText.replace(/^(0\.)+/, '');
});
return;
}
let t0 = 0, t1, dict = [0, 0, 0, 0, 0, 0];
// generate section numbers x.x.x
function number_section(i) {
dict[i]++;
const n = dict.join('.').replace(/^(0\.)+|(\.0)+$/g, '').replace(/^([0-9]+)$/, '$1.');
return `<span class="section-number">${n}</span> `;
};
hs.forEach(h => {
// header level: <hN> -> N
t1 = parseInt(h.tagName.replace(/^h/i, ''));
// when moving to a higher-level heading, reset lower-level counters to 0
if (t1 < t0) {
for (let j = t1; j < dict.length; j++) {
dict[j] = 0;
}
}
h.insertAdjacentHTML('afterbegin', number_section(t1 - 1));
t0 = t1;
});
})(document);
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/ol-id.js | JavaScript | // add ID to <ol> items so that they can be referenced via URL hashes like #li-N
((d) => {
// add IDs to top-level <ol>s
const ols = d.querySelectorAll(':not(li) > ol');
ols.forEach((ol, i) => {
ol.querySelectorAll(':scope > li').forEach((li, j) => {
if (!li.id) li.id = 'li-' + (ols.length > 1 ? i + 1 + '-' : '') + (j + 1);
});
});
// add IDs to all <ol>s
d.querySelectorAll('ol').forEach((ol, i) => {
let l = ol.parentNode, id, p; // p: ID prefix
if (l?.tagName === 'LI') id = l.id;
p = (id ? id : 'li-' + (i + 1)) + '-';
ol.querySelectorAll(':scope > li').forEach((li, j) => {
if (!li.id) li.id = p + (j + 1);
// Alt + Click => adding hash to URL
li.addEventListener('click', e => {
e.altKey && (location.hash = li.id, e.stopPropagation());
});
});
});
})(document);
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/pages.js | JavaScript | // move elements into page boxes such that each box contains as many elements as
// possible and will not exceed the given size (e.g. A4 paper)
(d => {
function $(s, el = d) { return el?.querySelector(s); }
function $$(s, el = d) { return el ? el.querySelectorAll(s) : []; }
function nChild(el) { return el.childElementCount; }
const tpl = d.createElement('div'), book = $$('h1').length > 1, boxes = [],
fr_tag = ['TABLE', 'UL', 'OL', 'BLOCKQUOTE'],
fr_cls = 'pagesjs-fragmented', fr_1 = 'fragment-first', fr_2 = 'fragment-last',
tb = ['top', 'bottom'].map(i =>
parseFloat(getComputedStyle(d.documentElement).getPropertyValue(`--paper-margin-${i}`)) || 0
); // top/bottom page margin
tpl.className = 'pagesjs-page';
tpl.innerHTML = `<div class="pagesjs-header"></div>
<div class="pagesjs-body"></div>
<div class="pagesjs-footer"></div>`;
let box, box_body, box_cls = [], H, H_min, h_code, l_code = [];
function newPage(el) {
el && !$('.pagesjs-body', el) && el.insertAdjacentHTML('afterbegin', tpl.innerHTML);
box = el || tpl.cloneNode(true); box_body = box.children[1];
box.classList.add(...box_cls);
boxes.includes(box) || boxes.push(box); // store new pages in boxes
return box;
}
// start the next page and finish current page
function nextPage(el, callback) {
const cur = box; cur.after(newPage(el)); callback && callback(); finish(cur);
}
// compute page numbers and temporarily remove the box
function finish(box) {
const h = box.scrollHeight;
if (h > H && !box.dataset.pagesOffset) {
const n = calcPages(box, h);
if (n > 1) box.dataset.pagesOffset = n;
}
box.remove();
}
function removeBlank(el) {
if (!el || el.tagName === 'BODY') return false;
// for <p>, don't treat it as empty unless its HTML is empty
const v = !(el.tagName === 'P' ? el.innerHTML : el.innerText).trim();
v && el.remove();
return v;
}
function fill(el) {
// if the element is already a page, just use it as the box
if (el.classList.contains('pagesjs-page')) {
nextPage(el, () => nChild(el) > 3 && (
// if current element is not empty, fill its content into the box
box_body.append(...[...el.children].slice(3)),
// TODO: should we fragment this page if it's too long?
nextPage() // create a new empty page
));
} else {
if (el.innerText.trim() && H - box.scrollHeight < H_min) nextPage();
box_body.append(el);
if (box.scrollHeight > H) {
// temporarily remove el from DOM if it can be fragmented, otherwise
// simply move it to the next page
breakable(el) ? (el.tagName !== 'P' && el.remove(), fragment(el)) :
nextPage(0, () => box_body.append(el));
} else {
// TODO: remove possibly duplicated citations: .citation + div > [id^="ref-"]
}
}
}
let fill_num; // record the number of lines filled last time
function fillCode(el, i) {
el.innerHTML = l_code.slice(0, i).join('\n');
fill_num = i;
}
function breakable(el) {
l_code = [];
const t = el.tagName, c = el.firstElementChild;
if (t === 'P' || fr_tag.includes(t)) return true;
if (t === 'DIV') {
const cs = el.children;
return (cs.length === 1 && fr_tag.includes(c?.tagName)) ||
[...cs].filter(c => c.tagName === 'TABLE').length;
}
if (t !== 'PRE') return false;
if (c?.tagName !== 'CODE') return false;
// store all lines in l_code (TODO: ensure complete tags on each line)
l_code = c.innerHTML.replace(/\n$/, '').split('\n');
const n_code = l_code.length;
if (n_code < 2) return false;
h_code = c.offsetHeight / n_code; // approx line height
c.innerHTML = ''; // temporarily empty <code>; will use l_code
return true;
}
// break elements that are relatively easy to break (such as <ul>)
function fragment(el, container, parent) {
let cls = el.classList;
const tag = el.tagName, frag = cls.contains(fr_cls);
parent ? cls.add(fr_cls) : (frag ? cls.remove(fr_1) : cls.add(fr_cls, fr_1));
let el2 = el.cloneNode(); // shallow clone (wrapper only)
(container || box_body).append(el2);
if (tag === 'P') {
// fragmentation occurs in el instead of the clone el2, so swap them
splitP(el, el2) || ([el, el2] = [el2, el], cls = el.classList);
}
const prev = el2.previousElementSibling || container?.previousElementSibling;
function fragChildren(action) {
for (let item of [...el.children]) {
el2.append(item);
if (box.scrollHeight > H) {
action(item); break;
}
}
}
if (tag === 'DIV') {
// fragment <div>'s children (e.g., #TOC > ul)
fragChildren(item => {
// fragment item if it can be further fragmented, otherwise put it back
el.prepend(item);
fr_tag.includes(item.tagName) ? fragment(item, el2, el) : nChild(el2) && nextPage();
});
} else if (tag === 'PRE') {
fragment(el.firstElementChild, el2, el);
} else if (tag === 'CODE') {
// split lines in <code> and try to move as many lines into el2 as possible
const i = splitCode(el2);
// i == 0 means not enough space to split code on current page
i === fill_num || fillCode(el2, i); l_code.splice(0, i);
if (i > 0) {
l_code.join('').trim() === '' ? (l_code = []) : nextPage();
}
} else if (tag === 'TABLE') {
// when el has no rows left and el2 is not empty, clear el
const has_rows = splitTable(el, el2, prev);
el2.innerHTML && (has_rows ? nextPage() : (el.innerHTML = ''));
} else {
// keep moving el's first item to el2 until page height > H
fr_tag.slice(1).includes(tag) && fragChildren(item => {
// move item back to el if the clone el2 is not the only element on page or has more than one child
(prev || nChild(el2) > 1) && el.prepend(item);
// update the start number of <ol> on next page
tag === 'OL' && (el.start += nChild(el2));
// don't open new page if el2 is empty (will open one below when testing el2_empty)
nChild(el2) && nextPage();
});
}
const el_empty = !l_code.length && removeBlank(el), el2_empty = removeBlank(el2);
// add/remove the fragment-* class and exit if el has become empty
if (el_empty) {
const cls2 = el2.classList;
if (parent) {
container.classList.contains(fr_1) && cls2.remove(fr_cls);
} else {
cls2.contains(fr_1) ? cls2.remove(fr_cls, fr_1) : cls2.add(fr_2);
}
return;
}
// if el2 is empty, it means nothing in el fits the box; we have to start a new box
if (el2_empty) {
cls.remove(fr_cls, fr_1); parent || nextPage();
}
// keep fragmenting the remaining top-level el when el2 is not empty or not first element
if ((!el2_empty || prev) && !parent) fragment(el);
}
// split table rows
function splitTable(el, el2, prev) {
const tb = el.tBodies[0], tb2 = tb.cloneNode(), rows = [...tb.rows], th = el.tHead;
el2.append(tb2);
// copy table header and footer
[th, el.tFoot].forEach(t => t && el2.append(t.cloneNode(true)));
for (let i = 0; i < rows.length; i++) {
const row = rows[i];
tb2.append(row);
if (box.offsetHeight > H) {
if (i > 0 || prev) tb.prepend(row);
// clear the clone if current page can't fit even one row
if (i === 0 && prev) el2.innerHTML = '';
break;
}
}
return tb.rows.length;
}
// figure out how many lines can fit the box via bisection
function splitCode(el) {
let i = i1 = 1, n = l_code.length, i2 = n + 2;
const sols = []; // solutions tried
while (i2 > i1 + 1) {
fillCode(el, i);
const delta = H - box.offsetHeight;
if (delta === 0) return i;
if (delta < 0) {
if (i <= 1) return 0;
i2 = i;
} else {
if (i >= n) return i;
i1 = i;
}
sols.push(i);
// estimate the number of (more or less) lines needed
const i3 = i + Math.round(delta / h_code);
// if a solution has been tried, shorten step and (in/de)crement by 1
i = sols.includes(i3) ? i + (delta > 0 ? 1 : -1) : i3;
(delta > 0 && i >= n) && (i2 = n + 2, i = n); // solution may be n
}
return i1;
}
// split <p> by testing if a range fits the current box
function splitP(el, el2) {
if (!el.parentNode) {
box_body.append(el); // move el into DOM to measure chars if removed
// see if we don't need to split it now
if (box.scrollHeight <= H) return;
}
const r = d.createRange(), ends = [{node: el, i: 0}];
// find the break position of each line (exclude block elements like footnotes)
const walker = d.createTreeWalker(el, NodeFilter.SHOW_TEXT | NodeFilter.SHOW_ELEMENT);
let node, prev;
function collectEnds(el, i) {
const rect = el.getBoundingClientRect();
// if the previous el is at top-right of current el, assume line
// ends before current el (TODO: how about RTL languages?)
prev && prev.bottom <= rect.top && prev.right > rect.left && ends.push({node, i});
prev = rect;
}
while (node = walker.nextNode()) {
const t = node.tagName;
if (t) {
if (['DIV', 'MJX-CONTAINER'].includes(t) || (t === 'SPAN' && $('.katex', node))) {
node = walker.nextSibling(); // skip DIVs (footnotes) and math
if (!node) break;
}
if (node.firstChild) continue; // for element nodes, traverse to bottom
}
if (node.tagName) {
collectEnds(node, -1);
} else {
const txt = node.textContent;
if (txt.trim()) for (let i = 0; i < txt.length; i++) {
r.setStart(node, i); r.setEnd(node, i + 1); collectEnds(r, i);
}
}
}
if (ends.length < 2) {
el.remove(); return 1; // single-line paragraph
}
el2.remove();
// remove lines from the end of paragraph
for (let i = ends.length - 1; i >= 0; i--) {
const loc = ends[i];
loc.i < 0 ? r.setStartBefore(loc.node) : r.setStart(loc.node, loc.i);
r.setEnd(el, el.childNodes.length);
el2.prepend(r.extractContents());
const last = el.lastChild; // strip trailing empty tags left by range extraction
last?.innerHTML === '' && last.remove();
if (i > 0 && box.scrollHeight <= H) {
nextPage(); break;
}
}
}
// use data-short-title of a header if exists, and fall back to inner text
function shortTitle(h) {
return h && (h.dataset.shortTitle || h.innerText);
}
const main = shortTitle($('h1.title, .frontmatter h1, .title, h1')), // main title
ps = (book ? 'h1' : 'h2') + ':not(.frontmatter *)'; // page title selector
// calculate how many new pages we need for overflowed content (this is just
// an estimate; if not accurate, use <div class="pagesjs-page" data-pages-offset="N">
// to provide a number manually)
function calcPages(box, h) {
let n = +box.dataset.pagesOffset;
if (n) return n;
n = Math.ceil(h/H);
if (n <= 1) return n;
// consider top/bottom page margin and table headers (which may be repeated on each page)
const m = tb.concat([...$$('thead', box)].map(el => +el.offsetHeight)).reduce((m1, m2) => m1 + m2);
if (!m) return n;
function nPages() { return Math.ceil((h + (n - 1) * m)/H); }
let n2 = nPages();
while (n2 > n) {
n = n2; n2 = nPages();
}
return n;
}
function paginate() {
// we need to wait for all resources to be fully loaded before paginating
if (d.readyState !== 'complete') return addEventListener('load', paginate);
const cls = d.body.classList;
if (cls.contains('pagesjs')) return; // already paginated
dispatchEvent(new Event('pagesjs:before'));
cls.add('pagesjs');
d.body.insertAdjacentElement('afterbegin', newPage());
H = box.clientHeight || window.innerHeight; // use window height if box height not specified
// remove possible classes on TOC/footnotes that we don't need for printing
$$(':is(#TOC, .footnotes, .chapter-before, .chapter-after):is(.side-left, .side-right).side').forEach(el => {
el.classList.remove('side', 'side-left', 'side-right');
});
cls.add('pagesjs-filling');
// test how much space a single-line paragraph needs
const p = d.createElement('p'), H0 = box.scrollHeight;
p.innerText = 'A'; box_body.append(p);
H_min = box.scrollHeight - H0; p.remove();
// add dot leaders to TOC
$$('#TOC a[href^="#"]').forEach(a => {
const s = d.createElement('span'); // move TOC item content into a span
s.className = 'toc-text'; a.append(s);
let c; while (c = s.previousSibling) {
// exclude section number spans
if (c.classList?.contains('section-number')) break; s.prepend(c);
}
a.dataset.pageNumber = '000'; // placeholder for page numbers
});
// temporarily move all elements out of DOM (to speed up rendering single pages)
const els = [];
$$('.body').forEach(el => {
// move <style>/<link> into <head> so styles can be applied globally
const ch = [...el.children]
.filter(el => !['STYLE', 'LINK'].includes(el.tagName) || d.body.prepend(el));
els.push(ch); ch.forEach(el => el.remove());
});
// iteratively add elements to pages
$$('.frontmatter, .abstract, #TOC:not(.chapter-toc)').forEach(el => {
(fill(el), book && nextPage());
});
$$('.body').forEach((el, i) => {
// preserve book chapter classes if exist
box_cls = ['chapter', 'appendix'].filter(i => el.classList.contains(i));
book && (box.innerText === '' ? newPage(box) : nextPage());
els[i].forEach(fill);
// clean up container and self if empty
removeBlank(el.parentNode); removeBlank(el);
});
finish(box); // finish the last box
cls.remove('pagesjs-filling');
// add page number, title, etc. to data-* attributes of page elements
let page_title, i = 0;
boxes.forEach(box => {
if (book) {
if ($('.frontmatter', box)) return; // skip book frontmatter page
$(ps, box) && (page_title = ''); // empty title for first page of chapter
}
const N = +box.dataset.pagesOffset || 1;
if (N > 1) box.classList.add('page-multiple');
i += N;
box.classList.add(`page-${i % 2 === 0 ? 'even' : 'odd'}`);
const info = {
'pageNumber': i, 'mainTitle': main, 'pageTitle': page_title
};
[box.children[0], box.children[2]].forEach(el => {
for (const key in info) info[key] && (el.dataset[key] = info[key]);
});
// find page title for next page
page_title = shortTitle([...$$(ps, box)].pop()) || page_title;
let ft; // first footnote on page
// move all footnotes after the page body
$$('.footnotes', box).forEach((el, i) => {
i === 0 ? (ft = el, box.children[1].after(el)) : (ft.append(...el.children), el.remove());
});
});
// unhide all pages
d.body.prepend(...boxes);
// add page numbers to TOC with data-* attributes
$$('#TOC a[href^="#"]').forEach(a => {
const id = CSS.escape(a.getAttribute('href').replace(/^#/, '')),
p = $(`.pagesjs-page:has(#${id}) .pagesjs-header`);
a.dataset.pageNumber = p ? p.dataset.pageNumber : '';
});
dispatchEvent(new Event('pagesjs:after'));
}
addEventListener('beforeprint', paginate);
// use query param ?paged=1 to indicate pagination (press p to toggle)
const SP = new URLSearchParams(location.search);
SP.get('paged') && paginate();
addEventListener('keypress', e => {
if (e.key === 'p') {
if (SP.get('paged')) {
SP.delete('paged'); location.href = location.pathname + (SP.size ? `?${SP}` : '');
} else {
paginate();
SP.set('paged', 1); history.replaceState({}, '', `${location.pathname}?${SP}`);
}
}
});
})(document);
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/post-nav.js | JavaScript | // navigate to previous/next posts by Left/Right arrows, and Alt + <-/-> for back/forward
(d => {
const a1 = d.querySelector('.nav-prev > a'), a2 = d.querySelector('.nav-next > a');
d.addEventListener('keyup', function(e) {
if (e.target.nodeName.toUpperCase() != 'BODY') return;
let u;
if (e.key === 'ArrowLeft') {
e.altKey ? history.back() : (a1 && (u = a1.href));
} else if (e.key == 'ArrowRight') {
e.altKey ? history.forward() : (a2 && (u = a2.href));
}
if (u) window.location = u;
});
const us = d.querySelectorAll('.unlist');
if (us.length === 0) return;
const s = sessionStorage.getItem('hide-notes');
if (s !== null) return us.forEach(u => u.classList.remove('unlist'));
if (a1 && a2) {
window.location = d.referrer === a2.href ? a1.href : a2.href;
}
})(document);
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/render-katex.js | JavaScript | // support \ref \eqref \label for KaTeX, based on https://github.com/KaTeX/KaTeX/issues/2003
(d => {
renderMathInElement(d.body, {
strict: false, throwOnError: false,
trust: context => ['\\href', '\\htmlId', '\\htmlClass'].includes(context.command),
macros: {
'\\eqref': '\\htmlClass{ktx-eqref}{\\href{###1}{(\\text{#1})}}',
'\\ref': '\\htmlClass{ktx-ref}{\\href{###1}{\\text{#1}}}',
'\\label': '\\htmlClass{ktx-label}{\\htmlId{#1}{}}'
}
});
function $(s, el = d) { return el.querySelector(s); }
function $$(s, el = d) { return el.querySelectorAll(s); }
const xrefs = $$('.katex:has(:is(.ktx-ref, .ktx-eqref))');
if (!xrefs.length) return;
const M = {}; // map equation labels to numbers
let n = 0;
// scan all display expressions for labels and tags
$$('.katex-display').forEach(el => {
const s = '.ktx-label > [id]', lab = $(s, el);
if (!lab) return; // no labels found
// find the common ancestor of all labels and the label of each row of equation
const ids = [...$$(':scope > [style]', lab.offsetParent.parentNode)].map(el => {
return $(s, el)?.id || '';
});
// find all tags
const tags = [...$$('.tag > .vlist-t > .vlist-r > .vlist > [style]', el)].map(tag => {
// if tag is automatically generated by CSS counter, we have to compute it
// manually because there is no way to access CSS counters from JS
return $('.eqn-num', tag) ? `(${++n})` : tag.innerText.trim();
});
if (ids.length === tags.length) {
ids.forEach((id, i) => id && (M[id] = tags[i]));
} else {
console.warn('labels and tags differ in length in ', el, ids, tags);
}
});
// resolve innerText of cross-ref links
function resolveRefLink(a, paren) {
const id = a.getAttribute('href').replace(/^#/, ''), tag = M[id];
a.innerText = tag ? (paren ? tag : tag.replace(/^\(|\)$/g, '')) : '???';
a.classList.add(`cross-ref-eq${paren ? 'n' : ''}`);
}
xrefs.forEach(el => {
const a = $('a', el);
if (!a) return;
const paren = a.parentNode.classList.contains('ktx-eqref'), p = el.parentNode;
p.after(a); p.remove(); // remove KaTeX's HTML for links to make their style consistent with surrounding text
resolveRefLink(a, paren);
});
})(document);
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/revdep-log-reader.js | JavaScript | // the CRAN revdep check log can be extremely lengthy, so I wrote this script to
// make the log easier to read (using one tab for one package/problem)
(d => {
const entries = d.body.innerText
.replace(/^(.|\n)*?(?=Package:)/, '')
.split(/(^|\n)Package: /)
.filter(x => x.trim())
.map(x => `<div class="tab-link">${x.replace(/(.*?)\n/, '$1 <a href="https://cran.r-project.org/web/checks/check_results_$1.html" style="text-decoration: none;" target="_blank">↝</a></div><div class="tab-pane"><pre style="white-space: pre-wrap;">')}</pre></div>`)
.join('\n');
d.body.innerHTML = `<div class="tabset">${entries}</div>`;
d.head.insertAdjacentHTML('beforeend', '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@xiee/utils/css/tabsets.min.css">');
const s = d.createElement('script');
s.src = 'https://cdn.jsdelivr.net/npm/@xiee/utils/js/tabsets.min.js';
d.body.insertAdjacentElement('beforeend', s);
})(document);
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/right-quote.js | JavaScript | // originally to right-align a quote footer if it starts with ---; now it just
// right-align all paragraphs that start with em-dashes
[...document.getElementsByTagName('p')].forEach(p => {
if (/^(—|―|---)/.test(p.textContent)) p.style.textAlign = 'right';
});
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/sidenotes.js | JavaScript | // move footnotes (ids start with fn) and citations (ids start with ref-) to sidenotes
(d => {
d.querySelectorAll('.footnotes > ol > li[id^="fn"], #refs > [id^="ref-"]').forEach(el => {
// find <a> that points to note id in body
const h = `a[href="#${el.id}"]`;
d.querySelectorAll(`${h} > sup, sup > ${h}, .citation > ${h}, ${h}.citation`).forEach(a => {
const a2 = a.parentNode;
(a.tagName === 'A' ? a : a2).removeAttribute('href');
const s = d.createElement('div'); // insert a side div next to a2 in body
s.className = 'side side-right footnotes';
if (/^fn/.test(el.id)) {
s.innerHTML = el.innerHTML;
// add footnote number
s.firstElementChild.insertAdjacentHTML('afterbegin', `<span class="bg-number">${a.innerText}</span> `);
s.querySelector('a[href^="#fnref"]')?.remove(); // remove backreference
} else {
s.innerHTML = el.outerHTML;
}
while (s.lastChild?.nodeName === '#text' && !s.lastChild.textContent.trim()) {
s.lastChild.remove();
}
// remove fullwidth classes if present (because they cannot be used in the margin)
s.querySelectorAll('.fullwidth').forEach(el => el.classList.remove('fullwidth'));
// insert note after the parent of <a> unless it contains class 'citation'
const a3 = a.classList.contains('citation') ? a : a2;
a3.after(s);
a3.classList.add('note-ref');
el.remove();
});
});
// remove the footnote/citation section if it's empty now
d.querySelectorAll('.footnotes, #refs').forEach(el => {
el.innerText.trim() || el.remove();
});
// also add side classes to TOC
d.getElementById('TOC')?.classList.add('side', 'side-left');
// if a sidenote collapses with any fullwidth element, remove the side class
const sides = d.querySelectorAll('.side.side-right, .side.side-left'), fulls = [];
d.querySelectorAll('.fullwidth').forEach(el => {
fulls.push([el, el.getBoundingClientRect()]);
});
// add a class to document body if it has sidenotes
sides.length && d.body.classList.add('has-sidenotes');
sides.forEach(s => {
const r1 = s.getBoundingClientRect();
for (let f of fulls) {
const r2 = f[1];
if (!(r1.right < r2.left || r1.left > r2.right || r1.bottom < r2.top || r1.top > r2.bottom)) {
f[0].classList.remove('fullwidth');
}
}
});
})(document);
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/snap.js | JavaScript | (function(d) {
let p = d.body; // container of slides; assume <body> for now
const s1 = ':scope > hr:not([class])', s2 = ':scope > h2';
// find a container that has at least n "slides"
function findContainer(s, n = 1) {
if (p.querySelectorAll(s).length >= n) return true;
// if body doesn't contain headings or <hr>s, look into children
for (let i = 0; i < p.children.length; i++) {
if (p.children[i].querySelectorAll(s).length >= n) {
p = p.children[i]; break;
}
}
return false;
}
function newEl(tag, cls) {
const el = d.createElement(tag);
if (cls) el.className = cls;
return el;
}
if (!findContainer(s1, 3)) {
// if not enough <hr>s found in children; look for <h2> instead
if (p.tagName === 'BODY') {
// not enough h2 found, this page is not appropriate for slides
if (!findContainer(s2) && p.tagName === 'BODY') return;
p.querySelectorAll(s2).forEach(h2 => h2.before(newEl('hr')));
}
}
p.classList.add('slide-container');
// add 'slide' class to the frontmatter/abstract divs and toc
['.frontmatter', '.abstract', '#TOC'].forEach(sel => {
const el = d.body.querySelector(sel);
if (!el) return;
if (sel === '.frontmatter') {
el.classList.add('slide');
} else {
const s = newSlide(); el.before(s); s.append(el);
}
});
function newSlide(s) {
return (s?.innerHTML === '') ? s : newEl('div', 'slide');
}
function isSep(el) {
return el.tagName === 'HR' && el.attributes.length === 0;
}
let el = p.firstElementChild; isSep(el) && el.remove();
el = p.firstElementChild; if (!el) return;
let s = newSlide(); el.before(s);
while (true) {
let el = s.nextSibling;
if (!el) break;
// remove slide separators (<hr>) and create new slide
if (isSep(el)) {
s = newSlide(s);
el.before(s); el.remove();
} else if (el.classList?.contains('slide')) {
s = newSlide(s);
el.after(s);
} else {
s.append(el);
}
}
function setAttr(el, attr) {
const m = newEl('div');
m.innerHTML = `<div ${attr}></div>`;
const attrs = m.firstElementChild.attributes;
for (const a of attrs) {
el.setAttribute(a.name, a.value);
}
m.remove();
}
function reveal(el) {
setTimeout(() => el?.scrollIntoView(), 100);
}
const dE = d.documentElement, dC = d.body.classList;
const slides = d.querySelectorAll('div.slide'), N = slides.length,
tm = d.querySelector('span.timer'), fn = d.querySelector('.footnotes');
slides.forEach((s, i) => {
// slide header, main body, and footer
const header = newEl('div', 'header'), main = newEl('div', 'main'), footer = newEl('div', 'footer');
main.append(...s.childNodes);
s.append(main);
s.insertAdjacentElement('afterbegin', header);
s.insertAdjacentElement('beforeend', footer);
// append footnotes
if (fn) s.querySelectorAll('.footnote-ref > a[href^="#fn"]').forEach(a => {
const li = fn.querySelector('li' + a.getAttribute('href'));
if (!li) return;
let f = s.querySelector('section.footnotes');
if (!f || f.contains(li)) {
f = newEl('section', 'footnotes'); footer.before(f);
}
f.append(li);
li.firstElementChild?.insertAdjacentHTML('afterbegin', `[${a.innerHTML}] `);
li.outerHTML = li.innerHTML;
});
// add a timer
footer.append(tm ? tm.cloneNode() : newEl('span', 'timer'));
// add page numbers
const n = newEl('span', 'page-number');
n.innerText = i + 1 + '/' + N;
n.onclick = e => location.hash = i + 1;
footer.append(n);
// apply slide attributes in <!--# -->
for (const node of main.childNodes) {
if (node.nodeType !== Node.COMMENT_NODE) continue;
let t = node.textContent;
if (!/^#/.test(t)) continue;
t = t.replace(/^#/, '');
const r = /[\s\n]class="([^"]+)"/, m = t.match(r);
if (m) {
t = t.replace(r, '').trim();
s.className += ' ' + m[1];
}
if (t) setAttr(s, t);
break;
}
s.addEventListener('click', e => {
(e.altKey || e.ctrlKey) && (toggleView(e), reveal(e.target));
});
});
[...d.querySelectorAll('a.footnote-backref'), fn, tm].forEach(el => el?.remove());
const tms = d.querySelectorAll('span.timer'), t1 = 1000 * tms[0].dataset.total;
let t0;
function startTimers() {
t0 = new Date();
setInterval(setTimers, 1000);
}
function setTimers() {
if (!dC.contains('slide-mode')) return; // set timer only in slide mode
let t = (new Date() - t0);
if (t1) t = t1 - t;
const t2 = new Date(Math.abs(t)).toISOString().substr(11, 8).replace(/^00:/, '');
tms.forEach(el => {
el.innerText = t2;
if (t < 0) el.style.opacity = Math.ceiling(t/1000) % 2;
});
}
function toggleView(e) {
(dC.toggle('overview') ? dC.remove('slide-mode') : setScale(e));
}
// press f for fullscreen mode
d.addEventListener('keyup', e => {
if (e.target !== d.body) return;
e.key === 'f' && dE.requestFullscreen();
e.key === 'o' && toggleView(e);
e.key === 'm' && dC.toggle('mirrored');
sessionStorage.setItem('body-class', d.body.className);
});
// start timer and set scale on fullscreen
d.onfullscreenchange = e => {
d.fullscreenElement && (!t0 && startTimers(), setScale(e));
}
tms.forEach(el => el.addEventListener('click', e => startTimers()));
// measure the height of an empty slide
let H = -1;
function slideHeight() {
if (H >= 0) return H;
const s = newEl('div', 'slide');
p.querySelector('.slide:last-of-type').after(s);
H = s.offsetHeight;
s.remove()
return H;
}
// scale slides according to window height (baseline: 900px)
const sty = newEl('style'); sty.setAttribute('type', 'text/css');
d.head.append(sty);
// default height/width ratio from screen size
sty.innerHTML = `:root{--slide-ratio:${screen.height / screen.width}}`;
// read --slide-ratio in case users have set it in their CSS
const ratio = +getComputedStyle(dE).getPropertyValue('--slide-ratio');
function setScale(e) {
// navigate to a slide indicated by the hash if provided
e.type === 'load' && reveal(slides[location.hash.replace(/^#/, '') - 1]);
if (dC.contains('overview')) return;
let h = window.innerHeight, p = h / 900, r2 = h / window.innerWidth, full = d.fullscreenElement;
// add slide mode if there's enough window width, and remove it in case of scrollbar
dC.toggle('slide-mode', full || r2 <= ratio) &&
(!full && (dE.scrollWidth > dE.offsetWidth)) && dC.remove('slide-mode');
sty.innerHTML = `:root{--slide-ratio:${ratio};--slide-scale:${p};--slide-top:${(p - 1)/2 * d.body.scrollHeight + 'px'};}`;
// add spacers with enough height on load
!d.querySelector('.spacer.fade') && dC.contains('slide-mode') && slides.forEach(s => {
const sp = newEl('div', 'spacer fade'), h = s.offsetHeight, h2 = slideHeight();
s.append(sp);
if (h <= h2) return;
sp.style.height = (h2 - h % h2) * p + 'px';
});
}
['load', 'resize'].forEach(evt => window.addEventListener(evt, setScale));
// restore previously saved body class
const bc = sessionStorage.getItem('body-class');
if (bc) d.body.className += ' ' + bc;
})(document);
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/tabsets.js | JavaScript | // find an element with class `tabset` and convert its subsequent bullet list or headings to tabs;
// see documentation at: https://yihui.org/en/2023/10/section-tabsets/
document.querySelectorAll('.tabset').forEach(h => {
const links = [...h.querySelectorAll(':scope > .tab-link')],
panes = [...h.querySelectorAll(':scope > .tab-pane')];
let init = 0;
function activate(i) {
function a(x, i) {
x.forEach((el, k) => el.classList[k === i ? 'add' : 'remove']('active'));
}
init = i; a(links, i); a(panes, i);
}
function newEl(tag, cls) {
const el = document.createElement(tag);
el.className = cls;
return el;
}
function isHeading(el) {
return /^H[1-6]$/.test(el.tagName);
}
function isEmpty(el) {
return el.innerHTML.trim() === '';
}
// if the tabset is heading or empty div, use next sibling, otherwise use first child
let n = -1, p, el = (isHeading(h) || isEmpty(h)) ? h.nextElementSibling : h.firstElementChild;
// if el is <ul>, try to convert it to tabset
if (links.length === 0 && el?.tagName === 'UL') {
[...el.children].forEach(li => {
const l = li.firstElementChild;
if (!l) return;
const l2 = newEl('div', 'tab-link');
l2.append(l);
l.outerHTML = l.innerHTML;
if (/<!--active-->/.test(l2.innerHTML)) l2.classList.add('active');
el.before(l2);
const p = newEl('div', 'tab-pane');
l2.after(p);
[...li.children].forEach(l => p.append(l));
links.push(l2); panes.push(p);
});
el.remove();
}
// create a tabset using headings if the above didn't work
if (links.length === 0) while (el) {
// convert headings to tabs
if (el.nodeName === '#comment' && el.nodeValue.trim() === `tabset:${h.id}`)
break; // quit after <!--tabset:id-->
if (isHeading(el)) {
const n2 = +el.tagName.replace('H', '');
if (n2 <= n) break; // quit after a higher-level heading
if (n < 0) n = n2 - 1;
// find the next lower-level heading and start creating a tab
if (n2 === n + 1) {
p = newEl('div', 'tab-pane');
el.after(p);
el.classList.add('tab-link');
el.querySelector('.anchor')?.remove();
el.outerHTML = el.outerHTML.replace(/^<h[1-6](.*)h[1-6]>$/, '<div$1div>');
el = p.previousElementSibling;
links.push(el); panes.push(p);
el = p.nextSibling;
continue;
}
}
if (p) {
p.append(el);
el = p;
}
el = el.nextSibling;
}
const N = links.length;
if (!N) return;
// if the initial tabset container is empty, move links and panes into it
if (isEmpty(h)) {
links.forEach(l => h.append(l));
panes.forEach(p => h.append(p));
}
// activate one tab initially if none is active
links.forEach((l, i) => {
i > 0 && links[i - 1].after(l); // move tab links together
l.onclick = () => activate(i); // add the click event
if (l.classList.contains('active')) init = i;
});
const ts = links[0].parentNode;
ts.hasAttribute('tabIndex') || (ts.tabIndex = '0');
ts.addEventListener('keyup', e => {
const dir = ['ArrowLeft', 'ArrowRight'].indexOf(e.key);
if (dir < 0) return;
const i = init + (dir ? 1 : -1);
activate(i < 0 ? N - 1 : (i > N - 1 ? 0 : i));
});
activate(init);
});
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/toc-highlight.js | JavaScript | // highlight a TOC item when scrolling to a corresponding section heading
(d => {
// assume TOC has these possible IDs (we can also consider other selectors)
const s = 'a[href^="#"]', toc = d.querySelector(`:is(#TableOfContents, #TOC):has(${s})`);
if (!toc) return;
const links = toc.querySelectorAll(s), dict = {};
links.forEach(a => dict[a.getAttribute('href').replace('#', '')] = a);
const ids = Object.keys(dict);
let id_active, id_last;
// status: 1 if an id is currently in the viewport, otherwise 0
const status = Array(ids.length).fill(0);
// create a new Intersection Observer instance
const observer = new IntersectionObserver(els => els.forEach(el => {
const id = el.target.id, i = ids.indexOf(id);
if (i < 0) return;
status[i] = +el.isIntersecting;
const n = status.indexOf(1); // the first id in view
if (n > -1) {
id_active = ids[n];
} else {
if (!id_active || el.boundingClientRect.top < 0) return;
// if a heading exits from bottom and no heading is in view, activate previous ID
id_active = i > 0 ? ids[i - 1] : undefined;
}
if (id_active === id_last) return;
for (const i in dict) {
dict[i].classList.toggle('active', i === id_active);
}
id_last = id_active;
// in case the active TOC item is not in the view, scroll TOC to make it visible
const a = dict[id_active];
if (!a || toc.scrollHeight <= toc.clientHeight) return;
const ra = a.getBoundingClientRect(), rt = toc.getBoundingClientRect();
if (ra.top < rt.top || ra.bottom > rt.bottom) toc.scrollTo({
top: a.offsetTop, behavior: 'smooth'
});
}));
// observe all section headings associated with TOC links
d.querySelectorAll('h1,h2,h3,h4,h5,h6').forEach(h => {
h.nodeType === 1 && dict.hasOwnProperty(h.id) && observer.observe(h);
});
})(document);
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/toc.js | JavaScript | // build TOC using headings
(d => {
// find the body of the article
let b;
['.article', '.body', 'article', '.main', 'body'].forEach(s => {
if (!b) b = d.querySelector(s);
});
const hs = b.querySelectorAll([1, 2, 3, 4, 5, 6].map(i => `:scope > h${i}`).join(','));
if (hs.length === 0) return;
let toc = d.getElementById('TOC') || d.getElementById('TableOfContents');
if (toc) {
toc.innerHTML = ''; // empty and rebuild TOC if it has been generated (e.g., by Pandoc)
} else {
toc = d.createElement('div');
toc.id = 'TOC';
}
let li, ul;
let p = toc; // the current parent into which we insert child TOC items
let t1, t0 = 0; // pretend there is a top-level <h0> for the sake of convenience
hs.forEach(h => {
t1 = parseInt(h.tagName.replace(/^h/i, ''));
li = d.createElement('li');
if (t1 > t0) {
// lower-level header: create a new ul
ul = d.createElement('ul');
ul.appendChild(li);
p.appendChild(ul);
} else if (t1 < t0) {
// higher-level header: go back to upper-level ul
for (let j = 0; j < t0 - t1; j++) {
p = p.parentNode.parentNode;
}
}
if (t1 <= t0) p.parentNode.appendChild(li);
p = li;
const a = d.createElement('a');
a.innerHTML = h.innerHTML;
if (h.id) {
a.href = '#' + h.id;
} else {
// Pandoc's section divs
const s = h.parentNode;
if (s.classList.contains('section') && s.id) a.href = '#' + s.id;
}
p.appendChild(a);
t0 = t1;
});
if (!toc.parentNode) {
// if there is <header> in the article body, insert TOC after it
const header = b.querySelector('header');
header ? header.after(toc) : b.insertBefore(toc, b.firstChild);
}
// check if headings are numbered
toc.querySelector('span.section-number') && toc.firstElementChild.classList.add('numbered');
})(document);
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/toggle-notes.js | JavaScript | (d => {
if (!d.body.classList.contains('has-notes')) return;
const h = d.querySelector('.author');
if (!h) return;
let s = sessionStorage.getItem('hide-notes');
h.classList.add('toggle-notes');
h.onclick = function(e) {
s === null && !/^(localhost|[0-9.]+)$/.test(location.hostname) &&
alert('你好像点了个神秘开关……请勿公开,自行阅读即可(再次点击可关闭),谢谢!');
s = d.body.classList.toggle('hide-notes');
try { sessionStorage.setItem('hide-notes', s); } catch (e) {};
};
if (s !== null) d.body.classList.toggle('hide-notes', s === 'true');
})(document);
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
purge.sh | Shell | #!/bin/sh
# purge jsdevlivr cache for assets modified between current and previous tags
JSD_URL="https://purge.jsdelivr.net/npm/@xiee/utils"
tag2=$(git describe --tags --abbrev=0)
tag1=$(git describe --tags --abbrev=0 "$tag2^")
for i in $(git diff --name-only $tag1 $tag2 | grep -E "[.](css|js)$"); do
if [ -n "$i" ]; then
curl "${JSD_URL}/${i}"
curl "${JSD_URL}/$(echo "$i" | sed 's/\(\.[^.]*$\)/.min\1/')"
fi
done
| yihui/lite.js | 19 | Miscellaneous lightweight tools and utilities in JavaScript | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
R/extract.R | R | # 将形如 &xxx; 的 HTML 代码转化为字符实体 https://stackoverflow.com/a/35187962/559676
db = character() # 缓存
html_entities = function(x) {
x2 = setdiff(x, names(db))
if (length(x2) == 0) return(db[x])
x3 = xml2::xml_text(xml2::read_html(paste0(c("<i>", x2, "</i>"), collapse = '')))
x3 = strsplit(x3, '')[[1]]
if (length(x3) != length(x2)) stop('有一些字符没有转换成功:', paste(x2, collapse = ' '))
db[x2] <<- x3
db[x]
}
unescape_entities = function(x) {
m = gregexpr('&([[:alpha:]]+|#x?[0-9]+);', x)
regmatches(x, m) = lapply(regmatches(x, m), function(x) {
html_entities(x)
})
x
}
# 用 export 输出数据
write_data = function(name, x, ...) {
res = paste0(
'export default ',
trimws(jsonlite::toJSON(x, pretty = 0, ...)), ';'
)
xfun::write_utf8(res, sprintf('js/data-%s.js', name))
}
files = list.files('html', '.[.]html$', full.names = TRUE)
res = lapply(files, function(f) {
x = xfun::file_string(f)
r = '.*<div class="content definitions jnr">(.+?)<div class="div copyright">.*'
x = xfun::grep_sub(r, '\\1', x)
x = lapply(strsplit(x, '><span class="dicpy">')[[1]][-1], function(z) {
py = xfun::grep_sub('^([^<]+)<.*', '\\1', z) # 获取拼音
py = unescape_entities(py)
py = gsub('^\\s*([^[:space:]]+).*', '\\1', py) # 去掉空格
# 有少数条目没有 </li> 闭合标签(如媪、啻),而是继续 <li> 直到 </ol> 结束
li = regmatches(z, gregexpr('<li>\\s*(.+?)\\s*(?=<(/li|li|/ol)>)', z, perl = TRUE))
li = gsub('^<li>|</(li|ol)>$', '', unlist(li))
# 只有一项释义的时候,没有 <li> 标签,以 ◎ 开头
if (length(li) == 0) {
li = xfun::grep_sub('.*◎(.+?)</p>.*', '\\1', z)
li = bookdown:::strip_html(li)
}
if (length(li) == 0) stop('这个文件中没有找到字的释义:', f)
li = trimws(bookdown:::strip_html(li))
li = unescape_entities(li)
if (any(grepl('&', li))) message(f, ' 里面似乎仍然有转义符:', li)
setNames(list(li), py)
})
unlist(x, recursive = FALSE)
})
res = setNames(res, gsub('.*(.)[.]html', '\\1', files))
write_data('chars', res)
local({
x = trimws(xfun::read_utf8('data/freq-chars.txt'))
m = gregexpr(r <- '([0-9]+)\\s+(.)(\\s*.\\s*[^[:space:]]+|$)', x)
x = unlist(regmatches(x, m))
if (any(i <- format(seq_along(x), trim = TRUE) != gsub(r, '\\1', x))) stop(
'这些字符可能有问题:\n', paste(x[i], collapse = '\n')
)
x = gsub(r, '\\2', x)
x = intersect(x, names(res))
x = c(x, setdiff(names(res), x))
write_data('freqs', paste(x, collapse = ''), auto_unbox = TRUE)
})
| yihui/zdict.js | 62 | 汉典网站数据(汉字、拼音、释义等) | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
R/pinyin.R | R | x = xfun::read_utf8('js/data-chars.js')
x[1] = gsub('^export default ', '', x[1])
x[length(x)] = gsub(';\\s*$', '', x[length(x)])
z = jsonlite::fromJSON(x, FALSE)
write_data('pinyin', lapply(z, names))
| yihui/zdict.js | 62 | 汉典网站数据(汉字、拼音、释义等) | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
R/scrape.R | R | # 抓取 7000 个通用汉字;这些字分布在多页上,须一页一页读取
x = xfun::read_utf8('https://www.zdic.net/zd/zb/ty/')
p = xfun::grep_sub('.*<a class="pck" title="([0-9]+)">.*', '\\1', x)
res = lapply(p, function(i) {
message(i, '/', length(p))
Sys.sleep(runif(1))
x = xfun::read_utf8(paste0('https://www.zdic.net/zd/zb/ty/bh/?bh=', i))
r = ".*<a href='/hans/(.)' title='([^']+)'>.*"
x = unlist(regmatches(x, regexec(r, x)))
x = matrix(x, ncol = 3, byrow = TRUE)
x[, 2:3]
})
res = do.call(rbind, res)
if (any(i <- duplicated(res[, 1]))) {
stop('抓取的汉字中有重复字符:', paste(res[i, 1], collapse = '、'))
}
n = NROW(res)
for (i in seq_len(n)) {
message(i, '/', n)
char = res[i, 1]
xfun::download_file(paste0('https://www.zdic.net/hans/', char), file.path('html', paste0(char, '.html')))
# Sys.sleep(runif(1, 0, .1))
}
| yihui/zdict.js | 62 | 汉典网站数据(汉字、拼音、释义等) | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
build.sh | Shell | #!/bin/sh
npm install --global rollup
mkdir dist
cd js
rollup zdict.js --format umd --name zDict --file ../dist/zdict.js
rollup learn-chars.js --format iife --file ../dist/learn-chars.js
rollup pinyin-finals.js --format iife --file ../dist/pinyin-finals.js
# rollup data-chars.js --format cjs --file ../dist/data-chars.js
# rollup data-freqs.js --format cjs --file ../dist/data-freqs.js
cd ..
rm -r js/ R/ data/ *.Rproj
mv dist js
| yihui/zdict.js | 62 | 汉典网站数据(汉字、拼音、释义等) | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
css/learn-chars.css | CSS | #learn-toolbar, .char-block { text-align: center; }
.right { text-align: right; }
#learn-toolbar .label {
margin: auto 1em auto .5em;
padding: .5em 1em;
}
#learn-toolbar input:not(:checked) + .label {
background: none;
border: 1px solid #eee;
}
.pinyin { font-size: 3em; }
.py {
font-size: 1.5em;
margin-bottom: auto;
}
.char-box {
display: inline-flex;
justify-content: center;
align-items: center;
font-size: 10em;
border: 1px solid;
width: 1.5em;
height: 1.5em;
cursor: pointer;
background:
repeating-linear-gradient(0deg, transparent, transparent calc(50% - .5px), lightgray calc(50% - .5px), lightgray calc(50% + .5px)),
repeating-linear-gradient(90deg, transparent, transparent calc(50% - .5px), lightgray calc(50% - .5px), lightgray calc(50% + .5px)),
repeating-linear-gradient(45deg, transparent, transparent calc(50% - .5px), lightgray calc(50% - .5px), lightgray calc(50% + .5px)),
repeating-linear-gradient(135deg, transparent, transparent calc(50% - .5px), lightgray calc(50% - .5px), lightgray calc(50% + .5px));
position: relative;
line-height: 1em;
}
.char-box > .char + span {
position: absolute;
font-size: .2em;
bottom: 0;
line-height: 1em;
opacity: .6;
}
#learn-chars .correct, .review-all .review:not(.review-show) { color: forestgreen; }
#learn-chars .wrong { color: orangered; }
.review {
font-size: .3em;
display: none;
}
.review-pane .review-show, .review-pane.review-all .review {
display: inline-block;
}
.review-all #learn-toolbar input:checked + .label {
background: none;
border: 1px solid #000;
}
.review .pinyin {
font-size: 4em;
line-height: 1.2em;
}
.current {
color: white;
background-color: black;
}
#learn-candidates {
display: block;
width: 100%;
height: 6em;
padding: .2em;
}
#learn-settings {
font-size: .9em;
}
#learn-settings p:nth-of-type(2) {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
#learn-settings input {
width: 4em;
padding: .2em;
}
#learn-settings button {
min-width: 4em;
padding: .1em .2em;
}
.seal-top {
border-bottom: 1px dashed;
}
.seal-bottom {
border-top: 1px dashed;
}
.seal-line {
color: #ccc;
text-align: center;
letter-spacing: 1em;
}
| yihui/zdict.js | 62 | 汉典网站数据(汉字、拼音、释义等) | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
css/pinyin-finals.css | CSS | .char-block, .toc-finals {
display: inline-block;
text-align: center;
margin: 2px;
}
.toc-finals {
margin: 0 .2em;
}
.char-box {
font-size: 1.2em;
border: 1px solid;
border-top: none;
}
#pinyin-finals .char-box a {
color: inherit;
border: none;
}
.pinyin {
font-size: .8em;
border-bottom: 1px dotted;
}
.char-block {
width: 1.5em;
}
.char-width-4 {
width: 1.8em;
}
.char-width-5 {
width: 2.3em;
}
.char-width-6 {
width: 2.7em;
}
.char-accent-1 .pinyin, .char-accent-2 .pinyin {
border: 1px solid;
}
.char-accent-2 .pinyin {
border-style: dashed;
}
.char-accent-3 .pinyin {
background: #393E46;
}
.char-accent-4 .pinyin {
background: #716e77;
}
.char-accent-3 .pinyin, .char-accent-4 .pinyin {
color: white;
}
.accent-legend {
font-size: 1.5em;
cursor: pointer;
border-bottom: 5px solid transparent;
}
.accent-clicked, .accent-legend:hover {
border-bottom-color: red;
}
.char-section {
margin-bottom: 2em;
}
.char-section[class*=accent-show] .char-block {
display: none;
}
.char-section.accent-show-0 .char-accent-0, .char-section.accent-show-1 .char-accent-1, .char-section.accent-show-2 .char-accent-2, .char-section.accent-show-3 .char-accent-3, .char-section.accent-show-4 .char-accent-4 {
display: inline-block;
}
| yihui/zdict.js | 62 | 汉典网站数据(汉字、拼音、释义等) | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/data-freqs.js | JavaScript | export default "一中在年人日和上的有月我是下用者大新了为不会元要三与个本多小区市全之水名等到分好高来对二第后部万家四可能地这成及手时都最五点次出天也金你社六山十化所国方行过就比学很法内加表前将已各他以女文发路省品数说无生车吗给从长九火八种看起没更期自号机心事子于同木两回当还网美力今去得报总想里外件主做非开该爱图请位土工原道白条几正米物男系站色打百服云北进书先如达再代王把问花海场间作们并买只度向又商台西走带让业真体电才安超快入店性式那城此共其但七至组她门着近字设类单张干室何面南首管少京集量太气强厂或局未型级应口老李由办光话经使证别信情院处足华马见因每查重现受风亿线定被展神钱叫记岁选周明找称流住特料版转副项招建通林目价教县东节常客员村史按易声求动港谈双变初章星送头平片半改包写班合形热需约清器而界群公收相房科论放身它知歌卖深什么春产感制听帮例关评保指谁千卡友供病像哥传利难团售反连楼笑均曾低则防交红立族士民空死获案英任酒装读基吃票库理费活宝治却曲座购创篇必乐源游便您专解刀黄油修园提取州越尽世令呢雨考影旧短较夜换具极意套程师黑香眼试奖馆音除占石仅即据调层页语完青啊广队备志街儿命战配江食龙份仍拉吧校余球直段计算若联拍私夏秋画接言阿古秀精引派货飞些印赛波另值款思早题堂增远久率零准板讯差牌步梦博底某存样免破德照观户注屋陈富支医左权讲且雪编推母投布银牛急玩留象含朝倍格镇府租彩职优军毛农刘拿贴企刚排克付列田右良河视药居味满速坐搞哪降整属福术尚营亚血依湖委跟测实厅养牙盘欧舞演望造奥佳鱼句课既川领往离边杯闻技限假登届词质落苏助官司根结茶致靠礼批运持祝录景显晚箱素肉果股争树升环随简券唱研岛纸待草域抓冬船旅伤顶菜务纯叶角玉武奇桥智习喜幅码资卷衣康卫父标笔洋轮诚铁状财播皮罗番封须健穿负背胜附绿乡故容折错维兴减冷独兼核末圈贵粉亲众愿切党架轻材温诗退征艺告季松政欲许追施补迎亮块置乱君杨订皆亦鞋永断抗导育益剧微护谷顺吨载倒蓝夫野爆册秒端汉氏掉钢冰凡哈功床忘席洗胡狗遇细宁森略豆雅停兵答汇币涨借毒跳猫税续挂冲责然猪斗救杀沙访盖赚控吴灯压跑键寻痛梅吉义脚剑横塔盛宏密促症严露抢念湾赴善软归规雷静参判谢巴灭丁脱驻际般浪搜采消苦议朱迷袋怕峰划输境齐虫击认复潮榜虎唐范势失孙档妻帖模扣己鸟厚止罪骨举徐啦恋赵漫耳激遭禁缺烟巨竟甲酷预弱宽阳敢签魔庆刻虽稿窗株泉坏婚丝普示喝庭策害终跨液销兰弄戏散鲁梁紫响够怪胸守丽似紧炎硬威始困铺息仪宜确狂陆圣鬼糖寄饭泰申藏宋呀瑞索寺休灵刊冠趣鸡翻尾序饮予贸犯珠绝宗竹丰邮熊娘忙栏继旺适圆异累羊仙池烧吸割效辆莫充夹决协误津跌脑承疑识钟惊慢脸泡遍赏探纳仁盒凭混汗练患临移稳统介恩酸宫懂竞互庄汤豪针杜壁郑乘审恶犬乳镜呈偏纪井否妹摆积抱返攻佛麦替丹勇担墙棒尼灰托链享填逆戴仔雄败献腰透残侧腿柱荣肩抽瓶挺役阶钻耐蒙童融添秘哭洲嫁扬乃究吹央宇振呼岩忧损亩顿暴杰锁洛挑赢距围净警炒岸剂煤餐讨颗聚伴革航幕巧译洞陪宅希彼锦济额幸阅甚刷废险魂延虚典旁甘矿粗孔滑坊俊睡寒顾淡沈拼劲监妙暗检狼薄诸隆固宿蛋伟旬熟觉操柳浅浩羽枪夺织怎态肌泪肥郎姐邀麻斯偷瘦洪洁染祖挖赠筑摩构摘惠欠弹粮隔冒射浙铜欢暖塞鲜润掌震湿逼阵搭晨隐拖骗嘴敏寸抵偶柏燕忠闪赶忍唯拨帐旗胶奶窝董律瓦插昌舍罚陶姓贝驾泥撞盟丸渡恐琴斤棉旨辽腹坛泽执赤怀训锅兄拒宣亭鼻辉穷皇鼓览肝稍桂敌帅兽敲历碎贷饰况帽验滴桌欣勤杂突闹妈赞途弟映恒浓贺粒逃菌潜岗仿嫌握鼠搬飘奔泛携述铃墨晶阴繁尊沿醒概盐摸束框乙沟栋淘符珍辛阁坚串扰芳骑辣诉寿爽谋触启迈帝毅揭涉舒泊汽拳幻迅剩殿弃催债茂牧荷姜磨渐扩旦黎眉芝挤漏枝桃盗踏胃兔筋堆肯苗挥朗炉祥摇勒甜慧晓惜裕埋爬递翼凉灾扶丢愈醉巷棵兆忽爸扎猛闭拥乎尤墓吐候薪摄敬溪植浮疯幼恨拆劳暂谜虹违穴腾籍嘉尿孩昨措呆拜授乔蛇哲培焦凤伸危喊煮晋亏径艳荐迁伍渠扇涛杆赔棋奋刺绕畅倾涌凯傻匹辞仓晴刮塑燃牵颜拔滚召鹿烂碗烈碰丘抛础沉伯妇毕芬涂擦逐闲烤舟柜胆臭盈详耗骂乌捧察避孟誉咱萍怒午缩荡狠伪析汁莲肠桑戒晒霸奉捐锋援储抑汪疆愁冯惹截炸刑择堪贤盾斜柔逢裤裂卸疼剪袭谱辅缓棚浴悉丑妥艘桶俗朋勾闯伐释迹肺吊捷蜜循挡孝障捉坡楚迫遵炮彻姿毁裙腐猜逝宴押咬筹赖括殊勿虑壮御俱疾悦裁询躺胀陷扫胖衡渔稀炭柴劣脂膜估扁逗惯碍疗碧络址脏霜纱亡践忆衫励惨绘炼荒娃纵椅腔禽迟夕饱箭堡灌盼蝶贩挨雾卧糊盆谊陕砖撑昼岭睁唤凝扭烦寨仗喘撤孕撒衰抖旋尖煌踢纹塘狐俩肤朵辈劝徒捞偿尝栽踪砍卵缴悲抄跃奴趋橡瓜尘盲搏披鉴诞娱朴胞嫩叹霞佩轨锐督吞巩坦喂绍肾鸭吓铸蓄孤铅纷抬脆菊挪辱袖鹰峡堵努酿尺惑遗饿赌锡叔宾斑盯冶扑绩瞧窑乏臂昏驱鞭罐廉衬贫扯摊蹲踩阔躲耀蒸陵裹扮哄坑滨拦顷咽蒜葛垫缝舌甩晕奏雕氧碑纠龄悟纺蓬锻翠邪怨矮猴肚葬玻葱欺悠掏庙聪粘沾昆漆萌鸣窃贯泼扔冻遥臣辟悔崇滥恰滋贡疏颈丈梨删捏污趴厉阻滩貌挣唇矛摔犹辨洒芒枣凶旱挽帘攀韵堤默壳侵巡祸慕虾懒坝稻械毫畜辰伏艇悬筛爷痕翁酱邻耕殖婆杏枕粥诊疲慎茅筒慌泳篮抹棍竖趁浇缸谦捕掩厨塌轰磁倡傅贪趟尸柄饼覆渣帆缘屈膏屯闸夸歪缠饶脉葡誓屡驰瞎厦贱喉宪椒眠脊凑烫伙毯歇渗纲弯绣肿扒侨掀肃伞螺剥睛阀抚描吵狭舰掘咸仆仰绑艰屠漂骤宰傲渴灿匙纽垂轿蛮遣骄削耍枯妖鹅溜疫忌哀暮蜂糟遮笋钩崖揉槽拌廊锤顽郊撕霉翅窄罢乖桐纤逮腊窜贼怖拣怜拾羞暑辩奸丧允牢屑弊绒慰巾谨哨竿姑钞搅笼宵晃肆囊慈昂狮跪叠胁宙惩芽叉淋笨隙惧梯闷秤蚊衔弓钓绪蚀蚕膝恢揪诱寓驶壶颂冈捡坟鸽煎齿璃傍唉蜡绳垦卜梳猎丛倚哑仇苍袍皱砌粪厘妨乒驳颠咳敞蹦沃龟燥驴钉叙斥沸蔬勉棕垒隶丙冤泄匠戚醋吼搁轧酬澡淹漠骆秩娇蚁膨舱灶畏垮绵芦爹拐悄掠爪穗愚雁袜嫂浸泻刃蛙樱谅耻痒劈钥脾搂浆撇侍颤辜庸狸嚼瞒雀恭愧斩萝烛羡滤苹薯疤姨绸扛叮饲剖禾喇浑锈狱妄倦熔疮烘寇蹄贿皂铲蹈牲瓣饥匪尹浊锯柿陡呜贞寂慨馅焰葵笛咏姻鞠愤脖僵肢厕斧茎厌竭沫魄杠糕茫槐垄壤蠢侄榆俭萄匆稼拢倘旷崭牺芹恼刹盏垃虏怠茄筝圾悼帜俯帷伶凰聋躁挠茧愉勺梢涝恳驼凳絮锣歉歼谣毙绢乓蕉溉炊秃秧嚷膀匀绞诵矩摧腥碌稠蝇骡朽钳蔽滔哗筐剃僻眯惕躬谎犁僚叛熄舅耽讽鸦榨橘蛾眨侮炕嗓俘蚂秆捎蝴饺缎拴膊锄馒桨咐岔姥榴糠胳裳鹊粱锹寡菠蛛膛殃挎鄙雹剔狡惰睬惭蔑馋寞袄辫婶啄镰嗽吩箩叼蜘猾晌叩罩蜻邓圳俄韩澳署拓伊鹏萨聘郭颁谓勃辑诺伦邦徽卢秦迪杭曼咨浦频埃莱颇履媒仲艾曹穆彭柬辖吁枚敦舆拟赫蒋邹滞彰勘琛贾淮肖兑钦凌瓷菲斌氛癌颖姆袁卓潘洽涵侯岚奠廷赁湘吕硕峻衷蔡铝崛屏逾函戈啤赋蒂劫舶埔岳瞩懈鸿弘喷胎歧玲辐晰竣缆昔侦姚魏焕擅沪晤玛豫庞讼弥缔霍雇汛汰耶琼弗帕昭萧兹契铭撰淑妆卿郁邱揽鼎韦娜俏拚圭粤歹憾阐甸轴阜冀幽迄碘奈崔婴缅谭儒诈磋幢淀沧魅牟罕渤汕溢袱殷牡赣枢彦樊吾彬砂喀勋碱潭邢啥焊廖喻蕴坎瘤莉淫睐睹拘龚茨鞍鹤卉隧沛募琳磷炳涯奎聂孜翔柯谐烯禄薛湛逻沂鲍潇邵澜闽翰亟赂聊暨旭蕾坪涤挫佐瞄硫碳畔熙襄乾莎阎衍坤噪倪遏瑶肇鄂溶陋啡濒氨墅蔓秉厢咖魁骚缚遂跻菇汝瞬淄馈桩炬麟岂泵匈荆嘱贬稽岐醇菱彪甫逊渊藤砸杉厄桔芜禹蟹嘛俞澄睦馨郝贮陌钧轩赃逸巍萃窟萎庐籽苑莞硅巢瘫埠宠仑兢妮俑礁掺髓挚蔚枫庚侃捆蔗斋耿黔栗荫皖曰徊迭蓉靖氟尧俺徘磊镑曙纶佼踊纬酝宛瑰抒祭鑫痴耘潍弦梧芯眷逛谴邯呵寥耸媳熏娟亨吟蒲梭瞻渝夷韶尉珊粹琦秽侠挝曝婉镶熬氯琢瑟暇绥禅溃腺撼佣滕淤栖硝荟荧芭臻锭晖邑荔毗觅钙氮佑怡瘾烹棠缪雏韧兜坯坷缉猖凿洼喧锌椰崩沥汾磅霖棘彗陇绎诫斐铮钾簿畴擂讳寅焚漳鳖哺僧琅粟蜀淳柑缕烁氢琪泣阮镀殴虞虐诀坠屿髦酋躯遐仕稚楠矶彝潢郸匾咋玄裔襟嵌拱慷痪跋孚峪钊滇苟墩乍腻詹讶敷肴莹衢朔吻翟堰苯獗汲靡沁乞翩沼嘎畸矫骏绚藻矗楷腕篷徇娼榻汹峨昧奢涩灼簇溯攒沓呕纫渭漓葆辍肪祁娣岱瀑啸裸瑛舜忱豹纂恤惟赐犀媚茬驭缀钮姬嫖凹揣尬沦尴豁玫殡淌叭啃裘卑琐矢拯忡盎茵椎拂骅葫迢薇眶沐傣浚窘栓酶泌榄碟恪酯匿酵砚匮熠鳞麓镁氓苇廓巫踵蘑翘梓贻鳗帼冉泓涟崎窍瑜铎掷璀泗浏陲苛攘璧瀚哩矣蚌悖扼漯墟侣庇陀秸捣譬炜炯彤锚绮嚣樟枉窦桦哉驹隋冕咄峙娄溥腑钠栩糙滦呐鲻娶祺刨褒橙茹抉慑媛橄戎迩雯璨雍惶扳桢霓账梗裴韬杖痹缤沽燎煞辙爵缭烨槌媲凛莆颅膳澎坞婷酌涡唁禺棣芸忻炽篆憨戍圩蹊饪胺睫惫拇赈泾弧剿硒毓皓菏灸湄炙祠荻捍朦屹紊藜寝兮隘祈榕臧蝉闵鳌娥藉娅烽楂摒凄凸孵渎匡卒桓莽倩泸藕陨辗骋峭冥亢圃颐擒铵鳄簧愣璜钰拙瘠靳隽罹岑镭恕毋囤汀绽窖筷擎猿诲碾夭邃藩诬芙胚哇垣胧殉壑绰憋亥涅屁璞缮棺棱诣橱寰郡垢徕眺胰谆窥霄栉舸坂瞪珲釉跤挟肘嘲刁敛祛绅孰痫闺椿噶恍峦酥萦苎癫涪锲蜚拎嵩昊娴涣烙璋笃囚祯篱讴舷纭巅卦摹眸踞焉辄褚褐湃夙堕惦疚谍奕羚帧澈濮漾锰菩簸仃渲札谙咕咀郴蛟拧莘驯庵弼逞蹬撂镍晏疡骥楞懋寐淇琉杞铨翌靶侗瑙丐痊娓侈苓聆睿偌釜噬曦燮哟瑾瞿璇拮憬憧嗜啼檐柚呱渍镌妃溺鸥粕沱榭隅毡禧瞅鲸淆阪茁渺瞥茜瘟礴伺谛蔼虔莺迸磕赡泱栈甄镐抠嬉诿甬绊饵谬颍琶褥佟辊溅琵鄯喃笙酰卤芮斓潼鸵侥讷婿吆羁嗣蜒栅疙拷戳镛芷钛蜿铀夯摞雌酣荼蝎锥姊瓢祀玺弛犷哦茸鱿绷惋亘珑莓掂迥鲤瘩叨螃奄腈疟沭钨昕膺涿氰狩檀悍缫哮衙瑚潞谤搀洱涓袤痰冗芋甭骸幌涮俨敖槛狄牒恺赎庶熨佰蓦鄱煽腌黯倔剌斡诽锵筱妍掖铿脐捅弈邸湟赦拄啪玮轶麋炫赊靴箔菁撬戌缨蝗奚瀛噩怯蓓匕咚瞰佬泞扉皋晾麒姗跚猕拭鲟祷脯砺驿陛瘁搓舵汞哼胫珀邬磺馏馍铢诧涧吏苔潺邳烷囿斟滁殆酚孺恬沅铬湍啧囱蒿鹃柠漱胥洙珂茉蹒圻鬓葩佘渥诙袒捂瞠妓铐澧袂馁汐匣逍谚窒糯汶壹岖盔嘘迂嘀锢讥吭抨屎獭褪咫稷迦檬塬蓟咎皿驮俐坍垛鹭鸾蹴撩诠恙臃遨踌浒搪郧竺翡宦冽憩萱拽卞槟躇蘸肋呛濡酮撮矸垸蛀黛涸脓徙撷曳峥渚镖钴骊袅磐掣沌埂嘿琏楣豚诡悸麝煦矾羲溧呻覃兖吱羹钝枸姣颓铣梆骇淅孢叱谧泯谟恃薹筵鏖栾鹜哽掬辘茗瓯绛筠铤殚梵遴榈蜕癣垠厮幄偕焱攥裨炖旮旯蔺娩伫猝窿屉缜咒筏骼璐涕猗侬阙嗅鸳嘈霏珩沮捺硼荃驷漩嘻眩掰伽脍婪煜鹄壕崂翎痞兀婺鸯楹咤徜嫉篓烃铂咪掐匝杼蕃箍荤砾嘶皑宕荪哎汴貂邡淦蕙弩堑惬偃徉箴赘啻凋穹酗憎芥唾晔苞昶甙笺吝蕊鳝衅猩薰昱趾淞坳怅翱汩琥岌阑粼羌霆篡塾酉裱韭唠廿闰攸黝蛤厥荞瑕柘祚疵愕蕨牦飨疹嗷癖芪漕隍徨逵泠嵘嗡岫岷擞陂颊咔卯椭惘歙幺臆叽缰睽勐暄弋痔秭煲琮嘟犊玖怦丕溴罂瓮丞惮癜晦攫镯柞舫铆蹼妩熹铱褂丫笆妒噢噙琬冼荀蟾捶嗒町嫣肮皎旖恣钚砥茯馥钎甥嗦蜗浔谒亳彷珏咯淖妊佤玷嘹崴於辕贲扈伎旎孽耙娠戊冢跷砷焘羔圪耄钼悻荥唑稞邝莅杷醛唆拗碴胱琨茏糜懦骞嚓怵抡唢腆涎灏臼墒暹椽牍钒榔懵枇樵锶籼箫漪帚钵赓捻郅儋烬锂剽锑鄢鄞臾喳胄耋阱笠瓴啬杳萤莠嶂浜傩遒轼睢倜矽仉唬旌酪腼罄嬗畲祟桅悴讹憔龋嵊绶邕忖咆愫猷帛麾莒觑吮蟋庥懊阂蒯阡腮潸晟蟀臀罔骁崽绉粽忿肛蠡遛蜓煊蚜坻滹銮悯鼐撵噼忐湮侏粳矍铄坨铉盂锗阖溟俟忑赝鬃敝宸哆靓揩瘸鲅篝氦嚎浃缙锷癸柩蛎濂榷鲨钡盹鲫诘诩迤桎遁尕梏楫赳飒锃雉怆痼劾痢喽霹昙畹胭佚狈瘪姹吠铧谏雳咙畦荠娑褶忏惚痉漉诏呗晁惆砀馄戟峁昵拈蠕虱洵鹦蛹铛挛倏澍濉噜咛俳磬蜷霎肽砼聿怔砭谌箕蹶孪蔷糅挞饨惴禀淙枷楝闾嗖淬垩矜郗蚤嫦喋镉饯髋潦镂簌偎鹉岙踱诃籁宓膘飙涞耆荏渑豌琰俎绌埭幡赅锆崮碣珞腋滢蓖伉馗聩幔锨蓥鹑砝酩枰鞘苋粑蹭倌犟俪嶙砻嵋滂葺苒枭翊婀飓阚喟傈藐蜃怂稣亵诒蜇霁瞌沏卅舀鹌俸嵇蟒汨砰鞣唏陉佯恿竽瘴祉焙诋濠螂叻垅谩朐稔芍瞳惺萸盅眈偻爿蟠炔垭噎蛰擘锏茭悌喔谑峋妪恽韫褓镳饽杈戛鸠萋襁榫霭苄跺杲嗨珉哌娆孀恸缄夔佗饷苷郜鼾颌訇谲溘咧褛逄颦洮逶嫡蠹碓烩醴栎鎏瓤伢蔫怿甾摈畈镣螨秣搔盱痍搐蹉佃绂疽骝霾悚缃懿咂奘轱邗蚝瘘醚湎瞑掮羟仨砣郢砧鳟跛踝轲窠郦踉躏戮篾骐鳍蹂郯跎倭诅鄄褴阆缈嗯妞沤跄箐苕窕楔饴峄腴圄谕揍踹罡佝颔觊篑鲢綦妾镗啕蚬窈揖眙蟑诛钗绯讣睾媾嗬祜镢囹苜坭蛐髯搡叟蹋觎碉呋罘荚鹫岿寮扪焖狞鳅嗄嗤擀痂嗟颉蚧儆锴龛嗑锟俚枥懑讫橇嗪虬跆骧陟灞恻涔酐鸪牯萘缥曜蚓诤埕墀麸蝠蛊遑厩趄沔耦疱匍揿蚯讪舔呷蓿鹧膑刍耷鞑裆趸孑鲲绫埝嘭舢鸢螯吡蝙疸匐桁铠羸鲈囵唛仫庖劭郓骜粲峒腓鹳鳜蚶囫茴峤蟆蘖癯纾僳隰缬馐谪捭汊碜塍艮睑狍苫篦蜍锉沣诰晗喙麂謇蹇觐啾踽邈壬燧娲猥歆镒茔昝赭狰孳哧舛噔鹗蚣逅洹腱锒纰蛆蕤姝邰纣嘣钹衩婵孱蹿鲷萼椁浣镓遽赉趔蕲剜邂仡氤獐幛俾铋嗔茌氡诂豢桧畿倥捋仞忒疃浯蜈榛偬稗菖鲳厝踮痱貉玑婕琚疴掳钤垧黠跹怏揄氲铡濯芾笈崆钕菽隼傥芗埙簪暧桉镝蚪蜉藁笳菅龃喹橹抿啮蹑逖唔樨巽揶黟訾钣嵯凼恫掇剁珙沆噱揆耒铌泅疝葳隗滟龉钺殒蒡觇黜澹酊垡奂珈濑馕馊嚏痿岘氩茱滓焯抻豉敕掸碲靛摁淝鳏盥皈鲑颢犄翦铰椐胯屺邛庹猬蓊骛浠胤鸩痣蛭噌杵啜靼啶煅枋觥毂刽蝈蘅芨戬醮疖忾骷洌呤荦觞谡瀣蝣糌倬碚蹙痘砘绀虢蕻肓蛔唧桀蝌侩棂樯挈轫巳蓑藓鳕瑗帙馔豺痤郇殓髅轳逯嗫戕嚅蛳嘤疣蚱钯钿碇咣毽喱逦廪邙囡匏扦咝凇纨涠庠溆醺炀烊肄龈谀锱瘢枞皴贰晷闳斛屐讦婧苣蔻绺渌瑁螟叵颀穑膻羧螳绦誊蜥楦恂靥咿翳瓒枳啭樽嫒婊搽铒跗凫菡篁髻裾栲癞蓼氖孬喏砒姘衽缛嵬挹缢慵呦箸蹩槎榇舂嗲胴谔岢圹娌潋蛉酃鲵鲇娉亓碛芊忪谇笤韪勰呓俣圜愠仄炷毖筚伧棰磴滏篙肱笕堇馑荩哐傀崃罱痨儡鹂檩仵檄芎阉刈壅馀庾妯躅獒阊笞饬钏硐椴泔硌鹘鳇豇狙戡莨啉辇臬殇舐黍薮眭佻嗵煨莴蚴妤瘐擢蛏蹰龊辏氘骶莪珐缟聒讧岬胛桷谰戾撸鸬雒嘧囔铍骈掊茕噻铯柁龌硖罅魇酽咦嶷羿轸趵荸薜踟玳啖蔸槁鲛疥唳弭曩黏镊泮霈淠柒颧瘙痧辋郄燹泫郾鹞钇殪痈甑踯翥婢檗柽啐菪嶝腭嗝剐笏蟥戢阄撅尻贶辚蜢颞忸胼阕竦焐揠邺鳙啁徵诌舨哔卟伥苌鹚箪锇蝮诟洄浍诨犍硷噤垲郐椤嫫脲殍噗溱箬厍钽钍恹鬻爰蓁胝颛褙鳊邴镫腚钭颚鲂悱狒佶偈绔醪坜疠椋犸暝佞哝瞟荨芩逡溽裟挲抟暾崦芫荑薏莸欤栀斫镞嗳鸨跸骠俦谠簟棼驸掼倨橛犒邋耧蝼虻铙郫汔诮楸阒绻叁臊钐腧闩菘阗忝橐翕阋踅窨鹬鼋樾錾旃弁侪坼蚩嘬糍骢氐呃榧玢绋蚨钆岣菰罟嘏埚绗嚯藿笄袈羯肼暌啷蒗蜊獠鬣黾乜镆怩驽旆髂仟芡谯恁鳃艄莳趿遢鲐醍僮氽刎芴喑墉昀箦鄣摺钲贽缵鏊锛瓿廛瘳亍遄褡垌椟酆桴赙坩臌曷跽湫榉黧猁钌镏缦殁赧悭缱衾鲭铩猞眚铈谥耜飕饕餮骰绾鹇鲞爻蜴镱铟莜祗濞镔逋谄谶酲樗憷莼撺柢阏砜垓旰妫衮嗥郏鞯徼孓钪侉夼跬铼嫘蟊茆睨怄蹁谝嘌綮嫱筇犰穰铷筲哂炻豕秫笥涑铊帏闱鋈舾屣狎哓噫璎铕宥阈豸辎趑龇捌秕荜愎镲谗踔苁酢呔聃镦屙鲱鬲膈铪醐獾鲩虺葭牮礓苴讵颏裉诳栌氇哞柰袢帔睥苤嫔笸氆佥箧蚋鲥狲桫溏铽殄脘洧肟绡咻洫癔洇嵛磔胗肫眦埯畚妣飑豳髌砗铳楮蔟毳锝堞疔葑缶菔疳彀胍磙顸薅翮猢怙蒺妗髁醌粝魉旒蝥缗衲呸醅蚍圮榀萁苘逑诎劬蕖朊剡蟮酞帑葶菟魍庑葸氙谖鞅狺夤嬴瘿饔雩鹆橼赜潴骓缁诹怍杓檫媸氚呲殂矬笪迨纛簦玎苊轭鼢缑诖炅鲧唿戽鬟恚枧洚桕雎蠲剀诓瘌镧铑鳓蓠呖跞裢裣埒捩鲮熘嵝瘰镘脒腩筢耪辔牝嘁蛴戗蛩巯悫葚熵蛸螫毹妁嗾鳎绨粜菀沩鼯牾螅顼蕈鼹繇苡悒吲喁卣牖笮舴罾棹鸷碡锕嗌媪龅甏箅傧啵鹁晡氅魑篪怛籴礅蒽珥钫绠觚鸹涫颃篌锪蠖乩咭赍嵴铗湔槿赆僦皲箜蒉缧酹嘞疬臁膦泷蒌泺荬颟旄泖镅蠓幂耱襻鼙炝愀蘧氍禳桡糁馓酾槊狻锬羰鼗鹈畋髫萜堍怃崤囟睚餍徭瘗唷圉蜮砟谵澶朕摭轵诼笫廒聱庳髀笾龀裎雠蝽腠妲铥黩怼蘩趺苻拊鲋戆纥哏鲠笱瞽庋簋刿掴槲觳萑癀蟪钬虮掎鲣囝裥踺茳糨鹪狷麇刳愦髡悃缡鲡鳢奁尥柃胪镥脔劢墁蝻呶搦罴蜱俜鲆皤镨槭镪黢洳枘芟埏筮殳飧溻饧樘酡圬粞觋莶霰榍薤髹曛迓佾埸霪茚鼬伛瘵骣畛卮轾彘觯邾槠嵫髭蕞犴鞴畀滗煸褊孛羼耖褫彳艟茈璁爨萏坫鸫篼簖裰哚蹯瀵怫陔筻蛄绲崞蜾盍荭黉糇骺鲎煳鹕冱瓠逭漶耠镬齑殛鲚跏蛱搛缣鹣僬噍衿缂喾狯纩栝蛞稂塄嫠詈蠊鹩躐鹨簏膂脶嬷昴瞀浼艨祢縻蘼芈眄鹋杪咩麽瘼鍪硇猱茑脬蟛貔仳犏钋芑葜愆锓蠼筌鬈蚺荛埽潲诜埘弑嗍蒴鸶缌澌姒蔌睃缇梃彖鼍芄隈鲔硪忤痦僖醯鼷跣枵擤勖痃碹谳轺铘圯纡窬窳饫蓣瀹趱驵缯揸笊絷跖螽籀舳驺陬阼揞菝魃癍鹎坌狴嬖襞碥鳔醭螬馇虿瘥惝怊鸱螭瘛帱徂汆脞瘅忉羝睇瓞鲽胨芏佴燔偾稃郛莩幞澉槔袼茛鞲觏酤鲴宄匦呙馘焓瘊岵鹱咴隳溷夥剞洎恝蒹谫僭艽挢敫卺扃锔窭锩觖劂氪骒哙悝蝰诔苈篥娈瞵栊癃舻辂稆猡蛑甍艋敉眇侔镎肭艿蛲陧衄锘堋庀甓螵钷桤褰肷锖鞒吣黥俅蝤璩悛辁颡谂摅汜溲嗉荽闼骀炱螗耥裼铫莛箨蕹迕杌寤穸饩舄禊猃绁渫廨獬硎荇鸺貅糈揎獯厣罨蛘鳐舣媵蚰侑狳螈龠昃痄搌浈埴黹酎橥缒窀菹锿砹邶鐾忭缏瘭踣礤骖艚锸猹镡躔蒇冁鬯枨眵搋镩戥觌阽铞垤蹀耵髑憝鸸篚镄鲼唪祓艴黻黼鳆尜塥哿虼遘桄胲醢撖嚆薨堠烀轷锾缳擐哕阍劐攉墼蕺芰戋趼楗耩喈刭獍鬏鞫犋屦醵桊爝捃胩锎蒈莰闶锞眍筘阃漤铹栳耢仂泐檑轹蔹垆锊蠃硭漭猸鹛钔瞢礞喵苠鳘貊貘毪攮猊聍狃耨孥胬恧蒎锫陴氕裒镤蜞岍搴慊椠蜣硗劁缲檎圊檠銎赇糗鸲磲畎狨蝾薷襦颥蓐脎毵磉唼歃骟滠矧胂蓍鲺贳搠兕螋瞍觫铴瑭慝掭祧龆蜩鲦茼酴煺柝腽阌阢菥蓰柙祆筅魈躞砉醑儇岈砑珧酏劓堙撄潆蝓燠眢箢掾刖狁拶唣迮帻谮哳膪嫜忮骘踬瘃麈疰浞禚觜耔腙鄹鲰躜撙胙乂亶亸伋伾俵俶倓倞倻偲僇僰剅剕剟勍勩匜卻厾唝啰啴喤嗞嘚嘡噀嚄嚚垍垞垟垯垱埼堉堌塆塈塃塮墈墦夬奭姞姽婞婳嫚嫪宬尔屃峂峣峧崟嵎嵖嵚嶓巉帡幪庤庼廋廙弇彧悢惇愔慥慭扅扊扺抃抔拃拤挦捯揳揾搒摽斝旸旻昉昽晞晢暅曈杧杻柈栒栟梽梾棁棨棬棻椑楯榖槚槜橦檵欸殣毐汈汭沄沘沚沨泃泜泚洑洣洨洴洺浉浐浕浡浥涘涢淏湉湜湝湨湲溇溠溦滃滍滘滪滫潏潟潵潽澥澴澼瀌瀍炟烜烝烺焌焜熜熥燊燏牁牂牚犨狉狝猄獴玕玙玚玠玡玥玦珣珰珽琇琎琤琫琯瑀瑄瑢璆璈璘璟璠璪瓘瓻甪畯疍疢疭瘆盉盦眊眬瞭矻砮硁硚碶礌礳祃祎祲祼祾禤秾穄窅窣窸竑筜筼箓簃簉簠糵繄纴纻绤绹综罽羑翙翚翯耰耲脧腒膙臑臜芼茀茓荙茝莙菂菼著萩葓葖蒟蓂蓇蕰藠蘘蜎螠螣蠋袆袗袪袯裈襕觱訄诐豨赑赟赪跐跶踶蹅蹐蹓蹜蹢蹽蹾轪辀辌辒邽郈郚郿鄌鄘酦醾鋆钘铚铻锜锧锽镃镈镋镚镠镴镵闿阇阘靰靸靺靽靿鞁鞡鞧鞨韂韨颋颙飐飔飗饳饸饹饻馃馉馌骍骎骙鬹魆鱽鱾鲀鲃鲉鲊鲌鲏鲙鲪鲬鲯鲹鳀鳁鳂鳈鳉鲾鳑鳚鳡鳤鸤鸮鸰鸻鸼鹀鹐鹝鹟鹠鹡鹮鹲黇鼒鼩鼫鼱齁齉龁";
| yihui/zdict.js | 62 | 汉典网站数据(汉字、拼音、释义等) | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/data-pinyin.js | JavaScript | export default {
"一": [
"yī"
],
"丁": [
"dīng",
"zhēng"
],
"七": [
"qī"
],
"万": [
"wàn",
"mò"
],
"丈": [
"zhàng"
],
"三": [
"sān"
],
"上": [
"shàng",
"shǎng"
],
"下": [
"xià"
],
"不": [
"bù",
"fǒu"
],
"与": [
"yǔ",
"yù",
"yú"
],
"丐": [
"gài"
],
"丑": [
"chǒu"
],
"专": [
"zhuān"
],
"且": [
"qiě",
"jū"
],
"丕": [
"pī"
],
"世": [
"shì"
],
"丘": [
"qiū"
],
"丙": [
"bǐng"
],
"业": [
"yè"
],
"丛": [
"cóng"
],
"东": [
"dōng"
],
"丝": [
"sī"
],
"丞": [
"chéng"
],
"丢": [
"diū"
],
"两": [
"liǎng"
],
"严": [
"yán"
],
"丽": [
"lì",
"lí"
],
"丧": [
"sāng",
"sàng"
],
"个": [
"gè",
"gě"
],
"丫": [
"yā"
],
"中": [
"zhōng",
"zhòng"
],
"丰": [
"fēng"
],
"串": [
"chuàn"
],
"临": [
"lín"
],
"丸": [
"wán"
],
"义": [
"yì"
],
"丹": [
"dān"
],
"为": [
"wéi",
"wèi"
],
"主": [
"zhǔ"
],
"举": [
"jǔ"
],
"乂": [
"yì"
],
"乃": [
"nǎi"
],
"久": [
"jiǔ"
],
"么": [
"ma",
"me",
"yāo"
],
"之": [
"zhī"
],
"乌": [
"wū"
],
"尹": [
"yǐn"
],
"乍": [
"zhà"
],
"乎": [
"hū"
],
"乏": [
"fá"
],
"乐": [
"lè",
"yuè",
"yào",
"lào"
],
"乒": [
"pīng"
],
"乓": [
"pāng"
],
"乔": [
"qiáo"
],
"乖": [
"guāi"
],
"乘": [
"chéng",
"shèng"
],
"乙": [
"yǐ"
],
"乜": [
"miē",
"niè"
],
"九": [
"jiǔ"
],
"乞": [
"qǐ"
],
"也": [
"yě"
],
"习": [
"xí"
],
"书": [
"shū"
],
"乩": [
"jī"
],
"买": [
"mǎi"
],
"乱": [
"luàn"
],
"乳": [
"rǔ"
],
"乾": [
"qián",
"gān"
],
"了": [
"liǎo",
"le"
],
"予": [
"yú",
"yǔ"
],
"争": [
"zhēng"
],
"事": [
"shì"
],
"二": [
"èr"
],
"亍": [
"chù"
],
"于": [
"yú"
],
"亏": [
"kuī"
],
"云": [
"yún"
],
"互": [
"hù"
],
"亓": [
"qí"
],
"五": [
"wǔ"
],
"井": [
"jǐng"
],
"亘": [
"gèn"
],
"亚": [
"yà"
],
"些": [
"xiē",
"suò"
],
"亟": [
"jí",
"qì"
],
"亡": [
"wáng",
"wú"
],
"亢": [
"kàng"
],
"交": [
"jiāo"
],
"亥": [
"hài"
],
"亦": [
"yì"
],
"产": [
"chǎn"
],
"亨": [
"hēng",
"pēng"
],
"亩": [
"mǔ"
],
"享": [
"xiǎng"
],
"京": [
"jīng"
],
"亭": [
"tíng"
],
"亮": [
"liàng"
],
"亲": [
"qīn",
"qìng"
],
"亳": [
"bó"
],
"亵": [
"xiè"
],
"亶": [
"dǎn",
"dàn"
],
"亸": [
"duǒ"
],
"人": [
"rén"
],
"亿": [
"yì"
],
"什": [
"shí",
"shén"
],
"仁": [
"rén"
],
"仂": [
"lè"
],
"仃": [
"dīng"
],
"仄": [
"zè"
],
"仅": [
"jǐn",
"jìn"
],
"仆": [
"pū",
"pú"
],
"仇": [
"chóu",
"qiú"
],
"仉": [
"zhǎng"
],
"今": [
"jīn"
],
"介": [
"jiè"
],
"仍": [
"réng"
],
"从": [
"cóng"
],
"仑": [
"lún"
],
"仓": [
"cāng"
],
"仔": [
"zī",
"zǐ",
"zǎi"
],
"仕": [
"shì"
],
"他": [
"tā"
],
"仗": [
"zhàng"
],
"付": [
"fù"
],
"仙": [
"xiān"
],
"仞": [
"rèn"
],
"仟": [
"qiān"
],
"仡": [
"yì",
"gē"
],
"代": [
"dài"
],
"令": [
"líng",
"lǐng",
"lìng"
],
"以": [
"yǐ"
],
"仨": [
"sā"
],
"仪": [
"yí"
],
"仫": [
"mù"
],
"们": [
"mén"
],
"仰": [
"yǎng",
"áng"
],
"仲": [
"zhòng"
],
"仳": [
"pǐ",
"pí"
],
"仵": [
"wǔ"
],
"件": [
"jiàn"
],
"价": [
"jià",
"jiè",
"jie"
],
"任": [
"rèn",
"rén"
],
"份": [
"fèn",
"bīn"
],
"仿": [
"fǎng"
],
"企": [
"qǐ"
],
"伉": [
"kàng"
],
"伊": [
"yī"
],
"伋": [
"jí"
],
"伍": [
"wǔ"
],
"伎": [
"jì",
"qí"
],
"伏": [
"fú"
],
"伐": [
"fá"
],
"休": [
"xiū",
"xǔ"
],
"众": [
"zhòng"
],
"优": [
"yōu"
],
"伙": [
"huǒ"
],
"会": [
"huì",
"kuài"
],
"伛": [
"yǔ"
],
"伞": [
"sǎn"
],
"伟": [
"wěi"
],
"传": [
"chuán",
"zhuàn"
],
"伢": [
"yá"
],
"伤": [
"shāng"
],
"伥": [
"chāng"
],
"伦": [
"lún"
],
"伧": [
"cāng",
"chen"
],
"伪": [
"wěi"
],
"伫": [
"zhù"
],
"佤": [
"wǎ"
],
"伯": [
"bó",
"bǎi",
"bà"
],
"估": [
"gū",
"gù"
],
"伴": [
"bàn"
],
"伶": [
"líng"
],
"伸": [
"shēn"
],
"伺": [
"sì",
"cì"
],
"似": [
"sì",
"shì"
],
"伽": [
"qié",
"jiā",
"gā"
],
"伾": [
"pī"
],
"佃": [
"diàn",
"tián"
],
"但": [
"dàn"
],
"位": [
"wèi"
],
"低": [
"dī"
],
"住": [
"zhù"
],
"佐": [
"zuǒ"
],
"佑": [
"yòu"
],
"体": [
"tǐ",
"tī"
],
"何": [
"hé",
"hē",
"hè"
],
"佗": [
"tuó"
],
"佘": [
"shé"
],
"余": [
"yú"
],
"佚": [
"yì",
"dié"
],
"佛": [
"fó",
"fú",
"bì",
"bó"
],
"作": [
"zuò"
],
"佝": [
"gōu",
"kòu"
],
"佞": [
"nìng"
],
"佟": [
"tóng"
],
"你": [
"nǐ"
],
"佣": [
"yōng",
"yòng"
],
"佥": [
"qiān"
],
"佩": [
"pèi"
],
"佬": [
"lǎo"
],
"佯": [
"yáng"
],
"佰": [
"bǎi"
],
"佳": [
"jiā"
],
"佴": [
"èr",
"nài"
],
"佶": [
"jí"
],
"佻": [
"tiāo"
],
"佼": [
"jiǎo"
],
"佾": [
"yì"
],
"使": [
"shǐ"
],
"侃": [
"kǎn"
],
"侄": [
"zhí"
],
"侈": [
"chǐ"
],
"侉": [
"kuǎ"
],
"例": [
"lì"
],
"侍": [
"shì"
],
"侏": [
"zhū"
],
"侑": [
"yòu"
],
"侔": [
"móu"
],
"侗": [
"dòng",
"tóng",
"tǒng"
],
"供": [
"gōng",
"gòng"
],
"依": [
"yī"
],
"侠": [
"xiá"
],
"侣": [
"lǚ"
],
"侥": [
"jiǎo",
"yáo"
],
"侦": [
"zhēn"
],
"侧": [
"cè",
"zè",
"zhāi"
],
"侨": [
"qiáo"
],
"侩": [
"kuài"
],
"侪": [
"chái"
],
"侬": [
"nóng"
],
"侮": [
"wǔ"
],
"侯": [
"hóu",
"hòu"
],
"侵": [
"qīn"
],
"便": [
"biàn",
"pián"
],
"促": [
"cù"
],
"俄": [
"é"
],
"俅": [
"qiú"
],
"俊": [
"jùn"
],
"俎": [
"zǔ"
],
"俏": [
"qiào",
"xiào"
],
"俐": [
"lì"
],
"俑": [
"yǒng"
],
"俗": [
"sú"
],
"俘": [
"fú"
],
"俚": [
"lǐ"
],
"俜": [
"pīng"
],
"保": [
"bǎo"
],
"俞": [
"yú",
"yù",
"shù"
],
"俟": [
"sì",
"qí"
],
"信": [
"xìn",
"shēn"
],
"俣": [
"yǔ"
],
"俦": [
"chóu"
],
"俨": [
"yǎn"
],
"俩": [
"liǎng",
"liǎ"
],
"俪": [
"lì"
],
"俭": [
"jiǎn"
],
"修": [
"xiū"
],
"俯": [
"fǔ"
],
"俱": [
"jù"
],
"俳": [
"pái"
],
"俵": [
"biào"
],
"俶": [
"chù",
"tì"
],
"俸": [
"fèng"
],
"俺": [
"ǎn"
],
"俾": [
"bǐ"
],
"倌": [
"guān"
],
"倍": [
"bèi"
],
"倏": [
"shū"
],
"倒": [
"dǎo",
"dào"
],
"倓": [
"tán",
"tàn"
],
"倔": [
"jué",
"juè"
],
"倘": [
"tǎng",
"cháng"
],
"候": [
"hòu"
],
"倚": [
"yǐ"
],
"倜": [
"tì"
],
"倞": [
"liàng",
"jìng"
],
"借": [
"jiè"
],
"倡": [
"chàng",
"chāng"
],
"倥": [
"kōng",
"kǒng"
],
"倦": [
"juàn"
],
"倨": [
"jù"
],
"倩": [
"qiàn"
],
"倪": [
"ní"
],
"倬": [
"zhuō"
],
"倭": [
"wō",
"wēi"
],
"债": [
"zhài"
],
"倻": [
"yē"
],
"值": [
"zhí"
],
"倾": [
"qīng"
],
"偃": [
"yǎn"
],
"假": [
"jiǎ",
"jià"
],
"偈": [
"jì",
"jié"
],
"偌": [
"ruò"
],
"偎": [
"wēi"
],
"偏": [
"piān"
],
"偕": [
"xié"
],
"做": [
"zuò"
],
"停": [
"tíng"
],
"健": [
"jiàn"
],
"偬": [
"zǒng"
],
"偲": [
"cāi",
"sī"
],
"偶": [
"ǒu"
],
"偷": [
"tōu"
],
"偻": [
"lǚ",
"lóu"
],
"偾": [
"fèn"
],
"偿": [
"cháng"
],
"傀": [
"kuǐ",
"guī"
],
"傅": [
"fù"
],
"傈": [
"lì"
],
"傍": [
"bàng"
],
"傣": [
"dǎi"
],
"傥": [
"tǎng"
],
"傧": [
"bīn"
],
"储": [
"chǔ"
],
"傩": [
"nuó"
],
"催": [
"cuī"
],
"傲": [
"ào"
],
"傻": [
"shǎ"
],
"僇": [
"lù"
],
"像": [
"xiàng"
],
"僖": [
"xī"
],
"僚": [
"liáo"
],
"僦": [
"jiù"
],
"僧": [
"sēng"
],
"僬": [
"jiāo"
],
"僭": [
"jiàn"
],
"僮": [
"tóng",
"zhuàng"
],
"僰": [
"bó"
],
"僳": [
"sù"
],
"僵": [
"jiāng"
],
"僻": [
"pì"
],
"儆": [
"jǐng"
],
"儇": [
"xuān"
],
"儋": [
"dān",
"dàn"
],
"儒": [
"rú"
],
"儡": [
"léi",
"lěi"
],
"儿": [
"ér"
],
"兀": [
"wù"
],
"允": [
"yǔn"
],
"元": [
"yuán"
],
"兄": [
"xiōng"
],
"充": [
"chōng"
],
"兆": [
"zhào"
],
"先": [
"xiān"
],
"光": [
"guāng"
],
"克": [
"kè"
],
"免": [
"miǎn"
],
"兑": [
"duì",
"ruì",
"yuè"
],
"兔": [
"tù"
],
"兕": [
"sì"
],
"兖": [
"yǎn"
],
"党": [
"dǎng"
],
"兜": [
"dōu"
],
"兢": [
"jīng"
],
"入": [
"rù"
],
"全": [
"quán"
],
"氽": [
"tǔn"
],
"八": [
"bā"
],
"公": [
"gōng"
],
"六": [
"liù",
"lù"
],
"兮": [
"xī"
],
"兰": [
"lán"
],
"共": [
"gòng",
"gōng"
],
"关": [
"guān"
],
"兴": [
"xīng",
"xìng"
],
"兵": [
"bīng"
],
"其": [
"qí",
"jī"
],
"具": [
"jù"
],
"典": [
"diǎn"
],
"兹": [
"zī",
"cí"
],
"养": [
"yǎng"
],
"兼": [
"jiān"
],
"兽": [
"shòu"
],
"冀": [
"jì"
],
"冁": [
"chǎn"
],
"内": [
"nèi",
"nà"
],
"冈": [
"gāng"
],
"冉": [
"rǎn"
],
"册": [
"cè"
],
"再": [
"zài"
],
"冒": [
"mào",
"mò"
],
"冕": [
"miǎn"
],
"最": [
"zuì"
],
"冗": [
"rǒng"
],
"写": [
"xiě"
],
"军": [
"jūn"
],
"农": [
"nóng"
],
"冠": [
"guān",
"guàn"
],
"冢": [
"zhǒng"
],
"冤": [
"yuān"
],
"冥": [
"míng"
],
"冬": [
"dōng"
],
"冯": [
"féng",
"píng"
],
"冰": [
"bīng"
],
"冱": [
"hù"
],
"冲": [
"chōng",
"chòng"
],
"决": [
"jué"
],
"况": [
"kuàng"
],
"冶": [
"yě"
],
"冷": [
"lěng"
],
"冻": [
"dòng"
],
"冼": [
"xiǎn"
],
"冽": [
"liè"
],
"净": [
"jìng",
"chēng"
],
"凄": [
"qī"
],
"准": [
"zhǔn"
],
"凇": [
"sōng"
],
"凉": [
"liáng",
"liàng"
],
"凋": [
"diāo"
],
"凌": [
"líng"
],
"减": [
"jiǎn"
],
"凑": [
"còu"
],
"凛": [
"lǐn"
],
"凝": [
"níng"
],
"几": [
"jī",
"jǐ"
],
"凡": [
"fán"
],
"凤": [
"fèng"
],
"凫": [
"fú"
],
"凭": [
"píng"
],
"凯": [
"kǎi"
],
"凰": [
"huáng"
],
"凳": [
"dèng"
],
"凶": [
"xiōng"
],
"凸": [
"tū"
],
"凹": [
"āo",
"wā"
],
"出": [
"chū"
],
"击": [
"jī"
],
"凼": [
"dàng"
],
"函": [
"hán"
],
"凿": [
"záo"
],
"刀": [
"dāo"
],
"刁": [
"diāo"
],
"刃": [
"rèn"
],
"分": [
"fēn",
"fèn"
],
"切": [
"qiē",
"qiè"
],
"刈": [
"yì"
],
"刊": [
"kān"
],
"刍": [
"chú"
],
"刎": [
"wěn"
],
"刑": [
"xíng"
],
"划": [
"huá",
"huà"
],
"刖": [
"yuè"
],
"列": [
"liè"
],
"刘": [
"liú"
],
"则": [
"zé"
],
"刚": [
"gāng"
],
"创": [
"chuàng",
"chuāng"
],
"初": [
"chū"
],
"删": [
"shān"
],
"判": [
"pàn"
],
"刨": [
"páo",
"bào"
],
"利": [
"lì"
],
"别": [
"bié",
"biè"
],
"刭": [
"jǐng"
],
"刮": [
"guā"
],
"到": [
"dào"
],
"刳": [
"kū"
],
"制": [
"zhì"
],
"刷": [
"shuā",
"shuà"
],
"券": [
"quàn",
"xuàn"
],
"刹": [
"chà",
"shā"
],
"刺": [
"cì",
"cī"
],
"刻": [
"kè"
],
"刽": [
"guì"
],
"刿": [
"guì"
],
"剀": [
"kǎi"
],
"剁": [
"duò"
],
"剂": [
"jì"
],
"剃": [
"tì"
],
"剅": [
"lóu"
],
"削": [
"xiāo",
"xuē"
],
"剌": [
"là",
"lá"
],
"前": [
"qián"
],
"剐": [
"guǎ"
],
"剑": [
"jiàn"
],
"剔": [
"tī"
],
"剕": [
"fèi"
],
"剖": [
"pōu"
],
"剜": [
"wān"
],
"剞": [
"jī"
],
"剟": [
"duō"
],
"剡": [
"yǎn",
"shàn"
],
"剥": [
"bāo",
"bō"
],
"剧": [
"jù"
],
"剪": [
"jiǎn"
],
"副": [
"fù",
"pì"
],
"剩": [
"shèng"
],
"割": [
"gē"
],
"剽": [
"piāo"
],
"剿": [
"jiǎo",
"chāo"
],
"劁": [
"qiāo"
],
"劂": [
"jué"
],
"劈": [
"pī",
"pǐ"
],
"劐": [
"huō"
],
"劓": [
"yì"
],
"力": [
"lì"
],
"劝": [
"quàn"
],
"办": [
"bàn"
],
"功": [
"gōng"
],
"加": [
"jiā"
],
"务": [
"wù"
],
"劢": [
"mài"
],
"劣": [
"liè"
],
"动": [
"dòng"
],
"助": [
"zhù",
"chú"
],
"努": [
"nǔ"
],
"劫": [
"jié"
],
"劬": [
"qú"
],
"劭": [
"shào"
],
"励": [
"lì"
],
"劲": [
"jìn",
"jìng"
],
"劳": [
"láo"
],
"劾": [
"hé"
],
"势": [
"shì"
],
"勃": [
"bó",
"bèi"
],
"勇": [
"yǒng"
],
"勉": [
"miǎn"
],
"勋": [
"xūn"
],
"勍": [
"qíng"
],
"勐": [
"měng"
],
"勒": [
"lè",
"lēi"
],
"勖": [
"xù"
],
"勘": [
"kān"
],
"募": [
"mù"
],
"勤": [
"qín"
],
"勩": [
"yì"
],
"勰": [
"xié"
],
"勺": [
"sháo"
],
"勾": [
"gōu",
"gòu"
],
"勿": [
"wù"
],
"匀": [
"yún"
],
"包": [
"bāo"
],
"匆": [
"cōng"
],
"匈": [
"xiōng"
],
"匍": [
"pú"
],
"匏": [
"páo"
],
"匐": [
"fú"
],
"匕": [
"bǐ"
],
"化": [
"huà",
"huā"
],
"北": [
"běi",
"bèi"
],
"匙": [
"chí",
"shi"
],
"匜": [
"yí"
],
"匝": [
"zā"
],
"匠": [
"jiàng"
],
"匡": [
"kuāng"
],
"匣": [
"xiá"
],
"匦": [
"guǐ"
],
"匪": [
"fěi"
],
"匮": [
"kuì",
"guì"
],
"匹": [
"pǐ"
],
"区": [
"qū",
"ōu"
],
"医": [
"yī"
],
"匾": [
"biǎn"
],
"匿": [
"nì"
],
"十": [
"shí"
],
"千": [
"qiān"
],
"卅": [
"sà"
],
"升": [
"shēng"
],
"午": [
"wǔ"
],
"卉": [
"huì"
],
"半": [
"bàn"
],
"华": [
"huá",
"huà",
"huā"
],
"协": [
"xié"
],
"卑": [
"bēi"
],
"卒": [
"zú",
"cù"
],
"卓": [
"zhuó"
],
"单": [
"dān",
"shàn",
"chán"
],
"卖": [
"mài"
],
"南": [
"nán",
"nā"
],
"博": [
"bó"
],
"卜": [
"bǔ",
"bo"
],
"卞": [
"biàn",
"pán"
],
"卟": [
"bǔ"
],
"占": [
"zhān",
"zhàn"
],
"卡": [
"qiǎ",
"kǎ"
],
"卢": [
"lú"
],
"卣": [
"yǒu"
],
"卤": [
"lǔ"
],
"卦": [
"guà"
],
"卧": [
"wò"
],
"卫": [
"wèi"
],
"卮": [
"zhī"
],
"卯": [
"mǎo"
],
"印": [
"yìn"
],
"危": [
"wēi"
],
"即": [
"jí"
],
"却": [
"què"
],
"卵": [
"luǎn"
],
"卷": [
"juàn",
"juǎn"
],
"卸": [
"xiè"
],
"卺": [
"jǐn"
],
"卻": [
"què"
],
"卿": [
"qīng"
],
"厂": [
"chǎng",
"hǎn",
"yǎn",
"ān"
],
"厄": [
"è"
],
"厅": [
"tīng"
],
"历": [
"lì"
],
"厉": [
"lì"
],
"压": [
"yā",
"yà"
],
"厌": [
"yàn"
],
"厍": [
"shè"
],
"厕": [
"cè"
],
"厘": [
"lí"
],
"厚": [
"hòu"
],
"厝": [
"cuò"
],
"原": [
"yuán"
],
"厢": [
"xiāng"
],
"厣": [
"yǎn"
],
"厩": [
"jiù"
],
"厥": [
"jué"
],
"厦": [
"shà",
"xià"
],
"厨": [
"chú"
],
"厮": [
"sī"
],
"去": [
"qù"
],
"厾": [
"dū"
],
"县": [
"xiàn",
"xuán"
],
"叁": [
"sān"
],
"参": [
"cān",
"shēn",
"cēn",
"sān"
],
"又": [
"yòu"
],
"叉": [
"chā",
"chá",
"chǎ"
],
"及": [
"jí"
],
"友": [
"yǒu"
],
"双": [
"shuāng"
],
"反": [
"fǎn"
],
"发": [
"fā",
"fà"
],
"叔": [
"shū"
],
"取": [
"qǔ"
],
"受": [
"shòu"
],
"变": [
"biàn"
],
"叙": [
"xù"
],
"叛": [
"pàn"
],
"叟": [
"sǒu"
],
"叠": [
"dié"
],
"口": [
"kǒu"
],
"古": [
"gǔ"
],
"句": [
"jù",
"gōu"
],
"另": [
"lìng"
],
"叨": [
"tāo",
"dāo"
],
"叩": [
"kòu"
],
"只": [
"zhī",
"zhǐ"
],
"叫": [
"jiào"
],
"召": [
"zhào",
"shào"
],
"叭": [
"bā"
],
"叮": [
"dīng"
],
"可": [
"kě",
"kè"
],
"台": [
"tái",
"tāi"
],
"叱": [
"chì"
],
"史": [
"shǐ"
],
"右": [
"yòu"
],
"叵": [
"pǒ"
],
"叶": [
"yè",
"xié"
],
"号": [
"hào",
"háo"
],
"司": [
"sī"
],
"叹": [
"tàn"
],
"叻": [
"lè"
],
"叼": [
"diāo"
],
"叽": [
"jī"
],
"吁": [
"xū",
"yù"
],
"吃": [
"chī"
],
"各": [
"gè",
"gě"
],
"吆": [
"yāo"
],
"合": [
"hé",
"gě"
],
"吉": [
"jí"
],
"吊": [
"diào"
],
"同": [
"tóng",
"tòng"
],
"名": [
"míng"
],
"后": [
"hòu"
],
"吏": [
"lì"
],
"吐": [
"tǔ",
"tù"
],
"向": [
"xiàng"
],
"吓": [
"xià",
"hè"
],
"吕": [
"lǚ"
],
"吗": [
"má",
"mǎ",
"ma"
],
"君": [
"jūn"
],
"吝": [
"lìn"
],
"吞": [
"tūn"
],
"吟": [
"yín"
],
"吠": [
"fèi"
],
"吡": [
"pǐ",
"bǐ"
],
"吣": [
"qìn"
],
"否": [
"fǒu",
"pǐ"
],
"吧": [
"bā",
"ba"
],
"吨": [
"dūn"
],
"吩": [
"fēn"
],
"含": [
"hán"
],
"听": [
"tīng"
],
"吭": [
"háng",
"kēng"
],
"吮": [
"shǔn"
],
"启": [
"qǐ"
],
"吱": [
"zhī",
"zī"
],
"吲": [
"yǐn",
"shěn"
],
"吴": [
"wú"
],
"吵": [
"chǎo",
"chāo"
],
"吸": [
"xī"
],
"吹": [
"chuī"
],
"吻": [
"wěn"
],
"吼": [
"hǒu"
],
"吾": [
"wú",
"yù"
],
"呀": [
"yā",
"ya"
],
"呃": [
"è"
],
"呆": [
"dāi"
],
"呈": [
"chéng"
],
"告": [
"gào"
],
"呋": [
"fū"
],
"呐": [
"nà",
"nè"
],
"呓": [
"yì"
],
"呔": [
"dāi"
],
"呕": [
"ǒu",
"ōu",
"òu"
],
"呖": [
"lì"
],
"呗": [
"bei",
"bài"
],
"员": [
"yuán",
"yún",
"yùn"
],
"呙": [
"wāi",
"hé",
"wǒ",
"wā",
"guǎ",
"guō"
],
"呛": [
"qiāng",
"qiàng"
],
"呜": [
"wū"
],
"呢": [
"ní",
"ne"
],
"呤": [
"líng"
],
"呦": [
"yōu"
],
"周": [
"zhōu"
],
"呱": [
"guā",
"gū",
"guǎ"
],
"呲": [
"zī",
"cī"
],
"味": [
"wèi"
],
"呵": [
"hē",
"a",
"kē"
],
"呶": [
"náo"
],
"呷": [
"xiā"
],
"呸": [
"pēi"
],
"呻": [
"shēn"
],
"呼": [
"hū"
],
"命": [
"mìng"
],
"咀": [
"jǔ",
"zuǐ"
],
"咂": [
"zā"
],
"咄": [
"duō"
],
"咆": [
"páo"
],
"咋": [
"zǎ",
"zé",
"zhā"
],
"和": [
"hé",
"hè",
"huó",
"huò",
"hú"
],
"咎": [
"jiù"
],
"咏": [
"yǒng"
],
"咐": [
"fù"
],
"咒": [
"zhòu"
],
"咔": [
"kǎ"
],
"咕": [
"gū"
],
"咖": [
"kā",
"gā"
],
"咙": [
"lóng"
],
"咚": [
"dōng"
],
"咛": [
"níng"
],
"咝": [
"sī"
],
"咣": [
"guāng"
],
"咤": [
"zhà"
],
"咦": [
"yí"
],
"咧": [
"liě",
"liē",
"lié",
"lie"
],
"咨": [
"zī"
],
"咩": [
"miē"
],
"咪": [
"mī"
],
"咫": [
"zhǐ"
],
"咬": [
"yǎo"
],
"咭": [
"jī",
"xī",
"qià"
],
"咯": [
"kǎ",
"luò",
"lo",
"gē"
],
"咱": [
"zán",
"zá",
"zǎn"
],
"咳": [
"ké",
"hāi"
],
"咴": [
"huī"
],
"咸": [
"xián"
],
"咻": [
"xiū"
],
"咽": [
"yān",
"yàn",
"yè"
],
"咿": [
"yī"
],
"哀": [
"āi"
],
"品": [
"pǐn"
],
"哂": [
"shěn"
],
"哄": [
"hōng",
"hǒng",
"hòng"
],
"哆": [
"duō"
],
"哇": [
"wā",
"wa"
],
"哈": [
"hā",
"hǎ",
"hà"
],
"哉": [
"zāi"
],
"哌": [
"pài"
],
"响": [
"xiǎng"
],
"哎": [
"āi"
],
"哏": [
"gén",
"hěn"
],
"哐": [
"kuāng"
],
"哑": [
"yǎ",
"yā"
],
"哓": [
"xiāo"
],
"哔": [
"bì"
],
"哕": [
"yuě",
"huì"
],
"哗": [
"huá",
"huā"
],
"哙": [
"kuài"
],
"哚": [
"duǒ"
],
"哝": [
"nóng"
],
"哞": [
"mōu"
],
"哟": [
"yō",
"yo"
],
"哥": [
"gē"
],
"哦": [
"ó",
"ò",
"é"
],
"哧": [
"chī"
],
"哨": [
"shào"
],
"哩": [
"li",
"lǐ",
"lī"
],
"哪": [
"nǎ",
"něi",
"na",
"né"
],
"哭": [
"kū"
],
"哮": [
"xiào"
],
"哲": [
"zhé"
],
"哳": [
"zhā"
],
"哺": [
"bǔ"
],
"哼": [
"hēng",
"hng"
],
"哽": [
"gěng"
],
"哿": [
"gě",
"jiā"
],
"唁": [
"yàn"
],
"唆": [
"suō"
],
"唇": [
"chún"
],
"唉": [
"āi",
"ài"
],
"唏": [
"xī"
],
"唐": [
"táng"
],
"唑": [
"zuò"
],
"唔": [
"wú",
"ńg",
"ń"
],
"唛": [
"mài"
],
"唝": [
"gòng",
"hǒng",
"gǒng"
],
"唠": [
"lào",
"láo"
],
"唢": [
"suǒ"
],
"唣": [
"zào"
],
"唤": [
"huàn"
],
"唧": [
"jī"
],
"唪": [
"fěng"
],
"唬": [
"hǔ",
"xià"
],
"售": [
"shòu"
],
"唯": [
"wéi"
],
"唱": [
"chàng"
],
"唳": [
"lì"
],
"唷": [
"yō"
],
"唼": [
"shà"
],
"唾": [
"tuò"
],
"唿": [
"hū"
],
"啁": [
"zhōu",
"zhāo",
"tiào"
],
"啃": [
"kěn"
],
"啄": [
"zhuó"
],
"商": [
"shāng"
],
"啉": [
"lán",
"lín"
],
"啊": [
"ā",
"á",
"ǎ",
"à",
"a"
],
"啐": [
"cuì",
"qi"
],
"啕": [
"táo"
],
"啖": [
"dàn"
],
"啜": [
"chuò",
"chuài"
],
"啡": [
"fēi"
],
"啤": [
"pí"
],
"啥": [
"shá"
],
"啦": [
"lā",
"la"
],
"啧": [
"zé"
],
"啪": [
"pā"
],
"啬": [
"sè"
],
"啭": [
"zhuàn"
],
"啮": [
"niè"
],
"啰": [
"luō",
"luó",
"luo"
],
"啴": [
"tān",
"chǎn",
"tuō"
],
"啵": [
"bo",
"bō"
],
"啶": [
"dìng"
],
"啷": [
"lāng"
],
"啸": [
"xiào"
],
"啻": [
"chì",
"dì"
],
"啼": [
"tí"
],
"啾": [
"jiū"
],
"喀": [
"kā"
],
"喁": [
"yóng"
],
"喂": [
"wèi"
],
"喃": [
"nán"
],
"善": [
"shàn"
],
"喇": [
"lǎ"
],
"喈": [
"jiē"
],
"喉": [
"hóu"
],
"喊": [
"hǎn"
],
"喋": [
"dié",
"zhá"
],
"喏": [
"nuò",
"rě"
],
"喑": [
"yīn"
],
"喔": [
"ō",
"wō"
],
"喘": [
"chuǎn"
],
"喙": [
"huì"
],
"喜": [
"xǐ"
],
"喝": [
"hē",
"hè",
"yè"
],
"喟": [
"kuì"
],
"喤": [
"huáng"
],
"喧": [
"xuān"
],
"喱": [
"lí"
],
"喳": [
"zhā",
"chā"
],
"喵": [
"miāo"
],
"喷": [
"pēn",
"pèn"
],
"喹": [
"kuí"
],
"喻": [
"yù"
],
"喽": [
"lóu",
"lou"
],
"喾": [
"kù"
],
"嗄": [
"shà",
"á"
],
"嗅": [
"xiù"
],
"嗉": [
"sù"
],
"嗌": [
"yì",
"ài"
],
"嗍": [
"suō"
],
"嗑": [
"kē",
"kè"
],
"嗒": [
"tà",
"dā"
],
"嗓": [
"sǎng"
],
"嗔": [
"chēn"
],
"嗖": [
"sōu"
],
"嗜": [
"shì"
],
"嗝": [
"gé"
],
"嗞": [
"zī"
],
"嗟": [
"jiē"
],
"嗡": [
"wēng"
],
"嗣": [
"sì"
],
"嗤": [
"chī"
],
"嗥": [
"háo"
],
"嗦": [
"suō"
],
"嗨": [
"hāi",
"hēi"
],
"嗪": [
"qín"
],
"嗫": [
"niè"
],
"嗬": [
"hē"
],
"嗯": [
"ǹg",
"ńg",
"ňg"
],
"嗲": [
"diǎ"
],
"嗳": [
"ǎi",
"ài",
"āi"
],
"嗵": [
"tōng"
],
"嗷": [
"áo"
],
"嗽": [
"sòu"
],
"嗾": [
"sǒu"
],
"嘀": [
"dí"
],
"嘁": [
"qī"
],
"嘈": [
"cáo"
],
"嘉": [
"jiā"
],
"嘌": [
"piāo"
],
"嘎": [
"gā",
"gá",
"gǎ"
],
"嘏": [
"gǔ"
],
"嘘": [
"xū",
"shī"
],
"嘚": [
"dē",
"dēi"
],
"嘛": [
"ma"
],
"嘞": [
"lei",
"lē"
],
"嘡": [
"tāng"
],
"嘣": [
"bēng"
],
"嘤": [
"yīng"
],
"嘧": [
"mì"
],
"嘟": [
"dū"
],
"嘬": [
"zuō"
],
"嘭": [
"pēng"
],
"嘱": [
"zhǔ"
],
"嘲": [
"cháo",
"zhāo"
],
"嘴": [
"zuǐ"
],
"嘶": [
"sī"
],
"嘹": [
"liáo"
],
"嘻": [
"xī"
],
"嘿": [
"hēi",
"mò"
],
"噀": [
"xùn"
],
"噌": [
"cēng"
],
"噍": [
"jiào"
],
"噎": [
"yē"
],
"噔": [
"dēng"
],
"噗": [
"pū"
],
"噙": [
"qín"
],
"噜": [
"lū"
],
"噢": [
"ō"
],
"噤": [
"jìn"
],
"器": [
"qì"
],
"噩": [
"è"
],
"噪": [
"zào"
],
"噫": [
"yī"
],
"噬": [
"shì"
],
"噱": [
"jué",
"xué"
],
"噶": [
"gá"
],
"噻": [
"sāi"
],
"噼": [
"pī"
],
"嚄": [
"huò",
"ǒ"
],
"嚅": [
"rú"
],
"嚆": [
"hāo"
],
"嚎": [
"háo"
],
"嚏": [
"tì"
],
"嚓": [
"cā",
"chā"
],
"嚚": [
"yín"
],
"嚣": [
"xiāo"
],
"嚯": [
"huò"
],
"嚷": [
"rǎng",
"rāng"
],
"嚼": [
"jiáo",
"jué",
"jiào"
],
"囊": [
"náng",
"nāng"
],
"囔": [
"nāng"
],
"囚": [
"qiú"
],
"四": [
"sì"
],
"囝": [
"jiǎn",
"nān"
],
"回": [
"huí"
],
"囟": [
"xìn"
],
"因": [
"yīn"
],
"囡": [
"nān"
],
"团": [
"tuán"
],
"囤": [
"dùn",
"tún"
],
"囫": [
"hú"
],
"园": [
"yuán"
],
"困": [
"kùn"
],
"囱": [
"cōng"
],
"围": [
"wéi"
],
"囵": [
"lún"
],
"囹": [
"líng"
],
"固": [
"gù"
],
"国": [
"guó"
],
"图": [
"tú"
],
"囿": [
"yòu"
],
"圃": [
"pǔ"
],
"圄": [
"yǔ"
],
"圆": [
"yuán"
],
"圈": [
"quān",
"juàn",
"juān"
],
"圉": [
"yǔ"
],
"圊": [
"qīng"
],
"圜": [
"huán",
"yuán"
],
"土": [
"tǔ"
],
"圣": [
"shèng",
"kū"
],
"在": [
"zài"
],
"圩": [
"wéi",
"xū"
],
"圪": [
"gē",
"yì"
],
"圬": [
"wū"
],
"圭": [
"guī"
],
"圮": [
"pǐ"
],
"圯": [
"yí"
],
"地": [
"dì",
"de"
],
"圳": [
"zhèn"
],
"圹": [
"kuàng"
],
"场": [
"cháng",
"chǎng"
],
"圻": [
"qí",
"yín"
],
"圾": [
"jī"
],
"址": [
"zhǐ"
],
"坂": [
"bǎn"
],
"均": [
"jūn"
],
"坊": [
"fāng",
"fáng"
],
"坌": [
"bèn"
],
"坍": [
"tān"
],
"坎": [
"kǎn"
],
"坏": [
"huài"
],
"坐": [
"zuò"
],
"坑": [
"kēng"
],
"块": [
"kuài"
],
"坚": [
"jiān"
],
"坛": [
"tán"
],
"坜": [
"lì"
],
"坝": [
"bà"
],
"坞": [
"wù"
],
"坟": [
"fén"
],
"坠": [
"zhuì"
],
"坡": [
"pō"
],
"坤": [
"kūn"
],
"坦": [
"tǎn"
],
"坨": [
"tuó"
],
"坩": [
"gān"
],
"坪": [
"píng"
],
"坫": [
"diàn"
],
"坭": [
"ní"
],
"坯": [
"pī"
],
"坳": [
"ào"
],
"坷": [
"kē",
"kě"
],
"坻": [
"dǐ",
"chí"
],
"坼": [
"chè"
],
"垂": [
"chuí"
],
"垃": [
"lā"
],
"垄": [
"lǒng"
],
"垅": [
"lǒng"
],
"垆": [
"lú"
],
"型": [
"xíng"
],
"垌": [
"dòng",
"tóng"
],
"垍": [
"jì"
],
"垒": [
"lěi"
],
"垓": [
"gāi"
],
"垛": [
"duǒ",
"duò"
],
"垞": [
"chá"
],
"垟": [
"yáng"
],
"垠": [
"yín"
],
"垡": [
"fá"
],
"垢": [
"gòu"
],
"垣": [
"yuán"
],
"垤": [
"dié"
],
"垦": [
"kěn"
],
"垧": [
"shǎng"
],
"垩": [
"è"
],
"垫": [
"diàn"
],
"垭": [
"yā"
],
"垮": [
"kuǎ"
],
"垯": [
"dá"
],
"垱": [
"dàng"
],
"垲": [
"kǎi"
],
"城": [
"chéng"
],
"垸": [
"yuàn",
"huán"
],
"埂": [
"gěng"
],
"埃": [
"āi"
],
"埋": [
"mái",
"mán"
],
"埏": [
"yán",
"shān"
],
"埒": [
"liè"
],
"埔": [
"pǔ",
"bù"
],
"埕": [
"chéng"
],
"埘": [
"shí"
],
"埙": [
"xūn"
],
"埚": [
"guō"
],
"埝": [
"niàn"
],
"域": [
"yù"
],
"埠": [
"bù"
],
"埭": [
"dài"
],
"埯": [
"ǎn"
],
"埴": [
"zhí"
],
"埸": [
"yì"
],
"培": [
"péi"
],
"基": [
"jī"
],
"埼": [
"qí"
],
"埽": [
"sào",
"sǎo"
],
"堂": [
"táng"
],
"堆": [
"duī"
],
"堇": [
"jǐn"
],
"堉": [
"yù"
],
"堋": [
"péng",
"bèng"
],
"堌": [
"gù"
],
"堍": [
"tù"
],
"堑": [
"qiàn"
],
"堕": [
"duò",
"huī"
],
"堙": [
"yīn"
],
"堞": [
"dié"
],
"堠": [
"hòu"
],
"堡": [
"bǎo",
"bǔ",
"pù"
],
"堤": [
"dī"
],
"堪": [
"kān"
],
"堰": [
"yàn"
],
"堵": [
"dǔ"
],
"塄": [
"léng"
],
"塆": [
"wān"
],
"塈": [
"jì"
],
"塃": [
"huāng"
],
"塌": [
"tā"
],
"塍": [
"chéng"
],
"塑": [
"sù"
],
"塔": [
"tǎ"
],
"塘": [
"táng"
],
"塞": [
"sāi",
"sài",
"sè"
],
"塥": [
"gé"
],
"填": [
"tián",
"zhèn"
],
"塬": [
"yuán"
],
"塮": [
"xiè"
],
"塾": [
"shú"
],
"墀": [
"chí"
],
"墁": [
"màn"
],
"境": [
"jìng"
],
"墅": [
"shù"
],
"墈": [
"kàn"
],
"墉": [
"yōng"
],
"墒": [
"shāng"
],
"墓": [
"mù"
],
"墙": [
"qiáng"
],
"增": [
"zēng"
],
"墟": [
"xū"
],
"墦": [
"fán"
],
"墩": [
"dūn"
],
"墼": [
"jī"
],
"壁": [
"bì"
],
"壅": [
"yōng"
],
"壑": [
"hè"
],
"壕": [
"háo"
],
"壤": [
"rǎng"
],
"士": [
"shì"
],
"壬": [
"rén"
],
"壮": [
"zhuàng"
],
"声": [
"shēng"
],
"壳": [
"ké",
"qiào"
],
"壶": [
"hú"
],
"壹": [
"yī"
],
"处": [
"chǔ",
"chù"
],
"备": [
"bèi"
],
"复": [
"fù"
],
"夏": [
"xià"
],
"夔": [
"kuí"
],
"夕": [
"xī"
],
"外": [
"wài"
],
"夙": [
"sù"
],
"多": [
"duō"
],
"夜": [
"yè"
],
"够": [
"gòu"
],
"夤": [
"yín"
],
"夥": [
"huǒ"
],
"大": [
"dà",
"dài",
"tài"
],
"天": [
"tiān"
],
"太": [
"tài"
],
"夫": [
"fū",
"fú"
],
"夬": [
"guài",
"jué"
],
"夭": [
"yāo"
],
"央": [
"yāng"
],
"夯": [
"hāng",
"bèn"
],
"失": [
"shī"
],
"头": [
"tóu"
],
"夷": [
"yí"
],
"夸": [
"kuā",
"kuà"
],
"夹": [
"jiā",
"jiá",
"gā"
],
"夺": [
"duó"
],
"夼": [
"kuǎng"
],
"奁": [
"lián"
],
"奂": [
"huàn"
],
"奄": [
"yǎn",
"yān"
],
"奇": [
"qí",
"jī"
],
"奈": [
"nài"
],
"奉": [
"fèng"
],
"奋": [
"fèn"
],
"奎": [
"kuí"
],
"奏": [
"zòu"
],
"契": [
"qì",
"qiè",
"xiè"
],
"奔": [
"bēn",
"bèn"
],
"奕": [
"yì"
],
"奖": [
"jiǎng"
],
"套": [
"tào"
],
"奘": [
"zàng",
"zhuǎng"
],
"奚": [
"xī"
],
"奠": [
"diàn"
],
"奢": [
"shē"
],
"奥": [
"ào",
"yù"
],
"奭": [
"shì"
],
"女": [
"nǚ",
"rǔ"
],
"奴": [
"nú"
],
"奶": [
"nǎi"
],
"奸": [
"jiān"
],
"她": [
"tā",
"jiě"
],
"好": [
"hǎo",
"hào"
],
"妁": [
"shuò"
],
"如": [
"rú"
],
"妃": [
"fēi",
"pèi"
],
"妄": [
"wàng"
],
"妆": [
"zhuāng"
],
"妇": [
"fù"
],
"妈": [
"mā"
],
"妊": [
"rèn"
],
"妒": [
"dù"
],
"妓": [
"jì"
],
"妖": [
"yāo"
],
"妗": [
"jìn"
],
"妙": [
"miào"
],
"妞": [
"niū"
],
"妣": [
"bǐ"
],
"妤": [
"yú"
],
"妥": [
"tuǒ"
],
"妨": [
"fáng"
],
"妩": [
"wǔ"
],
"妪": [
"yù"
],
"妫": [
"guī"
],
"妮": [
"nī"
],
"妯": [
"zhóu"
],
"妲": [
"dá"
],
"妹": [
"mèi"
],
"妻": [
"qī",
"qì"
],
"妾": [
"qiè"
],
"姆": [
"mǔ"
],
"姊": [
"zǐ"
],
"始": [
"shǐ"
],
"姐": [
"jiě"
],
"姑": [
"gū"
],
"姒": [
"sì"
],
"姓": [
"xìng"
],
"委": [
"wěi",
"wēi"
],
"姗": [
"shān",
"shàn"
],
"妍": [
"yán"
],
"姘": [
"pīn"
],
"姚": [
"yáo"
],
"姜": [
"jiāng"
],
"姝": [
"shū"
],
"姞": [
"jí"
],
"姣": [
"jiāo",
"xiáo"
],
"姥": [
"mǔ",
"lǎo"
],
"姨": [
"yí"
],
"姹": [
"chà"
],
"姻": [
"yīn"
],
"姽": [
"guǐ"
],
"姿": [
"zī"
],
"威": [
"wēi"
],
"娃": [
"wá"
],
"娅": [
"yà"
],
"娆": [
"ráo",
"rǎo"
],
"娇": [
"jiāo"
],
"娈": [
"luán"
],
"姬": [
"jī"
],
"娉": [
"pīng"
],
"娌": [
"lǐ"
],
"娑": [
"suō"
],
"娓": [
"wěi"
],
"娘": [
"niáng"
],
"娜": [
"nà",
"nuó"
],
"娟": [
"juān"
],
"娠": [
"shēn"
],
"娣": [
"dì"
],
"娥": [
"é"
],
"娩": [
"miǎn"
],
"娱": [
"yú"
],
"娲": [
"wā"
],
"娴": [
"xián"
],
"娶": [
"qǔ"
],
"娼": [
"chāng"
],
"婀": [
"ē"
],
"婆": [
"pó"
],
"婉": [
"wǎn"
],
"婊": [
"biǎo"
],
"婕": [
"jié"
],
"婚": [
"hūn"
],
"婞": [
"xìng"
],
"婢": [
"bì"
],
"婧": [
"jìng"
],
"婪": [
"lán"
],
"婳": [
"huà"
],
"婴": [
"yīng"
],
"婵": [
"chán"
],
"婶": [
"shěn"
],
"婷": [
"tíng"
],
"婺": [
"wù"
],
"婿": [
"xù"
],
"媒": [
"méi"
],
"媚": [
"mèi"
],
"媛": [
"yuàn",
"yuán"
],
"媪": [
"ǎo"
],
"媲": [
"pì"
],
"媳": [
"xí"
],
"媵": [
"yìng"
],
"媸": [
"chī"
],
"媾": [
"gòu"
],
"嫁": [
"jià"
],
"嫂": [
"sǎo"
],
"嫉": [
"jí"
],
"嫌": [
"xián"
],
"嫒": [
"ài"
],
"嫔": [
"pín"
],
"嫖": [
"piáo",
"piāo"
],
"嫘": [
"léi"
],
"嫚": [
"màn"
],
"嫜": [
"zhāng"
],
"嫠": [
"lí"
],
"嫡": [
"dí"
],
"嫣": [
"yān"
],
"嫦": [
"cháng"
],
"嫩": [
"nèn"
],
"嫪": [
"lào"
],
"嫫": [
"mó"
],
"嫱": [
"qiáng"
],
"嬉": [
"xī"
],
"嬖": [
"bì"
],
"嬗": [
"shàn"
],
"嬴": [
"yíng"
],
"嬷": [
"mó"
],
"孀": [
"shuāng"
],
"子": [
"zǐ"
],
"孑": [
"jié"
],
"孓": [
"jué"
],
"孔": [
"kǒng"
],
"孕": [
"yùn"
],
"字": [
"zì"
],
"存": [
"cún"
],
"孙": [
"sūn",
"xùn"
],
"孚": [
"fú"
],
"孛": [
"bèi"
],
"孜": [
"zī"
],
"孝": [
"xiào"
],
"孟": [
"mèng"
],
"孢": [
"bāo"
],
"季": [
"jì"
],
"孤": [
"gū"
],
"孥": [
"nú"
],
"学": [
"xué"
],
"孩": [
"hái"
],
"孪": [
"luán"
],
"孬": [
"nāo"
],
"孰": [
"shú"
],
"孱": [
"chán",
"càn"
],
"孳": [
"zī"
],
"孵": [
"fū"
],
"孺": [
"rú"
],
"孽": [
"niè"
],
"宁": [
"níng",
"nìng",
"zhù"
],
"它": [
"tā"
],
"宄": [
"guǐ"
],
"宅": [
"zhái"
],
"宇": [
"yǔ"
],
"守": [
"shǒu"
],
"安": [
"ān"
],
"宋": [
"sòng"
],
"完": [
"wán"
],
"宏": [
"hóng"
],
"宓": [
"mì",
"fú"
],
"宕": [
"dàng"
],
"宗": [
"zōng"
],
"官": [
"guān"
],
"宙": [
"zhòu"
],
"定": [
"dìng"
],
"宛": [
"wǎn",
"yuān"
],
"宜": [
"yí"
],
"宝": [
"bǎo"
],
"实": [
"shí"
],
"宠": [
"chǒng"
],
"审": [
"shěn"
],
"客": [
"kè"
],
"宣": [
"xuān"
],
"室": [
"shì"
],
"宥": [
"yòu"
],
"宦": [
"huàn"
],
"宪": [
"xiàn"
],
"宫": [
"gōng"
],
"宬": [
"chéng"
],
"宰": [
"zǎi"
],
"害": [
"hài"
],
"宴": [
"yàn"
],
"宵": [
"xiāo"
],
"家": [
"jiā",
"jia",
"jie"
],
"宸": [
"chén"
],
"容": [
"róng"
],
"宽": [
"kuān"
],
"宾": [
"bīn"
],
"宿": [
"sù",
"xiǔ",
"xiù"
],
"寂": [
"jì"
],
"寄": [
"jì"
],
"寅": [
"yín"
],
"密": [
"mì"
],
"寇": [
"kòu"
],
"富": [
"fù"
],
"寐": [
"mèi"
],
"寒": [
"hán"
],
"寓": [
"yù"
],
"寝": [
"qǐn"
],
"寞": [
"mò"
],
"察": [
"chá"
],
"寡": [
"guǎ"
],
"寤": [
"wù"
],
"寥": [
"liáo"
],
"寨": [
"zhài"
],
"寮": [
"liáo"
],
"寰": [
"huán"
],
"寸": [
"cùn"
],
"对": [
"duì"
],
"寺": [
"sì"
],
"寻": [
"xún"
],
"导": [
"dǎo"
],
"寿": [
"shòu"
],
"封": [
"fēng"
],
"将": [
"jiāng",
"jiàng"
],
"射": [
"shè",
"yè",
"yì"
],
"尉": [
"wèi",
"yù"
],
"尊": [
"zūn"
],
"小": [
"xiǎo"
],
"少": [
"shǎo",
"shào"
],
"尔": [
"ěr"
],
"尕": [
"gǎ"
],
"尖": [
"jiān"
],
"尘": [
"chén"
],
"尚": [
"shàng"
],
"尜": [
"gá"
],
"尝": [
"cháng"
],
"尤": [
"yóu"
],
"尥": [
"liào"
],
"尧": [
"yáo"
],
"尬": [
"gà"
],
"就": [
"jiù"
],
"尴": [
"gān"
],
"尸": [
"shī"
],
"尺": [
"chǐ",
"chě"
],
"尻": [
"kāo"
],
"尼": [
"ní"
],
"尽": [
"jìn",
"jǐn"
],
"尾": [
"wěi",
"yǐ"
],
"尿": [
"niào",
"suī"
],
"局": [
"jú"
],
"屁": [
"pì"
],
"层": [
"céng"
],
"屃": [
"xì"
],
"居": [
"jū"
],
"屈": [
"qū"
],
"屉": [
"tì"
],
"届": [
"jiè"
],
"屋": [
"wū"
],
"屎": [
"shǐ"
],
"屏": [
"píng",
"bǐng"
],
"屐": [
"jī"
],
"屑": [
"xiè"
],
"展": [
"zhǎn"
],
"屙": [
"ē"
],
"属": [
"shǔ",
"zhǔ"
],
"屠": [
"tú"
],
"屡": [
"lǚ"
],
"屣": [
"xǐ"
],
"履": [
"lǚ"
],
"屦": [
"jù"
],
"屯": [
"tún",
"zhūn"
],
"山": [
"shān"
],
"屹": [
"yì"
],
"屺": [
"qǐ"
],
"屿": [
"yǔ"
],
"岁": [
"suì"
],
"岂": [
"qǐ",
"kǎi"
],
"岈": [
"yá"
],
"岌": [
"jí"
],
"岐": [
"qí"
],
"岑": [
"cén"
],
"岔": [
"chà"
],
"岖": [
"qū"
],
"岗": [
"gǎng"
],
"岘": [
"xiàn"
],
"岙": [
"ào"
],
"岚": [
"lán"
],
"岛": [
"dǎo"
],
"岢": [
"kě"
],
"岣": [
"gǒu"
],
"岩": [
"yán"
],
"岫": [
"xiù"
],
"岬": [
"jiǎ"
],
"岭": [
"lǐng",
"líng"
],
"岱": [
"dài"
],
"岳": [
"yuè"
],
"岵": [
"hù"
],
"岷": [
"mín"
],
"岸": [
"àn"
],
"岿": [
"kuī"
],
"峁": [
"mǎo"
],
"峂": [
"tóng"
],
"峄": [
"yì"
],
"岍": [
"qiān"
],
"峋": [
"xún"
],
"峒": [
"tóng",
"dòng"
],
"峙": [
"zhì",
"shì"
],
"峡": [
"xiá"
],
"峣": [
"yáo"
],
"峤": [
"jiào",
"qiáo"
],
"峥": [
"zhēng"
],
"峦": [
"luán"
],
"峧": [
"jiāo"
],
"峨": [
"é"
],
"峪": [
"yù"
],
"峭": [
"qiào"
],
"峰": [
"fēng"
],
"峻": [
"jùn"
],
"崂": [
"láo"
],
"崃": [
"lái"
],
"崆": [
"kōng"
],
"崇": [
"chóng"
],
"崎": [
"qí"
],
"崔": [
"cuī"
],
"崖": [
"yá"
],
"崛": [
"jué"
],
"崞": [
"guō"
],
"崟": [
"yín"
],
"崤": [
"xiáo"
],
"崦": [
"yān"
],
"崩": [
"bēng"
],
"崭": [
"zhǎn",
"chán"
],
"崮": [
"gù"
],
"崴": [
"wǎi",
"wēi"
],
"崽": [
"zǎi"
],
"嵇": [
"jī"
],
"嵋": [
"méi"
],
"嵌": [
"qiàn",
"kàn"
],
"嵎": [
"yú"
],
"嵖": [
"chá"
],
"嵘": [
"róng"
],
"嵚": [
"qīn"
],
"嵛": [
"yú"
],
"嵝": [
"lǒu"
],
"嵊": [
"shèng"
],
"嵩": [
"sōng"
],
"嵫": [
"zī"
],
"嵬": [
"wéi"
],
"嵯": [
"cuó"
],
"嵴": [
"jǐ"
],
"嶂": [
"zhàng"
],
"嶓": [
"bō"
],
"嶙": [
"lín"
],
"嶝": [
"dèng"
],
"嶷": [
"yí"
],
"巅": [
"diān"
],
"巉": [
"chán"
],
"巍": [
"wēi"
],
"川": [
"chuān"
],
"州": [
"zhōu"
],
"巢": [
"cháo"
],
"工": [
"gōng"
],
"左": [
"zuǒ"
],
"巧": [
"qiǎo"
],
"巨": [
"jù"
],
"巩": [
"gǒng"
],
"巫": [
"wū"
],
"差": [
"chà",
"chā",
"chāi",
"cī"
],
"巯": [
"qiú"
],
"己": [
"jǐ"
],
"已": [
"yǐ"
],
"巳": [
"sì"
],
"巴": [
"bā"
],
"巷": [
"xiàng",
"hàng"
],
"巽": [
"xùn"
],
"巾": [
"jīn"
],
"币": [
"bì"
],
"市": [
"shì"
],
"布": [
"bù"
],
"帅": [
"shuài"
],
"帆": [
"fān"
],
"师": [
"shī"
],
"希": [
"xī"
],
"帏": [
"wéi"
],
"帐": [
"zhàng"
],
"帑": [
"tǎng",
"nú"
],
"帔": [
"pèi"
],
"帕": [
"pà"
],
"帖": [
"tiè",
"tiě",
"tiē"
],
"帘": [
"lián"
],
"帙": [
"zhì"
],
"帚": [
"zhǒu"
],
"帛": [
"bó"
],
"帜": [
"zhì"
],
"帝": [
"dì"
],
"帡": [
"píng"
],
"带": [
"dài"
],
"帧": [
"zhēn"
],
"席": [
"xí"
],
"帮": [
"bāng"
],
"帱": [
"chóu",
"dào"
],
"帷": [
"wéi"
],
"常": [
"cháng"
],
"帻": [
"zé"
],
"帼": [
"guó"
],
"帽": [
"mào"
],
"幂": [
"mì"
],
"幄": [
"wò"
],
"幅": [
"fú"
],
"幌": [
"huǎng"
],
"幔": [
"màn"
],
"幕": [
"mù"
],
"幛": [
"zhàng"
],
"幞": [
"fú"
],
"幡": [
"fān"
],
"幢": [
"chuáng",
"zhuàng"
],
"幪": [
"méng"
],
"干": [
"gān",
"gàn"
],
"平": [
"píng"
],
"年": [
"nián"
],
"并": [
"bìng",
"bīng"
],
"幸": [
"xìng"
],
"乡": [
"xiāng"
],
"幺": [
"yāo"
],
"幻": [
"huàn"
],
"幼": [
"yòu"
],
"幽": [
"yōu"
],
"广": [
"guǎng",
"ān"
],
"庀": [
"pǐ"
],
"庄": [
"zhuāng"
],
"庆": [
"qìng"
],
"庇": [
"bì"
],
"床": [
"chuáng"
],
"庋": [
"guǐ"
],
"序": [
"xù"
],
"庐": [
"lú"
],
"庑": [
"wǔ"
],
"库": [
"kù"
],
"应": [
"yīng",
"yìng"
],
"底": [
"dǐ",
"de"
],
"庖": [
"páo"
],
"店": [
"diàn"
],
"庙": [
"miào"
],
"庚": [
"gēng"
],
"府": [
"fǔ"
],
"庞": [
"páng"
],
"废": [
"fèi"
],
"庠": [
"xiáng"
],
"庤": [
"zhì"
],
"庥": [
"xiū"
],
"度": [
"dù",
"duó"
],
"座": [
"zuò"
],
"庭": [
"tíng"
],
"庳": [
"bēi"
],
"庵": [
"ān"
],
"庶": [
"shù"
],
"康": [
"kāng"
],
"庸": [
"yōng"
],
"庹": [
"tuǒ"
],
"庼": [
"qǐng"
],
"庾": [
"yǔ"
],
"廊": [
"láng"
],
"廉": [
"lián"
],
"廋": [
"sōu"
],
"廒": [
"áo"
],
"廓": [
"kuò"
],
"廖": [
"liào"
],
"廙": [
"yì"
],
"廛": [
"chán"
],
"廨": [
"xiè"
],
"廪": [
"lǐn"
],
"延": [
"yán"
],
"廷": [
"tíng"
],
"建": [
"jiàn"
],
"廿": [
"niàn"
],
"开": [
"kāi"
],
"弁": [
"biàn"
],
"异": [
"yì"
],
"弃": [
"qì"
],
"弄": [
"nòng",
"lòng"
],
"弇": [
"yǎn"
],
"弈": [
"yì"
],
"弊": [
"bì"
],
"弋": [
"yì"
],
"式": [
"shì"
],
"弑": [
"shì"
],
"弓": [
"gōng"
],
"引": [
"yǐn"
],
"弗": [
"fú"
],
"弘": [
"hóng"
],
"弛": [
"chí"
],
"弟": [
"dì",
"tì",
"tuí"
],
"张": [
"zhāng"
],
"弥": [
"mí",
"mǐ"
],
"弦": [
"xián"
],
"弧": [
"hú"
],
"弩": [
"nǔ"
],
"弭": [
"mǐ"
],
"弯": [
"wān"
],
"弱": [
"ruò"
],
"弹": [
"dàn",
"tán"
],
"强": [
"qiáng",
"qiǎng",
"jiàng"
],
"弼": [
"bì"
],
"彀": [
"gòu"
],
"归": [
"guī"
],
"当": [
"dāng",
"dàng",
"dang"
],
"录": [
"lù"
],
"彖": [
"tuàn"
],
"彗": [
"huì"
],
"彘": [
"zhì"
],
"彝": [
"yí"
],
"形": [
"xíng"
],
"彤": [
"tóng"
],
"彦": [
"yàn"
],
"彧": [
"yù"
],
"彩": [
"cǎi"
],
"彬": [
"bīn"
],
"彭": [
"péng",
"bāng"
],
"彰": [
"zhāng"
],
"影": [
"yǐng"
],
"彳": [
"chì"
],
"彷": [
"páng",
"fǎng"
],
"役": [
"yì"
],
"彻": [
"chè"
],
"彼": [
"bǐ"
],
"往": [
"wǎng"
],
"征": [
"zhēng"
],
"徂": [
"cú"
],
"径": [
"jìng"
],
"待": [
"dài",
"dāi"
],
"徇": [
"xùn"
],
"很": [
"hěn"
],
"徉": [
"yáng"
],
"徊": [
"huái",
"huí"
],
"律": [
"lǜ"
],
"徐": [
"xú"
],
"徒": [
"tú"
],
"徕": [
"lài",
"lái"
],
"得": [
"dé",
"děi",
"de"
],
"徘": [
"pái"
],
"徙": [
"xǐ"
],
"徜": [
"cháng"
],
"御": [
"yù"
],
"徨": [
"huáng"
],
"循": [
"xún"
],
"徭": [
"yáo"
],
"微": [
"wēi"
],
"徵": [
"zhēng",
"zhǐ",
"chéng"
],
"德": [
"dé"
],
"徼": [
"jiǎo",
"jiào"
],
"徽": [
"huī"
],
"心": [
"xīn"
],
"必": [
"bì"
],
"忆": [
"yì"
],
"忉": [
"dāo"
],
"忌": [
"jì"
],
"忍": [
"rěn"
],
"忏": [
"chàn"
],
"忐": [
"tǎn"
],
"忑": [
"tè"
],
"忒": [
"tè",
"tuī"
],
"忖": [
"cǔn"
],
"志": [
"zhì"
],
"忘": [
"wàng"
],
"忙": [
"máng"
],
"忝": [
"tiǎn"
],
"忠": [
"zhōng"
],
"忡": [
"chōng"
],
"忤": [
"wǔ"
],
"忧": [
"yōu"
],
"忪": [
"sōng",
"zhōng"
],
"快": [
"kuài"
],
"忭": [
"biàn"
],
"忮": [
"zhì"
],
"忱": [
"chén"
],
"念": [
"niàn"
],
"忸": [
"niǔ"
],
"忻": [
"xīn"
],
"忽": [
"hū"
],
"忾": [
"kài",
"xì"
],
"忿": [
"fèn"
],
"怀": [
"huái"
],
"态": [
"tài"
],
"怂": [
"sǒng"
],
"怃": [
"wǔ"
],
"怄": [
"òu"
],
"怅": [
"chàng"
],
"怆": [
"chuàng"
],
"怊": [
"chāo"
],
"怍": [
"zuò",
"zhà"
],
"怎": [
"zěn"
],
"怏": [
"yàng"
],
"怒": [
"nù"
],
"怔": [
"zhēng"
],
"怕": [
"pà"
],
"怖": [
"bù"
],
"怙": [
"hù"
],
"怛": [
"dá"
],
"怜": [
"lián"
],
"思": [
"sī",
"sāi"
],
"怠": [
"dài"
],
"怡": [
"yí"
],
"急": [
"jí"
],
"怦": [
"pēng"
],
"性": [
"xìng"
],
"怨": [
"yuàn"
],
"怩": [
"ní"
],
"怪": [
"guài"
],
"怫": [
"fú"
],
"怯": [
"qiè"
],
"怵": [
"chù"
],
"总": [
"zǒng"
],
"怼": [
"duì"
],
"怿": [
"yì"
],
"恁": [
"nèn",
"nín"
],
"恂": [
"xún"
],
"恃": [
"shì"
],
"恋": [
"liàn"
],
"恍": [
"huǎng"
],
"恐": [
"kǒng"
],
"恒": [
"héng"
],
"恕": [
"shù"
],
"恙": [
"yàng"
],
"恚": [
"huì"
],
"恝": [
"jiá"
],
"恢": [
"huī"
],
"恣": [
"zì"
],
"恤": [
"xù"
],
"恧": [
"nǜ"
],
"恨": [
"hèn"
],
"恩": [
"ēn"
],
"恪": [
"kè"
],
"恫": [
"dòng"
],
"恬": [
"tián"
],
"恭": [
"gōng"
],
"息": [
"xī"
],
"恰": [
"qià"
],
"恳": [
"kěn"
],
"恶": [
"è",
"wù",
"ě",
"wū"
],
"恸": [
"tòng"
],
"恹": [
"yān"
],
"恺": [
"kǎi"
],
"恻": [
"cè"
],
"恼": [
"nǎo"
],
"恽": [
"yùn"
],
"恿": [
"yǒng"
],
"悃": [
"kǔn"
],
"悄": [
"qiǎo",
"qiāo"
],
"悉": [
"xī"
],
"悌": [
"tì"
],
"悍": [
"hàn"
],
"悒": [
"yì"
],
"悔": [
"huǐ"
],
"悖": [
"bèi"
],
"悚": [
"sǒng"
],
"悛": [
"quān"
],
"悝": [
"kuī",
"lǐ"
],
"悟": [
"wù"
],
"悠": [
"yōu"
],
"悢": [
"liàng"
],
"患": [
"huàn"
],
"悦": [
"yuè"
],
"您": [
"nín"
],
"悫": [
"què"
],
"悬": [
"xuán"
],
"悭": [
"qiān"
],
"悯": [
"mǐn"
],
"悱": [
"fěi"
],
"悲": [
"bēi"
],
"悴": [
"cuì"
],
"悸": [
"jì"
],
"悻": [
"xìng"
],
"悼": [
"dào"
],
"情": [
"qíng"
],
"惆": [
"chóu"
],
"惇": [
"dūn"
],
"惊": [
"jīng"
],
"惋": [
"wǎn"
],
"惑": [
"huò"
],
"惕": [
"tì"
],
"惘": [
"wǎng"
],
"惚": [
"hū"
],
"惜": [
"xī"
],
"惝": [
"chǎng"
],
"惟": [
"wéi"
],
"惠": [
"huì"
],
"惦": [
"diàn"
],
"惧": [
"jù"
],
"惨": [
"cǎn"
],
"惩": [
"chéng"
],
"惫": [
"bèi"
],
"惬": [
"qiè"
],
"惭": [
"cán"
],
"惮": [
"dàn",
"dá"
],
"惯": [
"guàn"
],
"惰": [
"duò"
],
"想": [
"xiǎng"
],
"惴": [
"zhuì"
],
"惶": [
"huáng"
],
"惹": [
"rě"
],
"惺": [
"xīng"
],
"愀": [
"qiǎo"
],
"愁": [
"chóu"
],
"愆": [
"qiān"
],
"愈": [
"yù"
],
"愉": [
"yú",
"tōu"
],
"愎": [
"bì"
],
"意": [
"yì"
],
"愔": [
"yīn"
],
"愕": [
"è"
],
"愚": [
"yú"
],
"感": [
"gǎn",
"hàn"
],
"愠": [
"yùn"
],
"愣": [
"lèng"
],
"愤": [
"fèn"
],
"愦": [
"kuì"
],
"慨": [
"kǎi"
],
"愧": [
"kuì"
],
"愫": [
"sù"
],
"愿": [
"yuàn"
],
"慈": [
"cí"
],
"慊": [
"qiàn",
"qiè"
],
"慌": [
"huāng"
],
"慎": [
"shèn"
],
"慑": [
"shè"
],
"慕": [
"mù"
],
"慝": [
"tè"
],
"慢": [
"màn"
],
"慥": [
"zào"
],
"慧": [
"huì"
],
"慰": [
"wèi"
],
"慵": [
"yōng"
],
"慷": [
"kāng"
],
"慭": [
"yìn"
],
"憋": [
"biē"
],
"憎": [
"zēng"
],
"憔": [
"qiáo"
],
"憝": [
"duì"
],
"憧": [
"chōng"
],
"憨": [
"hān"
],
"憩": [
"qì"
],
"憬": [
"jǐng"
],
"憷": [
"chù"
],
"憾": [
"hàn"
],
"懂": [
"dǒng"
],
"懈": [
"xiè"
],
"懊": [
"ào"
],
"懋": [
"mào"
],
"懑": [
"mèn"
],
"懒": [
"lǎn"
],
"懦": [
"nuò"
],
"懵": [
"měng"
],
"懿": [
"yì"
],
"戆": [
"gàng",
"zhuàng"
],
"戈": [
"gē"
],
"戊": [
"wù"
],
"戋": [
"jiān"
],
"戌": [
"xū"
],
"戍": [
"shù"
],
"戎": [
"róng"
],
"戏": [
"xì",
"hū"
],
"成": [
"chéng"
],
"我": [
"wǒ"
],
"戒": [
"jiè"
],
"戕": [
"qiāng"
],
"或": [
"huò"
],
"戗": [
"qiāng",
"qiàng"
],
"战": [
"zhàn"
],
"戚": [
"qī"
],
"戛": [
"jiá"
],
"戟": [
"jǐ"
],
"戡": [
"kān"
],
"戢": [
"jí"
],
"戥": [
"děng"
],
"截": [
"jié"
],
"戬": [
"jiǎn"
],
"戮": [
"lù"
],
"戴": [
"dài"
],
"戳": [
"chuō"
],
"户": [
"hù"
],
"戽": [
"hù"
],
"戾": [
"lì"
],
"房": [
"fáng"
],
"所": [
"suǒ"
],
"扁": [
"biǎn",
"piān"
],
"扃": [
"jiōng"
],
"扅": [
"yí"
],
"扇": [
"shàn",
"shān"
],
"扈": [
"hù"
],
"扉": [
"fēi"
],
"扊": [
"yǎn"
],
"手": [
"shǒu"
],
"才": [
"cái"
],
"扎": [
"zā",
"zhā",
"zhá"
],
"扑": [
"pū"
],
"扒": [
"bā",
"pá"
],
"打": [
"dǎ",
"dá"
],
"扔": [
"rēng"
],
"托": [
"tuō"
],
"扛": [
"káng",
"gāng"
],
"扣": [
"kòu"
],
"扦": [
"qiān"
],
"执": [
"zhí"
],
"扩": [
"kuò"
],
"扪": [
"mén"
],
"扫": [
"sǎo",
"sào"
],
"扬": [
"yáng"
],
"扭": [
"niǔ"
],
"扮": [
"bàn"
],
"扯": [
"chě"
],
"扰": [
"rǎo"
],
"扳": [
"bān"
],
"扶": [
"fú"
],
"批": [
"pī"
],
"扺": [
"zhǐ"
],
"扼": [
"è"
],
"找": [
"zhǎo"
],
"承": [
"chéng"
],
"技": [
"jì"
],
"抃": [
"biàn"
],
"抄": [
"chāo"
],
"抉": [
"jué"
],
"把": [
"bǎ",
"bà"
],
"抑": [
"yì"
],
"抒": [
"shū"
],
"抓": [
"zhuā"
],
"抔": [
"póu"
],
"投": [
"tóu"
],
"抖": [
"dǒu"
],
"抗": [
"kàng"
],
"折": [
"zhē",
"zhé",
"shé"
],
"抚": [
"fǔ"
],
"抛": [
"pāo"
],
"抟": [
"tuán"
],
"抠": [
"kōu"
],
"抡": [
"lūn",
"lún"
],
"抢": [
"qiǎng",
"qiāng",
"chēng"
],
"护": [
"hù"
],
"报": [
"bào"
],
"抨": [
"pēng"
],
"披": [
"pī"
],
"抬": [
"tái"
],
"抱": [
"bào"
],
"抵": [
"dǐ"
],
"抹": [
"mǒ",
"mò",
"mā"
],
"抻": [
"chēn"
],
"押": [
"yā"
],
"抽": [
"chōu"
],
"抿": [
"mǐn"
],
"拂": [
"fú",
"bì"
],
"拃": [
"zhǎ"
],
"拄": [
"zhǔ"
],
"担": [
"dān",
"dàn",
"dǎn"
],
"拆": [
"chāi",
"cā"
],
"拇": [
"mǔ"
],
"拈": [
"niān"
],
"拉": [
"lā",
"lá"
],
"拊": [
"fǔ"
],
"拌": [
"bàn",
"pàn"
],
"拍": [
"pāi"
],
"拎": [
"līn"
],
"拐": [
"guǎi"
],
"拒": [
"jù"
],
"拓": [
"tuò",
"tà",
"zhí"
],
"拔": [
"bá"
],
"拖": [
"tuō"
],
"拗": [
"ǎo",
"ào",
"niù"
],
"拘": [
"jū",
"gōu"
],
"拙": [
"zhuō"
],
"拚": [
"pàn",
"pīn",
"fān"
],
"招": [
"zhāo"
],
"拜": [
"bài"
],
"拟": [
"nǐ"
],
"拢": [
"lǒng"
],
"拣": [
"jiǎn"
],
"拤": [
"qiǎ"
],
"拥": [
"yōng"
],
"拦": [
"lán"
],
"拧": [
"níng",
"nǐng",
"nìng"
],
"拨": [
"bō"
],
"择": [
"zé",
"zhái"
],
"括": [
"kuò",
"guā"
],
"拭": [
"shì"
],
"拮": [
"jié",
"jiá"
],
"拯": [
"zhěng"
],
"拱": [
"gǒng"
],
"拳": [
"quán"
],
"拴": [
"shuān"
],
"拶": [
"zā",
"zǎn"
],
"拷": [
"kǎo"
],
"拼": [
"pīn"
],
"拽": [
"zhuài",
"zhuāi",
"yè"
],
"拾": [
"shí",
"shè"
],
"拿": [
"ná"
],
"持": [
"chí"
],
"挂": [
"guà"
],
"指": [
"zhǐ"
],
"挈": [
"qiè"
],
"按": [
"àn"
],
"挎": [
"kuà",
"kū"
],
"挑": [
"tiāo",
"tiǎo"
],
"挖": [
"wā"
],
"挚": [
"zhì"
],
"挛": [
"luán"
],
"挝": [
"zhuā",
"wō"
],
"挞": [
"tà"
],
"挟": [
"xié",
"jiā"
],
"挠": [
"náo"
],
"挡": [
"dǎng",
"dàng"
],
"挢": [
"jiǎo"
],
"挣": [
"zhēng",
"zhèng"
],
"挤": [
"jǐ"
],
"挥": [
"huī"
],
"挦": [
"xián"
],
"挨": [
"āi",
"ái"
],
"挪": [
"nuó"
],
"挫": [
"cuò"
],
"振": [
"zhèn"
],
"挲": [
"suō",
"sa",
"shā"
],
"挹": [
"yì"
],
"挺": [
"tǐng"
],
"挽": [
"wǎn"
],
"捂": [
"wǔ"
],
"捃": [
"jùn"
],
"捅": [
"tǒng"
],
"捆": [
"kǔn"
],
"捉": [
"zhuō"
],
"捋": [
"luō",
"lǚ"
],
"捌": [
"bā"
],
"捍": [
"hàn"
],
"捎": [
"shāo",
"shào"
],
"捏": [
"niē"
],
"捐": [
"juān"
],
"捕": [
"bǔ"
],
"捞": [
"lāo"
],
"损": [
"sǔn"
],
"捡": [
"jiǎn"
],
"换": [
"huàn"
],
"捣": [
"dǎo"
],
"捧": [
"pěng"
],
"捩": [
"liè"
],
"捭": [
"bǎi"
],
"据": [
"jù",
"jū"
],
"捯": [
"dáo"
],
"捶": [
"chuí"
],
"捷": [
"jié"
],
"捺": [
"nà"
],
"捻": [
"niǎn",
"niē"
],
"掀": [
"xiān"
],
"掂": [
"diān"
],
"掇": [
"duō"
],
"授": [
"shòu"
],
"掉": [
"diào"
],
"掊": [
"pǒu",
"póu"
],
"掌": [
"zhǎng"
],
"掎": [
"jǐ"
],
"掏": [
"tāo"
],
"掐": [
"qiā"
],
"排": [
"pái",
"pǎi"
],
"掖": [
"yè",
"yē"
],
"掘": [
"jué"
],
"掠": [
"lüè"
],
"探": [
"tàn"
],
"掣": [
"chè"
],
"接": [
"jiē"
],
"控": [
"kòng"
],
"推": [
"tuī"
],
"掩": [
"yǎn"
],
"措": [
"cuò"
],
"掬": [
"jū"
],
"掭": [
"tiàn"
],
"掮": [
"qián"
],
"掰": [
"bāi"
],
"掳": [
"lǔ"
],
"掴": [
"guāi"
],
"掷": [
"zhì"
],
"掸": [
"dǎn",
"shàn"
],
"掺": [
"chān",
"xiān",
"càn",
"shǎn"
],
"掼": [
"guàn"
],
"掾": [
"yuàn"
],
"揄": [
"yú"
],
"揆": [
"kuí"
],
"揉": [
"róu"
],
"揍": [
"zòu"
],
"揎": [
"xuān"
],
"描": [
"miáo"
],
"提": [
"tí",
"dī",
"dǐ"
],
"插": [
"chā"
],
"揖": [
"yī"
],
"揞": [
"ǎn"
],
"揠": [
"yà"
],
"握": [
"wò"
],
"揣": [
"chuǎi",
"chuài",
"chuāi",
"tuán",
"zhuī"
],
"揩": [
"kāi"
],
"揪": [
"jiū"
],
"揭": [
"jiē",
"qì"
],
"揳": [
"xiē"
],
"援": [
"yuán"
],
"揶": [
"yé"
],
"揸": [
"zhā"
],
"揽": [
"lǎn"
],
"揾": [
"wèn"
],
"揿": [
"qìn"
],
"搀": [
"chān"
],
"搁": [
"gē",
"gé"
],
"搂": [
"lǒu",
"lōu"
],
"搅": [
"jiǎo"
],
"摒": [
"bìng"
],
"搋": [
"chuāi"
],
"搌": [
"zhǎn"
],
"搏": [
"bó"
],
"搐": [
"chù"
],
"搒": [
"bàng",
"péng"
],
"搓": [
"cuō"
],
"搔": [
"sāo"
],
"搛": [
"jiān"
],
"搜": [
"sōu"
],
"搞": [
"gǎo"
],
"搠": [
"shuò"
],
"搡": [
"sǎng"
],
"搦": [
"nuò"
],
"搪": [
"táng"
],
"搬": [
"bān"
],
"搭": [
"dā"
],
"搴": [
"qiān"
],
"携": [
"xié"
],
"搽": [
"chá"
],
"摁": [
"èn"
],
"摄": [
"shè",
"niè"
],
"摅": [
"shū"
],
"摆": [
"bǎi"
],
"摇": [
"yáo"
],
"摈": [
"bìn"
],
"摊": [
"tān"
],
"摔": [
"shuāi"
],
"摘": [
"zhāi"
],
"摞": [
"luò"
],
"摧": [
"cuī"
],
"摩": [
"mó",
"mā"
],
"摭": [
"zhí"
],
"摸": [
"mō"
],
"摹": [
"mó"
],
"摺": [
"zhé"
],
"摽": [
"biào",
"biāo"
],
"撂": [
"liào"
],
"撄": [
"yīng"
],
"撇": [
"piē",
"piě"
],
"撅": [
"juē",
"jué"
],
"撑": [
"chēng"
],
"撒": [
"sā",
"sǎ"
],
"撕": [
"sī"
],
"撖": [
"hàn"
],
"撙": [
"zǔn"
],
"撞": [
"zhuàng"
],
"撤": [
"chè"
],
"撩": [
"liāo",
"liáo"
],
"撬": [
"qiào"
],
"播": [
"bō"
],
"撮": [
"cuō",
"zuǒ"
],
"撰": [
"zhuàn"
],
"撵": [
"niǎn"
],
"撷": [
"xié"
],
"撸": [
"lū"
],
"撺": [
"cuān"
],
"撼": [
"hàn"
],
"擀": [
"gǎn"
],
"擂": [
"léi",
"lèi"
],
"擅": [
"shàn"
],
"操": [
"cāo"
],
"擎": [
"qíng"
],
"擐": [
"huàn"
],
"擒": [
"qín"
],
"擘": [
"bò",
"bāi"
],
"擞": [
"sòu",
"sǒu"
],
"擢": [
"zhuó"
],
"擤": [
"xǐng"
],
"擦": [
"cā"
],
"攀": [
"pān"
],
"攉": [
"huō"
],
"攒": [
"zǎn",
"cuán"
],
"攘": [
"rǎng"
],
"攥": [
"zuàn"
],
"攫": [
"jué"
],
"攮": [
"nǎng"
],
"支": [
"zhī"
],
"收": [
"shōu"
],
"攸": [
"yōu"
],
"改": [
"gǎi"
],
"攻": [
"gōng"
],
"放": [
"fàng"
],
"政": [
"zhèng"
],
"故": [
"gù"
],
"效": [
"xiào"
],
"敉": [
"mǐ"
],
"敌": [
"dí"
],
"敏": [
"mǐn"
],
"救": [
"jiù"
],
"敕": [
"chì"
],
"敖": [
"áo"
],
"教": [
"jiào",
"jiāo"
],
"敛": [
"liǎn"
],
"敝": [
"bì"
],
"敞": [
"chǎng"
],
"敢": [
"gǎn"
],
"散": [
"sàn",
"sǎn"
],
"敦": [
"dūn",
"duì"
],
"敫": [
"jiǎo",
"qiāo",
"jiào"
],
"敬": [
"jìng"
],
"数": [
"shù",
"shǔ",
"shuò"
],
"敲": [
"qiāo"
],
"整": [
"zhěng"
],
"敷": [
"fū"
],
"文": [
"wén"
],
"斋": [
"zhāi"
],
"斌": [
"bīn"
],
"斐": [
"fěi",
"fēi"
],
"斑": [
"bān"
],
"斓": [
"lán"
],
"斗": [
"dǒu",
"dòu"
],
"料": [
"liào"
],
"斛": [
"hú"
],
"斜": [
"xié"
],
"斝": [
"jiǎ"
],
"斟": [
"zhēn"
],
"斡": [
"wò",
"guǎn"
],
"斤": [
"jīn"
],
"斥": [
"chì"
],
"斧": [
"fǔ"
],
"斩": [
"zhǎn"
],
"斫": [
"zhuó"
],
"断": [
"duàn"
],
"斯": [
"sī"
],
"新": [
"xīn"
],
"方": [
"fāng"
],
"於": [
"yú",
"wū"
],
"施": [
"shī"
],
"旁": [
"páng",
"bàng"
],
"旃": [
"zhān"
],
"旄": [
"máo",
"mào"
],
"旅": [
"lǚ"
],
"旆": [
"pèi"
],
"旋": [
"xuán",
"xuàn"
],
"旌": [
"jīng"
],
"旎": [
"nǐ"
],
"族": [
"zú"
],
"旒": [
"liú"
],
"旖": [
"yǐ"
],
"旗": [
"qí"
],
"无": [
"wú"
],
"既": [
"jì"
],
"日": [
"rì"
],
"旦": [
"dàn"
],
"旧": [
"jiù"
],
"旨": [
"zhǐ"
],
"早": [
"zǎo"
],
"旬": [
"xún"
],
"旭": [
"xù"
],
"旮": [
"gā"
],
"旯": [
"lá"
],
"旰": [
"gàn",
"hàn"
],
"旱": [
"hàn"
],
"时": [
"shí"
],
"旷": [
"kuàng"
],
"旸": [
"yáng"
],
"旺": [
"wàng"
],
"旻": [
"mín"
],
"昀": [
"yún"
],
"昂": [
"áng"
],
"昃": [
"zè"
],
"昆": [
"kūn"
],
"昉": [
"fǎng"
],
"昊": [
"hào"
],
"昌": [
"chāng"
],
"明": [
"míng"
],
"昏": [
"hūn"
],
"易": [
"yì"
],
"昔": [
"xī"
],
"昕": [
"xīn"
],
"昙": [
"tán"
],
"昝": [
"zǎn"
],
"星": [
"xīng"
],
"映": [
"yìng"
],
"春": [
"chūn"
],
"昧": [
"mèi"
],
"昨": [
"zuó"
],
"昭": [
"zhāo"
],
"是": [
"shì"
],
"昱": [
"yù"
],
"昴": [
"mǎo"
],
"昵": [
"nì"
],
"昶": [
"chǎng"
],
"昼": [
"zhòu"
],
"昽": [
"lóng"
],
"显": [
"xiǎn"
],
"晁": [
"cháo"
],
"晃": [
"huǎng",
"huàng"
],
"晋": [
"jìn"
],
"晌": [
"shǎng"
],
"晏": [
"yàn"
],
"晒": [
"shài"
],
"晓": [
"xiǎo"
],
"晔": [
"yè"
],
"晕": [
"yùn",
"yūn"
],
"晖": [
"huī"
],
"晗": [
"hán"
],
"晚": [
"wǎn"
],
"晞": [
"xī"
],
"晟": [
"shèng",
"chéng"
],
"晡": [
"bū"
],
"晢": [
"zhé"
],
"晤": [
"wù"
],
"晦": [
"huì"
],
"晨": [
"chén"
],
"普": [
"pǔ"
],
"景": [
"jǐng",
"yǐng"
],
"晰": [
"xī"
],
"晴": [
"qíng"
],
"晶": [
"jīng"
],
"晷": [
"guǐ"
],
"智": [
"zhì"
],
"晾": [
"liàng"
],
"暂": [
"zàn"
],
"暑": [
"shǔ"
],
"暄": [
"xuān"
],
"暅": [
"xuǎn"
],
"暇": [
"xiá"
],
"暌": [
"kuí"
],
"暖": [
"nuǎn"
],
"暗": [
"àn"
],
"暝": [
"míng"
],
"暧": [
"ài"
],
"暨": [
"jì"
],
"暮": [
"mù"
],
"暴": [
"bào",
"pù"
],
"暹": [
"xiān"
],
"暾": [
"tūn"
],
"曈": [
"tóng"
],
"曙": [
"shǔ"
],
"曛": [
"xūn"
],
"曜": [
"yào"
],
"曝": [
"pù",
"bào"
],
"曦": [
"xī"
],
"曩": [
"nǎng"
],
"曰": [
"yuē"
],
"曲": [
"qū",
"qǔ"
],
"曳": [
"yè"
],
"更": [
"gēng",
"gèng"
],
"曷": [
"hé"
],
"曹": [
"cáo"
],
"曼": [
"màn"
],
"曾": [
"zēng",
"céng"
],
"替": [
"tì"
],
"月": [
"yuè"
],
"有": [
"yǒu",
"yòu"
],
"朊": [
"ruǎn"
],
"朋": [
"péng"
],
"服": [
"fú",
"fù"
],
"朐": [
"qú",
"xù",
"chǔn"
],
"朔": [
"shuò"
],
"朕": [
"zhèn"
],
"朗": [
"lǎng"
],
"望": [
"wàng"
],
"朝": [
"zhāo",
"cháo"
],
"期": [
"qī",
"jī"
],
"朦": [
"méng"
],
"木": [
"mù"
],
"未": [
"wèi"
],
"末": [
"mò"
],
"本": [
"běn"
],
"札": [
"zhá"
],
"术": [
"shù",
"shú",
"zhú"
],
"朱": [
"zhū",
"shú"
],
"朴": [
"pǔ",
"pò",
"pō",
"piáo"
],
"朵": [
"duǒ"
],
"机": [
"jī"
],
"朽": [
"xiǔ"
],
"杀": [
"shā"
],
"杂": [
"zá"
],
"权": [
"quán"
],
"杆": [
"gān",
"gǎn"
],
"杈": [
"chā",
"chà"
],
"杉": [
"shān",
"shā"
],
"杌": [
"wù"
],
"李": [
"lǐ"
],
"杏": [
"xìng"
],
"材": [
"cái"
],
"村": [
"cūn"
],
"杓": [
"sháo",
"biāo"
],
"杖": [
"zhàng"
],
"杜": [
"dù"
],
"杞": [
"qǐ"
],
"束": [
"shù"
],
"杠": [
"gàng",
"gāng"
],
"条": [
"tiáo",
"tiāo"
],
"来": [
"lái"
],
"杧": [
"máng"
],
"杨": [
"yáng"
],
"极": [
"jí"
],
"杪": [
"miǎo"
],
"杭": [
"háng"
],
"杯": [
"bēi"
],
"杰": [
"jié"
],
"杲": [
"gǎo"
],
"杳": [
"yǎo"
],
"杵": [
"chǔ"
],
"杷": [
"pá"
],
"杻": [
"niǔ",
"chǒu"
],
"杼": [
"zhù"
],
"松": [
"sōng"
],
"板": [
"bǎn"
],
"构": [
"gòu"
],
"枇": [
"pí"
],
"枉": [
"wǎng"
],
"枋": [
"fāng",
"bìng"
],
"析": [
"xī"
],
"枕": [
"zhěn"
],
"林": [
"lín"
],
"枘": [
"ruì"
],
"枚": [
"méi"
],
"果": [
"guǒ"
],
"枝": [
"zhī",
"qí"
],
"枞": [
"cōng",
"zōng"
],
"枢": [
"shū"
],
"枣": [
"zǎo"
],
"枥": [
"lì"
],
"枧": [
"jiǎn"
],
"枨": [
"chéng"
],
"枪": [
"qiāng"
],
"枫": [
"fēng"
],
"枭": [
"xiāo"
],
"枯": [
"kū"
],
"枰": [
"píng"
],
"枳": [
"zhǐ"
],
"枵": [
"xiāo"
],
"架": [
"jià"
],
"枷": [
"jiā"
],
"枸": [
"jǔ",
"gǒu"
],
"柁": [
"tuó",
"duò"
],
"柃": [
"líng"
],
"柄": [
"bǐng"
],
"柈": [
"pán",
"bàn"
],
"柏": [
"bǎi",
"bó",
"bò"
],
"某": [
"mǒu"
],
"柑": [
"gān"
],
"柒": [
"qī"
],
"染": [
"rǎn"
],
"柔": [
"róu"
],
"柘": [
"zhè"
],
"柙": [
"xiá"
],
"柚": [
"yòu",
"yóu"
],
"柜": [
"guì",
"jǔ"
],
"柝": [
"tuò"
],
"柞": [
"zuò",
"zhà"
],
"柠": [
"níng"
],
"柢": [
"dǐ",
"chí"
],
"查": [
"chá",
"zhā"
],
"柩": [
"jiù"
],
"柬": [
"jiǎn"
],
"柯": [
"kē"
],
"柰": [
"nài"
],
"柱": [
"zhù"
],
"柳": [
"liǔ"
],
"柴": [
"chái"
],
"柽": [
"chēng"
],
"柿": [
"shì"
],
"栀": [
"zhī"
],
"栅": [
"zhà",
"shān",
"shi",
"cè"
],
"标": [
"biāo"
],
"栈": [
"zhàn"
],
"栉": [
"zhì"
],
"栊": [
"lóng"
],
"栋": [
"dòng"
],
"栌": [
"lú"
],
"栎": [
"lì",
"yuè"
],
"栏": [
"lán"
],
"树": [
"shù"
],
"栒": [
"xún"
],
"栓": [
"shuān"
],
"栖": [
"qī",
"xī"
],
"栗": [
"lì"
],
"栝": [
"guā",
"tiǎn"
],
"栟": [
"bēn",
"bīng"
],
"校": [
"xiào",
"jiào"
],
"栩": [
"xǔ"
],
"株": [
"zhū"
],
"栲": [
"kǎo"
],
"栳": [
"lǎo"
],
"样": [
"yàng"
],
"核": [
"hé",
"hú"
],
"根": [
"gēn"
],
"格": [
"gé"
],
"栽": [
"zāi"
],
"栾": [
"luán"
],
"桀": [
"jié"
],
"桁": [
"héng",
"háng"
],
"桂": [
"guì"
],
"桃": [
"táo"
],
"桄": [
"guāng",
"guàng"
],
"桅": [
"wéi"
],
"框": [
"kuàng"
],
"案": [
"àn"
],
"桉": [
"ān"
],
"桊": [
"juàn",
"quān"
],
"桌": [
"zhuō"
],
"桎": [
"zhì"
],
"桐": [
"tóng"
],
"桑": [
"sāng"
],
"桓": [
"huán"
],
"桔": [
"jié",
"jú"
],
"桕": [
"jiù"
],
"桡": [
"ráo",
"náo"
],
"桢": [
"zhēn"
],
"档": [
"dàng"
],
"桤": [
"qī"
],
"桥": [
"qiáo"
],
"桦": [
"huà"
],
"桧": [
"guì",
"huì"
],
"桨": [
"jiǎng"
],
"桩": [
"zhuāng"
],
"桫": [
"suō"
],
"桴": [
"fú"
],
"桶": [
"tǒng"
],
"桷": [
"jué"
],
"梁": [
"liáng"
],
"梃": [
"tǐng",
"tìng"
],
"梅": [
"méi"
],
"梆": [
"bāng"
],
"梏": [
"gù"
],
"梓": [
"zǐ"
],
"梗": [
"gěng"
],
"梢": [
"shāo",
"sào"
],
"梦": [
"mèng"
],
"梧": [
"wú"
],
"梨": [
"lí"
],
"梭": [
"suō"
],
"梯": [
"tī"
],
"械": [
"xiè"
],
"梳": [
"shū"
],
"梵": [
"fàn"
],
"梽": [
"zhì"
],
"梾": [
"lái"
],
"检": [
"jiǎn"
],
"棁": [
"zhuō",
"ruì",
"tuō"
],
"棂": [
"líng"
],
"棉": [
"mián"
],
"棋": [
"qí"
],
"棍": [
"gùn",
"hùn"
],
"棒": [
"bàng"
],
"棕": [
"zōng"
],
"棘": [
"jí"
],
"棚": [
"péng"
],
"棠": [
"táng"
],
"棣": [
"dì",
"dài",
"tì"
],
"棨": [
"qǐ"
],
"棬": [
"quān",
"juàn"
],
"森": [
"sēn"
],
"棰": [
"chuí"
],
"棱": [
"léng",
"lēng",
"líng"
],
"棵": [
"kē"
],
"棹": [
"zhào",
"zhuō"
],
"棺": [
"guān"
],
"棻": [
"fēn"
],
"棼": [
"fén"
],
"椁": [
"guǒ"
],
"椅": [
"yǐ",
"yī"
],
"椋": [
"liáng"
],
"植": [
"zhí"
],
"椎": [
"zhuī",
"chuí"
],
"椐": [
"jū"
],
"椑": [
"bēi"
],
"椒": [
"jiāo"
],
"椟": [
"dú"
],
"椠": [
"qiàn"
],
"椤": [
"luó"
],
"椭": [
"tuǒ"
],
"椰": [
"yē"
],
"椴": [
"duàn"
],
"椽": [
"chuán"
],
"椿": [
"chūn"
],
"楂": [
"zhā",
"chá"
],
"楔": [
"xiē"
],
"楗": [
"jiàn"
],
"楚": [
"chǔ"
],
"楝": [
"liàn"
],
"楞": [
"léng"
],
"楠": [
"nán"
],
"楣": [
"méi"
],
"楦": [
"xuàn"
],
"楫": [
"jí"
],
"楮": [
"chǔ"
],
"楯": [
"shǔn",
"dùn"
],
"楷": [
"kǎi",
"jiē"
],
"楸": [
"qiū"
],
"楹": [
"yíng"
],
"楼": [
"lóu"
],
"榀": [
"pǐn"
],
"概": [
"gài"
],
"榄": [
"lǎn"
],
"榆": [
"yú"
],
"榇": [
"chèn"
],
"榈": [
"lǘ"
],
"榉": [
"jǔ"
],
"榔": [
"láng"
],
"榍": [
"xiè"
],
"榕": [
"róng"
],
"榖": [
"gǔ"
],
"榛": [
"zhēn"
],
"榜": [
"bǎng",
"bàng"
],
"榧": [
"fěi"
],
"榨": [
"zhà"
],
"榫": [
"sǔn"
],
"榭": [
"xiè"
],
"榴": [
"liú"
],
"榷": [
"què"
],
"榻": [
"tà"
],
"槁": [
"gǎo"
],
"槊": [
"shuò"
],
"槌": [
"chuí"
],
"槎": [
"chá"
],
"槐": [
"huái"
],
"槔": [
"gāo"
],
"槚": [
"jiǎ"
],
"槛": [
"jiàn",
"kǎn"
],
"槜": [
"zuì"
],
"槟": [
"bīn",
"bīng"
],
"槠": [
"zhū"
],
"槭": [
"qì",
"sè"
],
"槲": [
"hú"
],
"槽": [
"cáo"
],
"槿": [
"jǐn"
],
"樊": [
"fán"
],
"樗": [
"chū"
],
"樘": [
"táng"
],
"樟": [
"zhāng"
],
"模": [
"mó",
"mú"
],
"樨": [
"xī"
],
"横": [
"héng",
"hèng"
],
"樯": [
"qiáng"
],
"樱": [
"yīng"
],
"橥": [
"zhū"
],
"樵": [
"qiáo"
],
"樽": [
"zūn"
],
"樾": [
"yuè"
],
"橄": [
"gǎn"
],
"橇": [
"qiāo"
],
"橐": [
"tuó"
],
"橘": [
"jú"
],
"橙": [
"chéng"
],
"橛": [
"jué"
],
"橡": [
"xiàng"
],
"橦": [
"tóng",
"chuáng"
],
"橱": [
"chú"
],
"橹": [
"lǔ"
],
"橼": [
"yuán"
],
"檀": [
"tán"
],
"檄": [
"xí"
],
"檎": [
"qín"
],
"檐": [
"yán"
],
"檑": [
"léi"
],
"檗": [
"bò"
],
"檠": [
"qíng"
],
"檩": [
"lǐn"
],
"檫": [
"chá"
],
"檬": [
"méng"
],
"檵": [
"jì"
],
"欠": [
"qiàn"
],
"次": [
"cì"
],
"欢": [
"huān"
],
"欤": [
"yú"
],
"欣": [
"xīn"
],
"欧": [
"ōu"
],
"欲": [
"yù"
],
"欸": [
"ǎi",
"ēi",
"éi",
"ěi",
"èi"
],
"欺": [
"qī"
],
"款": [
"kuǎn"
],
"歃": [
"shà"
],
"歆": [
"xīn"
],
"歇": [
"xiē"
],
"歉": [
"qiàn"
],
"歌": [
"gē"
],
"歙": [
"xī",
"shè"
],
"止": [
"zhǐ"
],
"正": [
"zhèng",
"zhēng"
],
"此": [
"cǐ"
],
"步": [
"bù"
],
"武": [
"wǔ"
],
"歧": [
"qí"
],
"歪": [
"wāi"
],
"歹": [
"dǎi"
],
"死": [
"sǐ"
],
"歼": [
"jiān"
],
"殁": [
"mò"
],
"殂": [
"cú"
],
"殃": [
"yāng"
],
"殄": [
"tiǎn"
],
"殆": [
"dài"
],
"殇": [
"shāng"
],
"殉": [
"xùn"
],
"殊": [
"shū"
],
"残": [
"cán"
],
"殍": [
"piǎo"
],
"殒": [
"yǔn"
],
"殓": [
"liàn"
],
"殖": [
"zhí",
"shi"
],
"殚": [
"dān"
],
"殛": [
"jí"
],
"殡": [
"bìn"
],
"殣": [
"jìn"
],
"殪": [
"yì"
],
"殳": [
"shū"
],
"殴": [
"ōu"
],
"段": [
"duàn"
],
"殷": [
"yīn",
"yān",
"yǐn"
],
"殿": [
"diàn"
],
"毁": [
"huǐ"
],
"毂": [
"gǔ"
],
"毅": [
"yì"
],
"毋": [
"wú"
],
"母": [
"mǔ"
],
"每": [
"měi"
],
"毐": [
"ǎi"
],
"毒": [
"dú",
"dài"
],
"毓": [
"yù"
],
"比": [
"bǐ"
],
"毕": [
"bì"
],
"毖": [
"bì"
],
"毗": [
"pí"
],
"毙": [
"bì"
],
"毛": [
"máo"
],
"毡": [
"zhān"
],
"毪": [
"mú"
],
"毫": [
"háo"
],
"毯": [
"tǎn"
],
"毳": [
"cuì"
],
"毵": [
"sān"
],
"毹": [
"shū"
],
"毽": [
"jiàn"
],
"氅": [
"chǎng"
],
"氆": [
"pǔ"
],
"氇": [
"lǔ"
],
"氍": [
"qú"
],
"氏": [
"shì",
"zhī"
],
"氐": [
"dī",
"dǐ"
],
"民": [
"mín"
],
"氓": [
"méng",
"máng"
],
"气": [
"qì"
],
"氕": [
"piē"
],
"氖": [
"nǎi"
],
"氘": [
"dāo"
],
"氙": [
"xiān"
],
"氚": [
"chuān"
],
"氛": [
"fēn"
],
"氟": [
"fú"
],
"氡": [
"dōng"
],
"氢": [
"qīng"
],
"氤": [
"yīn"
],
"氦": [
"hài"
],
"氧": [
"yǎng"
],
"氨": [
"ān"
],
"氩": [
"yà"
],
"氪": [
"kè"
],
"氮": [
"dàn"
],
"氯": [
"lǜ"
],
"氰": [
"qíng"
],
"氲": [
"yūn"
],
"水": [
"shuǐ"
],
"永": [
"yǒng"
],
"汀": [
"tīng"
],
"汁": [
"zhī"
],
"求": [
"qiú"
],
"汆": [
"cuān"
],
"汇": [
"huì"
],
"汈": [
"diāo"
],
"汉": [
"hàn"
],
"汊": [
"chà"
],
"汐": [
"xī"
],
"汔": [
"qì"
],
"汕": [
"shàn"
],
"汗": [
"hàn",
"hán"
],
"汛": [
"xùn"
],
"汜": [
"sì"
],
"汝": [
"rǔ"
],
"汞": [
"gǒng"
],
"江": [
"jiāng"
],
"池": [
"chí"
],
"污": [
"wū"
],
"汤": [
"tāng",
"shāng"
],
"汨": [
"mì"
],
"汩": [
"gǔ",
"yù"
],
"汪": [
"wāng"
],
"汭": [
"ruì"
],
"汰": [
"tài"
],
"汲": [
"jí"
],
"汴": [
"biàn"
],
"汶": [
"wèn",
"mén"
],
"汹": [
"xiōng"
],
"汽": [
"qì"
],
"汾": [
"fén"
],
"沁": [
"qìn"
],
"沂": [
"yí"
],
"沃": [
"wò"
],
"沄": [
"yún"
],
"沅": [
"yuán"
],
"沆": [
"hàng"
],
"沈": [
"shěn",
"chén"
],
"沉": [
"chén"
],
"沌": [
"dùn"
],
"沏": [
"qī"
],
"沐": [
"mù"
],
"沓": [
"tà",
"dá"
],
"沔": [
"miǎn"
],
"沘": [
"bǐ"
],
"沙": [
"shā",
"shà"
],
"沚": [
"zhǐ"
],
"沛": [
"pèi"
],
"沟": [
"gōu"
],
"没": [
"méi",
"mò"
],
"沣": [
"fēng"
],
"沤": [
"òu",
"ōu"
],
"沥": [
"lì"
],
"沦": [
"lún"
],
"沧": [
"cāng"
],
"沨": [
"fēng"
],
"沩": [
"wéi"
],
"沪": [
"hù"
],
"沫": [
"mò"
],
"沭": [
"shù"
],
"沮": [
"jǔ",
"jù"
],
"沱": [
"tuó"
],
"河": [
"hé"
],
"沸": [
"fèi"
],
"油": [
"yóu"
],
"治": [
"zhì"
],
"沼": [
"zhǎo"
],
"沽": [
"gū"
],
"沾": [
"zhān"
],
"沿": [
"yán"
],
"泃": [
"jū"
],
"泄": [
"xiè",
"yì"
],
"泅": [
"qiú"
],
"泉": [
"quán"
],
"泊": [
"bó",
"pō"
],
"泌": [
"mì",
"bì"
],
"泐": [
"lè"
],
"泓": [
"hóng"
],
"泔": [
"gān"
],
"法": [
"fǎ"
],
"泖": [
"mǎo"
],
"泗": [
"sì"
],
"泛": [
"fàn"
],
"泜": [
"zhī"
],
"泞": [
"nìng"
],
"泠": [
"líng"
],
"泡": [
"pào",
"pāo"
],
"波": [
"bō"
],
"泣": [
"qì"
],
"泥": [
"ní",
"nì"
],
"注": [
"zhù"
],
"泪": [
"lèi"
],
"泫": [
"xuàn"
],
"泮": [
"pàn"
],
"泯": [
"mǐn"
],
"泰": [
"tài"
],
"泱": [
"yāng"
],
"泳": [
"yǒng"
],
"泷": [
"lóng",
"shuāng"
],
"泸": [
"lú"
],
"泺": [
"luò",
"pō"
],
"泻": [
"xiè"
],
"泼": [
"pō"
],
"泽": [
"zé",
"shì"
],
"泾": [
"jīng"
],
"泚": [
"cǐ",
"zǐ"
],
"洁": [
"jié"
],
"洄": [
"huí"
],
"洇": [
"yīn"
],
"洋": [
"yáng"
],
"洌": [
"liè"
],
"洎": [
"jì"
],
"洑": [
"fú",
"fù"
],
"洒": [
"sǎ",
"xǐ"
],
"洗": [
"xǐ",
"xiǎn"
],
"洙": [
"zhū"
],
"洚": [
"jiàng"
],
"洛": [
"luò"
],
"洞": [
"dòng"
],
"洣": [
"mǐ"
],
"津": [
"jīn"
],
"洧": [
"wěi"
],
"洨": [
"xiáo"
],
"洪": [
"hóng"
],
"洫": [
"xù"
],
"洮": [
"táo",
"yáo",
"dào"
],
"洱": [
"ěr"
],
"洲": [
"zhōu"
],
"洳": [
"rù"
],
"洴": [
"píng"
],
"洵": [
"xún"
],
"洹": [
"huán"
],
"洺": [
"míng"
],
"活": [
"huó"
],
"洼": [
"wā"
],
"洽": [
"qià"
],
"派": [
"pài"
],
"流": [
"liú"
],
"浃": [
"jiā"
],
"浅": [
"qiǎn",
"jiān"
],
"浆": [
"jiāng",
"jiàng"
],
"浇": [
"jiāo"
],
"浈": [
"zhēn"
],
"浉": [
"shī"
],
"浊": [
"zhuó"
],
"测": [
"cè"
],
"浍": [
"kuài",
"huì",
"huá"
],
"济": [
"jì",
"jǐ"
],
"浏": [
"liú"
],
"浐": [
"chǎn"
],
"浑": [
"hún"
],
"浒": [
"hǔ",
"xǔ"
],
"浓": [
"nóng"
],
"浔": [
"xún"
],
"浕": [
"jìn"
],
"浙": [
"zhè"
],
"浚": [
"jùn",
"xùn"
],
"浜": [
"bāng"
],
"浞": [
"zhuó"
],
"浠": [
"xī"
],
"浡": [
"bó"
],
"浣": [
"huàn"
],
"浥": [
"yì"
],
"浦": [
"pǔ"
],
"浩": [
"hào"
],
"浪": [
"làng"
],
"浮": [
"fú"
],
"浯": [
"wú"
],
"浴": [
"yù"
],
"海": [
"hǎi"
],
"浸": [
"jìn"
],
"浼": [
"měi"
],
"涂": [
"tú"
],
"涅": [
"niè"
],
"消": [
"xiāo"
],
"涉": [
"shè"
],
"涌": [
"yǒng",
"chōng"
],
"涎": [
"xián"
],
"涑": [
"sù"
],
"涓": [
"juān"
],
"涔": [
"cén"
],
"涕": [
"tì"
],
"涘": [
"sì"
],
"涛": [
"tāo"
],
"涝": [
"lào"
],
"涞": [
"lái"
],
"涟": [
"lián"
],
"涠": [
"wéi"
],
"涡": [
"wō",
"guō"
],
"涢": [
"yún"
],
"涣": [
"huàn"
],
"涤": [
"dí"
],
"润": [
"rùn"
],
"涧": [
"jiàn"
],
"涨": [
"zhǎng",
"zhàng"
],
"涩": [
"sè"
],
"涪": [
"fú"
],
"涫": [
"guān"
],
"涮": [
"shuàn"
],
"涯": [
"yá"
],
"液": [
"yè"
],
"涵": [
"hán"
],
"涸": [
"hé"
],
"涿": [
"zhuō"
],
"淀": [
"diàn"
],
"淄": [
"zī"
],
"淅": [
"xī"
],
"淆": [
"xiáo"
],
"淇": [
"qí"
],
"淋": [
"lín",
"lìn"
],
"淌": [
"tǎng",
"chǎng"
],
"淏": [
"hào"
],
"淑": [
"shū"
],
"淖": [
"nào",
"chuò",
"zhuō"
],
"淘": [
"táo"
],
"淙": [
"cóng"
],
"淝": [
"féi"
],
"淞": [
"sōng"
],
"淠": [
"pì",
"pèi"
],
"淡": [
"dàn"
],
"淤": [
"yū"
],
"淦": [
"gàn"
],
"淫": [
"yín"
],
"淬": [
"cuì"
],
"淮": [
"huái"
],
"深": [
"shēn"
],
"淳": [
"chún",
"zhūn"
],
"混": [
"hùn",
"hún"
],
"淹": [
"yān"
],
"添": [
"tiān"
],
"清": [
"qīng"
],
"渊": [
"yuān"
],
"渌": [
"lù"
],
"渍": [
"zì"
],
"渎": [
"dú",
"dòu"
],
"渐": [
"jiàn",
"jiān"
],
"渑": [
"miǎn",
"shéng"
],
"渔": [
"yú"
],
"渗": [
"shèn"
],
"渚": [
"zhǔ"
],
"渝": [
"yú"
],
"渠": [
"qú",
"jù"
],
"渡": [
"dù"
],
"渣": [
"zhā"
],
"渤": [
"bó"
],
"渥": [
"wò"
],
"温": [
"wēn"
],
"渫": [
"xiè"
],
"渭": [
"wèi"
],
"港": [
"gǎng",
"jiǎng"
],
"渲": [
"xuàn"
],
"渴": [
"kě"
],
"游": [
"yóu"
],
"渺": [
"miǎo"
],
"湃": [
"pài"
],
"湄": [
"méi"
],
"湉": [
"tián"
],
"湍": [
"tuān"
],
"湎": [
"miǎn"
],
"湔": [
"jiān"
],
"湖": [
"hú"
],
"湘": [
"xiāng"
],
"湛": [
"zhàn"
],
"湜": [
"shí"
],
"湝": [
"jiē"
],
"湟": [
"huáng"
],
"湨": [
"jú"
],
"湫": [
"qiū",
"jiǎo"
],
"湮": [
"yān",
"yīn"
],
"湲": [
"yuán"
],
"湾": [
"wān"
],
"湿": [
"shī"
],
"溃": [
"kuì",
"huì"
],
"溅": [
"jiàn",
"jiān"
],
"溆": [
"xù"
],
"溇": [
"lóu"
],
"溉": [
"gài"
],
"滋": [
"zī"
],
"滞": [
"zhì"
],
"溏": [
"táng"
],
"源": [
"yuán"
],
"溘": [
"kè"
],
"溜": [
"liū",
"liù"
],
"溟": [
"míng"
],
"溠": [
"zhà"
],
"溢": [
"yì"
],
"溥": [
"pǔ"
],
"溦": [
"wēi"
],
"溧": [
"lì"
],
"溪": [
"xī"
],
"溯": [
"sù"
],
"溱": [
"zhēn",
"qín"
],
"溲": [
"sōu"
],
"溴": [
"xiù"
],
"溶": [
"róng"
],
"溷": [
"hùn"
],
"溺": [
"nì",
"niào"
],
"溻": [
"tā"
],
"溽": [
"rù"
],
"滁": [
"chú"
],
"滂": [
"pāng"
],
"滃": [
"wěng",
"wēng"
],
"滇": [
"diān"
],
"滍": [
"zhì"
],
"滏": [
"fǔ"
],
"滑": [
"huá"
],
"滓": [
"zǐ"
],
"滔": [
"tāo"
],
"滕": [
"téng"
],
"滗": [
"bì"
],
"滘": [
"jiào"
],
"滟": [
"yàn"
],
"滠": [
"shè"
],
"满": [
"mǎn"
],
"滢": [
"yíng"
],
"滤": [
"lǜ"
],
"滥": [
"làn"
],
"滦": [
"luán"
],
"滨": [
"bīn"
],
"滩": [
"tān"
],
"滪": [
"yù"
],
"漓": [
"lí"
],
"滚": [
"gǔn"
],
"滫": [
"xiǔ"
],
"滴": [
"dī"
],
"滹": [
"hū"
],
"漂": [
"piāo",
"piǎo",
"piào"
],
"漆": [
"qī"
],
"漉": [
"lù"
],
"漏": [
"lòu"
],
"演": [
"yǎn"
],
"漕": [
"cáo"
],
"漠": [
"mò"
],
"漤": [
"lǎn"
],
"漩": [
"xuán"
],
"漪": [
"yī"
],
"漫": [
"màn"
],
"漭": [
"mǎng"
],
"漯": [
"luò",
"tà"
],
"漱": [
"shù"
],
"漳": [
"zhāng"
],
"漶": [
"huàn"
],
"漾": [
"yàng"
],
"潆": [
"yíng"
],
"潇": [
"xiāo"
],
"潋": [
"liàn"
],
"潍": [
"wéi"
],
"潏": [
"yù"
],
"潘": [
"pān"
],
"潜": [
"qián"
],
"潞": [
"lù"
],
"潟": [
"xì"
],
"潢": [
"huáng",
"guāng"
],
"潦": [
"lǎo",
"lào",
"liáo"
],
"潭": [
"tán"
],
"潮": [
"cháo"
],
"潲": [
"shào"
],
"潴": [
"zhū"
],
"潵": [
"sàn",
"sǎ"
],
"潸": [
"shān"
],
"潺": [
"chán"
],
"潼": [
"tóng"
],
"潽": [
"pū"
],
"澄": [
"chéng",
"dèng"
],
"澈": [
"chè"
],
"澉": [
"gǎn"
],
"澌": [
"sī"
],
"澍": [
"shù",
"zhù"
],
"澎": [
"péng"
],
"澜": [
"lán"
],
"澡": [
"zǎo"
],
"澥": [
"xiè"
],
"澧": [
"lǐ"
],
"澳": [
"ào"
],
"澴": [
"huán"
],
"澶": [
"chán"
],
"澹": [
"dàn",
"tán"
],
"澼": [
"pì"
],
"激": [
"jī"
],
"濂": [
"lián"
],
"濉": [
"suī"
],
"濑": [
"lài"
],
"濒": [
"bīn"
],
"濞": [
"bì",
"pì"
],
"濠": [
"háo"
],
"濡": [
"rú"
],
"濮": [
"pú"
],
"濯": [
"zhuó",
"zhào"
],
"瀌": [
"biāo"
],
"瀍": [
"chán"
],
"瀑": [
"pù",
"bào"
],
"瀚": [
"hàn"
],
"瀛": [
"yíng"
],
"瀣": [
"xiè"
],
"瀵": [
"fèn"
],
"瀹": [
"yuè"
],
"灌": [
"guàn"
],
"灏": [
"hào"
],
"灞": [
"bà"
],
"火": [
"huǒ"
],
"灭": [
"miè"
],
"灯": [
"dēng"
],
"灰": [
"huī"
],
"灵": [
"líng"
],
"灶": [
"zào"
],
"灸": [
"jiǔ"
],
"灼": [
"zhuó"
],
"灾": [
"zāi"
],
"灿": [
"càn"
],
"炀": [
"yáng"
],
"炅": [
"jiǒng",
"guì"
],
"炉": [
"lú"
],
"炊": [
"chuī"
],
"炎": [
"yán"
],
"炒": [
"chǎo"
],
"炔": [
"quē"
],
"炕": [
"kàng"
],
"炖": [
"dùn"
],
"炙": [
"zhì"
],
"炜": [
"wěi"
],
"炝": [
"qiàng"
],
"炟": [
"dá"
],
"炫": [
"xuàn"
],
"炬": [
"jù"
],
"炭": [
"tàn"
],
"炮": [
"páo",
"bāo",
"pào"
],
"炯": [
"jiǒng"
],
"炱": [
"tái"
],
"炳": [
"bǐng"
],
"炷": [
"zhù"
],
"炸": [
"zhà",
"zhá"
],
"点": [
"diǎn"
],
"炻": [
"shí"
],
"炼": [
"liàn"
],
"炽": [
"chì"
],
"烀": [
"hū"
],
"烁": [
"shuò"
],
"烂": [
"làn"
],
"烃": [
"tīng"
],
"烈": [
"liè"
],
"烊": [
"yáng",
"yàng"
],
"烘": [
"hōng"
],
"烙": [
"lào",
"luò"
],
"烛": [
"zhú"
],
"烜": [
"xuǎn"
],
"烝": [
"zhēng"
],
"烟": [
"yān"
],
"烤": [
"kǎo"
],
"烦": [
"fán"
],
"烧": [
"shāo"
],
"烨": [
"yè"
],
"烩": [
"huì"
],
"烫": [
"tàng"
],
"烬": [
"jìn"
],
"热": [
"rè"
],
"烯": [
"xī"
],
"烷": [
"wán"
],
"烹": [
"pēng"
],
"烺": [
"lǎng"
],
"烽": [
"fēng"
],
"焉": [
"yān"
],
"焊": [
"hàn"
],
"焌": [
"qū",
"jùn"
],
"焐": [
"wù"
],
"焓": [
"hán"
],
"焕": [
"huàn"
],
"焖": [
"mèn"
],
"焘": [
"dào"
],
"焙": [
"bèi"
],
"焚": [
"fén"
],
"焜": [
"kūn"
],
"焦": [
"jiāo"
],
"焯": [
"zhuō",
"chāo"
],
"焰": [
"yàn"
],
"焱": [
"yàn"
],
"然": [
"rán"
],
"煮": [
"zhǔ"
],
"煅": [
"duàn"
],
"煊": [
"xuān"
],
"煌": [
"huáng"
],
"煎": [
"jiān"
],
"煜": [
"yù"
],
"煞": [
"shā",
"shà"
],
"煤": [
"méi"
],
"煦": [
"xù"
],
"照": [
"zhào"
],
"煨": [
"wēi"
],
"煲": [
"bāo"
],
"煳": [
"hú"
],
"煸": [
"biān"
],
"煺": [
"tuì"
],
"煽": [
"shān"
],
"熄": [
"xī"
],
"熊": [
"xióng"
],
"熏": [
"xūn",
"xùn"
],
"熔": [
"róng"
],
"熘": [
"liū"
],
"熙": [
"xī"
],
"蒸": [
"zhēng"
],
"熜": [
"cōng",
"zǒng"
],
"熟": [
"shú"
],
"熠": [
"yì"
],
"熥": [
"tēng"
],
"熨": [
"yùn",
"yù"
],
"熬": [
"āo",
"áo"
],
"熵": [
"shāng"
],
"熹": [
"xī"
],
"燃": [
"rán"
],
"燊": [
"shēn"
],
"燎": [
"liáo",
"liǎo"
],
"燏": [
"yù"
],
"燔": [
"fán"
],
"燕": [
"yàn",
"yān"
],
"燠": [
"yù"
],
"燥": [
"zào"
],
"燧": [
"suì"
],
"燮": [
"xiè"
],
"燹": [
"xiǎn"
],
"爆": [
"bào"
],
"爝": [
"jué"
],
"爨": [
"cuàn"
],
"爪": [
"zhǎo",
"zhuǎ"
],
"爬": [
"pá"
],
"爰": [
"yuán"
],
"爱": [
"ài"
],
"爵": [
"jué"
],
"父": [
"fù",
"fǔ"
],
"爷": [
"yé"
],
"爸": [
"bà"
],
"爹": [
"diē"
],
"爻": [
"yáo"
],
"爽": [
"shuǎng"
],
"爿": [
"pán"
],
"牁": [
"kē"
],
"牂": [
"zāng"
],
"片": [
"piàn",
"piān"
],
"版": [
"bǎn"
],
"牌": [
"pái"
],
"牍": [
"dú"
],
"牒": [
"dié"
],
"牖": [
"yǒu"
],
"牙": [
"yá"
],
"牚": [
"chēng",
"chèng"
],
"牛": [
"niú"
],
"牝": [
"pìn"
],
"牟": [
"móu",
"mù"
],
"牡": [
"mǔ"
],
"牢": [
"láo"
],
"牦": [
"máo"
],
"牧": [
"mù"
],
"物": [
"wù"
],
"牮": [
"jiàn"
],
"牯": [
"gǔ"
],
"牲": [
"shēng"
],
"牵": [
"qiān"
],
"特": [
"tè"
],
"牺": [
"xī"
],
"牾": [
"wǔ"
],
"犁": [
"lí"
],
"犀": [
"xī"
],
"犄": [
"jī"
],
"犊": [
"dú"
],
"犋": [
"jù"
],
"犍": [
"jiān",
"qián"
],
"犏": [
"piān"
],
"犒": [
"kào"
],
"犟": [
"jiàng"
],
"犨": [
"chōu"
],
"犬": [
"quǎn"
],
"犯": [
"fàn"
],
"犰": [
"qiú"
],
"犴": [
"hān",
"àn"
],
"状": [
"zhuàng"
],
"犷": [
"guǎng"
],
"犸": [
"mǎ"
],
"犹": [
"yóu"
],
"狁": [
"yǔn"
],
"狂": [
"kuáng"
],
"狃": [
"niǔ"
],
"狄": [
"dí"
],
"狈": [
"bèi"
],
"狉": [
"pī"
],
"狍": [
"páo"
],
"狎": [
"xiá"
],
"狐": [
"hú"
],
"狒": [
"fèi"
],
"狗": [
"gǒu"
],
"狙": [
"jū"
],
"狝": [
"xiǎn"
],
"狞": [
"níng"
],
"狠": [
"hěn"
],
"狡": [
"jiǎo"
],
"狨": [
"róng"
],
"狩": [
"shòu"
],
"独": [
"dú"
],
"狭": [
"xiá"
],
"狮": [
"shī"
],
"狯": [
"kuài"
],
"狰": [
"zhēng"
],
"狱": [
"yù"
],
"狲": [
"sūn"
],
"狳": [
"yú"
],
"狴": [
"bì"
],
"狷": [
"juàn"
],
"狸": [
"lí"
],
"狺": [
"yín"
],
"狻": [
"suān"
],
"狼": [
"láng"
],
"猁": [
"lì"
],
"猃": [
"xiǎn"
],
"猄": [
"jīng"
],
"猊": [
"ní"
],
"猎": [
"liè",
"xī",
"què"
],
"猕": [
"mí"
],
"猖": [
"chāng"
],
"猗": [
"yī",
"yǐ"
],
"猛": [
"měng"
],
"猜": [
"cāi"
],
"猝": [
"cù"
],
"猞": [
"shē"
],
"猡": [
"luó"
],
"猪": [
"zhū"
],
"猫": [
"māo",
"máo"
],
"猢": [
"hú"
],
"猥": [
"wěi"
],
"猩": [
"xīng"
],
"猬": [
"wèi"
],
"献": [
"xiàn"
],
"猱": [
"náo"
],
"猴": [
"hóu"
],
"猷": [
"yóu"
],
"猸": [
"méi"
],
"猹": [
"chá"
],
"猾": [
"huá"
],
"猿": [
"yuán"
],
"獍": [
"jìng"
],
"獐": [
"zhāng"
],
"獒": [
"áo"
],
"獗": [
"jué"
],
"獠": [
"liáo"
],
"獬": [
"xiè"
],
"獭": [
"tǎ"
],
"獯": [
"xūn"
],
"獴": [
"méng"
],
"獾": [
"huān"
],
"玄": [
"xuán"
],
"率": [
"shuài",
"lǜ"
],
"玉": [
"yù"
],
"王": [
"wáng",
"wàng"
],
"玎": [
"dīng"
],
"玑": [
"jī"
],
"玕": [
"gān"
],
"玖": [
"jiǔ"
],
"玙": [
"yú"
],
"玚": [
"chàng",
"yáng"
],
"玛": [
"mǎ"
],
"玠": [
"jiè"
],
"玡": [
"yà"
],
"玢": [
"bīn",
"fēn"
],
"玥": [
"yuè"
],
"玦": [
"jué"
],
"玩": [
"wán"
],
"玫": [
"méi"
],
"玮": [
"wěi"
],
"环": [
"huán"
],
"现": [
"xiàn"
],
"玲": [
"líng"
],
"玳": [
"dài"
],
"玷": [
"diàn"
],
"玺": [
"xǐ"
],
"玻": [
"bō"
],
"珀": [
"pò"
],
"珂": [
"kē"
],
"珈": [
"jiā"
],
"珉": [
"mín"
],
"珊": [
"shān"
],
"珍": [
"zhēn"
],
"珏": [
"jué"
],
"珐": [
"fà"
],
"珑": [
"lóng"
],
"珙": [
"gǒng"
],
"珞": [
"luò"
],
"珠": [
"zhū"
],
"珣": [
"xún"
],
"珥": [
"ěr"
],
"珧": [
"yáo"
],
"珩": [
"héng"
],
"班": [
"bān"
],
"珰": [
"dāng"
],
"珲": [
"hún",
"huī"
],
"琉": [
"liú"
],
"珽": [
"tǐng"
],
"球": [
"qiú"
],
"琅": [
"láng"
],
"理": [
"lǐ"
],
"琇": [
"xiù"
],
"琎": [
"jīn"
],
"琏": [
"liǎn"
],
"琐": [
"suǒ"
],
"琚": [
"jū"
],
"琛": [
"chēn"
],
"琢": [
"zhuó",
"zuó"
],
"琤": [
"chēng"
],
"琥": [
"hǔ"
],
"琦": [
"qí"
],
"琨": [
"kūn"
],
"琪": [
"qí"
],
"琫": [
"běng"
],
"琬": [
"wǎn"
],
"琮": [
"cóng"
],
"琯": [
"guǎn"
],
"琰": [
"yǎn"
],
"琳": [
"lín"
],
"琴": [
"qín"
],
"琵": [
"pí"
],
"琶": [
"pá"
],
"琼": [
"qióng"
],
"瑀": [
"yǔ"
],
"瑁": [
"mào"
],
"瑄": [
"xuān"
],
"瑕": [
"xiá"
],
"瑗": [
"yuàn"
],
"瑙": [
"nǎo"
],
"瑚": [
"hú"
],
"瑛": [
"yīng"
],
"瑜": [
"yú"
],
"瑞": [
"ruì"
],
"瑟": [
"sè"
],
"瑢": [
"róng"
],
"瑭": [
"táng"
],
"瑰": [
"guī"
],
"瑶": [
"yáo"
],
"瑾": [
"jǐn"
],
"璀": [
"cuǐ"
],
"璁": [
"cōng"
],
"璃": [
"lí"
],
"璆": [
"qiú"
],
"璇": [
"xuán"
],
"璈": [
"áo"
],
"璋": [
"zhāng"
],
"璎": [
"yīng"
],
"璐": [
"lù"
],
"璘": [
"lín"
],
"璜": [
"huáng"
],
"璞": [
"pú"
],
"璟": [
"jǐng"
],
"璠": [
"fán"
],
"璧": [
"bì"
],
"璨": [
"càn"
],
"璩": [
"qú"
],
"璪": [
"zǎo"
],
"瓒": [
"zàn"
],
"瓘": [
"guàn"
],
"瓜": [
"guā"
],
"瓞": [
"dié"
],
"瓠": [
"hù",
"hú",
"huò"
],
"瓢": [
"piáo"
],
"瓣": [
"bàn"
],
"瓤": [
"ráng"
],
"瓦": [
"wǎ",
"wà"
],
"瓮": [
"wèng"
],
"瓯": [
"ōu"
],
"瓴": [
"líng"
],
"瓶": [
"píng"
],
"瓷": [
"cí"
],
"瓻": [
"chī"
],
"瓿": [
"bù"
],
"甄": [
"zhēn"
],
"甍": [
"méng"
],
"甏": [
"bèng"
],
"甑": [
"zèng"
],
"甓": [
"pì"
],
"甘": [
"gān"
],
"甙": [
"dài"
],
"甚": [
"shèn",
"shén"
],
"甜": [
"tián"
],
"生": [
"shēng"
],
"甥": [
"shēng"
],
"用": [
"yòng"
],
"甩": [
"shuǎi"
],
"甪": [
"lù"
],
"甫": [
"fǔ"
],
"甬": [
"yǒng"
],
"甭": [
"béng"
],
"田": [
"tián"
],
"由": [
"yóu"
],
"甲": [
"jiǎ"
],
"申": [
"shēn"
],
"电": [
"diàn"
],
"男": [
"nán"
],
"甸": [
"diàn",
"tián",
"shèng"
],
"町": [
"tǐng",
"dīng"
],
"画": [
"huà"
],
"甾": [
"zāi",
"zī"
],
"畀": [
"bì"
],
"畅": [
"chàng"
],
"畈": [
"fàn"
],
"畋": [
"tián"
],
"界": [
"jiè"
],
"畎": [
"quǎn"
],
"畏": [
"wèi"
],
"畔": [
"pàn"
],
"留": [
"liú"
],
"畚": [
"běn"
],
"畛": [
"zhěn"
],
"畜": [
"xù",
"chù"
],
"略": [
"lüè"
],
"畦": [
"qí"
],
"番": [
"fān",
"pān"
],
"畯": [
"jùn"
],
"畲": [
"shē"
],
"畴": [
"chóu"
],
"畸": [
"jī"
],
"畹": [
"wǎn"
],
"畿": [
"jī"
],
"疃": [
"tuǎn"
],
"疆": [
"jiāng",
"qiáng"
],
"疍": [
"dàn"
],
"疏": [
"shū"
],
"疑": [
"yí",
"nǐ"
],
"疔": [
"dīng"
],
"疖": [
"jiē"
],
"疗": [
"liáo"
],
"疙": [
"gē",
"yì"
],
"疚": [
"jiù"
],
"疝": [
"shàn"
],
"疟": [
"nüè",
"yào"
],
"疠": [
"lì"
],
"疡": [
"yáng"
],
"疢": [
"chèn"
],
"疣": [
"yóu"
],
"疤": [
"bā"
],
"疥": [
"jiè"
],
"疫": [
"yì"
],
"疬": [
"lì"
],
"疭": [
"zòng"
],
"疮": [
"chuāng"
],
"疯": [
"fēng"
],
"疰": [
"zhù"
],
"疱": [
"pào"
],
"疲": [
"pí"
],
"疳": [
"gān"
],
"疴": [
"kē"
],
"疵": [
"cī"
],
"疸": [
"dǎn",
"da"
],
"疹": [
"zhěn"
],
"疼": [
"téng"
],
"疽": [
"jū"
],
"疾": [
"jí"
],
"痂": [
"jiā"
],
"痃": [
"xuán"
],
"痄": [
"zhà"
],
"病": [
"bìng"
],
"症": [
"zhèng",
"zhēng"
],
"痈": [
"yōng"
],
"痉": [
"jìng"
],
"痊": [
"quán"
],
"痍": [
"yí"
],
"痒": [
"yǎng"
],
"痔": [
"zhì"
],
"痕": [
"hén"
],
"痘": [
"dòu"
],
"痛": [
"tòng"
],
"痞": [
"pǐ"
],
"痢": [
"lì"
],
"痣": [
"zhì"
],
"痤": [
"cuó"
],
"痦": [
"wù"
],
"痧": [
"shā"
],
"痨": [
"láo"
],
"痪": [
"huàn"
],
"痫": [
"xián"
],
"痰": [
"tán"
],
"痱": [
"fèi",
"féi"
],
"痴": [
"chī"
],
"痹": [
"bì"
],
"痼": [
"gù"
],
"痿": [
"wěi"
],
"瘁": [
"cuì"
],
"瘃": [
"zhú"
],
"瘅": [
"dàn",
"dān"
],
"瘆": [
"shèn"
],
"瘊": [
"hóu"
],
"瘌": [
"là"
],
"瘐": [
"yǔ"
],
"瘗": [
"yì"
],
"瘘": [
"lòu"
],
"瘟": [
"wēn"
],
"瘙": [
"sào"
],
"瘛": [
"chì"
],
"瘠": [
"jí"
],
"瘢": [
"bān"
],
"瘤": [
"liú"
],
"瘥": [
"chài",
"cuó"
],
"瘦": [
"shòu"
],
"瘩": [
"dá",
"da"
],
"瘪": [
"biē",
"biě"
],
"瘫": [
"tān"
],
"瘭": [
"biāo"
],
"瘰": [
"luǒ"
],
"瘳": [
"chōu"
],
"瘴": [
"zhàng"
],
"瘵": [
"zhài"
],
"瘸": [
"qué"
],
"瘼": [
"mò"
],
"瘾": [
"yǐn"
],
"瘿": [
"yǐng"
],
"癀": [
"huáng"
],
"癃": [
"lóng"
],
"癌": [
"ái"
],
"癍": [
"bān"
],
"癔": [
"yì"
],
"癖": [
"pǐ"
],
"癜": [
"diàn"
],
"癞": [
"lài"
],
"癣": [
"xuǎn"
],
"癫": [
"diān"
],
"癯": [
"qú"
],
"癸": [
"guǐ"
],
"登": [
"dēng"
],
"白": [
"bái"
],
"百": [
"bǎi"
],
"皂": [
"zào"
],
"的": [
"dí",
"dì",
"de"
],
"皆": [
"jiē"
],
"皇": [
"huáng"
],
"皈": [
"guī"
],
"皋": [
"gāo",
"háo"
],
"皎": [
"jiǎo"
],
"皑": [
"ái"
],
"皓": [
"hào"
],
"皖": [
"wǎn"
],
"皤": [
"pó"
],
"皮": [
"pí"
],
"皱": [
"zhòu"
],
"皲": [
"jūn"
],
"皴": [
"cūn"
],
"皿": [
"mǐn"
],
"盂": [
"yú"
],
"盅": [
"zhōng"
],
"盆": [
"pén"
],
"盈": [
"yíng"
],
"盉": [
"hé"
],
"益": [
"yì"
],
"盍": [
"hé"
],
"盎": [
"àng"
],
"盏": [
"zhǎn"
],
"盐": [
"yán"
],
"监": [
"jiān",
"jiàn"
],
"盒": [
"hé"
],
"盔": [
"kuī"
],
"盖": [
"gài",
"gě",
"hé"
],
"盗": [
"dào"
],
"盘": [
"pán"
],
"盛": [
"shèng",
"chéng"
],
"盟": [
"méng"
],
"盥": [
"guàn"
],
"盦": [
"ān"
],
"目": [
"mù"
],
"盯": [
"dīng"
],
"盱": [
"xū"
],
"盲": [
"máng"
],
"直": [
"zhí"
],
"相": [
"xiāng",
"xiàng"
],
"盹": [
"dǔn"
],
"盼": [
"pàn"
],
"盾": [
"dùn"
],
"省": [
"shěng",
"xǐng"
],
"眄": [
"miǎn"
],
"眇": [
"miǎo"
],
"眈": [
"dān"
],
"眉": [
"méi"
],
"眊": [
"mào"
],
"看": [
"kàn",
"kān"
],
"眍": [
"kōu"
],
"眙": [
"yí",
"chì"
],
"眚": [
"shěng"
],
"真": [
"zhēn"
],
"眠": [
"mián"
],
"眢": [
"yuān"
],
"眦": [
"zì"
],
"眨": [
"zhǎ"
],
"眩": [
"xuàn"
],
"眬": [
"lóng"
],
"眭": [
"guì",
"suī"
],
"眯": [
"mī",
"mí"
],
"眵": [
"chī"
],
"眶": [
"kuàng"
],
"眷": [
"juàn"
],
"眸": [
"móu"
],
"眺": [
"tiào"
],
"眼": [
"yǎn"
],
"睁": [
"zhēng"
],
"着": [
"zhuó",
"zháo",
"zhāo",
"zhe"
],
"睃": [
"suō"
],
"睇": [
"dì"
],
"睐": [
"lài"
],
"睑": [
"jiǎn"
],
"睚": [
"yá"
],
"睛": [
"jīng"
],
"睢": [
"huī",
"suī"
],
"督": [
"dū"
],
"睥": [
"pì"
],
"睦": [
"mù"
],
"睨": [
"nì"
],
"睫": [
"jié"
],
"睬": [
"cǎi"
],
"睡": [
"shuì"
],
"睹": [
"dǔ"
],
"睽": [
"kuí"
],
"睾": [
"gāo"
],
"睿": [
"ruì"
],
"瞀": [
"mào"
],
"瞄": [
"miáo"
],
"瞅": [
"chǒu"
],
"瞌": [
"kē"
],
"瞍": [
"sǒu"
],
"瞎": [
"xiā"
],
"瞑": [
"míng",
"mián"
],
"瞒": [
"mán",
"mén",
"mèn"
],
"瞟": [
"piǎo"
],
"瞠": [
"chēng"
],
"瞢": [
"méng",
"měng"
],
"瞥": [
"piē"
],
"瞧": [
"qiáo"
],
"瞩": [
"zhǔ"
],
"瞪": [
"dèng"
],
"瞬": [
"shùn"
],
"瞭": [
"liǎo",
"liào"
],
"瞰": [
"kàn"
],
"瞳": [
"tóng"
],
"瞵": [
"lín"
],
"瞻": [
"zhān"
],
"瞽": [
"gǔ"
],
"瞿": [
"qú",
"jù"
],
"矍": [
"jué"
],
"矗": [
"chù"
],
"矛": [
"máo"
],
"矜": [
"jīn",
"qín",
"guān"
],
"矢": [
"shǐ"
],
"矣": [
"yǐ"
],
"知": [
"zhī",
"zhì"
],
"矧": [
"shěn"
],
"矩": [
"jǔ"
],
"矫": [
"jiǎo",
"jiáo"
],
"矬": [
"cuó"
],
"短": [
"duǎn"
],
"矮": [
"ǎi"
],
"石": [
"shí",
"dàn"
],
"矶": [
"jī"
],
"矸": [
"gān"
],
"矻": [
"kū"
],
"矽": [
"xī"
],
"矾": [
"fán"
],
"矿": [
"kuàng"
],
"砀": [
"dàng"
],
"码": [
"mǎ"
],
"泵": [
"bèng"
],
"砂": [
"shā"
],
"砉": [
"xū",
"huā"
],
"砌": [
"qì",
"qiè"
],
"砍": [
"kǎn"
],
"砑": [
"yà"
],
"砒": [
"pī"
],
"研": [
"yán",
"yàn"
],
"砖": [
"zhuān"
],
"砗": [
"chē"
],
"砘": [
"dùn"
],
"砚": [
"yàn"
],
"砜": [
"fēng"
],
"砝": [
"fǎ"
],
"砟": [
"zhǎ"
],
"砣": [
"tuó"
],
"砥": [
"dǐ"
],
"砧": [
"zhēn"
],
"砭": [
"biān"
],
"砮": [
"nǔ"
],
"砰": [
"pēng"
],
"破": [
"pò"
],
"砷": [
"shēn"
],
"砸": [
"zá"
],
"砹": [
"ài"
],
"砺": [
"lì"
],
"砻": [
"lóng"
],
"砼": [
"tóng"
],
"砾": [
"lì"
],
"础": [
"chǔ"
],
"硁": [
"kēng"
],
"硅": [
"guī"
],
"硇": [
"náo"
],
"硌": [
"luò",
"gè"
],
"硎": [
"xíng"
],
"硐": [
"dòng"
],
"硒": [
"xī"
],
"硕": [
"shuò",
"shí"
],
"硖": [
"xiá"
],
"硗": [
"qiāo"
],
"硚": [
"qiáo"
],
"硝": [
"xiāo"
],
"硪": [
"wò"
],
"硫": [
"liú"
],
"硬": [
"yìng"
],
"硭": [
"máng"
],
"确": [
"què"
],
"硷": [
"jiǎn"
],
"硼": [
"péng"
],
"碇": [
"dìng"
],
"碉": [
"diāo"
],
"碌": [
"lù",
"liù"
],
"碍": [
"ài"
],
"碎": [
"suì"
],
"碑": [
"bēi"
],
"碓": [
"duì"
],
"碗": [
"wǎn"
],
"碘": [
"diǎn"
],
"碚": [
"bèi"
],
"碛": [
"qì"
],
"碜": [
"chěn"
],
"碰": [
"pèng"
],
"碟": [
"dié"
],
"碡": [
"zhóu"
],
"碣": [
"jié",
"yà"
],
"碥": [
"biǎn"
],
"碧": [
"bì"
],
"碱": [
"jiǎn"
],
"碲": [
"dì"
],
"碳": [
"tàn"
],
"碴": [
"chá",
"chā"
],
"碶": [
"qì"
],
"碹": [
"xuàn"
],
"磁": [
"cí"
],
"碾": [
"niǎn"
],
"磅": [
"bàng",
"páng"
],
"磉": [
"sǎng"
],
"磊": [
"lěi"
],
"磋": [
"cuō"
],
"磐": [
"pán"
],
"磔": [
"zhé"
],
"磕": [
"kē"
],
"磙": [
"gǔn"
],
"磨": [
"mó",
"mò"
],
"磬": [
"qìng"
],
"磲": [
"qú"
],
"磴": [
"dèng"
],
"磷": [
"lín"
],
"磺": [
"huáng"
],
"礁": [
"jiāo"
],
"礅": [
"dūn"
],
"礌": [
"léi",
"lěi"
],
"礓": [
"jiāng"
],
"礞": [
"méng"
],
"礤": [
"cǎ"
],
"礳": [
"mò"
],
"礴": [
"bó"
],
"示": [
"shì"
],
"礼": [
"lǐ"
],
"社": [
"shè"
],
"祀": [
"sì"
],
"祁": [
"qí"
],
"祃": [
"mà"
],
"祆": [
"xiān"
],
"祈": [
"qí"
],
"祉": [
"zhǐ"
],
"祎": [
"yī"
],
"视": [
"shì"
],
"祓": [
"fú"
],
"祖": [
"zǔ"
],
"祗": [
"zhī"
],
"祚": [
"zuò"
],
"祛": [
"qū"
],
"祜": [
"hù"
],
"祝": [
"zhù"
],
"神": [
"shén"
],
"祟": [
"suì"
],
"祠": [
"cí"
],
"祢": [
"mí"
],
"祥": [
"xiáng"
],
"祧": [
"tiāo"
],
"票": [
"piào",
"piāo"
],
"祭": [
"jì",
"zhài"
],
"祯": [
"zhēn"
],
"祲": [
"jìn"
],
"祷": [
"dǎo"
],
"祸": [
"huò"
],
"禄": [
"lù"
],
"祺": [
"qí"
],
"祼": [
"guàn"
],
"祾": [
"líng"
],
"禀": [
"bǐng"
],
"禁": [
"jīn",
"jìn"
],
"禅": [
"chán",
"shàn"
],
"禊": [
"xì"
],
"福": [
"fú"
],
"禚": [
"zhuó"
],
"禤": [
"xuān"
],
"禧": [
"xǐ"
],
"禳": [
"ráng"
],
"禹": [
"yǔ"
],
"禺": [
"yú",
"yù",
"ǒu"
],
"离": [
"lí"
],
"禽": [
"qín"
],
"禾": [
"hé"
],
"秀": [
"xiù"
],
"私": [
"sī"
],
"秃": [
"tū"
],
"秆": [
"gǎn"
],
"秉": [
"bǐng"
],
"秋": [
"qiū"
],
"种": [
"zhǒng",
"zhòng",
"chóng"
],
"科": [
"kē"
],
"秒": [
"miǎo"
],
"秕": [
"bǐ"
],
"秘": [
"mì",
"bì"
],
"租": [
"zū"
],
"秣": [
"mò"
],
"秤": [
"chèng"
],
"秦": [
"qín"
],
"秧": [
"yāng"
],
"秩": [
"zhì"
],
"秫": [
"shú"
],
"秭": [
"zǐ"
],
"积": [
"jī"
],
"称": [
"chēng",
"chèn",
"chèng"
],
"秸": [
"jiē"
],
"移": [
"yí"
],
"秽": [
"huì"
],
"秾": [
"nóng"
],
"稆": [
"lǚ"
],
"稀": [
"xī"
],
"稂": [
"láng"
],
"稃": [
"fū"
],
"程": [
"chéng"
],
"稍": [
"shāo",
"shào"
],
"税": [
"shuì"
],
"稔": [
"rěn"
],
"稗": [
"bài"
],
"稚": [
"zhì"
],
"稞": [
"kē"
],
"稠": [
"chóu"
],
"稣": [
"sū"
],
"稳": [
"wěn"
],
"稷": [
"jì"
],
"稻": [
"dào"
],
"稼": [
"jià"
],
"稽": [
"jī",
"qǐ"
],
"稿": [
"gǎo"
],
"穄": [
"jì"
],
"穆": [
"mù"
],
"穑": [
"sè"
],
"穗": [
"suì"
],
"穰": [
"ráng"
],
"穴": [
"xué"
],
"究": [
"jiū"
],
"穷": [
"qióng"
],
"穸": [
"xī"
],
"穹": [
"qióng"
],
"空": [
"kōng",
"kòng",
"kǒng"
],
"穿": [
"chuān"
],
"窀": [
"zhūn"
],
"突": [
"tū"
],
"窃": [
"qiè"
],
"窄": [
"zhǎi"
],
"窅": [
"yǎo"
],
"窈": [
"yǎo"
],
"窍": [
"qiào"
],
"窑": [
"yáo"
],
"窒": [
"zhì"
],
"窕": [
"tiǎo",
"yáo"
],
"窖": [
"jiào"
],
"窗": [
"chuāng"
],
"窘": [
"jiǒng"
],
"窜": [
"cuàn"
],
"窝": [
"wō"
],
"窟": [
"kū"
],
"窠": [
"kē"
],
"窣": [
"sū"
],
"窥": [
"kuī"
],
"窦": [
"dòu"
],
"窨": [
"yìn",
"xūn"
],
"窬": [
"yú"
],
"窭": [
"jù"
],
"窳": [
"yǔ"
],
"窸": [
"xī"
],
"窿": [
"lóng"
],
"立": [
"lì"
],
"竑": [
"hóng"
],
"竖": [
"shù"
],
"站": [
"zhàn"
],
"竞": [
"jìng"
],
"竣": [
"jùn"
],
"童": [
"tóng"
],
"竦": [
"sǒng"
],
"竭": [
"jié"
],
"端": [
"duān"
],
"竹": [
"zhú"
],
"竺": [
"zhú",
"dǔ"
],
"竽": [
"yú"
],
"竿": [
"gān"
],
"笃": [
"dǔ"
],
"笆": [
"bā"
],
"笈": [
"jí"
],
"笊": [
"zhào"
],
"笋": [
"sǔn"
],
"笏": [
"hù"
],
"笑": [
"xiào"
],
"笔": [
"bǐ"
],
"笕": [
"jiǎn"
],
"笙": [
"shēng"
],
"笛": [
"dí"
],
"笞": [
"chī"
],
"笠": [
"lì"
],
"笤": [
"tiáo"
],
"笥": [
"sì"
],
"符": [
"fú"
],
"笨": [
"bèn"
],
"笪": [
"dá"
],
"笫": [
"zǐ"
],
"第": [
"dì"
],
"笮": [
"zuó",
"zé"
],
"笱": [
"gǒu"
],
"笳": [
"jiā"
],
"笸": [
"pǒ"
],
"笺": [
"jiān"
],
"笼": [
"lóng",
"lǒng"
],
"笾": [
"biān"
],
"笄": [
"jī"
],
"筅": [
"xiǎn"
],
"筇": [
"qióng"
],
"等": [
"děng"
],
"筋": [
"jīn"
],
"筌": [
"quán"
],
"筏": [
"fá"
],
"筐": [
"kuāng"
],
"筑": [
"zhù",
"zhú"
],
"筒": [
"tǒng"
],
"答": [
"dá",
"dā"
],
"策": [
"cè"
],
"筘": [
"kòu"
],
"筚": [
"bì"
],
"筛": [
"shāi"
],
"筜": [
"dāng"
],
"筝": [
"zhēng"
],
"筠": [
"yún",
"jūn"
],
"筢": [
"pá"
],
"筮": [
"shì"
],
"筱": [
"xiǎo"
],
"筲": [
"shāo"
],
"筵": [
"yán"
],
"筷": [
"kuài"
],
"筹": [
"chóu"
],
"筻": [
"gàng"
],
"筼": [
"yún"
],
"签": [
"qiān"
],
"简": [
"jiǎn"
],
"箅": [
"bì"
],
"箍": [
"gū"
],
"箐": [
"qìng",
"jīng"
],
"箓": [
"lù"
],
"箔": [
"bó"
],
"箕": [
"jī"
],
"算": [
"suàn"
],
"箜": [
"kōng"
],
"管": [
"guǎn"
],
"箢": [
"yuān"
],
"箦": [
"zé"
],
"箧": [
"qiè"
],
"箨": [
"tuò"
],
"箩": [
"luó"
],
"箪": [
"dān"
],
"箫": [
"xiāo"
],
"箬": [
"ruò"
],
"箭": [
"jiàn"
],
"箱": [
"xiāng"
],
"箴": [
"zhēn"
],
"箸": [
"zhù"
],
"篁": [
"huáng"
],
"篆": [
"zhuàn"
],
"篇": [
"piān"
],
"篌": [
"hóu"
],
"篑": [
"kuì"
],
"篓": [
"lǒu"
],
"篙": [
"gāo"
],
"篚": [
"fěi"
],
"篝": [
"gōu"
],
"篡": [
"cuàn"
],
"篥": [
"lì"
],
"篦": [
"bì"
],
"篪": [
"chí"
],
"篮": [
"lán"
],
"篱": [
"lí"
],
"篷": [
"péng"
],
"篼": [
"dōu"
],
"篾": [
"miè"
],
"簃": [
"yí"
],
"簇": [
"cù"
],
"簉": [
"zào"
],
"簋": [
"guǐ"
],
"簌": [
"sù"
],
"簏": [
"lù"
],
"簖": [
"duàn"
],
"簟": [
"diàn"
],
"簠": [
"fǔ"
],
"簦": [
"dēng"
],
"簧": [
"huáng"
],
"簪": [
"zān"
],
"簸": [
"bò",
"bǒ"
],
"簿": [
"bù",
"bó"
],
"籀": [
"zhòu"
],
"籁": [
"lài"
],
"籍": [
"jí"
],
"米": [
"mǐ"
],
"籴": [
"dí"
],
"娄": [
"lóu"
],
"类": [
"lèi"
],
"籼": [
"xiān"
],
"籽": [
"zǐ"
],
"粉": [
"fěn"
],
"粑": [
"bā"
],
"粒": [
"lì"
],
"粕": [
"pò"
],
"粗": [
"cū"
],
"粘": [
"nián",
"zhān"
],
"粜": [
"tiào"
],
"粝": [
"lì"
],
"粞": [
"xī"
],
"粟": [
"sù"
],
"粤": [
"yuè"
],
"粥": [
"zhōu",
"yù"
],
"粪": [
"fèn"
],
"粮": [
"liáng"
],
"粱": [
"liáng"
],
"粲": [
"càn"
],
"粳": [
"jīng"
],
"粹": [
"cuì"
],
"粼": [
"lín"
],
"粽": [
"zòng"
],
"精": [
"jīng"
],
"糁": [
"sǎn",
"shēn"
],
"糅": [
"róu"
],
"糇": [
"hóu"
],
"糈": [
"xǔ"
],
"糊": [
"hū",
"hú",
"hù"
],
"糌": [
"zān"
],
"糍": [
"cí"
],
"糕": [
"gāo"
],
"糖": [
"táng"
],
"糗": [
"qiǔ"
],
"糙": [
"cāo"
],
"糜": [
"mí",
"méi"
],
"糟": [
"zāo"
],
"糠": [
"kāng"
],
"糨": [
"jiàng"
],
"糯": [
"nuò"
],
"糵": [
"niè"
],
"系": [
"xì",
"jì"
],
"紊": [
"wěn"
],
"素": [
"sù"
],
"索": [
"suǒ"
],
"紧": [
"jǐn"
],
"紫": [
"zǐ"
],
"累": [
"léi",
"lěi",
"lèi"
],
"絮": [
"xù"
],
"絷": [
"zhí"
],
"綦": [
"qí"
],
"綮": [
"qìng",
"qǐ"
],
"縻": [
"mí"
],
"繁": [
"fán",
"pó"
],
"繄": [
"yī"
],
"繇": [
"yáo",
"yóu",
"zhòu"
],
"纂": [
"zuǎn"
],
"纛": [
"dào"
],
"纠": [
"jiū"
],
"纡": [
"yū"
],
"红": [
"hóng",
"gōng"
],
"纣": [
"zhòu"
],
"纤": [
"xiān",
"qiàn"
],
"纥": [
"hé",
"gē"
],
"约": [
"yuē",
"yāo"
],
"级": [
"jí"
],
"纨": [
"wán"
],
"纩": [
"kuàng"
],
"纪": [
"jì",
"jǐ"
],
"纫": [
"rèn"
],
"纶": [
"lún",
"guān"
],
"纬": [
"wěi"
],
"纭": [
"yún"
],
"纯": [
"chún"
],
"纰": [
"pī",
"pí",
"bǐ"
],
"纱": [
"shā"
],
"纲": [
"gāng"
],
"纳": [
"nà"
],
"纴": [
"rèn"
],
"纵": [
"zòng",
"zǒng"
],
"纷": [
"fēn"
],
"纸": [
"zhǐ"
],
"纹": [
"wén",
"wèn"
],
"纺": [
"fǎng"
],
"纻": [
"zhù"
],
"纽": [
"niǔ"
],
"纾": [
"shū"
],
"线": [
"xiàn"
],
"绀": [
"gàn"
],
"绁": [
"xiè"
],
"绂": [
"fú"
],
"练": [
"liàn"
],
"组": [
"zǔ"
],
"绅": [
"shēn"
],
"细": [
"xì"
],
"织": [
"zhī",
"zhì"
],
"终": [
"zhōng"
],
"绉": [
"zhòu"
],
"绊": [
"bàn"
],
"绋": [
"fú"
],
"绌": [
"chù"
],
"绍": [
"shào"
],
"绎": [
"yì"
],
"经": [
"jīng"
],
"绑": [
"bǎng"
],
"绒": [
"róng"
],
"结": [
"jié",
"jiē"
],
"绔": [
"kù"
],
"绕": [
"rào"
],
"绗": [
"háng"
],
"绘": [
"huì"
],
"给": [
"gěi",
"jǐ"
],
"绚": [
"xuàn"
],
"绛": [
"jiàng"
],
"络": [
"luò",
"lào"
],
"绝": [
"jué"
],
"绞": [
"jiǎo"
],
"统": [
"tǒng"
],
"绠": [
"gěng"
],
"绡": [
"xiāo"
],
"绢": [
"juàn"
],
"绣": [
"xiù"
],
"绤": [
"xì"
],
"绥": [
"suí"
],
"绦": [
"tāo"
],
"继": [
"jì"
],
"绨": [
"tí",
"tì"
],
"绩": [
"jì"
],
"绪": [
"xù"
],
"绫": [
"líng"
],
"续": [
"xù"
],
"绮": [
"qǐ"
],
"绯": [
"fēi"
],
"绰": [
"chuò",
"chāo"
],
"绲": [
"gǔn"
],
"绳": [
"shéng"
],
"维": [
"wéi"
],
"绵": [
"mián"
],
"绶": [
"shòu"
],
"绷": [
"bēng",
"běng",
"bèng"
],
"绸": [
"chóu"
],
"绹": [
"táo"
],
"绺": [
"liǔ"
],
"绻": [
"quǎn"
],
"综": [
"zōng",
"zèng"
],
"绽": [
"zhàn"
],
"绾": [
"wǎn"
],
"绿": [
"lǜ",
"lù"
],
"缀": [
"zhuì"
],
"缁": [
"zī"
],
"缂": [
"kè"
],
"缃": [
"xiāng"
],
"缄": [
"jiān"
],
"缅": [
"miǎn"
],
"缆": [
"lǎn"
],
"缇": [
"tí"
],
"缈": [
"miǎo"
],
"缉": [
"jī",
"qī"
],
"缌": [
"sī"
],
"缎": [
"duàn"
],
"缏": [
"biàn",
"pián"
],
"缑": [
"gōu"
],
"缒": [
"zhuì"
],
"缓": [
"huǎn"
],
"缔": [
"dì"
],
"缕": [
"lǚ"
],
"编": [
"biān"
],
"缗": [
"mín"
],
"缘": [
"yuán"
],
"缙": [
"jìn"
],
"缚": [
"fù"
],
"缛": [
"rù"
],
"缜": [
"zhěn"
],
"缝": [
"féng",
"fèng"
],
"缟": [
"gǎo"
],
"缠": [
"chán"
],
"缡": [
"lí"
],
"缢": [
"yì"
],
"缣": [
"jiān"
],
"缤": [
"bīn"
],
"缥": [
"piǎo",
"piāo"
],
"缦": [
"màn"
],
"缧": [
"léi"
],
"缨": [
"yīng"
],
"缩": [
"suō",
"sù"
],
"缪": [
"móu",
"miù",
"miào",
"mù",
"liáo"
],
"缫": [
"sāo"
],
"缬": [
"xié"
],
"缭": [
"liáo"
],
"缮": [
"shàn"
],
"缯": [
"zēng",
"zèng"
],
"缰": [
"jiāng"
],
"缱": [
"qiǎn"
],
"缲": [
"qiāo",
"sāo"
],
"缳": [
"huán"
],
"缴": [
"jiǎo",
"zhuó"
],
"缵": [
"zuǎn"
],
"缶": [
"fǒu"
],
"缸": [
"gāng"
],
"缺": [
"quē"
],
"罂": [
"yīng"
],
"罄": [
"qìng"
],
"罅": [
"xià"
],
"罐": [
"guàn"
],
"网": [
"wǎng"
],
"罔": [
"wǎng"
],
"罕": [
"hǎn"
],
"罗": [
"luó"
],
"罘": [
"fú"
],
"罚": [
"fá"
],
"罟": [
"gǔ"
],
"罡": [
"gāng"
],
"罢": [
"bà",
"ba",
"pí"
],
"罨": [
"yǎn"
],
"罩": [
"zhào"
],
"罪": [
"zuì"
],
"置": [
"zhì"
],
"署": [
"shǔ"
],
"罱": [
"lǎn"
],
"罴": [
"pí"
],
"罹": [
"lí"
],
"罽": [
"jì"
],
"罾": [
"zēng"
],
"羁": [
"jī"
],
"羊": [
"yáng",
"xiáng"
],
"羌": [
"qiāng"
],
"美": [
"měi"
],
"羑": [
"yǒu"
],
"羔": [
"gāo"
],
"羚": [
"líng"
],
"羝": [
"dī"
],
"羞": [
"xiū"
],
"羟": [
"qiān",
"qiǎng"
],
"羡": [
"xiàn"
],
"群": [
"qún"
],
"羧": [
"suō"
],
"羯": [
"jié"
],
"羰": [
"tāng"
],
"羲": [
"xī"
],
"羸": [
"léi"
],
"羹": [
"gēng"
],
"羼": [
"chàn"
],
"羽": [
"yǔ"
],
"羿": [
"yì"
],
"翁": [
"wēng"
],
"翅": [
"chì"
],
"翊": [
"yì"
],
"翌": [
"yì"
],
"翎": [
"líng"
],
"翔": [
"xiáng"
],
"翕": [
"xī"
],
"翘": [
"qiáo",
"qiào"
],
"翙": [
"huì"
],
"翚": [
"huī"
],
"翟": [
"dí",
"zhái"
],
"翠": [
"cuì"
],
"翡": [
"fěi"
],
"翥": [
"zhù"
],
"翦": [
"jiǎn"
],
"翩": [
"piān"
],
"翮": [
"hé"
],
"翯": [
"hè"
],
"翰": [
"hàn"
],
"翱": [
"áo"
],
"翳": [
"yì"
],
"翼": [
"yì"
],
"翻": [
"fān"
],
"耀": [
"yào"
],
"老": [
"lǎo"
],
"考": [
"kǎo"
],
"耄": [
"mào"
],
"者": [
"zhě"
],
"耆": [
"qí",
"shì"
],
"耋": [
"dié"
],
"而": [
"ér"
],
"耍": [
"shuǎ"
],
"耐": [
"nài"
],
"耒": [
"lěi"
],
"耔": [
"zǐ"
],
"耕": [
"gēng"
],
"耖": [
"chào"
],
"耗": [
"hào"
],
"耘": [
"yún"
],
"耙": [
"bà",
"pá"
],
"耜": [
"sì"
],
"耠": [
"huō"
],
"耢": [
"lào"
],
"耥": [
"tǎng"
],
"耦": [
"ǒu"
],
"耧": [
"lóu"
],
"耨": [
"nòu"
],
"耩": [
"jiǎng"
],
"耪": [
"pǎng"
],
"耰": [
"yōu"
],
"耱": [
"mò"
],
"耲": [
"huái"
],
"耳": [
"ěr"
],
"耵": [
"dīng"
],
"耶": [
"yé",
"yē"
],
"耷": [
"dā"
],
"耸": [
"sǒng"
],
"耻": [
"chǐ"
],
"耽": [
"dān"
],
"耿": [
"gěng"
],
"聂": [
"niè"
],
"聃": [
"dān"
],
"聆": [
"líng"
],
"聊": [
"liáo"
],
"聋": [
"lóng"
],
"职": [
"zhí"
],
"聍": [
"níng"
],
"聒": [
"guō"
],
"联": [
"lián"
],
"聘": [
"pìn"
],
"聚": [
"jù"
],
"聩": [
"kuì"
],
"聪": [
"cōng"
],
"聱": [
"áo"
],
"聿": [
"yù"
],
"肃": [
"sù"
],
"肄": [
"yì"
],
"肆": [
"sì"
],
"肇": [
"zhào"
],
"肉": [
"ròu"
],
"肋": [
"lèi",
"lē"
],
"肌": [
"jī"
],
"肓": [
"huāng"
],
"肖": [
"xiāo",
"xiào"
],
"肘": [
"zhǒu"
],
"肚": [
"dù",
"dǔ"
],
"肛": [
"gāng"
],
"肝": [
"gān"
],
"肟": [
"wò"
],
"肠": [
"cháng"
],
"股": [
"gǔ"
],
"肢": [
"zhī"
],
"肤": [
"fū"
],
"肥": [
"féi"
],
"肩": [
"jiān"
],
"肪": [
"fáng"
],
"肫": [
"zhūn",
"chún"
],
"肭": [
"nà",
"nǜ"
],
"肮": [
"āng"
],
"肯": [
"kěn"
],
"肱": [
"gōng"
],
"育": [
"yù"
],
"肴": [
"yáo"
],
"肷": [
"qiǎn"
],
"肺": [
"fèi"
],
"肼": [
"jǐng"
],
"肽": [
"tài"
],
"肾": [
"shèn"
],
"肿": [
"zhǒng"
],
"胀": [
"zhàng"
],
"胁": [
"xié"
],
"胂": [
"shèn"
],
"胃": [
"wèi"
],
"胄": [
"zhòu"
],
"胆": [
"dǎn"
],
"背": [
"bèi",
"bēi"
],
"胍": [
"guā"
],
"胎": [
"tāi"
],
"胖": [
"pàng",
"pán",
"pàn"
],
"胗": [
"zhēn"
],
"胙": [
"zuò"
],
"胚": [
"pēi"
],
"胛": [
"jiǎ"
],
"胜": [
"shèng"
],
"胝": [
"zhī"
],
"胞": [
"bāo"
],
"胡": [
"hú"
],
"胤": [
"yìn"
],
"胥": [
"xū"
],
"胧": [
"lóng"
],
"胨": [
"dòng"
],
"胩": [
"kǎ"
],
"胪": [
"lú"
],
"胫": [
"jìng"
],
"胬": [
"nǔ"
],
"脉": [
"mài",
"mò"
],
"胭": [
"yān"
],
"胯": [
"kuà"
],
"胰": [
"yí"
],
"胱": [
"guāng"
],
"胲": [
"hǎi"
],
"胳": [
"gē",
"gé"
],
"胴": [
"dòng"
],
"胶": [
"jiāo"
],
"胸": [
"xiōng"
],
"胺": [
"àn"
],
"胼": [
"pián"
],
"能": [
"néng",
"nài"
],
"脂": [
"zhī"
],
"脆": [
"cuì"
],
"脊": [
"jǐ"
],
"脍": [
"kuài"
],
"脎": [
"sà"
],
"脏": [
"zāng",
"zàng"
],
"脐": [
"qí"
],
"脑": [
"nǎo"
],
"脒": [
"mǐ"
],
"脓": [
"nóng"
],
"脔": [
"luán"
],
"脖": [
"bó"
],
"脘": [
"wǎn"
],
"脚": [
"jiǎo"
],
"脞": [
"cuǒ"
],
"脧": [
"juān",
"zuī"
],
"脬": [
"pāo"
],
"脯": [
"fǔ"
],
"脱": [
"tuō"
],
"脲": [
"niào"
],
"脶": [
"luó"
],
"脸": [
"liǎn"
],
"脾": [
"pí"
],
"腆": [
"tiǎn"
],
"腈": [
"jīng"
],
"腊": [
"là",
"xī"
],
"腋": [
"yè"
],
"腌": [
"yān",
"ā"
],
"腐": [
"fǔ"
],
"腑": [
"fǔ"
],
"腒": [
"jū"
],
"腓": [
"féi"
],
"腔": [
"qiāng"
],
"腕": [
"wàn"
],
"腙": [
"zōng"
],
"腚": [
"dìng"
],
"腠": [
"còu"
],
"腥": [
"xīng"
],
"腧": [
"shù"
],
"腩": [
"nǎn"
],
"腭": [
"è"
],
"腮": [
"sāi"
],
"腰": [
"yāo"
],
"腱": [
"jiàn"
],
"腴": [
"yú"
],
"腹": [
"fù"
],
"腺": [
"xiàn"
],
"腻": [
"nì"
],
"腼": [
"miǎn"
],
"腽": [
"wà"
],
"腾": [
"téng"
],
"腿": [
"tuǐ"
],
"膀": [
"bǎng",
"páng"
],
"膂": [
"lǚ"
],
"膈": [
"gé"
],
"膊": [
"bó"
],
"膏": [
"gāo",
"gào"
],
"膑": [
"bìn"
],
"膘": [
"biāo"
],
"膙": [
"jiǎng"
],
"膛": [
"táng"
],
"膜": [
"mó"
],
"膝": [
"xī"
],
"膦": [
"lìn"
],
"膨": [
"péng"
],
"膪": [
"chuài"
],
"膳": [
"shàn"
],
"膺": [
"yīng"
],
"膻": [
"shān",
"dàn"
],
"臀": [
"tún"
],
"臁": [
"lián"
],
"臂": [
"bì",
"bei"
],
"臃": [
"yōng"
],
"臆": [
"yì"
],
"臊": [
"sāo",
"sào"
],
"臌": [
"gǔ"
],
"臑": [
"nào"
],
"臜": [
"zā"
],
"臣": [
"chén"
],
"臧": [
"zāng",
"zàng",
"cáng"
],
"自": [
"zì"
],
"臬": [
"niè"
],
"臭": [
"chòu",
"xiù"
],
"至": [
"zhì"
],
"致": [
"zhì"
],
"臻": [
"zhēn"
],
"臼": [
"jiù"
],
"臾": [
"yú"
],
"舀": [
"yǎo"
],
"舂": [
"chōng"
],
"舄": [
"xì"
],
"舅": [
"jiù"
],
"舆": [
"yú"
],
"舌": [
"shé"
],
"舍": [
"shě",
"shè"
],
"舐": [
"shì"
],
"舒": [
"shū"
],
"舔": [
"tiǎn"
],
"舛": [
"chuǎn"
],
"舜": [
"shùn"
],
"舞": [
"wǔ"
],
"舟": [
"zhōu"
],
"舢": [
"shān"
],
"舣": [
"yǐ"
],
"舨": [
"bǎn"
],
"航": [
"háng"
],
"舫": [
"fǎng"
],
"般": [
"bān"
],
"舰": [
"jiàn"
],
"舱": [
"cāng"
],
"舳": [
"zhú"
],
"舴": [
"zé"
],
"舵": [
"duò"
],
"舶": [
"bó"
],
"舷": [
"xián"
],
"舸": [
"gě"
],
"船": [
"chuán"
],
"舻": [
"lú"
],
"舾": [
"xī"
],
"艄": [
"shāo"
],
"艇": [
"tǐng"
],
"艋": [
"měng"
],
"艘": [
"sōu"
],
"艚": [
"cáo"
],
"艟": [
"chōng"
],
"艨": [
"méng"
],
"艮": [
"gèn"
],
"良": [
"liáng"
],
"艰": [
"jiān"
],
"色": [
"sè"
],
"艳": [
"yàn"
],
"艴": [
"fú"
],
"艺": [
"yì"
],
"艽": [
"qiú",
"jiāo"
],
"艾": [
"ài",
"yì"
],
"艿": [
"nǎi"
],
"节": [
"jié",
"jiē"
],
"芄": [
"wán"
],
"芈": [
"mǐ"
],
"芊": [
"qiān"
],
"芋": [
"yù"
],
"芍": [
"sháo"
],
"芎": [
"xiōng"
],
"芏": [
"dù"
],
"芑": [
"qǐ"
],
"芒": [
"máng"
],
"芗": [
"xiāng"
],
"芙": [
"fú"
],
"芜": [
"wú"
],
"芝": [
"zhī"
],
"芟": [
"shān"
],
"芡": [
"qiàn"
],
"芥": [
"jiè",
"gài"
],
"芦": [
"lú"
],
"芨": [
"jī"
],
"芩": [
"qín"
],
"芪": [
"qí"
],
"芫": [
"yuán",
"yán"
],
"芬": [
"fēn"
],
"芭": [
"bā"
],
"芮": [
"ruì"
],
"芯": [
"xīn",
"xìn"
],
"芰": [
"jì"
],
"花": [
"huā"
],
"芳": [
"fāng"
],
"芴": [
"wù",
"hū"
],
"芷": [
"zhǐ"
],
"芸": [
"yún"
],
"芹": [
"qín"
],
"芼": [
"máo",
"mào"
],
"芽": [
"yá"
],
"芾": [
"fèi",
"fú"
],
"苁": [
"cōng"
],
"苄": [
"biàn"
],
"苇": [
"wěi"
],
"苈": [
"lì"
],
"苊": [
"è"
],
"苋": [
"xiàn"
],
"苌": [
"cháng"
],
"苍": [
"cāng"
],
"苎": [
"zhù"
],
"苏": [
"sū",
"sù"
],
"苑": [
"yuàn"
],
"苒": [
"rǎn"
],
"苓": [
"líng"
],
"苔": [
"tái",
"tāi"
],
"苕": [
"tiáo",
"sháo"
],
"苗": [
"miáo"
],
"苘": [
"qǐng"
],
"苛": [
"kē",
"hē"
],
"苜": [
"mù"
],
"苞": [
"bāo"
],
"苟": [
"gǒu"
],
"苠": [
"mín"
],
"苡": [
"yǐ"
],
"苣": [
"jù",
"qǔ"
],
"苤": [
"piě"
],
"若": [
"ruò",
"rě"
],
"苦": [
"kǔ"
],
"苫": [
"shān",
"shàn"
],
"苯": [
"běn"
],
"英": [
"yīng"
],
"苴": [
"jū",
"chá"
],
"苷": [
"gān"
],
"苹": [
"píng",
"pēng"
],
"苻": [
"fú"
],
"茀": [
"fú"
],
"茁": [
"zhuó"
],
"茂": [
"mào"
],
"范": [
"fàn"
],
"茄": [
"qié"
],
"茅": [
"máo"
],
"茆": [
"máo"
],
"茈": [
"zǐ"
],
"茉": [
"mò"
],
"茌": [
"chí"
],
"茎": [
"jīng"
],
"茏": [
"lóng"
],
"茑": [
"niǎo"
],
"茓": [
"xué"
],
"茔": [
"yíng"
],
"茕": [
"qióng"
],
"茗": [
"míng"
],
"茚": [
"yìn"
],
"茛": [
"gèn"
],
"茜": [
"qiàn",
"xī"
],
"茧": [
"jiǎn"
],
"茨": [
"cí"
],
"茫": [
"máng"
],
"茬": [
"chá"
],
"茭": [
"jiāo"
],
"茯": [
"fú"
],
"茱": [
"zhū"
],
"茳": [
"jiāng"
],
"茴": [
"huí"
],
"茵": [
"yīn"
],
"茶": [
"chá"
],
"茸": [
"róng"
],
"茹": [
"rú"
],
"茼": [
"tóng"
],
"荀": [
"xún"
],
"荃": [
"quán"
],
"荆": [
"jīng"
],
"荇": [
"xìng"
],
"草": [
"cǎo"
],
"荏": [
"rěn"
],
"荐": [
"jiàn"
],
"荑": [
"yí",
"tí"
],
"荒": [
"huāng"
],
"荔": [
"lì"
],
"荙": [
"dá"
],
"荚": [
"jiá"
],
"荛": [
"ráo"
],
"荜": [
"bì"
],
"荞": [
"qiáo"
],
"荟": [
"huì"
],
"荠": [
"jì",
"qí"
],
"荡": [
"dàng"
],
"荣": [
"róng"
],
"荤": [
"hūn"
],
"荥": [
"xíng",
"yíng"
],
"荦": [
"luò"
],
"荧": [
"yíng"
],
"荨": [
"qián",
"xún"
],
"荩": [
"jìn"
],
"荪": [
"sūn"
],
"荫": [
"yīn",
"yìn"
],
"荬": [
"mǎi"
],
"荭": [
"hóng"
],
"药": [
"yào"
],
"茝": [
"chǎi"
],
"荷": [
"hé"
],
"荸": [
"bí"
],
"荻": [
"dí"
],
"荼": [
"tú"
],
"荽": [
"suī"
],
"莅": [
"lì"
],
"莆": [
"pú"
],
"莉": [
"lì"
],
"莎": [
"suō",
"shā"
],
"莒": [
"jǔ"
],
"莓": [
"méi"
],
"莘": [
"shēn",
"xīn"
],
"莙": [
"jūn"
],
"莛": [
"tíng"
],
"莜": [
"yóu"
],
"莞": [
"guān",
"guǎn",
"wǎn"
],
"莠": [
"yǒu"
],
"莨": [
"làng",
"liáng"
],
"莩": [
"fú",
"piǎo"
],
"莪": [
"é"
],
"莫": [
"mò",
"mù"
],
"莰": [
"kǎn"
],
"莱": [
"lái"
],
"莲": [
"lián"
],
"莳": [
"shì",
"shí"
],
"莴": [
"wō"
],
"莶": [
"xiān",
"liǎn"
],
"获": [
"huò"
],
"莸": [
"yóu"
],
"莹": [
"yíng"
],
"莺": [
"yīng"
],
"莼": [
"chún"
],
"莽": [
"mǎng"
],
"菀": [
"wǎn",
"yùn"
],
"菁": [
"jīng"
],
"菂": [
"dì"
],
"菅": [
"jiān"
],
"菇": [
"gū"
],
"菊": [
"jú"
],
"菌": [
"jūn",
"jùn"
],
"菏": [
"hé"
],
"菔": [
"fú"
],
"菖": [
"chāng"
],
"菘": [
"sōng"
],
"菜": [
"cài"
],
"菝": [
"bá"
],
"菟": [
"tù",
"tú"
],
"菠": [
"bō"
],
"菡": [
"hàn"
],
"菥": [
"xī"
],
"菩": [
"pú"
],
"菪": [
"dàng"
],
"菰": [
"gū"
],
"菱": [
"líng"
],
"菲": [
"fēi",
"fěi"
],
"菹": [
"zū"
],
"菼": [
"tǎn"
],
"菽": [
"shū"
],
"萁": [
"qí"
],
"萃": [
"cuì"
],
"萄": [
"táo"
],
"萋": [
"qī"
],
"萌": [
"méng"
],
"萍": [
"píng"
],
"萎": [
"wěi"
],
"萏": [
"dàn"
],
"萑": [
"huán"
],
"萘": [
"nài"
],
"萜": [
"tiē"
],
"萝": [
"luó"
],
"萤": [
"yíng"
],
"营": [
"yíng"
],
"萦": [
"yíng"
],
"萧": [
"xiāo"
],
"萨": [
"sà"
],
"著": [
"zhù",
"zhuó",
"zhe"
],
"萩": [
"qiū"
],
"萱": [
"xuān"
],
"萸": [
"yú"
],
"萼": [
"è"
],
"落": [
"là",
"luò",
"lào"
],
"葆": [
"bǎo"
],
"葑": [
"fēng"
],
"葓": [
"hóng"
],
"葖": [
"tū"
],
"葚": [
"shèn"
],
"葛": [
"gé",
"gě"
],
"葜": [
"qiā"
],
"葡": [
"pú"
],
"董": [
"dǒng"
],
"葩": [
"pā"
],
"葫": [
"hú"
],
"葬": [
"zàng"
],
"葭": [
"jiā"
],
"葱": [
"cōng"
],
"葳": [
"wēi"
],
"葵": [
"kuí"
],
"葶": [
"tíng"
],
"葸": [
"xǐ"
],
"葺": [
"qì"
],
"蒂": [
"dì"
],
"蒇": [
"chǎn"
],
"蒈": [
"kǎi"
],
"蒉": [
"kuì",
"kuài"
],
"蒋": [
"jiǎng"
],
"蒌": [
"lóu"
],
"蒎": [
"pài"
],
"蒗": [
"làng"
],
"蒙": [
"mēng",
"méng",
"měng"
],
"蒜": [
"suàn"
],
"蒟": [
"jǔ"
],
"蒡": [
"bàng"
],
"蒯": [
"kuǎi"
],
"蒲": [
"pú"
],
"蒴": [
"shuò"
],
"蒹": [
"jiān"
],
"蒺": [
"jí"
],
"蒽": [
"ēn"
],
"蒿": [
"hāo"
],
"蓁": [
"zhēn"
],
"蓂": [
"míng"
],
"蓄": [
"xù"
],
"蓇": [
"gū"
],
"蓉": [
"róng"
],
"蓊": [
"wěng"
],
"蓍": [
"shī"
],
"蓐": [
"rù"
],
"蓑": [
"suō"
],
"蓓": [
"bèi"
],
"蓖": [
"bì"
],
"蓝": [
"lán"
],
"蓟": [
"jì"
],
"蓠": [
"lí"
],
"蓣": [
"yù"
],
"蓦": [
"mò"
],
"蓥": [
"yíng"
],
"蓬": [
"péng"
],
"蓰": [
"xǐ"
],
"蓼": [
"liǎo",
"lù"
],
"蓿": [
"xù"
],
"蔌": [
"sù"
],
"蔑": [
"miè"
],
"蔓": [
"màn",
"wàn"
],
"蔗": [
"zhè"
],
"蔚": [
"wèi"
],
"蔟": [
"cù"
],
"蔡": [
"cài"
],
"蔫": [
"niān"
],
"蔬": [
"shū"
],
"蔷": [
"qiáng"
],
"蔸": [
"dōu"
],
"蔹": [
"liǎn"
],
"蔺": [
"lìn"
],
"蔻": [
"kòu"
],
"蔼": [
"ǎi"
],
"蔽": [
"bì"
],
"蕃": [
"fán"
],
"蕈": [
"xùn"
],
"蕉": [
"jiāo"
],
"蕊": [
"ruǐ"
],
"蕖": [
"qú"
],
"蕙": [
"huì"
],
"蕞": [
"zuì"
],
"蕤": [
"ruí"
],
"蕨": [
"jué"
],
"蕰": [
"yùn"
],
"蕲": [
"qí"
],
"蕴": [
"yùn"
],
"蕹": [
"wèng"
],
"蕺": [
"jí"
],
"蕻": [
"hòng"
],
"蕾": [
"lěi"
],
"薄": [
"báo",
"bó",
"bò"
],
"薅": [
"hāo"
],
"薇": [
"wēi"
],
"薏": [
"yì"
],
"薛": [
"xuē"
],
"薜": [
"bì"
],
"薤": [
"xiè"
],
"薨": [
"hōng"
],
"薪": [
"xīn"
],
"薮": [
"sǒu"
],
"薯": [
"shǔ"
],
"薰": [
"xūn"
],
"薷": [
"rú"
],
"薹": [
"tái"
],
"藁": [
"gǎo"
],
"藉": [
"jiè",
"jí"
],
"藏": [
"cáng",
"zàng"
],
"藐": [
"miǎo"
],
"藓": [
"xiǎn"
],
"藕": [
"ǒu"
],
"藜": [
"lí"
],
"藠": [
"jiào"
],
"藤": [
"téng"
],
"藩": [
"fān"
],
"藻": [
"zǎo"
],
"藿": [
"huò"
],
"蘅": [
"héng"
],
"蘑": [
"mó"
],
"蘖": [
"niè"
],
"蘘": [
"ráng"
],
"蘧": [
"qú"
],
"蘩": [
"fán"
],
"蘸": [
"zhàn"
],
"蘼": [
"mí"
],
"虎": [
"hǔ"
],
"虏": [
"lǔ"
],
"彪": [
"biāo"
],
"虐": [
"nüè"
],
"虑": [
"lǜ"
],
"虔": [
"qián"
],
"虚": [
"xū"
],
"虞": [
"yú"
],
"虢": [
"guó"
],
"虫": [
"chóng"
],
"虬": [
"qiú"
],
"虮": [
"jǐ"
],
"虱": [
"shī"
],
"虹": [
"hóng"
],
"虺": [
"huǐ",
"huī"
],
"虻": [
"méng"
],
"虼": [
"gè"
],
"虽": [
"suī"
],
"虾": [
"xiā",
"hā"
],
"虿": [
"chài"
],
"蚀": [
"shí"
],
"蚁": [
"yǐ"
],
"蚂": [
"mǎ",
"mā",
"mà"
],
"蚊": [
"wén"
],
"蚋": [
"ruì"
],
"蚌": [
"bàng",
"bèng"
],
"蚍": [
"pí"
],
"蚓": [
"yǐn"
],
"蚕": [
"cán"
],
"蚜": [
"yá"
],
"蚝": [
"háo",
"cì"
],
"蚣": [
"gōng",
"zhōng"
],
"蚤": [
"zǎo"
],
"蚧": [
"jiè"
],
"蚨": [
"fú"
],
"蚩": [
"chī"
],
"蚪": [
"dǒu"
],
"蚬": [
"xiǎn"
],
"蚯": [
"qiū"
],
"蚰": [
"yóu"
],
"蚱": [
"zhà"
],
"蚴": [
"yòu"
],
"蚶": [
"hān"
],
"蚺": [
"rán"
],
"蛀": [
"zhù"
],
"蛄": [
"gū"
],
"蛆": [
"qū"
],
"蛇": [
"shé",
"yí"
],
"蛉": [
"líng"
],
"蛊": [
"gǔ"
],
"蛋": [
"dàn"
],
"蛎": [
"lì"
],
"蛏": [
"chēng"
],
"蛐": [
"qū"
],
"蛑": [
"móu"
],
"蛔": [
"huí"
],
"蛘": [
"yáng"
],
"蛙": [
"wā"
],
"蛛": [
"zhū"
],
"蛞": [
"kuò"
],
"蛟": [
"jiāo"
],
"蛤": [
"gé",
"há"
],
"蛩": [
"qióng"
],
"蛭": [
"zhì"
],
"蛮": [
"mán"
],
"蛰": [
"zhé"
],
"蛱": [
"jiá"
],
"蛲": [
"náo"
],
"蛳": [
"sī"
],
"蛴": [
"qí"
],
"蛸": [
"xiāo"
],
"蛹": [
"yǒng"
],
"蛾": [
"é",
"yǐ"
],
"蜀": [
"shǔ"
],
"蜂": [
"fēng"
],
"蜃": [
"shèn"
],
"蜇": [
"zhé"
],
"蜈": [
"wú"
],
"蜉": [
"fú"
],
"蜊": [
"lì"
],
"蜍": [
"chú"
],
"蜎": [
"yuān"
],
"蜒": [
"yán"
],
"蜓": [
"tíng"
],
"蜕": [
"tuì"
],
"蜗": [
"wō"
],
"蜘": [
"zhī"
],
"蜚": [
"fēi"
],
"蜜": [
"mì"
],
"蜞": [
"qí"
],
"蜡": [
"là",
"zhà",
"qù"
],
"蜢": [
"měng"
],
"蜣": [
"qiāng"
],
"蜥": [
"xī"
],
"蜩": [
"tiáo"
],
"蜮": [
"yù"
],
"蜱": [
"pí"
],
"蜴": [
"yì"
],
"蜷": [
"quán"
],
"蜻": [
"qīng"
],
"蜾": [
"guǒ"
],
"蜿": [
"wān"
],
"蝇": [
"yíng"
],
"蝈": [
"guō"
],
"蝉": [
"chán"
],
"蝌": [
"kē"
],
"蝎": [
"xiē"
],
"蝓": [
"yú"
],
"蝗": [
"huáng"
],
"蝙": [
"biān"
],
"蝠": [
"fú"
],
"蝣": [
"yóu"
],
"蝤": [
"qiú"
],
"蝥": [
"máo"
],
"蝮": [
"fù"
],
"蝰": [
"kuí"
],
"蝴": [
"hú"
],
"蝶": [
"dié"
],
"蝻": [
"nǎn"
],
"蝼": [
"lóu"
],
"蝽": [
"chūn"
],
"蝾": [
"róng"
],
"螂": [
"láng"
],
"螃": [
"páng"
],
"螅": [
"xī"
],
"螈": [
"yuán"
],
"螋": [
"sōu"
],
"融": [
"róng"
],
"螗": [
"táng"
],
"螟": [
"míng"
],
"螠": [
"yì"
],
"螣": [
"téng"
],
"螨": [
"mǎn"
],
"螫": [
"shì",
"zhē"
],
"螬": [
"cáo"
],
"螭": [
"chī"
],
"螯": [
"áo"
],
"螳": [
"táng"
],
"螵": [
"piāo"
],
"螺": [
"luó"
],
"螽": [
"zhōng"
],
"蟀": [
"shuài"
],
"蟆": [
"má"
],
"蟊": [
"máo"
],
"蟋": [
"xī"
],
"蟑": [
"zhāng"
],
"蟒": [
"mǎng",
"měng"
],
"蟛": [
"péng"
],
"蟠": [
"pán"
],
"蟥": [
"huáng"
],
"蟪": [
"huì"
],
"蟮": [
"shàn"
],
"蟹": [
"xiè"
],
"蟾": [
"chán"
],
"蠃": [
"luǒ"
],
"蠊": [
"lián"
],
"蠋": [
"zhú"
],
"蠓": [
"měng"
],
"蠕": [
"rú"
],
"蠖": [
"huò"
],
"蠡": [
"lǐ"
],
"蠢": [
"chǔn"
],
"蠲": [
"juān"
],
"蠹": [
"dù"
],
"蠼": [
"qú"
],
"血": [
"xuè",
"xiě"
],
"衄": [
"nǜ"
],
"衅": [
"xìn"
],
"行": [
"háng",
"xíng"
],
"衍": [
"yǎn"
],
"衔": [
"xián"
],
"街": [
"jiē"
],
"衙": [
"yá"
],
"衡": [
"héng"
],
"衢": [
"qú"
],
"衣": [
"yī"
],
"补": [
"bǔ"
],
"表": [
"biǎo"
],
"衩": [
"chà"
],
"衫": [
"shān"
],
"衬": [
"chèn"
],
"衮": [
"gǔn"
],
"衰": [
"shuāi",
"cuī"
],
"衲": [
"nà"
],
"衷": [
"zhōng"
],
"衽": [
"rèn"
],
"衾": [
"qīn"
],
"衿": [
"jīn"
],
"袁": [
"yuán"
],
"袂": [
"mèi"
],
"袄": [
"ǎo"
],
"袅": [
"niǎo"
],
"袆": [
"huī"
],
"袈": [
"jiā"
],
"袋": [
"dài"
],
"袍": [
"páo"
],
"袒": [
"tǎn"
],
"袖": [
"xiù"
],
"袗": [
"zhěn"
],
"袜": [
"wà"
],
"袢": [
"pàn"
],
"袤": [
"mào"
],
"袪": [
"qū"
],
"被": [
"bèi",
"pī"
],
"袭": [
"xí"
],
"袯": [
"bó"
],
"袱": [
"fú"
],
"袼": [
"gē"
],
"裁": [
"cái"
],
"裂": [
"liè",
"liě"
],
"装": [
"zhuāng"
],
"裆": [
"dāng"
],
"裈": [
"kūn"
],
"裉": [
"kèn"
],
"裎": [
"chéng",
"chěng"
],
"裒": [
"póu"
],
"裔": [
"yì"
],
"裕": [
"yù"
],
"裘": [
"qiú"
],
"裙": [
"qún"
],
"裟": [
"shā"
],
"裢": [
"lián"
],
"裣": [
"liǎn"
],
"裤": [
"kù"
],
"裥": [
"jiǎn"
],
"裨": [
"bì",
"pí"
],
"裰": [
"duō"
],
"裱": [
"biǎo"
],
"裳": [
"cháng",
"shang"
],
"裴": [
"péi"
],
"裸": [
"luǒ"
],
"裹": [
"guǒ"
],
"裼": [
"xī",
"tì"
],
"裾": [
"jū"
],
"褂": [
"guà"
],
"褊": [
"biǎn"
],
"褐": [
"hè"
],
"褒": [
"bāo"
],
"褓": [
"bǎo"
],
"褙": [
"bèi"
],
"褚": [
"zhǔ",
"chǔ"
],
"褛": [
"lǚ"
],
"褡": [
"dā"
],
"褥": [
"rù"
],
"褪": [
"tuì",
"tùn"
],
"褫": [
"chǐ"
],
"褰": [
"qiān"
],
"褴": [
"lán"
],
"褶": [
"zhě"
],
"襁": [
"qiǎng"
],
"襄": [
"xiāng"
],
"襕": [
"lán"
],
"襞": [
"bì"
],
"襟": [
"jīn"
],
"襦": [
"rú"
],
"襻": [
"pàn"
],
"西": [
"xī"
],
"要": [
"yào",
"yāo"
],
"覃": [
"tán",
"qín"
],
"覆": [
"fù"
],
"见": [
"jiàn",
"xiàn"
],
"观": [
"guān",
"guàn"
],
"规": [
"guī"
],
"觅": [
"mì"
],
"觇": [
"chān"
],
"览": [
"lǎn"
],
"觉": [
"jué",
"jiào"
],
"觊": [
"jì"
],
"觋": [
"xí"
],
"觌": [
"dí"
],
"觎": [
"yú"
],
"觏": [
"gòu"
],
"觐": [
"jìn"
],
"觑": [
"qù",
"qū"
],
"角": [
"jiǎo",
"jué"
],
"觖": [
"jué"
],
"觚": [
"gū"
],
"觞": [
"shāng"
],
"觜": [
"zī",
"zuǐ"
],
"解": [
"jiě",
"jiè",
"xiè"
],
"觥": [
"gōng"
],
"触": [
"chù"
],
"觫": [
"sù"
],
"觯": [
"zhì"
],
"觱": [
"bì"
],
"觳": [
"hú"
],
"言": [
"yán"
],
"訄": [
"qiú"
],
"訇": [
"hōng"
],
"訾": [
"zī"
],
"詈": [
"lì"
],
"詹": [
"zhān"
],
"誉": [
"yù"
],
"誊": [
"téng"
],
"誓": [
"shì"
],
"謇": [
"jiǎn"
],
"警": [
"jǐng"
],
"譬": [
"pì"
],
"计": [
"jì"
],
"订": [
"dìng"
],
"讣": [
"fù"
],
"认": [
"rèn"
],
"讥": [
"jī"
],
"讦": [
"jié"
],
"讧": [
"hòng"
],
"讨": [
"tǎo"
],
"让": [
"ràng"
],
"讪": [
"shàn"
],
"讫": [
"qì"
],
"训": [
"xùn"
],
"议": [
"yì"
],
"讯": [
"xùn"
],
"记": [
"jì"
],
"讲": [
"jiǎng"
],
"讳": [
"huì"
],
"讴": [
"ōu"
],
"讵": [
"jù"
],
"讶": [
"yà"
],
"讷": [
"nè"
],
"许": [
"xǔ",
"hǔ"
],
"讹": [
"é"
],
"论": [
"lùn",
"lún"
],
"讼": [
"sòng"
],
"讽": [
"fěng"
],
"设": [
"shè"
],
"访": [
"fǎng"
],
"诀": [
"jué"
],
"证": [
"zhèng"
],
"诂": [
"gǔ"
],
"诃": [
"hē"
],
"评": [
"píng"
],
"诅": [
"zǔ"
],
"识": [
"shí",
"zhì"
],
"诈": [
"zhà"
],
"诉": [
"sù"
],
"诊": [
"zhěn"
],
"诋": [
"dǐ"
],
"诌": [
"zhōu"
],
"词": [
"cí"
],
"诎": [
"qū"
],
"诏": [
"zhào"
],
"诐": [
"bì"
],
"译": [
"yì"
],
"诒": [
"yí",
"dài"
],
"诓": [
"kuāng"
],
"诔": [
"lěi"
],
"试": [
"shì"
],
"诖": [
"guà"
],
"诗": [
"shī"
],
"诘": [
"jié",
"jí"
],
"诙": [
"huī"
],
"诚": [
"chéng"
],
"诛": [
"zhū"
],
"诜": [
"shēn"
],
"话": [
"huà"
],
"诞": [
"dàn"
],
"诟": [
"gòu"
],
"诠": [
"quán"
],
"诡": [
"guǐ"
],
"询": [
"xún"
],
"诣": [
"yì"
],
"诤": [
"zhèng"
],
"该": [
"gāi"
],
"详": [
"xiáng",
"yáng"
],
"诧": [
"chà"
],
"诨": [
"hùn"
],
"诩": [
"xǔ"
],
"诫": [
"jiè"
],
"诬": [
"wū"
],
"语": [
"yǔ",
"yù"
],
"诮": [
"qiào"
],
"误": [
"wù"
],
"诰": [
"gào"
],
"诱": [
"yòu"
],
"诲": [
"huì"
],
"诳": [
"kuáng"
],
"说": [
"shuō",
"shuì",
"yuè"
],
"诵": [
"sòng"
],
"请": [
"qǐng"
],
"诸": [
"zhū"
],
"诹": [
"zōu"
],
"诺": [
"nuò"
],
"读": [
"dú",
"dòu"
],
"诼": [
"zhuó"
],
"诽": [
"fěi"
],
"课": [
"kè"
],
"诿": [
"wěi"
],
"谀": [
"yú"
],
"谁": [
"shuí"
],
"谂": [
"shěn"
],
"调": [
"tiáo",
"diào",
"zhōu"
],
"谄": [
"chǎn"
],
"谅": [
"liàng"
],
"谆": [
"zhūn"
],
"谇": [
"suì"
],
"谈": [
"tán"
],
"谊": [
"yì"
],
"谋": [
"móu"
],
"谌": [
"chén",
"shèn"
],
"谍": [
"dié"
],
"谎": [
"huǎng"
],
"谏": [
"jiàn"
],
"谐": [
"xié"
],
"谑": [
"xuè"
],
"谒": [
"yè"
],
"谓": [
"wèi"
],
"谔": [
"è"
],
"谕": [
"yù"
],
"谖": [
"xuān"
],
"谗": [
"chán"
],
"谙": [
"ān"
],
"谚": [
"yàn"
],
"谛": [
"dì"
],
"谜": [
"mí"
],
"谝": [
"piǎn"
],
"谟": [
"mó"
],
"谠": [
"dǎng"
],
"谡": [
"sù"
],
"谢": [
"xiè"
],
"谣": [
"yáo"
],
"谤": [
"bàng"
],
"谥": [
"shì"
],
"谦": [
"qiān"
],
"谧": [
"mì"
],
"谨": [
"jǐn"
],
"谩": [
"mán"
],
"谪": [
"zhé"
],
"谫": [
"jiǎn"
],
"谬": [
"miù"
],
"谭": [
"tán"
],
"谮": [
"zèn"
],
"谯": [
"qiáo"
],
"谰": [
"lán"
],
"谱": [
"pǔ"
],
"谲": [
"jué"
],
"谳": [
"yàn"
],
"谴": [
"qiǎn"
],
"谵": [
"zhān"
],
"谶": [
"chèn"
],
"谷": [
"gǔ"
],
"豁": [
"huō",
"huò",
"huá"
],
"豆": [
"dòu"
],
"豇": [
"jiāng"
],
"豉": [
"chǐ"
],
"豌": [
"wān"
],
"豕": [
"shǐ"
],
"豚": [
"tún"
],
"象": [
"xiàng"
],
"豢": [
"huàn"
],
"豨": [
"xī"
],
"豪": [
"háo"
],
"豫": [
"yù"
],
"豳": [
"bīn"
],
"豸": [
"zhì"
],
"豹": [
"bào"
],
"豺": [
"chái"
],
"貂": [
"diāo"
],
"貅": [
"xiū"
],
"貉": [
"hé",
"háo",
"mò"
],
"貊": [
"mò"
],
"貌": [
"mào"
],
"貔": [
"pí"
],
"貘": [
"mò"
],
"贝": [
"bèi"
],
"贞": [
"zhēn"
],
"负": [
"fù"
],
"贡": [
"gòng"
],
"财": [
"cái"
],
"责": [
"zé",
"zhài"
],
"贤": [
"xián"
],
"败": [
"bài"
],
"账": [
"zhàng"
],
"货": [
"huò"
],
"质": [
"zhì"
],
"贩": [
"fàn"
],
"贪": [
"tān"
],
"贫": [
"pín"
],
"贬": [
"biǎn"
],
"购": [
"gòu"
],
"贮": [
"zhù"
],
"贯": [
"guàn"
],
"贰": [
"èr"
],
"贱": [
"jiàn"
],
"贲": [
"bì",
"bēn"
],
"贳": [
"shì"
],
"贴": [
"tiē"
],
"贵": [
"guì"
],
"贶": [
"kuàng"
],
"贷": [
"dài"
],
"贸": [
"mào"
],
"费": [
"fèi"
],
"贺": [
"hè"
],
"贻": [
"yí"
],
"贼": [
"zéi"
],
"贽": [
"zhì"
],
"贾": [
"gǔ",
"jiǎ"
],
"贿": [
"huì"
],
"赁": [
"lìn"
],
"赂": [
"lù"
],
"赃": [
"zāng"
],
"资": [
"zī"
],
"赅": [
"gāi"
],
"赆": [
"jìn"
],
"赇": [
"qiú"
],
"赈": [
"zhèn"
],
"赉": [
"lài"
],
"赊": [
"shē"
],
"赋": [
"fù"
],
"赌": [
"dǔ"
],
"赍": [
"jī"
],
"赎": [
"shú"
],
"赏": [
"shǎng"
],
"赐": [
"cì"
],
"赑": [
"bì"
],
"赓": [
"gēng"
],
"赔": [
"péi"
],
"赖": [
"lài"
],
"赘": [
"zhuì"
],
"赙": [
"fù"
],
"赚": [
"zhuàn"
],
"赛": [
"sài"
],
"赜": [
"zé"
],
"赝": [
"yàn"
],
"赞": [
"zàn"
],
"赟": [
"yūn"
],
"赠": [
"zèng"
],
"赡": [
"shàn"
],
"赢": [
"yíng"
],
"赣": [
"gàn"
],
"赤": [
"chì"
],
"赦": [
"shè"
],
"赧": [
"nǎn"
],
"赪": [
"chēng"
],
"赫": [
"hè"
],
"赭": [
"zhě"
],
"走": [
"zǒu"
],
"赳": [
"jiū"
],
"赴": [
"fù"
],
"赵": [
"zhào"
],
"赶": [
"gǎn"
],
"起": [
"qǐ"
],
"趁": [
"chèn"
],
"趄": [
"qiè",
"jū"
],
"超": [
"chāo"
],
"越": [
"yuè"
],
"趋": [
"qū",
"cù"
],
"趑": [
"zī"
],
"趔": [
"liè"
],
"趟": [
"tàng",
"tāng"
],
"趣": [
"qù",
"cù"
],
"趱": [
"zǎn"
],
"足": [
"zú"
],
"趴": [
"pā"
],
"趵": [
"bào",
"bō"
],
"趸": [
"dǔn"
],
"趺": [
"fū"
],
"趾": [
"zhǐ"
],
"趿": [
"tā"
],
"跃": [
"yuè"
],
"跄": [
"qiāng",
"qiàng"
],
"跆": [
"tái"
],
"跋": [
"bá"
],
"跌": [
"diē"
],
"跎": [
"tuó"
],
"跏": [
"jiā"
],
"跐": [
"cī",
"cǐ"
],
"跑": [
"pǎo",
"páo"
],
"跖": [
"zhí"
],
"跗": [
"fū"
],
"跚": [
"shān"
],
"跛": [
"bǒ"
],
"距": [
"jù"
],
"跞": [
"lì",
"luò"
],
"践": [
"jiàn"
],
"趼": [
"jiǎn"
],
"跟": [
"gēn"
],
"跣": [
"xiǎn"
],
"跤": [
"jiāo"
],
"跨": [
"kuà"
],
"跪": [
"guì"
],
"跬": [
"kuǐ"
],
"路": [
"lù"
],
"跳": [
"tiào",
"táo"
],
"跶": [
"dá"
],
"跷": [
"qiāo"
],
"跸": [
"bì"
],
"跹": [
"xiān"
],
"跺": [
"duò"
],
"跻": [
"jī"
],
"跽": [
"jì"
],
"踅": [
"xué"
],
"踉": [
"liáng",
"liàng"
],
"踊": [
"yǒng"
],
"踌": [
"chóu"
],
"踏": [
"tà"
],
"踔": [
"chuō"
],
"踝": [
"huái"
],
"踞": [
"jù"
],
"踟": [
"chí"
],
"踢": [
"tī"
],
"踣": [
"bó"
],
"踩": [
"cǎi"
],
"踪": [
"zōng"
],
"踬": [
"zhì"
],
"踮": [
"diǎn"
],
"踯": [
"zhí"
],
"踺": [
"jiàn"
],
"踱": [
"duó"
],
"踵": [
"zhǒng"
],
"踶": [
"dì"
],
"踹": [
"chuài"
],
"踽": [
"jǔ"
],
"蹀": [
"dié"
],
"蹁": [
"pián"
],
"蹂": [
"róu"
],
"蹄": [
"tí"
],
"蹅": [
"chǎ"
],
"蹇": [
"jiǎn"
],
"蹈": [
"dǎo"
],
"蹉": [
"cuō"
],
"蹊": [
"qī",
"xī"
],
"蹋": [
"tà"
],
"蹐": [
"jí"
],
"蹑": [
"niè"
],
"蹒": [
"pán"
],
"蹓": [
"liū"
],
"蹙": [
"cù"
],
"蹜": [
"sù"
],
"蹢": [
"dí"
],
"蹦": [
"bèng"
],
"蹩": [
"bié"
],
"蹬": [
"dēng"
],
"蹭": [
"cèng"
],
"蹯": [
"fán"
],
"蹰": [
"chú"
],
"蹲": [
"dūn"
],
"蹴": [
"cù"
],
"蹶": [
"jué",
"juě"
],
"蹼": [
"pǔ"
],
"蹽": [
"liāo"
],
"蹾": [
"dūn"
],
"蹿": [
"cuān"
],
"躁": [
"zào"
],
"躅": [
"zhú"
],
"躇": [
"chú"
],
"躏": [
"lìn"
],
"躐": [
"liè"
],
"躔": [
"chán"
],
"躜": [
"zuān"
],
"躞": [
"xiè"
],
"身": [
"shēn"
],
"躬": [
"gōng"
],
"躯": [
"qū"
],
"躲": [
"duǒ"
],
"躺": [
"tǎng"
],
"车": [
"chē",
"jū"
],
"轧": [
"yà",
"zhá",
"gá"
],
"轨": [
"guǐ"
],
"轩": [
"xuān"
],
"轪": [
"dài"
],
"轫": [
"rèn"
],
"转": [
"zhuǎn",
"zhuàn",
"zhuǎi"
],
"轭": [
"è"
],
"轮": [
"lún"
],
"软": [
"ruǎn"
],
"轰": [
"hōng"
],
"轱": [
"gū"
],
"轲": [
"kē"
],
"轳": [
"lú"
],
"轴": [
"zhóu",
"zhòu"
],
"轵": [
"zhǐ"
],
"轶": [
"yì"
],
"轷": [
"hū"
],
"轸": [
"zhěn"
],
"轹": [
"lì"
],
"轺": [
"yáo"
],
"轻": [
"qīng"
],
"轼": [
"shì"
],
"载": [
"zǎi",
"zài"
],
"轾": [
"zhì"
],
"轿": [
"jiào"
],
"辀": [
"zhōu"
],
"辁": [
"quán"
],
"辂": [
"lù"
],
"较": [
"jiào"
],
"辄": [
"zhé"
],
"辅": [
"fǔ"
],
"辆": [
"liàng"
],
"辇": [
"niǎn"
],
"辈": [
"bèi"
],
"辉": [
"huī"
],
"辊": [
"gǔn"
],
"辋": [
"wǎng"
],
"辌": [
"liáng"
],
"辍": [
"chuò"
],
"辎": [
"zī"
],
"辏": [
"còu"
],
"辐": [
"fú"
],
"辑": [
"jí"
],
"辒": [
"wēn"
],
"输": [
"shū"
],
"辔": [
"pèi"
],
"辕": [
"yuán"
],
"辖": [
"xiá"
],
"辗": [
"zhǎn",
"niǎn"
],
"辘": [
"lù"
],
"辙": [
"zhé"
],
"辚": [
"lín"
],
"辛": [
"xīn"
],
"辜": [
"gū"
],
"辞": [
"cí"
],
"辟": [
"bì",
"pì"
],
"辣": [
"là"
],
"辨": [
"biàn"
],
"辩": [
"biàn"
],
"辫": [
"biàn"
],
"辰": [
"chén"
],
"辱": [
"rǔ"
],
"边": [
"biān"
],
"辽": [
"liáo"
],
"巡": [
"xún"
],
"达": [
"dá"
],
"迁": [
"qiān"
],
"迂": [
"yū"
],
"迄": [
"qì"
],
"迅": [
"xùn"
],
"过": [
"guò",
"guo",
"guō"
],
"迈": [
"mài"
],
"迎": [
"yíng"
],
"运": [
"yùn"
],
"近": [
"jìn"
],
"迓": [
"yà"
],
"返": [
"fǎn"
],
"迕": [
"wǔ"
],
"还": [
"huán",
"hái"
],
"这": [
"zhè",
"zhèi"
],
"进": [
"jìn"
],
"远": [
"yuǎn",
"yuàn"
],
"违": [
"wéi"
],
"连": [
"lián"
],
"迟": [
"chí"
],
"迢": [
"tiáo"
],
"迤": [
"yǐ",
"yí"
],
"迥": [
"jiǒng"
],
"迦": [
"jiā"
],
"迨": [
"dài"
],
"迩": [
"ěr"
],
"迪": [
"dí"
],
"迫": [
"pò",
"pǎi"
],
"迭": [
"dié"
],
"迮": [
"zé"
],
"述": [
"shù"
],
"迷": [
"mí"
],
"迸": [
"bèng"
],
"迹": [
"jì"
],
"追": [
"zhuī",
"duī"
],
"退": [
"tuì"
],
"送": [
"sòng"
],
"适": [
"shì",
"kuò"
],
"逃": [
"táo"
],
"逄": [
"páng"
],
"逅": [
"hòu"
],
"逆": [
"nì"
],
"选": [
"xuǎn"
],
"逊": [
"xùn"
],
"逋": [
"bū"
],
"逍": [
"xiāo"
],
"透": [
"tòu"
],
"逐": [
"zhú"
],
"逑": [
"qiú"
],
"递": [
"dì"
],
"途": [
"tú"
],
"逖": [
"tì"
],
"逗": [
"dòu"
],
"通": [
"tōng"
],
"逛": [
"guàng"
],
"逝": [
"shì"
],
"逞": [
"chěng"
],
"速": [
"sù"
],
"造": [
"zào"
],
"逡": [
"qūn"
],
"逢": [
"féng"
],
"逦": [
"lǐ"
],
"逭": [
"huàn"
],
"逮": [
"dài",
"dǎi"
],
"逯": [
"lù"
],
"逵": [
"kuí"
],
"逶": [
"wēi"
],
"逸": [
"yì"
],
"逻": [
"luó"
],
"逼": [
"bī"
],
"逾": [
"yú"
],
"遁": [
"dùn"
],
"遂": [
"suì"
],
"遄": [
"chuán"
],
"遇": [
"yù"
],
"遍": [
"biàn"
],
"遏": [
"è"
],
"遐": [
"xiá"
],
"遑": [
"huáng"
],
"遒": [
"qiú"
],
"道": [
"dào"
],
"遗": [
"yí"
],
"遘": [
"gòu"
],
"遛": [
"liù"
],
"遢": [
"tà"
],
"遣": [
"qiǎn"
],
"遥": [
"yáo"
],
"遨": [
"áo"
],
"遭": [
"zāo"
],
"遮": [
"zhē"
],
"遴": [
"lín"
],
"遵": [
"zūn"
],
"遽": [
"jù"
],
"避": [
"bì"
],
"邀": [
"yāo"
],
"邂": [
"xiè"
],
"邃": [
"suì"
],
"邈": [
"miǎo"
],
"邋": [
"lā"
],
"邑": [
"yì"
],
"邓": [
"dèng"
],
"邕": [
"yōng"
],
"邗": [
"hán"
],
"邙": [
"máng"
],
"邛": [
"qióng"
],
"邝": [
"kuàng"
],
"邡": [
"fāng"
],
"邢": [
"xíng"
],
"那": [
"nà",
"nǎ",
"nèi",
"nā"
],
"邦": [
"bāng"
],
"邪": [
"xié",
"yé"
],
"邬": [
"wū"
],
"邮": [
"yóu"
],
"邯": [
"hán"
],
"邰": [
"tái"
],
"邱": [
"qiū"
],
"邳": [
"pī"
],
"邴": [
"bǐng"
],
"邵": [
"shào"
],
"邶": [
"bèi"
],
"邸": [
"dǐ"
],
"邹": [
"zōu"
],
"邺": [
"yè"
],
"邻": [
"lín"
],
"邽": [
"guī"
],
"邾": [
"zhū"
],
"郁": [
"yù"
],
"郄": [
"qiè",
"xì"
],
"郅": [
"zhì"
],
"郇": [
"xún",
"huán"
],
"郈": [
"hòu"
],
"郊": [
"jiāo"
],
"郎": [
"láng",
"làng"
],
"郏": [
"jiá"
],
"郐": [
"kuài"
],
"郑": [
"zhèng"
],
"郓": [
"yùn"
],
"郗": [
"xī"
],
"郚": [
"wú"
],
"郛": [
"fú"
],
"郜": [
"gào"
],
"郝": [
"hǎo"
],
"郡": [
"jùn"
],
"郢": [
"yǐng"
],
"郦": [
"lì",
"zhí"
],
"郧": [
"yún"
],
"部": [
"bù"
],
"郫": [
"pí"
],
"郭": [
"guō"
],
"郯": [
"tán"
],
"郴": [
"chēn"
],
"郸": [
"dān"
],
"都": [
"dū",
"dōu"
],
"郾": [
"yǎn"
],
"郿": [
"méi"
],
"鄂": [
"è"
],
"鄄": [
"juàn"
],
"鄌": [
"táng"
],
"鄘": [
"yōng"
],
"鄙": [
"bǐ"
],
"鄞": [
"yín"
],
"鄢": [
"yān"
],
"鄣": [
"zhāng"
],
"鄯": [
"shàn"
],
"鄱": [
"pó"
],
"鄹": [
"zōu"
],
"酃": [
"líng"
],
"酆": [
"fēng"
],
"酉": [
"yǒu"
],
"酊": [
"dīng",
"dǐng"
],
"酋": [
"qiú"
],
"酌": [
"zhuó"
],
"配": [
"pèi"
],
"酎": [
"zhòu"
],
"酏": [
"yǐ"
],
"酐": [
"gān"
],
"酒": [
"jiǔ"
],
"酗": [
"xù"
],
"酚": [
"fēn"
],
"酝": [
"yùn"
],
"酞": [
"tài"
],
"酡": [
"tuó"
],
"酢": [
"zuò"
],
"酣": [
"hān"
],
"酤": [
"gū"
],
"酥": [
"sū"
],
"酦": [
"pō"
],
"酩": [
"mǐng"
],
"酪": [
"lào"
],
"酬": [
"chóu"
],
"酮": [
"tóng"
],
"酯": [
"zhǐ"
],
"酰": [
"xiān"
],
"酱": [
"jiàng"
],
"酲": [
"chéng"
],
"酴": [
"tú"
],
"酵": [
"jiào"
],
"酶": [
"méi"
],
"酷": [
"kù"
],
"酸": [
"suān"
],
"酹": [
"lèi"
],
"酽": [
"yàn"
],
"酾": [
"shī"
],
"酿": [
"niàng"
],
"醅": [
"pēi"
],
"醇": [
"chún"
],
"醉": [
"zuì"
],
"醋": [
"cù"
],
"醌": [
"kūn"
],
"醍": [
"tí",
"tǐ"
],
"醐": [
"hú"
],
"醑": [
"xǔ"
],
"醒": [
"xǐng"
],
"醚": [
"mí"
],
"醛": [
"quán"
],
"醢": [
"hǎi"
],
"醪": [
"láo"
],
"醭": [
"bú"
],
"醮": [
"jiào"
],
"醯": [
"xī"
],
"醴": [
"lǐ"
],
"醵": [
"jù"
],
"醺": [
"xūn"
],
"醾": [
"mí"
],
"采": [
"cǎi",
"cài"
],
"釉": [
"yòu"
],
"释": [
"shì"
],
"里": [
"lǐ"
],
"重": [
"zhòng",
"chóng"
],
"野": [
"yě"
],
"量": [
"liáng",
"liàng"
],
"金": [
"jīn"
],
"釜": [
"fǔ"
],
"鉴": [
"jiàn"
],
"銎": [
"qióng"
],
"銮": [
"luán"
],
"鋆": [
"yún"
],
"鋈": [
"wù"
],
"錾": [
"zàn"
],
"鍪": [
"móu"
],
"鎏": [
"liú"
],
"鏊": [
"ào"
],
"鏖": [
"áo"
],
"鐾": [
"bèi"
],
"鑫": [
"xīn"
],
"钆": [
"gá"
],
"钇": [
"yǐ"
],
"针": [
"zhēn"
],
"钉": [
"dīng",
"dìng"
],
"钊": [
"zhāo"
],
"钋": [
"pō"
],
"钌": [
"liǎo",
"liào"
],
"钍": [
"tǔ"
],
"钎": [
"qiān"
],
"钏": [
"chuàn"
],
"钐": [
"shān",
"shàn"
],
"钒": [
"fán"
],
"钓": [
"diào"
],
"钔": [
"mén"
],
"钕": [
"nǚ"
],
"钗": [
"chāi"
],
"钘": [
"xíng"
],
"钙": [
"gài"
],
"钚": [
"bù"
],
"钛": [
"tài"
],
"钝": [
"dùn"
],
"钞": [
"chāo"
],
"钟": [
"zhōng"
],
"钠": [
"nà"
],
"钡": [
"bèi"
],
"钢": [
"gāng",
"gàng"
],
"钣": [
"bǎn"
],
"钤": [
"qián"
],
"钥": [
"yuè",
"yào"
],
"钦": [
"qīn"
],
"钧": [
"jūn"
],
"钨": [
"wū"
],
"钩": [
"gōu"
],
"钪": [
"kàng"
],
"钫": [
"fāng"
],
"钬": [
"huǒ"
],
"钭": [
"dǒu"
],
"钮": [
"niǔ"
],
"钯": [
"bǎ",
"pá"
],
"钰": [
"yù"
],
"钱": [
"qián"
],
"钲": [
"zhēng",
"zhèng"
],
"钳": [
"qián"
],
"钴": [
"gǔ"
],
"钵": [
"bō"
],
"钷": [
"pǒ"
],
"钹": [
"bó"
],
"钺": [
"yuè"
],
"钻": [
"zuān",
"zuàn"
],
"钼": [
"mù"
],
"钽": [
"tǎn"
],
"钾": [
"jiǎ"
],
"钿": [
"diàn",
"tián"
],
"铀": [
"yóu"
],
"铁": [
"tiě"
],
"铂": [
"bó"
],
"铃": [
"líng"
],
"铄": [
"shuò"
],
"铅": [
"qiān",
"yán"
],
"铆": [
"mǎo"
],
"铈": [
"shì"
],
"铉": [
"xuàn"
],
"铊": [
"tā",
"tuó"
],
"铋": [
"bì"
],
"铌": [
"ní"
],
"铍": [
"pí",
"pī"
],
"铎": [
"duó"
],
"铐": [
"kào"
],
"铑": [
"lǎo"
],
"铒": [
"ěr"
],
"铕": [
"yǒu"
],
"铗": [
"jiá"
],
"铘": [
"yé"
],
"铙": [
"náo"
],
"铚": [
"zhì"
],
"铛": [
"dāng",
"chēng"
],
"铜": [
"tóng"
],
"铝": [
"lǚ"
],
"铞": [
"diào"
],
"铟": [
"yīn"
],
"铠": [
"kǎi"
],
"铡": [
"zhá"
],
"铢": [
"zhū"
],
"铣": [
"xiǎn",
"xǐ"
],
"铤": [
"tǐng",
"dìng"
],
"铥": [
"diū"
],
"铧": [
"huá"
],
"铨": [
"quán"
],
"铩": [
"shā"
],
"铪": [
"hā",
"kē"
],
"铫": [
"diào",
"tiáo",
"yáo"
],
"铬": [
"gè"
],
"铭": [
"míng"
],
"铮": [
"zhēng"
],
"铯": [
"sè"
],
"铰": [
"jiǎo"
],
"铱": [
"yī"
],
"铲": [
"chǎn"
],
"铳": [
"chòng"
],
"铴": [
"tàng",
"tāng"
],
"铵": [
"ǎn"
],
"银": [
"yín"
],
"铷": [
"rú"
],
"铸": [
"zhù"
],
"铹": [
"láo"
],
"铺": [
"pū",
"pù"
],
"铻": [
"wú"
],
"铼": [
"lái"
],
"铽": [
"tè"
],
"链": [
"liàn"
],
"铿": [
"kēng"
],
"销": [
"xiāo"
],
"锁": [
"suǒ"
],
"锂": [
"lǐ"
],
"锃": [
"zèng"
],
"锄": [
"chú"
],
"锅": [
"guō"
],
"锆": [
"gào"
],
"锇": [
"é"
],
"锈": [
"xiù"
],
"锉": [
"cuò"
],
"锊": [
"lüè"
],
"锋": [
"fēng"
],
"锌": [
"xīn"
],
"锎": [
"kāi"
],
"锏": [
"jiǎn"
],
"锐": [
"ruì"
],
"锑": [
"tī"
],
"锒": [
"láng"
],
"锓": [
"qǐn"
],
"锔": [
"jū"
],
"锕": [
"ā"
],
"锖": [
"qiāng"
],
"锗": [
"zhě"
],
"锘": [
"nuò"
],
"错": [
"cuò"
],
"锚": [
"máo"
],
"锛": [
"bēn"
],
"锜": [
"qí"
],
"锝": [
"dé"
],
"锞": [
"kè"
],
"锟": [
"kūn"
],
"锡": [
"xī"
],
"锢": [
"gù"
],
"锣": [
"luó"
],
"锤": [
"chuí"
],
"锥": [
"zhuī"
],
"锦": [
"jǐn"
],
"锧": [
"zhì"
],
"锨": [
"xiān"
],
"锩": [
"juǎn"
],
"锪": [
"huò"
],
"锫": [
"péi"
],
"锬": [
"tán"
],
"锭": [
"dìng"
],
"键": [
"jiàn"
],
"锯": [
"jù"
],
"锰": [
"měng"
],
"锱": [
"zī"
],
"锲": [
"qiè"
],
"锴": [
"kǎi"
],
"锵": [
"qiāng"
],
"锶": [
"sī"
],
"锷": [
"è"
],
"锸": [
"chā"
],
"锹": [
"qiāo"
],
"锻": [
"duàn"
],
"锽": [
"huáng"
],
"锾": [
"huán"
],
"锿": [
"āi"
],
"镀": [
"dù"
],
"镁": [
"měi"
],
"镂": [
"lòu"
],
"镃": [
"zī"
],
"镄": [
"fèi"
],
"镅": [
"méi"
],
"镆": [
"mò"
],
"镇": [
"zhèn"
],
"镈": [
"bó"
],
"镉": [
"gé",
"lì"
],
"镊": [
"niè"
],
"镋": [
"tǎng"
],
"镌": [
"juān"
],
"镍": [
"niè"
],
"镎": [
"ná"
],
"镏": [
"liú"
],
"镐": [
"gǎo",
"hào"
],
"镑": [
"bàng"
],
"镒": [
"yì"
],
"镓": [
"jiā"
],
"镔": [
"bīn"
],
"镖": [
"biāo"
],
"镗": [
"tāng",
"táng"
],
"镘": [
"màn"
],
"镚": [
"bèng"
],
"镛": [
"yōng"
],
"镜": [
"jìng"
],
"镝": [
"dí"
],
"镞": [
"zú"
],
"镠": [
"liú"
],
"镡": [
"xín"
],
"镢": [
"jué"
],
"镣": [
"liào"
],
"镤": [
"pú"
],
"镥": [
"lǔ"
],
"镦": [
"duī"
],
"镧": [
"lán"
],
"镨": [
"pǔ"
],
"镩": [
"cuān"
],
"镪": [
"qiǎng"
],
"镫": [
"dèng"
],
"镬": [
"huò"
],
"镭": [
"léi"
],
"镯": [
"zhuó"
],
"镰": [
"lián"
],
"镱": [
"yì"
],
"镲": [
"chǎ"
],
"镳": [
"biāo"
],
"镴": [
"là"
],
"镵": [
"chán"
],
"镶": [
"xiāng"
],
"长": [
"cháng",
"zhǎng"
],
"门": [
"mén"
],
"闩": [
"shuān"
],
"闪": [
"shǎn"
],
"闭": [
"bì"
],
"问": [
"wèn"
],
"闯": [
"chuǎng"
],
"闰": [
"rùn"
],
"闱": [
"wéi"
],
"闲": [
"xián"
],
"闳": [
"hóng"
],
"间": [
"jiān",
"jiàn"
],
"闵": [
"mǐn"
],
"闶": [
"kàng",
"kāng"
],
"闷": [
"mèn",
"mēn"
],
"闸": [
"zhá"
],
"闹": [
"nào"
],
"闺": [
"guī"
],
"闻": [
"wén"
],
"闼": [
"tà"
],
"闽": [
"mǐn"
],
"闾": [
"lǘ"
],
"闿": [
"kǎi"
],
"阀": [
"fá"
],
"阁": [
"gé"
],
"阂": [
"hé"
],
"阃": [
"kǔn"
],
"阄": [
"jiū"
],
"阅": [
"yuè"
],
"阆": [
"làng"
],
"阇": [
"dū",
"shé"
],
"阈": [
"yù"
],
"阉": [
"yān"
],
"阊": [
"chāng"
],
"阋": [
"xì"
],
"阌": [
"wén"
],
"阍": [
"hūn"
],
"阎": [
"yán"
],
"阏": [
"è",
"yān"
],
"阐": [
"chǎn"
],
"阑": [
"lán"
],
"阒": [
"qù"
],
"阔": [
"kuò"
],
"阕": [
"què"
],
"阖": [
"hé"
],
"阗": [
"tián"
],
"阘": [
"tà"
],
"阙": [
"quē",
"què"
],
"阚": [
"kàn"
],
"阜": [
"fù"
],
"队": [
"duì"
],
"阡": [
"qiān"
],
"阢": [
"wù"
],
"阪": [
"bǎn"
],
"阮": [
"ruǎn"
],
"阱": [
"jǐng"
],
"防": [
"fáng"
],
"阳": [
"yáng"
],
"阴": [
"yīn"
],
"阵": [
"zhèn"
],
"阶": [
"jiē"
],
"阻": [
"zǔ"
],
"阼": [
"zuò"
],
"阽": [
"diàn"
],
"阿": [
"ā",
"ē"
],
"陀": [
"tuó"
],
"陂": [
"bēi",
"pí",
"pō"
],
"附": [
"fù"
],
"际": [
"jì"
],
"陆": [
"lù"
],
"陇": [
"lǒng"
],
"陈": [
"chén"
],
"陉": [
"xíng"
],
"陋": [
"lòu"
],
"陌": [
"mò"
],
"降": [
"jiàng",
"xiáng"
],
"限": [
"xiàn"
],
"陔": [
"gāi"
],
"陕": [
"shǎn"
],
"陛": [
"bì"
],
"陟": [
"zhì"
],
"陡": [
"dǒu"
],
"院": [
"yuàn"
],
"除": [
"chú"
],
"陧": [
"niè"
],
"陨": [
"yǔn"
],
"险": [
"xiǎn"
],
"陪": [
"péi"
],
"陬": [
"zōu"
],
"陲": [
"chuí"
],
"陴": [
"pī"
],
"陵": [
"líng"
],
"陶": [
"táo"
],
"陷": [
"xiàn"
],
"隅": [
"yú"
],
"隆": [
"lóng"
],
"隈": [
"wēi"
],
"隋": [
"suí",
"duò"
],
"隍": [
"huáng"
],
"随": [
"suí"
],
"隐": [
"yǐn",
"yìn"
],
"隔": [
"gé"
],
"隗": [
"wěi",
"kuí"
],
"隘": [
"ài"
],
"隙": [
"xì"
],
"障": [
"zhàng"
],
"隧": [
"suì"
],
"隰": [
"xí"
],
"隳": [
"huī",
"duò"
],
"隶": [
"lì"
],
"隼": [
"sǔn"
],
"隽": [
"jùn",
"juàn"
],
"难": [
"nán",
"nàn",
"nuó"
],
"雀": [
"què",
"qiāo",
"qiǎo"
],
"雁": [
"yàn"
],
"雄": [
"xióng"
],
"雅": [
"yǎ"
],
"集": [
"jí"
],
"雇": [
"gù"
],
"雉": [
"zhì"
],
"雌": [
"cí"
],
"雍": [
"yōng"
],
"雎": [
"jū"
],
"雏": [
"chú"
],
"雒": [
"luò"
],
"雕": [
"diāo"
],
"雠": [
"chóu"
],
"雨": [
"yǔ",
"yù"
],
"雩": [
"yú"
],
"雪": [
"xuě"
],
"雯": [
"wén"
],
"雳": [
"lì"
],
"零": [
"líng"
],
"雷": [
"léi"
],
"雹": [
"báo"
],
"雾": [
"wù"
],
"需": [
"xū"
],
"霁": [
"jì"
],
"霄": [
"xiāo"
],
"霆": [
"tíng"
],
"震": [
"zhèn"
],
"霈": [
"pèi"
],
"霉": [
"méi"
],
"霍": [
"huò"
],
"霎": [
"shà"
],
"霏": [
"fēi"
],
"霓": [
"ní"
],
"霖": [
"lín"
],
"霜": [
"shuāng"
],
"霞": [
"xiá"
],
"霪": [
"yín"
],
"霭": [
"ǎi"
],
"霰": [
"xiàn"
],
"露": [
"lù",
"lòu"
],
"霸": [
"bà"
],
"霹": [
"pī"
],
"霾": [
"mái"
],
"青": [
"qīng"
],
"靓": [
"jìng",
"liàng"
],
"靖": [
"jìng"
],
"静": [
"jìng"
],
"靛": [
"diàn"
],
"非": [
"fēi"
],
"靠": [
"kào"
],
"靡": [
"mí"
],
"面": [
"miàn"
],
"靥": [
"yè"
],
"革": [
"gé"
],
"靰": [
"wù"
],
"靳": [
"jìn"
],
"靴": [
"xuē"
],
"靶": [
"bǎ"
],
"靸": [
"sǎ"
],
"靺": [
"mò"
],
"靼": [
"dá"
],
"靽": [
"bàn"
],
"靿": [
"yào"
],
"鞁": [
"bèi"
],
"鞅": [
"yāng",
"yàng"
],
"鞋": [
"xié"
],
"鞍": [
"ān"
],
"鞑": [
"dá"
],
"鞒": [
"qiáo"
],
"鞘": [
"qiào",
"shāo"
],
"鞠": [
"jū"
],
"鞡": [
"la"
],
"鞣": [
"róu"
],
"鞧": [
"qiū"
],
"鞨": [
"hé"
],
"鞫": [
"jū"
],
"鞭": [
"biān"
],
"鞯": [
"jiān"
],
"鞲": [
"gōu"
],
"鞴": [
"bèi"
],
"韂": [
"chàn"
],
"韦": [
"wéi"
],
"韧": [
"rèn"
],
"韨": [
"fú"
],
"韩": [
"hán"
],
"韪": [
"wěi"
],
"韫": [
"yùn",
"wēn"
],
"韬": [
"tāo"
],
"韭": [
"jiǔ"
],
"音": [
"yīn"
],
"竟": [
"jìng"
],
"章": [
"zhāng"
],
"韵": [
"yùn"
],
"韶": [
"sháo"
],
"页": [
"yè"
],
"顶": [
"dǐng"
],
"顷": [
"qǐng"
],
"顸": [
"hān"
],
"项": [
"xiàng"
],
"顺": [
"shùn"
],
"须": [
"xū"
],
"顼": [
"xū"
],
"顽": [
"wán"
],
"顾": [
"gù"
],
"顿": [
"dùn"
],
"颀": [
"qí"
],
"颁": [
"bān"
],
"颂": [
"sòng"
],
"颃": [
"háng"
],
"预": [
"yù"
],
"颅": [
"lú"
],
"领": [
"lǐng"
],
"颇": [
"pō"
],
"颈": [
"jǐng",
"gěng"
],
"颉": [
"jié",
"xié",
"jiá"
],
"颊": [
"jiá"
],
"颋": [
"tǐng"
],
"颌": [
"hé",
"gé"
],
"颍": [
"yǐng"
],
"颏": [
"kē"
],
"颐": [
"yí"
],
"频": [
"pín",
"bīn"
],
"颓": [
"tuí"
],
"颔": [
"hàn"
],
"颖": [
"yǐng"
],
"颗": [
"kē"
],
"题": [
"tí"
],
"颙": [
"yóng"
],
"颚": [
"è"
],
"颛": [
"zhuān"
],
"颜": [
"yán"
],
"额": [
"é"
],
"颞": [
"niè"
],
"颟": [
"mān"
],
"颠": [
"diān"
],
"颡": [
"sǎng"
],
"颢": [
"hào"
],
"颤": [
"chàn",
"zhàn"
],
"颥": [
"rú"
],
"颦": [
"pín"
],
"颧": [
"quán"
],
"风": [
"fēng",
"fěng"
],
"飐": [
"zhǎn"
],
"飑": [
"biāo"
],
"飒": [
"sà"
],
"飓": [
"jù"
],
"飔": [
"sī"
],
"飕": [
"sōu"
],
"飗": [
"liú"
],
"飘": [
"piāo"
],
"飙": [
"biāo"
],
"飞": [
"fēi"
],
"食": [
"shí",
"sì",
"yì"
],
"飧": [
"sūn"
],
"飨": [
"xiǎng"
],
"餍": [
"yàn"
],
"餐": [
"cān"
],
"餮": [
"tiè"
],
"饔": [
"yōng"
],
"饕": [
"tāo"
],
"饥": [
"jī"
],
"饧": [
"xíng"
],
"饨": [
"tún"
],
"饩": [
"xì"
],
"饪": [
"rèn"
],
"饫": [
"yù"
],
"饬": [
"chì"
],
"饭": [
"fàn"
],
"饮": [
"yǐn",
"yìn"
],
"饯": [
"jiàn"
],
"饰": [
"shì"
],
"饱": [
"bǎo"
],
"饲": [
"sì"
],
"饳": [
"duò"
],
"饴": [
"yí",
"sì"
],
"饵": [
"ěr"
],
"饶": [
"ráo"
],
"饷": [
"xiǎng"
],
"饸": [
"hé"
],
"饹": [
"le"
],
"饺": [
"jiǎo"
],
"饻": [
"xī"
],
"饼": [
"bǐng"
],
"饽": [
"bō"
],
"饿": [
"è"
],
"馀": [
"yú"
],
"馁": [
"něi"
],
"馃": [
"guǒ"
],
"馄": [
"hún"
],
"馅": [
"xiàn"
],
"馆": [
"guǎn"
],
"馇": [
"chā"
],
"馈": [
"kuì"
],
"馊": [
"sōu"
],
"馋": [
"chán"
],
"馉": [
"gǔ"
],
"馌": [
"yè"
],
"馍": [
"mó"
],
"馏": [
"liù",
"liú"
],
"馐": [
"xiū"
],
"馑": [
"jǐn"
],
"馒": [
"mán"
],
"馓": [
"sǎn"
],
"馔": [
"zhuàn"
],
"馕": [
"náng",
"nǎng"
],
"首": [
"shǒu"
],
"馗": [
"kuí",
"qiú"
],
"馘": [
"guó"
],
"香": [
"xiāng"
],
"馥": [
"fù"
],
"馨": [
"xīn"
],
"马": [
"mǎ"
],
"驭": [
"yù"
],
"驮": [
"tuó"
],
"驯": [
"xùn"
],
"驰": [
"chí"
],
"驱": [
"qū"
],
"驳": [
"bó"
],
"驴": [
"lǘ"
],
"驵": [
"zǎng"
],
"驶": [
"shǐ"
],
"驷": [
"sì"
],
"驸": [
"fù"
],
"驹": [
"jū"
],
"驺": [
"zōu"
],
"驻": [
"zhù"
],
"驼": [
"tuó"
],
"驽": [
"nú"
],
"驾": [
"jià"
],
"驿": [
"yì"
],
"骀": [
"tái"
],
"骁": [
"xiāo"
],
"骂": [
"mà"
],
"骄": [
"jiāo"
],
"骅": [
"huá"
],
"骆": [
"luò"
],
"骇": [
"hài"
],
"骈": [
"pián"
],
"骊": [
"lí"
],
"骋": [
"chěng"
],
"验": [
"yàn"
],
"骍": [
"xīng"
],
"骎": [
"qīn"
],
"骏": [
"jùn"
],
"骐": [
"qí"
],
"骑": [
"qí"
],
"骒": [
"kè"
],
"骓": [
"zhuī"
],
"骖": [
"cān"
],
"骗": [
"piàn"
],
"骘": [
"zhì"
],
"骙": [
"kuí"
],
"骚": [
"sāo",
"sǎo"
],
"骛": [
"wù"
],
"骜": [
"áo"
],
"骝": [
"liú"
],
"骞": [
"qiān"
],
"骟": [
"shàn"
],
"骠": [
"piào",
"biāo"
],
"骡": [
"luó"
],
"骢": [
"cōng"
],
"骣": [
"chǎn"
],
"骤": [
"zhòu"
],
"骥": [
"jì"
],
"骧": [
"xiāng"
],
"骨": [
"gǔ",
"gū"
],
"骰": [
"tóu"
],
"骶": [
"dǐ"
],
"骷": [
"kū"
],
"骸": [
"hái"
],
"骺": [
"hóu"
],
"骼": [
"gé"
],
"髀": [
"bì"
],
"髁": [
"kē"
],
"髂": [
"qià"
],
"髅": [
"lóu"
],
"髋": [
"kuān"
],
"髌": [
"bìn"
],
"髑": [
"dú"
],
"髓": [
"suǐ"
],
"高": [
"gāo"
],
"髡": [
"kūn"
],
"髦": [
"máo"
],
"髫": [
"tiáo"
],
"髭": [
"zī"
],
"髯": [
"rán"
],
"髹": [
"xiū"
],
"髻": [
"jì"
],
"鬃": [
"zōng"
],
"鬈": [
"quán"
],
"鬏": [
"jiū"
],
"鬓": [
"bìn"
],
"鬟": [
"huán"
],
"鬣": [
"liè"
],
"鬯": [
"chàng"
],
"鬲": [
"gé",
"lì"
],
"鬹": [
"guī"
],
"鬻": [
"yù"
],
"鬼": [
"guǐ"
],
"魁": [
"kuí"
],
"魂": [
"hún"
],
"魃": [
"bá"
],
"魄": [
"pò"
],
"魅": [
"mèi"
],
"魆": [
"xū"
],
"魇": [
"yǎn"
],
"魈": [
"xiāo"
],
"魉": [
"liǎng"
],
"魍": [
"wǎng"
],
"魏": [
"wèi"
],
"魑": [
"chī"
],
"魔": [
"mó"
],
"鱼": [
"yú"
],
"鱽": [
"dāo"
],
"鱾": [
"jǐ"
],
"鱿": [
"yóu"
],
"鲀": [
"tún"
],
"鲁": [
"lǔ"
],
"鲂": [
"fáng"
],
"鲃": [
"bā",
"bà"
],
"鲅": [
"bà"
],
"鲆": [
"píng"
],
"鲇": [
"nián"
],
"鲈": [
"lú"
],
"鲉": [
"yóu"
],
"鲊": [
"zhǎ",
"zhà"
],
"鲋": [
"fù"
],
"鲌": [
"bó",
"bà"
],
"鲍": [
"bào"
],
"鲎": [
"hòu"
],
"鲏": [
"pí"
],
"鲐": [
"tái"
],
"鲑": [
"guī",
"xié"
],
"鲔": [
"wěi"
],
"鲙": [
"kuài"
],
"鲚": [
"jì"
],
"鲛": [
"jiāo"
],
"鲜": [
"xiān",
"xiǎn"
],
"鲞": [
"xiǎng"
],
"鲟": [
"xún"
],
"鲠": [
"gěng"
],
"鲡": [
"lí"
],
"鲢": [
"lián"
],
"鲣": [
"jiān"
],
"鲤": [
"lǐ"
],
"鲥": [
"shí"
],
"鲦": [
"tiáo"
],
"鲧": [
"gǔn"
],
"鲨": [
"shā"
],
"鲩": [
"huàn"
],
"鲪": [
"jūn"
],
"鲫": [
"jì"
],
"鲬": [
"yǒng"
],
"鲭": [
"qīng"
],
"鲮": [
"líng"
],
"鲯": [
"qí"
],
"鲰": [
"zōu"
],
"鲱": [
"fēi"
],
"鲲": [
"kūn"
],
"鲳": [
"chāng"
],
"鲴": [
"gù"
],
"鲵": [
"ní"
],
"鲷": [
"diāo"
],
"鲸": [
"jīng"
],
"鲹": [
"shēn"
],
"鲺": [
"shī"
],
"鲻": [
"zī"
],
"鲼": [
"fèn"
],
"鲽": [
"dié"
],
"鳀": [
"tí"
],
"鳁": [
"wēn"
],
"鳂": [
"wēi"
],
"鳃": [
"sāi",
"xǐ"
],
"鳄": [
"è"
],
"鳅": [
"qiū"
],
"鳆": [
"fù"
],
"鳇": [
"huáng"
],
"鳈": [
"quán"
],
"鳉": [
"jiāng"
],
"鳊": [
"biān"
],
"鲾": [
"bī"
],
"鳌": [
"áo"
],
"鳍": [
"qí"
],
"鳎": [
"tǎ"
],
"鳏": [
"guān"
],
"鳐": [
"yáo"
],
"鳑": [
"páng"
],
"鳓": [
"lè"
],
"鳔": [
"biào"
],
"鳕": [
"xuě"
],
"鳖": [
"biē"
],
"鳗": [
"mán"
],
"鳘": [
"mǐn"
],
"鳙": [
"yōng"
],
"鳚": [
"wèi"
],
"鳜": [
"guì",
"jué"
],
"鳝": [
"shàn"
],
"鳞": [
"lín"
],
"鳟": [
"zūn"
],
"鳡": [
"gǎn"
],
"鳢": [
"lǐ"
],
"鳤": [
"guǎn"
],
"鸟": [
"niǎo"
],
"鸠": [
"jiū"
],
"鸡": [
"jī"
],
"鸢": [
"yuān"
],
"鸣": [
"míng"
],
"鸤": [
"shī"
],
"鸥": [
"ōu"
],
"鸦": [
"yā"
],
"鸨": [
"bǎo"
],
"鸩": [
"zhèn"
],
"鸪": [
"gū"
],
"鸫": [
"dōng"
],
"鸬": [
"lú"
],
"鸭": [
"yā"
],
"鸮": [
"xiāo"
],
"鸯": [
"yāng"
],
"鸰": [
"líng"
],
"鸱": [
"chī"
],
"鸲": [
"qú"
],
"鸳": [
"yuān"
],
"鸵": [
"tuó"
],
"鸶": [
"sī"
],
"鸷": [
"zhì"
],
"鸸": [
"ér"
],
"鸹": [
"guā"
],
"鸺": [
"xiū"
],
"鸻": [
"héng"
],
"鸼": [
"zhōu"
],
"鸽": [
"gē"
],
"鸾": [
"luán"
],
"鸿": [
"hóng"
],
"鹀": [
"wú"
],
"鹁": [
"bó"
],
"鹂": [
"lí"
],
"鹃": [
"juān"
],
"鹄": [
"hú"
],
"鹅": [
"é"
],
"鹆": [
"yù"
],
"鹇": [
"xián"
],
"鹈": [
"tí"
],
"鹉": [
"wǔ"
],
"鹊": [
"què"
],
"鹋": [
"miáo"
],
"鹌": [
"ān"
],
"鹎": [
"bēi"
],
"鹏": [
"péng"
],
"鹐": [
"qiān"
],
"鹑": [
"chún",
"tuán"
],
"鹕": [
"hú"
],
"鹗": [
"è"
],
"鹚": [
"cí"
],
"鹛": [
"méi"
],
"鹜": [
"wù"
],
"鹘": [
"gǔ",
"hú"
],
"鹝": [
"yì"
],
"鹞": [
"yào"
],
"鹟": [
"wēng"
],
"鹠": [
"liú"
],
"鹡": [
"jí"
],
"鹣": [
"jiān"
],
"鹤": [
"hè"
],
"鹦": [
"yīng"
],
"鹧": [
"zhè"
],
"鹨": [
"liù"
],
"鹩": [
"liáo"
],
"鹪": [
"jiāo"
],
"鹫": [
"jiù"
],
"鹬": [
"yù"
],
"鹭": [
"lù"
],
"鹮": [
"huán"
],
"鹰": [
"yīng"
],
"鹱": [
"hù"
],
"鹲": [
"méng"
],
"鹳": [
"guàn"
],
"鹿": [
"lù"
],
"麂": [
"jǐ"
],
"麇": [
"jūn",
"qún"
],
"麈": [
"zhǔ"
],
"麋": [
"mí"
],
"麒": [
"qí"
],
"麓": [
"lù"
],
"麝": [
"shè"
],
"麟": [
"lín"
],
"麦": [
"mài"
],
"麸": [
"fū"
],
"麻": [
"má"
],
"麽": [
"mó",
"me",
"ma"
],
"麾": [
"huī"
],
"黄": [
"huáng"
],
"黇": [
"tiān"
],
"黉": [
"hóng"
],
"黍": [
"shǔ"
],
"黎": [
"lí"
],
"黏": [
"nián"
],
"黑": [
"hēi"
],
"墨": [
"mò"
],
"黔": [
"qián"
],
"默": [
"mò"
],
"黛": [
"dài"
],
"黜": [
"chù"
],
"黝": [
"yǒu"
],
"黟": [
"yī"
],
"黠": [
"xiá"
],
"黢": [
"qū"
],
"黥": [
"qíng"
],
"黧": [
"lí"
],
"黩": [
"dú"
],
"黯": [
"àn"
],
"黹": [
"zhǐ"
],
"黻": [
"fú"
],
"黼": [
"fǔ"
],
"黾": [
"mǐn",
"miǎn",
"měng"
],
"鼋": [
"yuán"
],
"鼍": [
"tuó"
],
"鼎": [
"dǐng"
],
"鼐": [
"nài"
],
"鼒": [
"zī"
],
"鼓": [
"gǔ"
],
"鼗": [
"táo"
],
"鼙": [
"pí"
],
"鼠": [
"shǔ"
],
"鼢": [
"fén"
],
"鼩": [
"qú"
],
"鼫": [
"shí"
],
"鼬": [
"yòu"
],
"鼯": [
"wú"
],
"鼱": [
"jīng"
],
"鼷": [
"xī"
],
"鼹": [
"yǎn"
],
"鼻": [
"bí"
],
"鼾": [
"hān"
],
"齁": [
"hōu"
],
"齉": [
"nàng"
],
"齐": [
"qí",
"jì",
"zī",
"zhāi"
],
"齑": [
"jī"
],
"齿": [
"chǐ"
],
"龀": [
"chèn"
],
"龁": [
"hé"
],
"龃": [
"jǔ"
],
"龄": [
"líng"
],
"龅": [
"bāo"
],
"龆": [
"tiáo"
],
"龇": [
"zī"
],
"龈": [
"yín",
"kěn"
],
"龉": [
"yǔ"
],
"龊": [
"chuò"
],
"龋": [
"qǔ"
],
"龌": [
"wò"
],
"龙": [
"lóng"
],
"龚": [
"gōng"
],
"龛": [
"kān"
],
"龟": [
"guī",
"jūn",
"qiū"
],
"龠": [
"yuè"
]
};
| yihui/zdict.js | 62 | 汉典网站数据(汉字、拼音、释义等) | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/learn-chars.js | JavaScript | import zDict from "./zdict.js";
let d = document.getElementById('learn-chars');
if (!d) {
const s = document.currentScript;
if (!s) throw '抱歉,本程序不支持您的古董浏览器,请尝试使用 Chrome/Firefox/Edge 等现代浏览器';
d = document.createElement('div');
d.id = "learn-chars";
s.after(d);
}
// 学习字库、总字库、挑战字库
var chars = [], freqs = zDict.freqs.split(''), cChars = freqs.slice();
// 安插基本元素,用来存放拼音、汉字等信息
if (d.childElementCount === 0) d.innerHTML = '<div id="learn-toolbar"></div>' +
'<div class="char-block">' +
'<div class="pinyin" contenteditable></div>' +
'<div class="char-box kai">' +
'<span class="char"></span><span class="num"></span></div>' +
'</div>' +
'<div class="meaning"></div>' +
'<p class="source kai right"></p>' +
'<div id="learn-settings"><p class="seal-line seal-top">密封线内不要答题</p>' +
'<textarea id="learn-candidates"></textarea>' +
'<p><span><span>字符范围:从第</span> <input type="number" value="1" min="1"> ' +
'<span>字开始向后选取</span> <input type="number" value="20" min="0" step="10"> ' +
'<span>字;韵母(可选):<input type="text" class="yunmu"></span></span> ' +
'<button type="button" id="learn-set">确定</button></p>' +
'<p class="seal-line seal-bottom">密封线内不要答题</p>';
function sampleOne(x) {
return x[Math.floor(Math.random() * x.length)];
}
function noAccent(x) {
return x.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
}
// 比较原始拼音是否相同,如果不同,去掉音调之后再比较
function checkPinyin(x1, x2) {
x1 = x1.toLowerCase();
return x2.split(' - ').indexOf(x1) > -1 || noAccent(x2).split(' - ').indexOf(x1) > -1;
}
var tb = d.querySelector('#learn-toolbar'), cb = d.querySelector('.char-block'),
py = cb.querySelector('.pinyin'), zi = cb.querySelector('.char'),
mn = d.querySelector('.meaning'), sc = d.querySelector('.source'),
ls = d.querySelector('#learn-settings'), lc = ls.querySelector('#learn-candidates');
// 几种使用模式的单选框
tb.innerHTML || ['学习', '复习', '测验', '挑战'].forEach(function(el, i) {
tb.innerHTML += '<input name="mode" type="radio" id="mode-'+ i +
'" ' + (i === 0 ? 'checked' : '') +
'/><label for="mode-' + i + '" class="label">' + el + '</label> ';
});
var mode = 0;
// 浏览器的本地存储
var S = {
"get": function(k) { return localStorage.getItem(k); },
"set": function(k, d) { try { localStorage.setItem(k, d); } catch (e) {} },
"remove": function(k) { localStorage.removeItem(k); }
};
// 加载字库;如果以前有保存过字库,就用以前存的,否则用汉字频度表
var key1 = 'candidate-chars';
lc.value = S.get(key1);
if (!lc.value) lc.value = zDict.freqs;
// 保存学过的字,供复习用
var key2 = 'learned-chars', p = [-1, 0, -1];
function saveChar(x, key) {
var data = S.get(key);
if (!data) { data = ''; } else if (data.match(x)) return;
data += x;
S.set(key, data);
}
function learnedChars(key) {
var x = S.get(key);
return x ? x.split('') : [];
}
function setChars() {
p = [-1, 0, -1];
chars = lc.value.split('');
if (lc.value !== '' && lc.value !== zDict.freqs) {
var v = [];
chars.forEach(function(x) {
v.indexOf(x) === -1 && zDict.freqs.indexOf(x) >= 0 && v.push(x);
});
chars = [];
freqs.forEach(function(x) {
v.indexOf(x) >= 0 && chars.push(x);
});
lc.value = chars.join('');
S.set(key1, lc.value);
} else {
S.remove(key1);
}
if (chars.length === 0) chars = freqs;
var ym = ls.querySelector('input.yunmu').value;
if (ym) chars = chars.filter(function(char) {
var info = zDict.chars[char];
return (noAccent(Object.keys(info).join(',')) + ',').match(ym + ',');
});
var n = [], ns = ls.querySelectorAll('input[type="number"]'), n0 = ns[0], n1 = ns[1];
n[0] = +n0.value; n[1] = +n1.value;
if (n[0] < 1 || n[0] > chars.length) n0.value = n[0] = 1;
if (n[1] < 0) n1.value = n[1] = 0;
// 特例:如果设定总共使用 0 个字符,那么选择所有字符
if (n[1] > 0) chars = chars.slice(n[0] - 1, n[0] - 1 + n[1]);
S.remove(key2);
d.querySelectorAll('.review').forEach(removeEl); // 重新生成复习字块
mode === 1 && renderReview();
}
setChars();
// 按顺序显示一字及其相关信息
function renderChar(char) {
py.innerText = zi.innerText = mn.innerText = zi.nextElementSibling.innerText = '';
if (mode != 3) sc.innerText = '';
py.setAttribute('contenteditable', true);
cb.classList.remove('correct', 'wrong');
var num; // 挑战模式下的字符编号
if (!char) {
switch (mode) {
case 0:
// 学习模式:顺序显示一字
if (p[0] >= chars.length - 1) p[0] = -1;
char = chars[++p[0]];
saveChar(char, key2);
break;
case 1:
// 复习模式:显示学习过的字
var lChars = learnedChars(key2);
if (lChars.length === 0) {
py.innerHTML = '<p style="font-size: .5em;">学习记录都没得,复习个锤子哦</p>';
return;
}
// 从全集中寻找下一个历史记录中的字
while (lChars.indexOf(char) === -1) {
if (p[1] >= chars.length - 1) p[1] = -1;
char = chars[++p[1]];
}
break;
case 2:
// 测验模式:依次测试全集拼音
if (p[2] >= chars.length - 1) {
p[2] = -1;
return alert('测验结束!');
}
char = chars[++p[2]];
break;
case 3:
// 挑战模式:随机抽取一字测验
char = sampleOne(cChars);
cChars.splice(cChars.indexOf(char), 1);
break;
}
}
if (mode === 1) highlightReview();
var info = renderPinyin(char, zi, py, ' - ');
if (!info) return;
renderMeaning(info);
sc.innerHTML = '资料来源:汉典(<a href="https://www.zdic.net/hans/' + char + '" target="_blank">查看详情</a>)';
}
function renderPinyin(char, zi, py, sep) {
zi.innerText = char;
zi.nextElementSibling.innerText = freqs.indexOf(char) + 1;
var info = zDict.chars[char], pys = Object.keys(info);
if (mode >= 2) {
py.dataset.pinyin = pys.join(' - '); // 将正确拼音保存在数据中
py.focus();
// 如果拼音框在视窗外,则自动将它滚到视窗内
var rect = py.getBoundingClientRect();
if (rect.top < 0 || rect.bottom > window.innerHeight) py.scrollIntoView();
return;
}
py.innerText = pys.join(sep);
return info;
}
function renderMeaning(info) {
let me = '';
for (let k in info) {
me += `<p class="py">${k}</p><ol><li>${info[k].join('</li><li>')}</li></ol>`;
};
mn.innerHTML = me;
}
// 初始随机显示一个字
renderChar(sampleOne(freqs));
// 戳一下换一字
zi.parentElement.addEventListener('click', function(e) {
renderChar();
});
function removeEl(el) { el && el.remove(); }
// 高亮学习过的字
function highlightReview() {
var el = d.querySelector('.current'); el && el.classList.remove('current');
d.querySelectorAll('.review')[p[1]].querySelector('.char-box').classList.add('current');
}
// 更换模式
function modeChange(e) {
mode = +this.id.replace('mode-', '');
d.classList[mode === 1 ? 'add' : 'remove']('review-pane');
d.classList.remove('review-all');
renderChar();
}
// 复习模式下把字集中的每个字都渲染出来,但默认是隐藏的
function renderReview() {
var rs = d.querySelectorAll('.review'), lChars = learnedChars(key2);
rs.forEach(function(el, i) {
i < lChars.length && el.classList.add('review-show');
});
if (rs.length >= chars.length) return;
var all = d.classList.contains('review-all');
chars.forEach(function(char, i) {
// 已经生成的字就表再生成了;若不显示所有的字,那么只生成学过的字
if (i < rs.length || (!all && i >= lChars.length)) return;
var nb = cb.cloneNode(true), zi = nb.querySelector('.char');
renderPinyin(char, zi, nb.querySelector('.pinyin'), '\n');
zi.parentElement.addEventListener('click', function(e) {
p[1] = i;
renderChar(char);
});
nb.classList.add('review', all ? 'review' : 'review-show');
d.insertBefore(nb, cb);
});
}
d.querySelectorAll('input[name="mode"]').forEach(function(el, i) {
el.addEventListener('change', modeChange);
i === 1 && el.addEventListener('click', function(e) {
// 点击复习单选框,显示或隐藏还没学过的字
mode === i && d.classList.toggle('review-all');
renderReview();
});
i >= 2 && el.addEventListener('keyup', function(e) {
e.key === 'Enter' && renderChar();
});
});
// 测验
var nw = 0; // 挑战模式下的错字个数
py.addEventListener('blur', function(e) {
// 非测试模式、或者已经结束测验的情况下提前退出
if (mode < 2 || (mode === 2 && p[2] === -1)) return;
var v = this.innerText, ans = this.dataset.pinyin;
if (checkPinyin(v.trim(), ans)) {
cb.classList.add('correct');
this.innerText = ans;
} else {
if (mode !== 2 || !/^\s+$/.test(v)) cb.classList.add('wrong');
if (mode === 3) nw++;
v = v.trim();
this.innerText = v === '' ? ans : v + ' -> ' + ans;
py.removeAttribute('contenteditable');
};
d.querySelector('input[id="mode-' + mode + '"]').focus();
if (mode === 3) {
renderMeaning(zDict.chars[zi.innerText]);
var N = freqs.length, nc = N - cChars.length; // 已挑战样本量
if (nc >= 2) {
var m = 1 - nw/nc, s = 1.96 * Math.sqrt(N * (N - nc) / (nc - 1) * m * (1 - m));
var M = N * m, M1 = M - s, M2 = M + s;
if (M1 < 0) M1 = 0;
if (M2 > N) M2 = N;
M = Math.round(M); M1 = Math.round(M1); M2 = Math.round(M2);
sc.innerHTML = '已挑战 ' + nc + ' 字(错 ' + nw + ' 字)<br/>您的识字量估计为 '
+ M + ',其 95% 近似置信区间为【' + M1 + ',' + M2 + '】';
}
}
});
// 除了离开输入框,也可以用回车键提交答案
['keypress', 'keyup'].map(function(evt) {
py.addEventListener(evt, function(e) {
e.key === 'Enter' && (e.preventDefault(), evt === 'keyup' && this.blur());
});
});
// 重设字库
ls.querySelector('#learn-set').addEventListener('click', function(e) {
S.remove(key2);
setChars();
});
| yihui/zdict.js | 62 | 汉典网站数据(汉字、拼音、释义等) | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/pinyin-finals.js | JavaScript | import chars from "./data-pinyin.js";
import freqs from "./data-freqs.js";
let d = document.getElementById('pinyin-finals');
if (!d) {
const s = document.currentScript;
if (!s) throw '抱歉,本程序不支持您的古董浏览器,请尝试使用 Chrome/Firefox/Edge 等现代浏览器';
d = document.createElement('div');
d.id = "pinyin-chars";
s.after(d);
}
function noAccent(x) {
let x1 = x.normalize('NFD').replace(/[\u0300-\u036f]/g, '');
let x2 = x.replace(/[ǖǘǚǜ]/g, 'ü')
return x2.match('ü') ? x1.replace('u', 'ü') : x1;
}
let k1, k2, x = {}, r = /^([zcs]h|[bpmfdtlngkhjqxzcsryw])/;
[
'a', 'ia', 'ua', 'o', 'uo', 'e', 'i', 'u', 'ü',
'an', 'ian', 'uan', 'üan', 'en', 'in', 'un', 'ün',
'ai', 'uai', 'ao', 'iao', 'ei', 'ui', 'ou', 'iu', 'er', 'ie', 'üe',
'ang', 'iang', 'uang', 'eng', 'ing', 'ong', 'iong'
].forEach(i => {
x[i] = [];
});
// 只取前六千字,最后一千实在太生僻
freqs.split('').slice(0, 6000).forEach(i => {
chars[i].forEach(j => {
k1 = j.replace(r, ''); // 带声调的韵母
k2 = noAccent(k1); // 去除声调的韵母
// 忽略一些边边角角的韵母
if (['n', 'ng', 'hng'].indexOf(k2) > -1) return;
if (/^u(n|an|e)?$/.test(k2) && /^[jqxy]/.test(j)) k2 = k2.replace('u', 'ü');
if (/^(e|an)$/.test(k2) && /^y/.test(j)) k2 = 'i' + k2;
if (k2 === 'an' && /^y/.test(j)) k2 = 'ian';
if (k2 === 'i') {
if (/^[zcs]/.test(j)) k2 = 'z';
if (/^(r|[zcs]h)/.test(j)) k2 = 'r';
}
if (!x[k2]) x[k2] = [];
let a = 0;
if (/[āōēīūǖ]/.test(j)) a = 1;
if (/[áóéíúǘ]/.test(j)) a = 2;
if (/[ǎǒěǐǔǚ]/.test(j)) a = 3;
if (/[àòèìùǜ]/.test(j)) a = 4;
x[k2].push([j, i, a]);
});
});
let h = '<nav id="TableOfContents">';
Object.keys(x).forEach(el => {
h += '<a href="#' + el + '" class="toc-finals">' + el + '</a>';
});
h += '</nav><div style="text-align: center; margin-top: 1em;">';
'aāáǎà'.split('').forEach(function(a, i) {
h += '<div class="char-block accent-legend char-accent-' + i +
'"><div class="pinyin">' + a + '</div></div>';
});
h += '</div><div class="char-section">';
for (let i in x) {
h += '<h2 id="' + i + '">' + i + '</h2>';
let w = 1;
x[i].forEach(el => {
w = Math.max(w, el[0].length);
});
x[i].forEach(el => {
h += '<div class="char-block char-width-' + w + ' char-accent-' + el[2] + '">' +
'<div class="pinyin">' + el[0] +
'</div><div class="char-box"><a href="https://www.zdic.net/hans/' + el[1] +
'" target="_blank">' + el[1] + '</a></div></div>';
});
}
h += '</div>'
d.innerHTML = h;
const d2 = d.querySelector('.char-section');
document.querySelectorAll('.accent-legend').forEach(function(el, i) {
el.onclick = function(e) {
this.classList.toggle('accent-clicked');
d2.classList.toggle('accent-show-' + i);
};
});
| yihui/zdict.js | 62 | 汉典网站数据(汉字、拼音、释义等) | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
js/zdict.js | JavaScript | import chars from "./data-chars.js";
import freqs from "./data-freqs.js";
export default { chars, freqs };
| yihui/zdict.js | 62 | 汉典网站数据(汉字、拼音、释义等) | JavaScript | yihui | Yihui Xie | rstudio swissre merck |
__test__/index.spec.ts | TypeScript | import { readFile } from 'fs/promises'
import { join } from 'path'
import * as fontkit from '@yisibl/fontkit'
import test from 'ava'
import { decode } from '../index'
test('should be converting WOFF2 to TTF', async (t) => {
const font = await readFile(join(__dirname, './fa-brands-400-v6.2.woff2'))
const output = decode(font)
const fontkitOut = fontkit.openSync(output)
t.is(fontkitOut.type, 'TTF') // font type
})
test('should be a TTF font converted by fontkit check', async (t) => {
const font = await readFile(join(__dirname, './fa-regular-400-v5.15.4.woff2'))
const output = decode(font)
const fontkitOut = fontkit.openSync(output)
t.is(fontkitOut.type, 'TTF')
t.is(fontkitOut.directory.numTables, 13) // table count
t.is(fontkitOut.directory.tables.glyf.length, 28076) // glyf table size
t.is(fontkitOut.directory.tables.loca.length, 310) // glyf table size
})
| yisibl/node-woff2-rs | 16 | A WOFF2 decompressor converts WOFF2 to TTF or OTF, powered by Rust based woff2-rs and napi-rs | JavaScript | yisibl | 一丝 | Alibaba Group |
benchmark/bench.mjs | JavaScript | import { promises as fs } from 'fs'
import path, { join } from 'path'
import { fileURLToPath } from 'url'
import { convertWOFF2ToTTF } from '@napi-rs/ttf2woff2'
import b from 'benny'
import wawoff from 'wawoff2'
import woff2Next from 'woff2-next'
import woff2Rs from '../index.js'
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.resolve(path.dirname(__filename))
async function run() {
// const font1 = await fs.readFile(join(__dirname, '../__test__/fa-brands-400-v6.2.woff2'))
const font1 = await fs.readFile(join(__dirname, '../__test__/fa-regular-400-v5.15.4.woff2'))
await b.suite(
'WOFF2 to TTF (Use Font Awesome)',
b.add('woff2-next(node-gyp binding)', () => {
woff2Next.decode(font1)
}),
b.add('@napi-rs/ttf2woff2(Rust binding)', () => {
convertWOFF2ToTTF(font1)
}),
b.add('@woff2/woff2-rs(Pure Rust)', () => {
woff2Rs.decode(font1)
}),
b.add('wawoff(Wasm)', async () => {
await wawoff.decompress(font1)
}),
b.cycle(),
b.complete(),
)
}
run().catch((e) => {
console.error(e)
})
| yisibl/node-woff2-rs | 16 | A WOFF2 decompressor converts WOFF2 to TTF or OTF, powered by Rust based woff2-rs and napi-rs | JavaScript | yisibl | 一丝 | Alibaba Group |
build.rs | Rust | extern crate napi_build;
fn main() {
napi_build::setup();
}
| yisibl/node-woff2-rs | 16 | A WOFF2 decompressor converts WOFF2 to TTF or OTF, powered by Rust based woff2-rs and napi-rs | JavaScript | yisibl | 一丝 | Alibaba Group |
example/index.mjs | JavaScript | import { promises as fs } from 'fs'
import path, { join } from 'path'
import { fileURLToPath } from 'url'
import woff2Rs from '../index.js'
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.resolve(path.dirname(__filename))
async function toTTF() {
const font = await fs.readFile(join(__dirname, '../__test__/fa-regular-400-v5.15.4.woff2'))
const outputBuffer = woff2Rs.decode(font) // output TTF buffer
await fs.writeFile(join(__dirname, 'fa-regular-400.ttf'), outputBuffer)
}
toTTF()
| yisibl/node-woff2-rs | 16 | A WOFF2 decompressor converts WOFF2 to TTF or OTF, powered by Rust based woff2-rs and napi-rs | JavaScript | yisibl | 一丝 | Alibaba Group |
index.d.ts | TypeScript | /* tslint:disable */
/* eslint-disable */
/* auto-generated by NAPI-RS */
export function decode(input: Buffer): Buffer
| yisibl/node-woff2-rs | 16 | A WOFF2 decompressor converts WOFF2 to TTF or OTF, powered by Rust based woff2-rs and napi-rs | JavaScript | yisibl | 一丝 | Alibaba Group |
index.js | JavaScript | const { existsSync, readFileSync } = require('fs')
const { join } = require('path')
const { platform, arch } = process
let nativeBinding = null
let localFileExisted = false
let loadError = null
function isMusl() {
// For Node 10
if (!process.report || typeof process.report.getReport !== 'function') {
try {
const lddPath = require('child_process').execSync('which ldd').toString().trim()
return readFileSync(lddPath, 'utf8').includes('musl')
} catch (e) {
return true
}
} else {
const { glibcVersionRuntime } = process.report.getReport().header
return !glibcVersionRuntime
}
}
switch (platform) {
case 'android':
switch (arch) {
case 'arm64':
localFileExisted = existsSync(join(__dirname, 'woff2-rs.android-arm64.node'))
try {
if (localFileExisted) {
nativeBinding = require('./woff2-rs.android-arm64.node')
} else {
nativeBinding = require('@woff2/woff2-rs-android-arm64')
}
} catch (e) {
loadError = e
}
break
case 'arm':
localFileExisted = existsSync(join(__dirname, 'woff2-rs.android-arm-eabi.node'))
try {
if (localFileExisted) {
nativeBinding = require('./woff2-rs.android-arm-eabi.node')
} else {
nativeBinding = require('@woff2/woff2-rs-android-arm-eabi')
}
} catch (e) {
loadError = e
}
break
default:
throw new Error(`Unsupported architecture on Android ${arch}`)
}
break
case 'win32':
switch (arch) {
case 'x64':
localFileExisted = existsSync(join(__dirname, 'woff2-rs.win32-x64-msvc.node'))
try {
if (localFileExisted) {
nativeBinding = require('./woff2-rs.win32-x64-msvc.node')
} else {
nativeBinding = require('@woff2/woff2-rs-win32-x64-msvc')
}
} catch (e) {
loadError = e
}
break
case 'ia32':
localFileExisted = existsSync(join(__dirname, 'woff2-rs.win32-ia32-msvc.node'))
try {
if (localFileExisted) {
nativeBinding = require('./woff2-rs.win32-ia32-msvc.node')
} else {
nativeBinding = require('@woff2/woff2-rs-win32-ia32-msvc')
}
} catch (e) {
loadError = e
}
break
case 'arm64':
localFileExisted = existsSync(join(__dirname, 'woff2-rs.win32-arm64-msvc.node'))
try {
if (localFileExisted) {
nativeBinding = require('./woff2-rs.win32-arm64-msvc.node')
} else {
nativeBinding = require('@woff2/woff2-rs-win32-arm64-msvc')
}
} catch (e) {
loadError = e
}
break
default:
throw new Error(`Unsupported architecture on Windows: ${arch}`)
}
break
case 'darwin':
localFileExisted = existsSync(join(__dirname, 'woff2-rs.darwin-universal.node'))
try {
if (localFileExisted) {
nativeBinding = require('./woff2-rs.darwin-universal.node')
} else {
nativeBinding = require('@woff2/woff2-rs-darwin-universal')
}
break
} catch {}
switch (arch) {
case 'x64':
localFileExisted = existsSync(join(__dirname, 'woff2-rs.darwin-x64.node'))
try {
if (localFileExisted) {
nativeBinding = require('./woff2-rs.darwin-x64.node')
} else {
nativeBinding = require('@woff2/woff2-rs-darwin-x64')
}
} catch (e) {
loadError = e
}
break
case 'arm64':
localFileExisted = existsSync(join(__dirname, 'woff2-rs.darwin-arm64.node'))
try {
if (localFileExisted) {
nativeBinding = require('./woff2-rs.darwin-arm64.node')
} else {
nativeBinding = require('@woff2/woff2-rs-darwin-arm64')
}
} catch (e) {
loadError = e
}
break
default:
throw new Error(`Unsupported architecture on macOS: ${arch}`)
}
break
case 'freebsd':
if (arch !== 'x64') {
throw new Error(`Unsupported architecture on FreeBSD: ${arch}`)
}
localFileExisted = existsSync(join(__dirname, 'woff2-rs.freebsd-x64.node'))
try {
if (localFileExisted) {
nativeBinding = require('./woff2-rs.freebsd-x64.node')
} else {
nativeBinding = require('@woff2/woff2-rs-freebsd-x64')
}
} catch (e) {
loadError = e
}
break
case 'linux':
switch (arch) {
case 'x64':
if (isMusl()) {
localFileExisted = existsSync(join(__dirname, 'woff2-rs.linux-x64-musl.node'))
try {
if (localFileExisted) {
nativeBinding = require('./woff2-rs.linux-x64-musl.node')
} else {
nativeBinding = require('@woff2/woff2-rs-linux-x64-musl')
}
} catch (e) {
loadError = e
}
} else {
localFileExisted = existsSync(join(__dirname, 'woff2-rs.linux-x64-gnu.node'))
try {
if (localFileExisted) {
nativeBinding = require('./woff2-rs.linux-x64-gnu.node')
} else {
nativeBinding = require('@woff2/woff2-rs-linux-x64-gnu')
}
} catch (e) {
loadError = e
}
}
break
case 'arm64':
if (isMusl()) {
localFileExisted = existsSync(join(__dirname, 'woff2-rs.linux-arm64-musl.node'))
try {
if (localFileExisted) {
nativeBinding = require('./woff2-rs.linux-arm64-musl.node')
} else {
nativeBinding = require('@woff2/woff2-rs-linux-arm64-musl')
}
} catch (e) {
loadError = e
}
} else {
localFileExisted = existsSync(join(__dirname, 'woff2-rs.linux-arm64-gnu.node'))
try {
if (localFileExisted) {
nativeBinding = require('./woff2-rs.linux-arm64-gnu.node')
} else {
nativeBinding = require('@woff2/woff2-rs-linux-arm64-gnu')
}
} catch (e) {
loadError = e
}
}
break
case 'arm':
localFileExisted = existsSync(join(__dirname, 'woff2-rs.linux-arm-gnueabihf.node'))
try {
if (localFileExisted) {
nativeBinding = require('./woff2-rs.linux-arm-gnueabihf.node')
} else {
nativeBinding = require('@woff2/woff2-rs-linux-arm-gnueabihf')
}
} catch (e) {
loadError = e
}
break
default:
throw new Error(`Unsupported architecture on Linux: ${arch}`)
}
break
default:
throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`)
}
if (!nativeBinding) {
if (loadError) {
throw loadError
}
throw new Error(`Failed to load native binding`)
}
const { decode } = nativeBinding
module.exports.decode = decode
| yisibl/node-woff2-rs | 16 | A WOFF2 decompressor converts WOFF2 to TTF or OTF, powered by Rust based woff2-rs and napi-rs | JavaScript | yisibl | 一丝 | Alibaba Group |
simple-test.js | JavaScript | const { plus100 } = require('./index')
console.assert(plus100(0) === 100, 'Simple test failed')
console.info('Simple test passed')
| yisibl/node-woff2-rs | 16 | A WOFF2 decompressor converts WOFF2 to TTF or OTF, powered by Rust based woff2-rs and napi-rs | JavaScript | yisibl | 一丝 | Alibaba Group |
src/lib.rs | Rust | #![deny(clippy::all)]
use napi::bindgen_prelude::Buffer;
use napi_derive::napi;
use woff2::decode::convert_woff2_to_ttf;
#[napi]
pub fn decode(input: Buffer) -> Buffer {
let output = convert_woff2_to_ttf(&mut std::io::Cursor::new(input));
Buffer::from(output.unwrap())
}
| yisibl/node-woff2-rs | 16 | A WOFF2 decompressor converts WOFF2 to TTF or OTF, powered by Rust based woff2-rs and napi-rs | JavaScript | yisibl | 一丝 | Alibaba Group |
biggan.py | Python | #/usr/bin/env python3
# Taken from here: https://github.com/huggingface/pytorch-pretrained-BigGAN
# MIT License
#
# Copyright (c) 2019 Thomas Wolf
#
# 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:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
import torch.nn as nn
import torch.nn.functional as F
import torch
import math
import json
import logging
import os
import shutil
import tempfile
from functools import wraps
from hashlib import sha256
import sys
import copy
import boto3
import requests
from botocore.exceptions import ClientError
from tqdm import tqdm
WEIGHTS_NAME = 'pytorch_model.bin'
CONFIG_NAME = 'config.json'
try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
try:
from pathlib import Path
PYTORCH_PRETRAINED_BIGGAN_CACHE = Path(os.getenv('PYTORCH_PRETRAINED_BIGGAN_CACHE',
os.path.join(os.getcwd(), '.pytorch_pretrained_biggan')))
except (AttributeError, ImportError):
PYTORCH_PRETRAINED_BIGGAN_CACHE = os.getenv('PYTORCH_PRETRAINED_BIGGAN_CACHE',
os.path.join(os.getcwd(), '.pytorch_pretrained_biggan'))
logger = logging.getLogger(__name__) # pylint: disable=invalid-name
def url_to_filename(url, etag=None):
"""
Convert `url` into a hashed filename in a repeatable way.
If `etag` is specified, append its hash to the url's, delimited
by a period.
"""
url_bytes = url.encode('utf-8')
url_hash = sha256(url_bytes)
filename = url_hash.hexdigest()
if etag:
etag_bytes = etag.encode('utf-8')
etag_hash = sha256(etag_bytes)
filename += '.' + etag_hash.hexdigest()
return filename
def filename_to_url(filename, cache_dir=None):
"""
Return the url and etag (which may be ``None``) stored for `filename`.
Raise ``EnvironmentError`` if `filename` or its stored metadata do not exist.
"""
if cache_dir is None:
cache_dir = PYTORCH_PRETRAINED_BIGGAN_CACHE
if sys.version_info[0] == 3 and isinstance(cache_dir, Path):
cache_dir = str(cache_dir)
cache_path = os.path.join(cache_dir, filename)
if not os.path.exists(cache_path):
raise EnvironmentError("file {} not found".format(cache_path))
meta_path = cache_path + '.json'
if not os.path.exists(meta_path):
raise EnvironmentError("file {} not found".format(meta_path))
with open(meta_path, encoding="utf-8") as meta_file:
metadata = json.load(meta_file)
url = metadata['url']
etag = metadata['etag']
return url, etag
def cached_path(url_or_filename, cache_dir=None):
"""
Given something that might be a URL (or might be a local path),
determine which. If it's a URL, download the file and cache it, and
return the path to the cached file. If it's already a local path,
make sure the file exists and then return the path.
"""
if cache_dir is None:
cache_dir = PYTORCH_PRETRAINED_BIGGAN_CACHE
if sys.version_info[0] == 3 and isinstance(url_or_filename, Path):
url_or_filename = str(url_or_filename)
if sys.version_info[0] == 3 and isinstance(cache_dir, Path):
cache_dir = str(cache_dir)
parsed = urlparse(url_or_filename)
if parsed.scheme in ('http', 'https', 's3'):
# URL, so get it from the cache (downloading if necessary)
return get_from_cache(url_or_filename, cache_dir)
elif os.path.exists(url_or_filename):
# File, and it exists.
return url_or_filename
elif parsed.scheme == '':
# File, but it doesn't exist.
raise EnvironmentError("file {} not found".format(url_or_filename))
else:
# Something unknown
raise ValueError("unable to parse {} as a URL or as a local path".format(url_or_filename))
def split_s3_path(url):
"""Split a full s3 path into the bucket name and path."""
parsed = urlparse(url)
if not parsed.netloc or not parsed.path:
raise ValueError("bad s3 path {}".format(url))
bucket_name = parsed.netloc
s3_path = parsed.path
# Remove '/' at beginning of path.
if s3_path.startswith("/"):
s3_path = s3_path[1:]
return bucket_name, s3_path
def s3_request(func):
"""
Wrapper function for s3 requests in order to create more helpful error
messages.
"""
@wraps(func)
def wrapper(url, *args, **kwargs):
try:
return func(url, *args, **kwargs)
except ClientError as exc:
if int(exc.response["Error"]["Code"]) == 404:
raise EnvironmentError("file {} not found".format(url))
else:
raise
return wrapper
@s3_request
def s3_etag(url):
"""Check ETag on S3 object."""
s3_resource = boto3.resource("s3")
bucket_name, s3_path = split_s3_path(url)
s3_object = s3_resource.Object(bucket_name, s3_path)
return s3_object.e_tag
@s3_request
def s3_get(url, temp_file):
"""Pull a file directly from S3."""
s3_resource = boto3.resource("s3")
bucket_name, s3_path = split_s3_path(url)
s3_resource.Bucket(bucket_name).download_fileobj(s3_path, temp_file)
def http_get(url, temp_file):
req = requests.get(url, stream=True)
content_length = req.headers.get('Content-Length')
total = int(content_length) if content_length is not None else None
progress = tqdm(unit="B", total=total)
for chunk in req.iter_content(chunk_size=1024):
if chunk: # filter out keep-alive new chunks
progress.update(len(chunk))
temp_file.write(chunk)
progress.close()
def get_from_cache(url, cache_dir=None):
"""
Given a URL, look for the corresponding dataset in the local cache.
If it's not there, download it. Then return the path to the cached file.
"""
if cache_dir is None:
cache_dir = PYTORCH_PRETRAINED_BIGGAN_CACHE
if sys.version_info[0] == 3 and isinstance(cache_dir, Path):
cache_dir = str(cache_dir)
if not os.path.exists(cache_dir):
os.makedirs(cache_dir)
# Get eTag to add to filename, if it exists.
if url.startswith("s3://"):
etag = s3_etag(url)
else:
response = requests.head(url, allow_redirects=True)
if response.status_code != 200:
raise IOError("HEAD request failed for url {} with status code {}"
.format(url, response.status_code))
etag = response.headers.get("ETag")
filename = url_to_filename(url, etag)
# get cache path to put the file
cache_path = os.path.join(cache_dir, filename)
if not os.path.exists(cache_path):
# Download to temporary file, then copy to cache dir once finished.
# Otherwise you get corrupt cache entries if the download gets interrupted.
with tempfile.NamedTemporaryFile() as temp_file:
logger.info("%s not found in cache, downloading to %s", url, temp_file.name)
# GET file object
if url.startswith("s3://"):
s3_get(url, temp_file)
else:
http_get(url, temp_file)
# we are copying the file before closing it, so flush to avoid truncation
temp_file.flush()
# shutil.copyfileobj() starts at the current position, so go to the start
temp_file.seek(0)
logger.info("copying %s to cache at %s", temp_file.name, cache_path)
with open(cache_path, 'wb') as cache_file:
shutil.copyfileobj(temp_file, cache_file)
logger.info("creating metadata file for %s", cache_path)
meta = {'url': url, 'etag': etag}
meta_path = cache_path + '.json'
with open(meta_path, 'w', encoding="utf-8") as meta_file:
json.dump(meta, meta_file)
logger.info("removing temp file %s", temp_file.name)
return cache_path
def read_set_from_file(filename):
'''
Extract a de-duped collection (set) of text from a file.
Expected file format is one item per line.
'''
collection = set()
with open(filename, 'r', encoding='utf-8') as file_:
for line in file_:
collection.add(line.rstrip())
return collection
def get_file_extension(path, dot=True, lower=True):
ext = os.path.splitext(path)[1]
ext = ext if dot else ext[1:]
return ext.lower() if lower else ext
PRETRAINED_MODEL_ARCHIVE_MAP = {
'biggan-deep-128': "https://s3.amazonaws.com/models.huggingface.co/biggan/biggan-deep-128-pytorch_model.bin",
'biggan-deep-256': "https://s3.amazonaws.com/models.huggingface.co/biggan/biggan-deep-256-pytorch_model.bin",
'biggan-deep-512': "https://s3.amazonaws.com/models.huggingface.co/biggan/biggan-deep-512-pytorch_model.bin",
}
PRETRAINED_CONFIG_ARCHIVE_MAP = {
'biggan-deep-128': "https://s3.amazonaws.com/models.huggingface.co/biggan/biggan-deep-128-config.json",
'biggan-deep-256': "https://s3.amazonaws.com/models.huggingface.co/biggan/biggan-deep-256-config.json",
'biggan-deep-512': "https://s3.amazonaws.com/models.huggingface.co/biggan/biggan-deep-512-config.json",
}
class BigGANConfig(object):
""" Configuration class to store the configuration of a `BigGAN`.
Defaults are for the 128x128 model.
layers tuple are (up-sample in the layer ?, input channels, output channels)
"""
def __init__(self,
output_dim=128,
z_dim=128,
class_embed_dim=128,
channel_width=128,
num_classes=1000,
layers=[(False, 16, 16),
(True, 16, 16),
(False, 16, 16),
(True, 16, 8),
(False, 8, 8),
(True, 8, 4),
(False, 4, 4),
(True, 4, 2),
(False, 2, 2),
(True, 2, 1)],
attention_layer_position=8,
eps=1e-4,
n_stats=51):
"""Constructs BigGANConfig. """
self.output_dim = output_dim
self.z_dim = z_dim
self.class_embed_dim = class_embed_dim
self.channel_width = channel_width
self.num_classes = num_classes
self.layers = layers
self.attention_layer_position = attention_layer_position
self.eps = eps
self.n_stats = n_stats
@classmethod
def from_dict(cls, json_object):
"""Constructs a `BigGANConfig` from a Python dictionary of parameters."""
config = BigGANConfig()
for key, value in json_object.items():
config.__dict__[key] = value
return config
@classmethod
def from_json_file(cls, json_file):
"""Constructs a `BigGANConfig` from a json file of parameters."""
with open(json_file, "r", encoding='utf-8') as reader:
text = reader.read()
return cls.from_dict(json.loads(text))
def __repr__(self):
return str(self.to_json_string())
def to_dict(self):
"""Serializes this instance to a Python dictionary."""
output = copy.deepcopy(self.__dict__)
return output
def to_json_string(self):
"""Serializes this instance to a JSON string."""
return json.dumps(self.to_dict(), indent=2, sort_keys=True) + "\n"
def snconv2d(eps=1e-12, **kwargs):
return nn.utils.spectral_norm(nn.Conv2d(**kwargs), eps=eps)
def snlinear(eps=1e-12, **kwargs):
return nn.utils.spectral_norm(nn.Linear(**kwargs), eps=eps)
def sn_embedding(eps=1e-12, **kwargs):
return nn.utils.spectral_norm(nn.Embedding(**kwargs), eps=eps)
class SelfAttn(nn.Module):
""" Self attention Layer"""
def __init__(self, in_channels, eps=1e-12):
super(SelfAttn, self).__init__()
self.in_channels = in_channels
self.snconv1x1_theta = snconv2d(in_channels=in_channels, out_channels=in_channels//8,
kernel_size=1, bias=False, eps=eps)
self.snconv1x1_phi = snconv2d(in_channels=in_channels, out_channels=in_channels//8,
kernel_size=1, bias=False, eps=eps)
self.snconv1x1_g = snconv2d(in_channels=in_channels, out_channels=in_channels//2,
kernel_size=1, bias=False, eps=eps)
self.snconv1x1_o_conv = snconv2d(in_channels=in_channels//2, out_channels=in_channels,
kernel_size=1, bias=False, eps=eps)
self.maxpool = nn.MaxPool2d(2, stride=2, padding=0)
self.softmax = nn.Softmax(dim=-1)
self.gamma = nn.Parameter(torch.zeros(1))
def forward(self, x):
_, ch, h, w = x.size()
# Theta path
theta = self.snconv1x1_theta(x)
theta = theta.view(-1, ch//8, h*w)
# Phi path
phi = self.snconv1x1_phi(x)
phi = self.maxpool(phi)
phi = phi.view(-1, ch//8, h*w//4)
# Attn map
attn = torch.bmm(theta.permute(0, 2, 1), phi)
attn = self.softmax(attn)
# g path
g = self.snconv1x1_g(x)
g = self.maxpool(g)
g = g.view(-1, ch//2, h*w//4)
# Attn_g - o_conv
attn_g = torch.bmm(g, attn.permute(0, 2, 1))
attn_g = attn_g.view(-1, ch//2, h, w)
attn_g = self.snconv1x1_o_conv(attn_g)
# Out
out = x + self.gamma*attn_g
return out
class BigGANBatchNorm(nn.Module):
""" This is a batch norm module that can handle conditional input and can be provided with pre-computed
activation means and variances for various truncation parameters.
We cannot just rely on torch.batch_norm since it cannot handle
batched weights (pytorch 1.0.1). We computate batch_norm our-self without updating running means and variances.
If you want to train this model you should add running means and variance computation logic.
"""
def __init__(self, num_features, condition_vector_dim=None, n_stats=51, eps=1e-4, conditional=True):
super(BigGANBatchNorm, self).__init__()
self.num_features = num_features
self.eps = eps
self.conditional = conditional
# We use pre-computed statistics for n_stats values of truncation between 0 and 1
self.register_buffer('running_means', torch.zeros(n_stats, num_features))
self.register_buffer('running_vars', torch.ones(n_stats, num_features))
self.step_size = 1.0 / (n_stats - 1)
if conditional:
assert condition_vector_dim is not None
self.scale = snlinear(in_features=condition_vector_dim, out_features=num_features, bias=False, eps=eps)
self.offset = snlinear(in_features=condition_vector_dim, out_features=num_features, bias=False, eps=eps)
else:
self.weight = torch.nn.Parameter(torch.Tensor(num_features))
self.bias = torch.nn.Parameter(torch.Tensor(num_features))
def forward(self, x, truncation, condition_vector=None):
# Retreive pre-computed statistics associated to this truncation
coef, start_idx = math.modf(truncation / self.step_size)
start_idx = int(start_idx)
if coef != 0.0: # Interpolate
running_mean = self.running_means[start_idx] * coef + self.running_means[start_idx + 1] * (1 - coef)
running_var = self.running_vars[start_idx] * coef + self.running_vars[start_idx + 1] * (1 - coef)
else:
running_mean = self.running_means[start_idx]
running_var = self.running_vars[start_idx]
if self.conditional:
running_mean = running_mean.unsqueeze(0).unsqueeze(-1).unsqueeze(-1)
running_var = running_var.unsqueeze(0).unsqueeze(-1).unsqueeze(-1)
weight = 1 + self.scale(condition_vector).unsqueeze(-1).unsqueeze(-1)
bias = self.offset(condition_vector).unsqueeze(-1).unsqueeze(-1)
out = (x - running_mean) / torch.sqrt(running_var + self.eps) * weight + bias
else:
out = F.batch_norm(x, running_mean, running_var, self.weight, self.bias,
training=False, momentum=0.0, eps=self.eps)
return out
class GenBlock(nn.Module):
def __init__(self, in_size, out_size, condition_vector_dim, reduction_factor=4, up_sample=False,
n_stats=51, eps=1e-12):
super(GenBlock, self).__init__()
self.up_sample = up_sample
self.drop_channels = (in_size != out_size)
middle_size = in_size // reduction_factor
self.bn_0 = BigGANBatchNorm(in_size, condition_vector_dim, n_stats=n_stats, eps=eps, conditional=True)
self.conv_0 = snconv2d(in_channels=in_size, out_channels=middle_size, kernel_size=1, eps=eps)
self.bn_1 = BigGANBatchNorm(middle_size, condition_vector_dim, n_stats=n_stats, eps=eps, conditional=True)
self.conv_1 = snconv2d(in_channels=middle_size, out_channels=middle_size, kernel_size=3, padding=1, eps=eps)
self.bn_2 = BigGANBatchNorm(middle_size, condition_vector_dim, n_stats=n_stats, eps=eps, conditional=True)
self.conv_2 = snconv2d(in_channels=middle_size, out_channels=middle_size, kernel_size=3, padding=1, eps=eps)
self.bn_3 = BigGANBatchNorm(middle_size, condition_vector_dim, n_stats=n_stats, eps=eps, conditional=True)
self.conv_3 = snconv2d(in_channels=middle_size, out_channels=out_size, kernel_size=1, eps=eps)
self.relu = nn.ReLU()
def forward(self, x, cond_vector, truncation):
x0 = x
x = self.bn_0(x, truncation, cond_vector)
x = self.relu(x)
x = self.conv_0(x)
x = self.bn_1(x, truncation, cond_vector)
x = self.relu(x)
if self.up_sample:
x = F.interpolate(x, scale_factor=2, mode='nearest')
x = self.conv_1(x)
x = self.bn_2(x, truncation, cond_vector)
x = self.relu(x)
x = self.conv_2(x)
x = self.bn_3(x, truncation, cond_vector)
x = self.relu(x)
x = self.conv_3(x)
if self.drop_channels:
new_channels = x0.shape[1] // 2
x0 = x0[:, :new_channels, ...]
if self.up_sample:
x0 = F.interpolate(x0, scale_factor=2, mode='nearest')
out = x + x0
return out
class Generator(nn.Module):
def __init__(self, config):
super(Generator, self).__init__()
self.config = config
ch = config.channel_width
condition_vector_dim = config.z_dim * 2
self.gen_z = snlinear(in_features=condition_vector_dim,
out_features=4 * 4 * 16 * ch, eps=config.eps)
layers = []
for i, layer in enumerate(config.layers):
if i == config.attention_layer_position:
layers.append(SelfAttn(ch*layer[1], eps=config.eps))
layers.append(GenBlock(ch*layer[1],
ch*layer[2],
condition_vector_dim,
up_sample=layer[0],
n_stats=config.n_stats,
eps=config.eps))
self.layers = nn.ModuleList(layers)
self.bn = BigGANBatchNorm(ch, n_stats=config.n_stats, eps=config.eps, conditional=False)
self.relu = nn.ReLU()
self.conv_to_rgb = snconv2d(in_channels=ch, out_channels=ch, kernel_size=3, padding=1, eps=config.eps)
self.tanh = nn.Tanh()
def forward(self, cond_vector, truncation):
z = self.gen_z(cond_vector[0].unsqueeze(0))
# We use this conversion step to be able to use TF weights:
# TF convention on shape is [batch, height, width, channels]
# PT convention on shape is [batch, channels, height, width]
z = z.view(-1, 4, 4, 16 * self.config.channel_width)
z = z.permute(0, 3, 1, 2).contiguous()
for i, layer in enumerate(self.layers):
if isinstance(layer, GenBlock):
z = layer(z, cond_vector[i+1].unsqueeze(0), truncation)
# z = layer(z, cond_vector[].unsqueeze(0), truncation)
else:
z = layer(z)
z = self.bn(z, truncation)
z = self.relu(z)
z = self.conv_to_rgb(z)
z = z[:, :3, ...]
z = self.tanh(z)
return z
class BigGAN(nn.Module):
"""BigGAN Generator."""
@classmethod
def from_pretrained(cls, pretrained_model_name_or_path, cache_dir=None, *inputs, **kwargs):
if pretrained_model_name_or_path in PRETRAINED_MODEL_ARCHIVE_MAP:
model_file = PRETRAINED_MODEL_ARCHIVE_MAP[pretrained_model_name_or_path]
config_file = PRETRAINED_CONFIG_ARCHIVE_MAP[pretrained_model_name_or_path]
else:
model_file = os.path.join(pretrained_model_name_or_path, WEIGHTS_NAME)
config_file = os.path.join(pretrained_model_name_or_path, CONFIG_NAME)
try:
resolved_model_file = cached_path(model_file, cache_dir=cache_dir)
resolved_config_file = cached_path(config_file, cache_dir=cache_dir)
except EnvironmentError:
logger.error("Wrong model name, should be a valid path to a folder containing "
"a {} file and a {} file or a model name in {}".format(
WEIGHTS_NAME, CONFIG_NAME, PRETRAINED_MODEL_ARCHIVE_MAP.keys()))
raise
logger.info("loading model {} from cache at {}".format(pretrained_model_name_or_path, resolved_model_file))
# Load config
config = BigGANConfig.from_json_file(resolved_config_file)
logger.info("Model config {}".format(config))
# Instantiate model.
model = cls(config, *inputs, **kwargs)
state_dict = torch.load(resolved_model_file, map_location='cpu' if not torch.cuda.is_available() else None)
model.load_state_dict(state_dict, strict=False)
return model
def __init__(self, config):
super(BigGAN, self).__init__()
self.config = config
self.embeddings = nn.Linear(config.num_classes, config.z_dim, bias=False)
self.generator = Generator(config)
def forward(self, z, class_label, truncation):
assert 0 < truncation <= 1
embed = self.embeddings(class_label)
cond_vector = torch.cat((z, embed), dim=1)
z = self.generator(cond_vector, truncation)
return z
def one_hot_from_int(int_or_list, batch_size=1):
""" Create a one-hot vector from a class index or a list of class indices.
Params:
int_or_list: int, or list of int, of the imagenet classes (between 0 and 999)
batch_size: batch size.
If int_or_list is an int create a batch of identical classes.
If int_or_list is a list, we should have `len(int_or_list) == batch_size`
Output:
array of shape (batch_size, 1000)
"""
if isinstance(int_or_list, int):
int_or_list = [int_or_list]
if len(int_or_list) == 1 and batch_size > 1:
int_or_list = [int_or_list[0]] * batch_size
assert batch_size == len(int_or_list)
array = np.zeros((batch_size, 1000), dtype=np.float32)
for i, j in enumerate(int_or_list):
array[i, j] = 1.0
return array
| yk/clip_music_video | 175 | Code for making music videos using CLIP | Python | yk | Yannic Kilcher | |
create_video.py | Python | from textwrap3 import fill
import moviepy.editor as me
import tempfile
import textwrap
import glob
import os
def createvid(description, image_temp_list, fps=24, duration=0.1):
blackbg = me.ColorClip((720,720), (0, 0, 0))
clips = [me.ImageClip(m.name+".png", duration=duration) for m in image_temp_list]
for img in image_temp_list:
img.close()
concat_clip = me.concatenate_videoclips(clips, method="compose").set_position(('center', 'center'))
if description == "start song":
description = " "
if len(description) > 35:
description = fill(description, 35)
txtClip = me.TextClip(description, color='white', fontsize=30, font='Amiri-regular').set_position('center')
txt_col = txtClip.on_color(size=(blackbg.w, txtClip.h + 10),
color=(0,0,0), pos=('center', 'center'),
col_opacity=0.8)
txt_mov = txt_col.set_position((0, blackbg.h-20-txtClip.h))
comp_list = [blackbg, concat_clip, txt_mov]
final = me.CompositeVideoClip(comp_list).set_duration(concat_clip.duration)
with tempfile.NamedTemporaryFile() as video_tempfile:
final.write_videofile(video_tempfile.name+".mp4", fps=fps)
video_tempfile.seek(0)
for clip in clips:
clip.close()
for clip in comp_list:
clip.close()
return video_tempfile
def concatvids(descriptions, video_temp_list, audiofilepath, fps=24, lyrics=True):
clips = []
for idx, (desc, vid) in enumerate(zip(descriptions, video_temp_list)):
# # compvid_list = []
# # desc = desc[1]
if desc == descriptions[-1][1]:
break
# # elif desc == "start song":
# # desc = " "
# # compvid_list.append(blackbg)
vid = me.VideoFileClip(f'{vid.name}.mp4')#.set_position(('center', 'center'))
# compvid_list.append(vid)
# if len(desc) > 35:
# desc = fill(desc, 35)
# if lyrics:
# txtClip = me.TextClip(desc, color='white', fontsize=30, font='Amiri-regular').set_position('center')
# txt_col = txtClip.on_color(size=(blackbg.w, txtClip.h + 10),
# color=(0,0,0), pos=('center', 'center'), col_opacity=0.8)
# txt_mov = txt_col.set_position((0, blackbg.h-20-txtClip.h))
# compvid_list.append(txt_mov)
# video_tempfile = tempfile.NamedTemporaryFile()
# final = me.CompositeVideoClip(compvid_list).set_duration(vid.duration)
# final.write_videofile(video_tempfile.name+".mp4", fps=fps)
# video_tempfile.seek(0)
# for clip in clips:
# clip.close()
# concat_clip.close()
clips.append(vid)
concat_clip = me.concatenate_videoclips(clips, method="compose").set_position(('center', 'center'))
# concat_clip = me.CompositeVideoClip([blackbg, concat_clip])#.set_duration(vid.duration)
if audiofilepath:
concat_clip.audio = me.AudioFileClip(audiofilepath)
concat_clip.duration = concat_clip.audio.duration
concat_clip.write_videofile(os.path.join('output', f"finaloutput.mp4"), fps=fps)
| yk/clip_music_video | 175 | Code for making music videos using CLIP | Python | yk | Yannic Kilcher | |
main.py | Python | from utils import train, Pars, create_image, create_outputfolder, init_textfile
from dall_e import map_pixels, unmap_pixels, load_model
from stylegan import g_synthesis
from biggan import BigGAN
from tqdm import tqdm
import create_video
import tempfile
import argparse
import torch
import clip
import glob
import os
import math
# Argsparse for commandline options
parser = argparse.ArgumentParser(description='BigGan_Clip')
parser.add_argument('--epochs',
default = 100,
type = int,
help ='Number of Epochs')
parser.add_argument('--generator',
default = 'biggan',
type = str,
choices = ['biggan', 'dall-e', 'stylegan'],
help = 'Choose what type of generator you would like to use BigGan or Dall-E')
parser.add_argument('--textfile',
type = str,
required= True,
help ='Path for the text file')
parser.add_argument('--audiofile',
default = None,
type = str,
required= True,
help ='Path for the mp3 file')
parser.add_argument('--lyrics',
default = True,
type = bool,
help ='Include lyrics')
parser.add_argument('--interpolation',
default = 10,
type = int,
help ='Number of elements to be interpolated per second and feed to the model')
args = parser.parse_args()
epochs = args.epochs
generator = args.generator
textfile = args.textfile
audiofile = args.audiofile
interpol = args.interpolation
lyrics = args.lyrics
sideX = 512
sideY = 512
def main():
# Automatically creates 'output' folder
create_outputfolder()
# Initialize Clip
perceptor, preprocess = clip.load('ViT-B/32')
perceptor = perceptor.eval()
# Load the model
if generator == 'biggan':
model = BigGAN.from_pretrained('biggan-deep-512')
model = model.cuda().eval()
elif generator == 'dall-e':
model = load_model("decoder.pkl", 'cuda')
elif generator == 'stylegan':
model = g_synthesis.eval().cuda()
# Read the textfile
# descs - list to append the Description and Timestamps
descs = init_textfile(textfile)
# list of temporary PTFiles
templist = []
# Loop over the description list
for d in tqdm(descs):
timestamp = d[0]
line = d[1]
# stamps_descs_list.append((timestamp, line))
lats = Pars(gen=generator).cuda()
# Init Generator's latents
if generator == 'biggan':
par = lats.parameters()
lr = 0.1#.07
elif generator == 'stylegan':
par = [lats.normu]
lr = .01
elif generator == 'dall-e':
par = [lats.normu]
lr = .1
# Init optimizer
optimizer = torch.optim.Adam(par, lr)
# tokenize the current description with clip and encode the text
txt = clip.tokenize(line)
percep = perceptor.encode_text(txt.cuda()).detach().clone()
# Training Loop
for i in range(epochs):
zs = train(i, model, lats, sideX, sideY, perceptor, percep, optimizer, line, txt, epochs=epochs, gen=generator)
# save each line's last latent to a torch file temporarily
latent_temp = tempfile.NamedTemporaryFile()
torch.save(zs, latent_temp) #f'./output/pt_folder/{line}.pt')
latent_temp.seek(0)
#append it to templist so it can be accessed later
templist.append(latent_temp)
return templist, descs, model
def sigmoid(x):
x = x * 2. - 1.
return math.tanh(1.5*x/(math.sqrt(1.- math.pow(x, 2.)) + 1e-6)) / 2 + .5
def interpolate(templist, descs, model, audiofile):
video_temp_list = []
# interpole elements between each image
for idx1, pt in enumerate(descs):
# get the next index of the descs list,
# if it z1_idx is out of range, break the loop
z1_idx = idx1 + 1
if z1_idx >= len(descs):
break
current_lyric = pt[1]
# get the interval betwee 2 lines/elements in seconds `ttime`
d1 = pt[0]
d2 = descs[z1_idx][0]
ttime = d2 - d1
# if it is the very first index, load the first pt temp file
# if not assign the previous pt file (z1) to zs variable
if idx1 == 0:
zs = torch.load(templist[idx1])
else:
zs = z1
# compute for the number of elements to be insert between the 2 elements
N = round(ttime * interpol)
print(z1_idx)
# the codes below determine if the output is list (for biggan)
# if not insert it into a list
if not isinstance(zs, list):
z0 = [zs]
z1 = [torch.load(templist[z1_idx])]
else:
z0 = zs
z1 = torch.load(templist[z1_idx])
# loop over the range of elements and generate the images
image_temp_list = []
for t in range(N):
azs = []
for r in zip(z0, z1):
z_diff = r[1] - r[0]
inter_zs = r[0] + sigmoid(t / (N-1)) * z_diff
azs.append(inter_zs)
# Generate image
with torch.no_grad():
if generator == 'biggan':
img = model(azs[0], azs[1], 1).cpu().numpy()
img = img[0]
elif generator == 'dall-e':
img = unmap_pixels(torch.sigmoid(model(azs[0])[:, :3]).cpu().float()).numpy()
img = img[0]
elif generator == 'stylegan':
img = model(azs[0])
image_temp = create_image(img, t, current_lyric, generator)
image_temp_list.append(image_temp)
video_temp = create_video.createvid(f'{current_lyric}', image_temp_list, duration=ttime / N)
video_temp_list.append(video_temp)
# Finally create the final output and save to output folder
create_video.concatvids(descs, video_temp_list, audiofile, lyrics=lyrics)
if __name__ == '__main__':
templist, descs, model = main()
interpolate(templist, descs, model, audiofile)
| yk/clip_music_video | 175 | Code for making music videos using CLIP | Python | yk | Yannic Kilcher | |
stylegan.py | Python | #!/usr/bin/env python3
# Taken from https://github.com/IVRL/GANLocalEditing
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
from collections import OrderedDict
import os
import wget
class MyLinear(nn.Module):
"""Linear layer with equalized learning rate and custom learning rate multiplier."""
def __init__(self, input_size, output_size, gain=2**(0.5), use_wscale=False, lrmul=1, bias=True):
super().__init__()
he_std = gain * input_size**(-0.5) # He init
# Equalized learning rate and custom learning rate multiplier.
if use_wscale:
init_std = 1.0 / lrmul
self.w_mul = he_std * lrmul
else:
init_std = he_std / lrmul
self.w_mul = lrmul
self.weight = torch.nn.Parameter(torch.randn(output_size, input_size) * init_std)
if bias:
self.bias = torch.nn.Parameter(torch.zeros(output_size))
self.b_mul = lrmul
else:
self.bias = None
def forward(self, x):
bias = self.bias
if bias is not None:
bias = bias * self.b_mul
return F.linear(x, self.weight * self.w_mul, bias)
class MyConv2d(nn.Module):
"""Conv layer with equalized learning rate and custom learning rate multiplier."""
def __init__(self, input_channels, output_channels, kernel_size, gain=2**(0.5), use_wscale=False, lrmul=1, bias=True,
intermediate=None, upscale=False):
super().__init__()
if upscale:
self.upscale = Upscale2d()
else:
self.upscale = None
he_std = gain * (input_channels * kernel_size ** 2) ** (-0.5) # He init
self.kernel_size = kernel_size
if use_wscale:
init_std = 1.0 / lrmul
self.w_mul = he_std * lrmul
else:
init_std = he_std / lrmul
self.w_mul = lrmul
self.weight = torch.nn.Parameter(torch.randn(output_channels, input_channels, kernel_size, kernel_size) * init_std)
if bias:
self.bias = torch.nn.Parameter(torch.zeros(output_channels))
self.b_mul = lrmul
else:
self.bias = None
self.intermediate = intermediate
def forward(self, x):
bias = self.bias
if bias is not None:
bias = bias * self.b_mul
have_convolution = False
if self.upscale is not None and min(x.shape[2:]) * 2 >= 128:
# this is the fused upscale + conv from StyleGAN, sadly this seems incompatible with the non-fused way
# this really needs to be cleaned up and go into the conv...
w = self.weight * self.w_mul
w = w.permute(1, 0, 2, 3)
# probably applying a conv on w would be more efficient. also this quadruples the weight (average)?!
w = F.pad(w, (1,1,1,1))
w = w[:, :, 1:, 1:]+ w[:, :, :-1, 1:] + w[:, :, 1:, :-1] + w[:, :, :-1, :-1]
x = F.conv_transpose2d(x, w, stride=2, padding=(w.size(-1)-1)//2)
have_convolution = True
elif self.upscale is not None:
x = self.upscale(x)
if not have_convolution and self.intermediate is None:
return F.conv2d(x, self.weight * self.w_mul, bias, padding=self.kernel_size//2)
elif not have_convolution:
x = F.conv2d(x, self.weight * self.w_mul, None, padding=self.kernel_size//2)
if self.intermediate is not None:
x = self.intermediate(x)
if bias is not None:
x = x + bias.view(1, -1, 1, 1)
return x
class NoiseLayer(nn.Module):
"""adds noise. noise is per pixel (constant over channels) with per-channel weight"""
def __init__(self, channels):
super().__init__()
self.weight = nn.Parameter(torch.zeros(channels))
self.noise = None
def forward(self, x, noise=None):
if noise is None and self.noise is None:
noise = torch.randn(x.size(0), 1, x.size(2), x.size(3), device=x.device, dtype=x.dtype)
elif noise is None:
# here is a little trick: if you get all the noiselayers and set each
# modules .noise attribute, you can have pre-defined noise.
# Very useful for analysis
noise = self.noise
x = x + self.weight.view(1, -1, 1, 1) * noise
return x
class StyleMod(nn.Module):
def __init__(self, latent_size, channels, use_wscale):
super(StyleMod, self).__init__()
self.lin = MyLinear(latent_size,
channels * 2,
gain=1.0, use_wscale=use_wscale)
def forward(self, x, latent):
style = self.lin(latent) # style => [batch_size, n_channels*2]
shape = [-1, 2, x.size(1)] + (x.dim() - 2) * [1]
style = style.view(shape) # [batch_size, 2, n_channels, ...]
x = x * (style[:, 0] + 1.) + style[:, 1]
return x
class PixelNormLayer(nn.Module):
""" This layer ensures that the input vector have std = 1:
- std = 1/N * sqrt(x-mean(x))
- In this case x comes from a normal centred in 0 so mean(x) = 0
- Dividing the value of std(x) to x makes the normal of x become 1:
+ If the std == 1 it remains the same
+ If the std > 1 it decrease the values of x which in consequence reduce the std
+ If the std < 1 it increase the values of x which in consequence increase the std
"""
def __init__(self, epsilon=1e-8):
super().__init__()
self.epsilon = epsilon
def forward(self, x):
return x * torch.rsqrt(torch.mean(x**2, dim=1, keepdim=True) + self.epsilon)
class BlurLayer(nn.Module):
def __init__(self, kernel=[1, 2, 1], normalize=True, flip=False, stride=1):
super(BlurLayer, self).__init__()
kernel=[1, 2, 1]
kernel = torch.tensor(kernel, dtype=torch.float32)
kernel = kernel[:, None] * kernel[None, :]
kernel = kernel[None, None]
if normalize:
kernel = kernel / kernel.sum()
if flip:
kernel = kernel[:, :, ::-1, ::-1]
self.register_buffer('kernel', kernel)
self.stride = stride
def forward(self, x):
# expand kernel channels
kernel = self.kernel.expand(x.size(1), -1, -1, -1)
x = F.conv2d(
x,
kernel,
stride=self.stride,
padding=int((self.kernel.size(2)-1)/2),
groups=x.size(1)
)
return x
def upscale2d(x, factor=2, gain=1):
assert x.dim() == 4
if gain != 1:
x = x * gain
if factor != 1:
shape = x.shape
x = x.view(shape[0], shape[1], shape[2], 1, shape[3], 1).expand(-1, -1, -1, factor, -1, factor)
x = x.contiguous().view(shape[0], shape[1], factor * shape[2], factor * shape[3])
return x
class Upscale2d(nn.Module):
def __init__(self, factor=2, gain=1):
super().__init__()
assert isinstance(factor, int) and factor >= 1
self.gain = gain
self.factor = factor
def forward(self, x):
return upscale2d(x, factor=self.factor, gain=self.gain)
class G_mapping(nn.Sequential):
def __init__(self, nonlinearity='lrelu', use_wscale=True):
act, gain = {'relu': (torch.relu, np.sqrt(2)),
'lrelu': (nn.LeakyReLU(negative_slope=0.2), np.sqrt(2))}[nonlinearity]
layers = [
('pixel_norm', PixelNormLayer()),
('dense0', MyLinear(512, 512, gain=gain, lrmul=0.01, use_wscale=use_wscale)),
('dense0_act', act),
('dense1', MyLinear(512, 512, gain=gain, lrmul=0.01, use_wscale=use_wscale)),
('dense1_act', act),
('dense2', MyLinear(512, 512, gain=gain, lrmul=0.01, use_wscale=use_wscale)),
('dense2_act', act),
('dense3', MyLinear(512, 512, gain=gain, lrmul=0.01, use_wscale=use_wscale)),
('dense3_act', act),
('dense4', MyLinear(512, 512, gain=gain, lrmul=0.01, use_wscale=use_wscale)),
('dense4_act', act),
('dense5', MyLinear(512, 512, gain=gain, lrmul=0.01, use_wscale=use_wscale)),
('dense5_act', act),
('dense6', MyLinear(512, 512, gain=gain, lrmul=0.01, use_wscale=use_wscale)),
('dense6_act', act),
('dense7', MyLinear(512, 512, gain=gain, lrmul=0.01, use_wscale=use_wscale)),
('dense7_act', act)
]
super().__init__(OrderedDict(layers))
def forward(self, x):
x = super().forward(x)
# Broadcast
x = x.expand(-1, 18, -1)
return x
class Truncation(nn.Module):
def __init__(self, avg_latent, max_layer=8, threshold=0.7):
super().__init__()
self.max_layer = max_layer
self.threshold = threshold
self.register_buffer('avg_latent', avg_latent) # parameter of the module which is not trainable and is not passed to the optimizer when calling parameters() function
def forward(self, x):
assert x.dim() == 3
interp = torch.lerp(self.avg_latent, x, self.threshold)
do_trunc = (torch.arange(x.size(1)) < self.max_layer).view(1, -1, 1)
return torch.where(do_trunc, interp, x)
class LayerEpilogue(nn.Module):
"""Things to do at the end of each layer."""
def __init__(self, channels, dlatent_size, use_wscale, use_noise, use_pixel_norm, use_instance_norm, use_styles, activation_layer):
super().__init__()
layers = []
if use_noise:
layers.append(('noise', NoiseLayer(channels)))
layers.append(('activation', activation_layer))
if use_pixel_norm:
layers.append(('pixel_norm', PixelNormLayer()))
if use_instance_norm:
layers.append(('instance_norm', nn.InstanceNorm2d(channels)))
self.top_epi = nn.Sequential(OrderedDict(layers))
if use_styles:
self.style_mod = StyleMod(dlatent_size, channels, use_wscale=use_wscale)
else:
self.style_mod = None
def forward(self, x, dlatents_in_slice=None):
x = self.top_epi(x)
if self.style_mod is not None:
x = self.style_mod(x, dlatents_in_slice)
else:
assert dlatents_in_slice is None
return x
class InputBlock(nn.Module):
def __init__(self, nf, dlatent_size, const_input_layer, gain, use_wscale, use_noise, use_pixel_norm, use_instance_norm, use_styles, activation_layer):
super().__init__()
self.const_input_layer = const_input_layer
self.nf = nf
if self.const_input_layer:
# called 'const' in tf
self.const = nn.Parameter(torch.ones(1, nf, 4, 4))
self.bias = nn.Parameter(torch.ones(nf))
else:
self.dense = MyLinear(dlatent_size, nf*16, gain=gain/4, use_wscale=use_wscale) # tweak gain to match the official implementation of Progressing GAN
self.epi1 = LayerEpilogue(nf, dlatent_size, use_wscale, use_noise, use_pixel_norm, use_instance_norm, use_styles, activation_layer)
self.conv = MyConv2d(nf, nf, 3, gain=gain, use_wscale=use_wscale)
self.epi2 = LayerEpilogue(nf, dlatent_size, use_wscale, use_noise, use_pixel_norm, use_instance_norm, use_styles, activation_layer)
def forward(self, dlatents_in_range):
batch_size = dlatents_in_range.size(0)
if self.const_input_layer:
x = self.const.expand(batch_size, -1, -1, -1)
x = x + self.bias.view(1, -1, 1, 1)
else:
x = self.dense(dlatents_in_range[:, 0]).view(batch_size, self.nf, 4, 4)
x = self.epi1(x, dlatents_in_range[:, 0])
x = self.conv(x)
x = self.epi2(x, dlatents_in_range[:, 1])
return x
class GSynthesisBlock(nn.Module):
def __init__(self, in_channels, out_channels, blur_filter, dlatent_size, gain, use_wscale, use_noise, use_pixel_norm, use_instance_norm, use_styles, activation_layer):
# 2**res x 2**res # res = 3..resolution_log2
super().__init__()
if blur_filter:
blur = BlurLayer(blur_filter)
else:
blur = None
self.conv0_up = MyConv2d(in_channels, out_channels, kernel_size=3, gain=gain, use_wscale=use_wscale,
intermediate=blur, upscale=True)
self.epi1 = LayerEpilogue(out_channels, dlatent_size, use_wscale, use_noise, use_pixel_norm, use_instance_norm, use_styles, activation_layer)
self.conv1 = MyConv2d(out_channels, out_channels, kernel_size=3, gain=gain, use_wscale=use_wscale)
self.epi2 = LayerEpilogue(out_channels, dlatent_size, use_wscale, use_noise, use_pixel_norm, use_instance_norm, use_styles, activation_layer)
def forward(self, x, dlatents_in_range):
x = self.conv0_up(x)
x = self.epi1(x, dlatents_in_range[:, 0])
x = self.conv1(x)
x = self.epi2(x, dlatents_in_range[:, 1])
return x
class G_synthesis(nn.Module):
def __init__(self,
dlatent_size = 512, # Disentangled latent (W) dimensionality.
num_channels = 3, # Number of output color channels.
resolution = 1024, # Output resolution.
fmap_base = 8192, # Overall multiplier for the number of feature maps.
fmap_decay = 1.0, # log2 feature map reduction when doubling the resolution.
fmap_max = 512, # Maximum number of feature maps in any layer.
use_styles = True, # Enable style inputs?
const_input_layer = True, # First layer is a learned constant?
use_noise = True, # Enable noise inputs?
randomize_noise = True, # True = randomize noise inputs every time (non-deterministic), False = read noise inputs from variables.
nonlinearity = 'lrelu', # Activation function: 'relu', 'lrelu'
use_wscale = True, # Enable equalized learning rate?
use_pixel_norm = False, # Enable pixelwise feature vector normalization?
use_instance_norm = True, # Enable instance normalization?
dtype = torch.float32, # Data type to use for activations and outputs.
blur_filter = [1,2,1], # Low-pass filter to apply when resampling activations. None = no filtering.
):
super().__init__()
def nf(stage):
return min(int(fmap_base / (2.0 ** (stage * fmap_decay))), fmap_max)
self.dlatent_size = dlatent_size
resolution_log2 = int(np.log2(resolution))
assert resolution == 2**resolution_log2 and resolution >= 4
act, gain = {'relu': (torch.relu, np.sqrt(2)),
'lrelu': (nn.LeakyReLU(negative_slope=0.2), np.sqrt(2))}[nonlinearity]
num_layers = resolution_log2 * 2 - 2
num_styles = num_layers if use_styles else 1
torgbs = []
blocks = []
for res in range(2, resolution_log2 + 1):
channels = nf(res-1)
name = '{s}x{s}'.format(s=2**res)
if res == 2:
blocks.append((name,
InputBlock(channels, dlatent_size, const_input_layer, gain, use_wscale,
use_noise, use_pixel_norm, use_instance_norm, use_styles, act)))
else:
blocks.append((name,
GSynthesisBlock(last_channels, channels, blur_filter, dlatent_size, gain, use_wscale, use_noise, use_pixel_norm, use_instance_norm, use_styles, act)))
last_channels = channels
self.torgb = MyConv2d(channels, num_channels, 1, gain=1, use_wscale=use_wscale)
self.blocks = nn.ModuleDict(OrderedDict(blocks))
def forward(self, dlatents_in):
# Input: Disentangled latents (W) [minibatch, num_layers, dlatent_size].
# lod_in = tf.cast(tf.get_variable('lod', initializer=np.float32(0), trainable=False), dtype)
batch_size = dlatents_in.size(0)
for i, m in enumerate(self.blocks.values()):
if i == 0:
x = m(dlatents_in[:, 2*i:2*i+2])
else:
x = m(x, dlatents_in[:, 2*i:2*i+2])
rgb = self.torgb(x)
return rgb
avg_latent = torch.zeros(1, 18, 512)
g_all = nn.Sequential(OrderedDict([
('g_mapping', G_mapping()),
# ('truncation', Truncation(avg_latent)),
('g_synthesis', G_synthesis())
]))
cwd = os.getcwd()
if 'stylegan.pt' not in os.listdir(cwd):
url = "https://github.com/lernapparat/lernapparat/releases/download/v2019-02-01/karras2019stylegan-ffhq-1024x1024.for_g_all.pt"
wget.download(url, "stylegan.pt")
g_all.load_state_dict(torch.load('stylegan.pt'))
g_synthesis = g_all.g_synthesis
g_mapping = g_all.g_mapping
| yk/clip_music_video | 175 | Code for making music videos using CLIP | Python | yk | Yannic Kilcher | |
utils.py | Python | from dall_e import map_pixels, unmap_pixels
import numpy as np
import torchvision
import tempfile
import imageio
import random
import kornia
import shutil
import torch
import time
import os
import re
def create_outputfolder():
outputfolder = os.path.join(os.getcwd(), 'output')
if os.path.exists(outputfolder):
shutil.rmtree(outputfolder)
os.mkdir(outputfolder)
def create_strp(d, timeformat):
return time.mktime(time.strptime(d, timeformat))
def download_stylegan_pt():
cwd = os.getcwd()
print(cwd)
if 'stylegan.pt' not in os.listdir(cwd):
url = "https://github.com/lernapparat/lernapparat/releases/download/v2019-02-01/karras2019stylegan-ffhq-1024x1024.for_g_all.pt"
wget.download(url, "stylegan.pt")
def init_textfile(textfile):
timeformat = "%M:%S"
starttime = "00:00"
with open(textfile, 'r') as file:
descs = file.readlines()
descs1 = [re.findall(r'(\d\d:\d\d) (.*)', d.strip('\n').strip())[0] for d in descs]
if len(descs1[0]) == 0:
descs1 = [re.findall(r'(\d\d:\d\d.\d\d) (.*)', d.strip('\n').strip())[0] for d in descs]
timeformat = "%M:%S.%f"
starttime = "00:00.00"
descs1 = [(create_strp(d[0], timeformat), d[1])for d in descs1]
firstline = (create_strp(starttime, timeformat), "start song")
if descs1[0][0] - firstline[0]:
descs1.insert(0, firstline)
lastline = (descs1[-1][0]+9, "end song")
descs1.append(lastline)
return descs1
def create_image(img, i, text, gen, pre_scaled=True):
if gen == 'stylegan':
img = (img.clamp(-1, 1) + 1) / 2.0
img = img[0].permute(1, 2, 0).detach().cpu().numpy() * 256
else:
img = np.array(img)[:,:,:]
img = np.transpose(img, (1, 2, 0))
if not pre_scaled:
img = scale(img, 48*4, 32*4)
img = np.array(img)
with tempfile.NamedTemporaryFile() as image_temp:
imageio.imwrite(image_temp.name+".png", img)
image_temp.seek(0)
return image_temp
nom = torchvision.transforms.Normalize((0.48145466, 0.4578275, 0.40821073), (0.26862954, 0.26130258, 0.27577711))
class Pars(torch.nn.Module):
def __init__(self, gen='biggan'):
super(Pars, self).__init__()
self.gen = gen
if self.gen == 'biggan':
params1 = torch.zeros(32, 128).normal_(std=1).cuda()
self.normu = torch.nn.Parameter(params1)
params_other = torch.zeros(32, 1000).normal_(-3.9, .3)
self.cls = torch.nn.Parameter(params_other)
self.thrsh_lat = torch.tensor(1).cuda()
self.thrsh_cls = torch.tensor(1.9).cuda()
elif self.gen == 'dall-e':
self.normu = torch.nn.Parameter(torch.zeros(1, 8192, 64, 64).cuda())
elif self.gen == 'stylegan':
latent_shape = (1, 1, 512)
latents_init = torch.zeros(latent_shape).squeeze(-1).cuda()
self.normu = torch.nn.Parameter(latents_init, requires_grad=True)
def forward(self):
if self.gen == 'biggan':
return self.normu, torch.sigmoid(self.cls)
elif self.gen == 'dall-e':
# normu = torch.nn.functional.gumbel_softmax(self.normu.view(1, 8192, -1), dim=-1).view(1, 8192, 64, 64)
normu = torch.nn.functional.gumbel_softmax(self.normu.view(1, 8192, -1), dim=-1, tau = 2).view(1, 8192, 64, 64)
return normu
def pad_augs(image):
pad = random.randint(1,50)
pad_px = random.randint(10,90)/100
pad_py = random.randint(10,90)/100
pad_dims = (int(pad*pad_px), pad-int(pad*pad_px), int(pad*pad_py), pad-int(pad*pad_py))
return torch.nn.functional.pad(image, pad_dims, "constant", 1)
def kornia_augs(image, sideX=512):
blur = (random.randint(0,int(sideX/5))*2)+1
kornia_model = torch.nn.Sequential(
kornia.augmentation.RandomAffine(20, p=0.55, keepdim=True),
kornia.augmentation.RandomHorizontalFlip(),
kornia.augmentation.GaussianBlur((blur,blur),(blur,blur), p=0.5, border_type="constant"),
kornia.augmentation.RandomSharpness(.5),
kornia.augmentation.ColorJitter(0.1, 0.1, 0.1, 0.1, p=0.6)
)
return kornia_model(image)
def ascend_txt(model, lats, sideX, sideY, perceptor, percep, gen, tokenizedtxt):
if gen == 'biggan':
cutn = 128
zs = [*lats()]
out = model(zs[0], zs[1], 1)
elif gen == 'dall-e':
cutn = 32
zs = lats()
out = unmap_pixels(torch.sigmoid(model(zs)[:, :3].float()))
elif gen == 'stylegan':
zs = lats.normu.repeat(1,18,1)
img = model(zs)
img = torch.nn.functional.upsample_bilinear(img, (224, 224))
img_logits, _text_logits = perceptor(img, tokenizedtxt.cuda())
return 1/img_logits * 100, img, zs
p_s = []
for ch in range(cutn):
# size = int(sideX*torch.zeros(1,).normal_(mean=.8, std=.3).clip(.5, .95))
size = int(sideX*torch.zeros(1,).normal_(mean=.39, std=.865).clip(.362, .7099))
offsetx = torch.randint(0, sideX - size, ())
offsety = torch.randint(0, sideY - size, ())
apper = out[:, :, offsetx:offsetx + size, offsety:offsety + size]
apper = pad_augs(apper)
# apper = kornia_augs(apper, sideX=sideX)
apper = torch.nn.functional.interpolate(apper, (224, 224), mode='nearest')
p_s.append(apper)
into = torch.cat(p_s, 0)
if gen == 'biggan':
# into = nom((into + 1) / 2)
up_noise = 0.01649
into = into + (up_noise)*torch.randn_like(into, requires_grad=True)
into = nom((into + 1) / 1.8)
elif gen == 'dall-e':
into = nom((into + 1) / 2)
iii = perceptor.encode_image(into)
llls = zs #lats()
if gen == 'dall-e':
return [0, 10*-torch.cosine_similarity(percep, iii).view(-1, 1).T.mean(1), zs]
lat_l = torch.abs(1 - torch.std(llls[0], dim=1)).mean() + \
torch.abs(torch.mean(llls[0])).mean() + \
4*torch.max(torch.square(llls[0]).mean(), lats.thrsh_lat)
for array in llls[0]:
mean = torch.mean(array)
diffs = array - mean
var = torch.mean(torch.pow(diffs, 2.0))
std = torch.pow(var, 0.5)
zscores = diffs / std
skews = torch.mean(torch.pow(zscores, 3.0))
kurtoses = torch.mean(torch.pow(zscores, 4.0)) - 3.0
lat_l = lat_l + torch.abs(kurtoses) / llls[0].shape[0] + torch.abs(skews) / llls[0].shape[0]
cls_l = ((50*torch.topk(llls[1],largest=False,dim=1,k=999)[0])**2).mean()
return [lat_l, cls_l, -100*torch.cosine_similarity(percep, iii, dim=-1).mean(), zs]
def train(i, model, lats, sideX, sideY, perceptor, percep, optimizer, text, tokenizedtxt, epochs=200, gen='biggan', img=None):
loss1 = ascend_txt(model, lats, sideX, sideY, perceptor, percep, gen, tokenizedtxt)
if gen == 'biggan':
loss = loss1[0] + loss1[1] + loss1[2]
zs = loss1[3]
elif gen == 'dall-e':
loss = loss1[0] + loss1[1]
loss = loss.mean()
zs = loss1[2]
elif gen == 'stylegan':
loss = loss1[0]
img = loss1[1].cpu()
zs = loss1[2]
optimizer.zero_grad()
loss.backward()
optimizer.step()
if i+1 == epochs:
# if it's the last step, return the final z
return zs
return False
| yk/clip_music_video | 175 | Code for making music videos using CLIP | Python | yk | Yannic Kilcher | |
src/compute_metrics.py | Python | #!/usr/bin/env python3
import json
from pathlib import Path
from loguru import logger
from tabulate import tabulate
import lm_eval.tasks
m1 = 'GPT-J-6B'
m2 = 'GPT-4chan'
log_dir = Path('./eval_logs')
all_tasks = set()
model_data = {}
for fn in log_dir.rglob('log_*.stdout.txt'):
try:
file_text = fn.read_text()
data = json.loads('{' + file_text.split('{', 1)[1].rsplit('}', 1)[0] + '}')
model = data['config']['model_args'].split('=')[1]
model = m2 if 'fp16' in model else m1
if model not in model_data:
model_data[model] = {}
results = data['results']
tasks = list(results.keys())
assert len(tasks) == 1, 'Only one task supported'
task = tasks[0]
if task in model_data[model]:
raise ValueError(f'Duplicate task {task}')
task_version = data['versions'][task]
results = results[task]
results_data = {}
for result_key in results:
if result_key.endswith('_stderr'):
continue
result_value = results[result_key]
results_data[result_key] = {'value': result_value}
stderr_key = f'{result_key}_stderr'
if stderr_key in results:
results_data[result_key]['stderr'] = results[stderr_key]
else:
logger.warning(f'No stderr for {result_key} in {results}')
model_data[model][task] = {'version': task_version, 'results': results_data}
all_tasks.add(task)
except Exception:
logger.exception(f'Failed to parse {fn}')
continue
all_models = list(sorted(model_data.keys()))
table_data = []
for task in all_tasks:
try:
higher_is_better = lm_eval.tasks.get_task(task).higher_is_better(None)
except Exception:
logger.warning(f'Failed to get higher_is_better for {task}')
continue
if any(task not in model_data[model] for model in all_models):
logger.warning(f'No results for {task}')
continue
results = model_data[m1][task]['results']
results2 = model_data[m2][task]['results']
for metric in results:
result_value = results[metric]['value']
stderr_value = results[metric].get('stderr', 0.0)
result2_value = results2[metric]['value']
stderr2_value = results2[metric].get('stderr', 0.0)
significance = (result_value - result2_value) / ((stderr_value + stderr2_value + 1e-8) / 2)
if higher_is_better[metric]:
significance *= -1
if abs(significance) > 1:
significant = '+' if significance > 0 else '-'
else:
significant = ''
table_data.append([task, metric, result_value, stderr_value, result2_value, stderr2_value, significant])
table_str = tabulate(table_data, headers=['Task', 'Metric', m1, 'stderr', m2, 'stderr', 'Significant'], tablefmt='pipe')
print(table_str)
Path('./results.table.txt').write_text(table_str)
| yk/gpt-4chan-public | 635 | Code for GPT-4chan | Python | yk | Yannic Kilcher | |
src/process_data.py | Python | #!/usr/bin/env python3
import json
import bs4
from loguru import logger
import multiprocessing as mp
import tqdm
from absl import app, flags
import warnings
warnings.filterwarnings("ignore", category=bs4.MarkupResemblesLocatorWarning, module='bs4')
DATA_FN = '../tmp/pol_062016-112019_labeled.ndjson'
OUT_FN = '../tmp/kek.txt'
flags.DEFINE_string('data_fn', DATA_FN, 'data file')
flags.DEFINE_string('out_fn', OUT_FN, 'output file')
FLAGS = flags.FLAGS
# from here: https://gist.github.com/zmwangx/ad0830ba94b1fd98f428
def text_with_newlines(elem):
text = ''
for e in elem.descendants:
if isinstance(e, str):
# text += e.strip()
text += e
elif e.name == 'br' or e.name == 'p':
text += '\n'
return text
def parse_line(line):
data = json.loads(line)
posts_text = []
for post in data.get('posts', []):
try:
if 'com' in post:
soup = bs4.BeautifulSoup(post['com'], 'lxml')
post_text = text_with_newlines(soup).strip()
else:
post_text = ''
post_text = f'--- {post["no"]}\n{post_text}'
posts_text.append(post_text)
except Exception:
logger.exception(f'failed to parse post {post}')
return '\n'.join(posts_text)
def main(_):
with open(FLAGS.out_fn, 'w') as out_f:
with open(FLAGS.data_fn) as in_f:
with mp.Pool() as pool:
for parsed_line in pool.imap(parse_line, tqdm.tqdm(in_f)):
out_f.write(parsed_line + '\n-----\n')
if __name__ == '__main__':
app.run(main)
| yk/gpt-4chan-public | 635 | Code for GPT-4chan | Python | yk | Yannic Kilcher | |
src/server/model/__init__.py | Python | from .inference import Inference
from .constants import ModelParams, InferConfig
| yk/gpt-4chan-public | 635 | Code for GPT-4chan | Python | yk | Yannic Kilcher | |
src/server/model/constants.py | Python | import typing
from dataclasses import dataclass
import optax
BAD_WORDS = [] # Can't be part of config to avoid printing it
@dataclass
class InferConfig:
name: str = "Holotard"
prompt_length: int = 65536
token_length: int = 16
response_probability: float = 0.02
top_p: float = 1.0
min_temperature: float = 0.6
max_temperature: float = 1.2
max_same_replies: int = 2
same_reply_saved_messages: int = 6
max_response_retries: int = 3
@dataclass
class ModelParams:
layers: int = 28
d_model: int = 4096
n_heads: int = 16
n_vocab: int = 50400
norm: str = "layernorm"
pe: str = "rotary"
pe_rotary_dims: int = 64
seq: int = 2048
cores_per_replica: int = 8
per_replica_batch: int = 1
# batch size of 2 needs 200gb, 1 needs <16. wtf
optimizer: optax.chain = optax.chain(optax.adaptive_grad_clip(0.001), optax.centralize(),
optax.scale_by_adam(0.99, 0.999), optax.additive_weight_decay(1e-3),
optax.scale(-1e-5), )
sampler = None
| yk/gpt-4chan-public | 635 | Code for GPT-4chan | Python | yk | Yannic Kilcher | |
src/server/model/inference.py | Python | import random
from typing import Any, Optional
from loguru import logger
import time
import jax
import numpy as np
import transformers
from jax import numpy as jnp
from jax.experimental import maps
from mesh_transformer.checkpoint import read_ckpt_lowmem
from mesh_transformer.sampling import nucleaus_sample
from mesh_transformer.transformer_shard import CausalTransformer
from .constants import ModelParams, InferConfig
def default(value: Any, fallback: Any) -> Any:
# luke prefers making a function that chooses between `value` and `feedback` so i am gonna keep it
if value is None:
return fallback
return value
_cores_per_replica = ModelParams.cores_per_replica
_mesh_shape = (jax.device_count() // _cores_per_replica, _cores_per_replica)
_devices = np.array(jax.devices()).reshape(_mesh_shape)
#maps.thread_resources.env = maps.ResourceEnv(maps.Mesh(_devices, ("dp", "mp")), ())
maps.thread_resources.env = maps.ResourceEnv(maps.Mesh(_devices, ("dp", "mp")))
class Inference:
_NP_ONE = np.ones((1,))
def __init__(
self,
path: Optional[str] = None,
parameters: Optional[ModelParams] = None,
config: Optional[InferConfig] = None,
):
path = "checkpoint_slim/" if path is None else path
self.params = ModelParams() if parameters is None else parameters
self.params.sampler = nucleaus_sample
self.config = InferConfig() if config is None else config
self.model = CausalTransformer(self.params.__dict__)
self.tokenizer = transformers.GPT2TokenizerFast.from_pretrained("gpt2")
self.model.state = read_ckpt_lowmem(
self.model.state, path, self.params.cores_per_replica, load_opt=False
)
def generate_tokens(
self,
prompt: np.ndarray,
length: Optional[int] = None,
top_p: Optional[float] = None,
temperature: Optional[float] = None,
) -> np.ndarray:
length = default(length, self.config.token_length)
top_p = default(top_p, self.config.top_p)
new_temp = random.random() * (self.config.max_temperature - self.config.min_temperature)
new_temp += self.config.min_temperature
temperature = default(temperature, new_temp)
#prompt = prompt[:, -2048:]
#prompt = prompt[:, -length:]
start_time = time.time()
source = jnp.array(
np.pad(
prompt,
(
(0, 0),
(self.params.seq - prompt.shape[1], 0),
),
)
)
logger.info(f"creating source took {time.time() - start_time}")
sampler_options = {
"top_p": self._NP_ONE * top_p,
"temp": self._NP_ONE * temperature,
}
start_time = time.time()
#with jax.experimental.maps.mesh(_devices, ("dp", "mp")):
logger.info(f"creating mesh took {time.time() - start_time}")
start_time = time.time()
out = self.model.generate(
source, self._NP_ONE * prompt.shape[1], length, sampler_options
)
logger.info(f"generate took {time.time() - start_time}")
#import IPython; IPython.embed()
return out[1][0][0, :, 0]
def generate(
self,
prompt: str,
length: Optional[int] = None,
top_p: Optional[float] = None,
temperature: Optional[float] = None,
) -> str:
inp_tokens = self.tokenizer([prompt], verbose=False, return_tensors="np")
inp_tokens = inp_tokens["input_ids"][0]
out_tokens = self.generate_tokens(
inp_tokens.reshape(1, -1), length, top_p, temperature
)
return self.tokenizer.decode(out_tokens)
| yk/gpt-4chan-public | 635 | Code for GPT-4chan | Python | yk | Yannic Kilcher | |
src/server/model/to_slim_weights.py | Python | import argparse
import json
import time
import jax
import numpy as np
import optax
from mesh_transformer import util
from mesh_transformer.checkpoint import read_ckpt, write_ckpt, read_ckpt_lowmem
from mesh_transformer.transformer_shard import CausalTransformer
from smart_open import open
from mesh_transformer.util import clip_by_global_norm, to_bf16, to_f16
from model.constants import ModelParams
if __name__ == "__main__":
params = ModelParams().__dict__
convert_fn = to_bf16
cores_per_replica = params["cores_per_replica"]
assert cores_per_replica <= 8
start = time.time()
print(f"jax devices: {jax.device_count()}")
print(f"jax runtime initialized in {time.time() - start:.06}s")
mesh_shape = (jax.device_count() // cores_per_replica, cores_per_replica)
devices = np.array(jax.devices()).reshape(mesh_shape)
with jax.experimental.maps.mesh(devices, ("dp", "mp")):
network = CausalTransformer(params)
start = time.time()
network.state = read_ckpt(
network.state, f"checkpoint/", devices.shape[1], load_opt=False
)
print(f"network loaded in {time.time() - start:.06}s")
start = time.time()
del network.state["opt_state"]
network.state["params"] = convert_fn(network.state["params"])
print(f"network converted in {time.time() - start:.06}s")
suffix = "_slim"
for i in range(cores_per_replica):
write_ckpt(network.state, f"checkpoint_slim/", i)
print(f"written shard {i}")
| yk/gpt-4chan-public | 635 | Code for GPT-4chan | Python | yk | Yannic Kilcher | |
src/server/serve_api.py | Python | #!/usr/bin/env python3
from typing import Optional
import threading
import queue
import time
from loguru import logger
from pathlib import Path
import contextlib
import pydantic
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
app = FastAPI()
origins = ["*"]
app.add_middleware(
CORSMiddleware,
allow_origins=origins,
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
class Settings(pydantic.BaseSettings):
queue_size: int = 1024
log_file: str = "logs/serve_api.log"
api_keys_file: str = 'valid_api_keys.txt'
hf_model: str = ''
hf_cuda: bool = False
pre_prompt_length: int = 512
settings = Settings()
def _check_api_key(key):
key = key.strip()
for line in Path(settings.api_keys_file).open():
if not line:
continue
valid_key = line.split()[0]
if key == valid_key:
break
else:
return False
return True
request_queue = queue.Queue(maxsize=settings.queue_size)
@contextlib.contextmanager
def jax_generation():
from model import inference
import jax
model = inference.Inference(path="../model_slim/step_88001/")
def _generate(request):
response = model.generate(
prompt=request.prompt,
length=request.length,
top_p=request.top_p,
temperature=request.temperature,
)
return response
with jax.experimental.maps.mesh(inference._devices, ("dp", "mp")):
yield _generate
@contextlib.contextmanager
def hf_generation():
from transformers import GPTJForCausalLM, AutoTokenizer
import torch
if settings.hf_cuda:
model = GPTJForCausalLM.from_pretrained(
settings.hf_model, revision="float16", torch_dtype=torch.float16, low_cpu_mem_usage=True
)
model.cuda()
else:
model = GPTJForCausalLM.from_pretrained( settings.hf_model, torch_dtype=torch.float32)
model.eval()
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-j-6B")
def _generate(request: CompleteRequest):
input_ids = tokenizer(request.prompt, return_tensors="pt").input_ids
max_prompt_length = 2048 - request.length
input_ids = input_ids[:, -max_prompt_length:]
if request.pre_prompt:
pp_input_ids = tokenizer(request.pre_prompt, return_tensors="pt").input_ids
pp_input_ids = pp_input_ids[:, :settings.pre_prompt_length]
input_ids = input_ids[:, -(max_prompt_length-len(pp_input_ids)):]
full_prompt = tokenizer.batch_decode(pp_input_ids)[0] + tokenizer.batch_decode(input_ids)[0]
input_ids = tokenizer(full_prompt, return_tensors="pt").input_ids
input_ids = input_ids[:, -max_prompt_length:]
if settings.hf_cuda:
input_ids = input_ids.cuda()
with torch.no_grad():
gen_tokens = model.generate(
input_ids,
do_sample=True,
temperature=request.temperature,
top_p=request.top_p,
typical_p=request.typical_p,
max_new_tokens=request.length,
).detach().cpu()
gen_text = tokenizer.batch_decode(gen_tokens)[0]
prompt_decoded = tokenizer.batch_decode(input_ids.detach().cpu())[0]
if not gen_text.startswith(prompt_decoded):
raise Exception(f"Generated text does not start with prompt: {gen_text}\n(prompt was {prompt_decoded})")
gen_text = gen_text[len(prompt_decoded):]
return gen_text
yield _generate
def worker():
if settings.hf_model:
generation = hf_generation
else:
generation = jax_generation
with generation() as generate_fn:
with open(settings.log_file, "a") as logf:
while True:
response_queue = None
try:
start_time = time.time()
(request, response_queue) = request_queue.get()
logger.info(f"getting request took {time.time() - start_time}")
start_time = time.time()
response = generate_fn(request)
logger.info(f"generate took {time.time() - start_time}, response length: {len(response)}")
start_time = time.time()
logf.write(f"##### {request.api_key} ##### {time.time()} #####\n")
logf.write(f"{request.pre_prompt}\n")
logf.write("###\n")
logf.write(f"{request.prompt}\n")
logf.write("#####\n")
logf.write(f"{response}\n\n")
logf.flush()
logger.info(f"writing log took {time.time() - start_time}")
start_time = time.time()
response_queue.put(response)
logger.info(f"putting response took {time.time() - start_time}")
except KeyboardInterrupt:
logger.info(f"Got KeyboardInterrupt... quitting!")
raise
except Exception:
logger.exception(f"Got exception, will continue")
if response_queue is not None:
response_queue.put("")
@app.get("/")
async def main():
return {"response": "Hello, world!"}
class CompleteRequest(pydantic.BaseModel):
prompt: pydantic.constr(min_length=0, max_length=2**14)
pre_prompt: pydantic.constr(min_length=0, max_length=2**14) = ''
api_key: pydantic.constr(min_length=1, max_length=128) = "x"*9
length: pydantic.conint(ge=1, le=1024) = 128
top_p: pydantic.confloat(ge=0.0, le=1.0) = 1.0
temperature: pydantic.confloat(ge=0.0) = 1.0
typical_p: pydantic.confloat(ge=0.0, le=1.0) = 1.0
def _enqueue(request: CompleteRequest):
response_queue = queue.Queue()
request_queue.put((request, response_queue))
response = response_queue.get()
return response
@app.on_event("startup")
def startup():
threading.Thread(
target=worker,
daemon=True,
).start()
_enqueue(CompleteRequest(prompt="hello"))
@app.post("/complete")
def complete(request: CompleteRequest):
logger.info(f"Received request from key {request.api_key}. Queue size is {request_queue.qsize()}")
if request_queue.full():
logger.warning("Request queue full.")
raise ValueError("Request queue full.")
if not _check_api_key(request.api_key):
logger.warning(f"api key not valid: {request.api_key}, discarding...")
raise ValueError("Invalid API key")
response = _enqueue(request)
return {"response": response}
| yk/gpt-4chan-public | 635 | Code for GPT-4chan | Python | yk | Yannic Kilcher | |
src/txt_to_tfrecords.py | Python | #!/usr/bin/env python3
from absl import flags, app
from loguru import logger
from pathlib import Path
import shutil
import functools
import tokenizers
import tensorflow as tf
import tqdm
flags.DEFINE_string('txt_fn', '../tmp/kek.txt', 'input txt')
flags.DEFINE_string('out_dir', '../tmp/tfrecords/', 'output directory (will be cleared)')
flags.DEFINE_integer('chunk_size', 2**24, 'how many tokens go into one tfrecords file')
flags.DEFINE_integer('read_buffer_size', 2**10, 'input file read buffer size')
FLAGS = flags.FLAGS
@functools.lru_cache(maxsize=1)
def get_tokenizer():
return tokenizers.Tokenizer.from_pretrained('gpt2')
def make_record_file(record_ids, out_dir, file_no):
out_fn = str(out_dir / f'tokens-{file_no:05d}.tfrecord')
with tf.io.TFRecordWriter(out_fn) as writer:
feature = {'text': tf.train.Feature(int64_list=tf.train.Int64List(value=record_ids))}
tf_example = tf.train.Example(features=tf.train.Features(feature=feature))
writer.write(tf_example.SerializeToString())
def read_in_blocks(f):
while True:
block = f.read(FLAGS.read_buffer_size)
if not block:
break
yield block
def main(_):
out_dir = Path(FLAGS.out_dir)
if out_dir.exists():
logger.warning(f'clearing {out_dir}')
shutil.rmtree(out_dir)
out_dir.mkdir(exist_ok=True)
tokenizer = get_tokenizer()
with open(FLAGS.txt_fn) as in_f:
current_ids = []
out_file_no = 0
for block in tqdm.tqdm(read_in_blocks(in_f)):
current_ids.extend(tokenizer.encode(block).ids)
while len(current_ids) >= FLAGS.chunk_size:
record_ids, current_ids = current_ids[:FLAGS.chunk_size], current_ids[FLAGS.chunk_size:]
make_record_file(record_ids, out_dir, out_file_no)
out_file_no += 1
if current_ids:
make_record_file(current_ids, out_dir, out_file_no)
if __name__ == "__main__":
app.run(main)
| yk/gpt-4chan-public | 635 | Code for GPT-4chan | Python | yk | Yannic Kilcher | |
app/admin/page.js | JavaScript | "use client";
import React from "react";
import Link from "next/link";
import { useQueryClient } from "@tanstack/react-query";
export default function Admin() {
const queryClient = useQueryClient();
const [adminPassword, setAdminPassword] = React.useState("");
const deleteAllPosts = React.useCallback(async () => {
const res = await fetch("/api/posts", {
method: "DELETE",
headers: {
"Content-Type": "application/json",
"X-Admin-Password": adminPassword || "",
},
});
const json = await res.json();
await queryClient.invalidateQueries(["posts"]);
return json;
}, [adminPassword, queryClient]);
return (
<main className="mx-8 my-8 flex flex-col gap-4">
<div>
<Link href="/" className="bg-blue-600 text-white px-4 py-2 rounded">
Home
</Link>
</div>
<div>
<input
type="password"
value={adminPassword}
onChange={(e) => setAdminPassword(e.target.value)}
placeholder="Admin Password"
className="border border-gray-400 rounded px-4 py-2 text-black"
/>
</div>
<div>
<button
onClick={deleteAllPosts}
className="bg-red-600 text-white px-4 py-2 rounded"
>
Delete All Posts
</button>
</div>
</main>
);
}
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
app/api/auth/[...nextauth]/route.js | JavaScript | import NextAuth from "next-auth"
import GithubProvider from "next-auth/providers/github"
const authOptions = {
providers: [
GithubProvider({
clientId: process.env.GITHUB_ID,
clientSecret: process.env.GITHUB_SECRET,
}),
],
secret: process.env.NEXTAUTH_SECRET,
};
const handler = NextAuth(authOptions);
export { handler as GET, handler as POST } | yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
app/api/posts/[id]/likes/route.js | JavaScript | import { NextResponse } from "next/server";
import { getServerSession } from "next-auth/next";
import { getRedisClient } from "../../../../utils";
export const dynamic = "force-dynamic";
export async function GET(req, { params: { id } }) {
const client = await getRedisClient();
const session = await getServerSession(req);
const username = session?.user?.name;
const self_liked = username && await client.sIsMember(`likes:${id}`, username);
const num_likes = await client.sCard(`likes:${id}`);
return NextResponse.json({ self_liked, num_likes }, { status: 200 });
}
export async function POST(req, {params: { id } }) {
const session = await getServerSession(req);
const username = session?.user?.name;
if (!username) {
return NextResponse.json({ error: "not authenticated" }, { status: 401 });
}
const client = await getRedisClient();
try {
const self_liked = await client.sIsMember(`likes:${id}`, username);
if (self_liked) {
await client.sRem(`likes:${id}`, username);
} else {
await client.sAdd(`likes:${id}`, username);
}
return NextResponse.json({ id }, { status: 200 });
} catch (e) {
return NextResponse.json({ error: e.message }, { status: 400 });
}
}
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
app/api/posts/[id]/route.js | JavaScript | import { NextResponse } from "next/server";
import { getRedisClient } from "../../../utils";
export const dynamic = "force-dynamic";
export async function GET(req, { params: { id } }) {
const client = await getRedisClient();
const post = await client.hGetAll(`post:${id}`);
return NextResponse.json({...post}, { status: 200 });
} | yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
app/api/posts/actions.js | JavaScript | "use server";
import { getRedisClient, getS3Client } from "../../utils";
import { nanoid } from "nanoid";
import moment from "moment";
import { dataUriToBuffer } from "data-uri-to-buffer";
import { Image } from "image-js";
import { PutObjectCommand } from "@aws-sdk/client-s3";
export const getPosts = async ({ offset = 0, limit = 0 }) => {
if(!limit) {
limit = parseInt(process.env.POSTS_PER_PAGE || "20");
}
const client = await getRedisClient();
const postIds = await client.zRange("posts", offset, limit);
const posts = await Promise.all(
postIds.map(async (postId) => {
const post = await client.hGetAll(postId);
return post;
})
);
return posts;
};
export const getCooldown = async ({ username }) => {
const client = await getRedisClient();
const cooldown = await client.get(`cooldown:${username}`);
return !!cooldown;
};
const putImage = async (encoded_img) => {
const parsedUri = dataUriToBuffer(encoded_img);
const [dataType, _] = parsedUri.type.split("/");
if (dataType !== "image") throw new Error("Not an image");
let image = await Image.load(parsedUri.buffer);
if (image.width > 1024) {
image = image.resize({ width: 1024 });
}
if (image.height > 1024) {
image = image.resize({ height: 1024 });
}
if (image.width > 1024) {
image = image.resize({ width: 1024 });
}
const buffer = image.toBuffer({ format: "jpeg" });
const fileName = moment().format("YYYY_MM_DD_hh_mm_ss_a");
const key = `uploads/${fileName}.jpeg`;
const s3Client = await getS3Client();
await s3Client.send(new PutObjectCommand({
Bucket: process.env.AWS_BUCKET_NAME,
Key: key,
Body: buffer,
ContentType: "image/jpeg",
}));
const url = `https://${process.env.AWS_BUCKET_NAME}.s3.amazonaws.com/${key}`;
return url;
};
export const createPost = async ({ text, encoded_img, username }) => {
const client = await getRedisClient();
const cooldown = await client.get(`cooldown:${username}`);
if (cooldown) throw new Error("Cooldown in effect");
text = text || "";
encoded_img = encoded_img || "";
if (!(text || encoded_img)) throw new Error("Text or image required");
let img_url = "";
if (encoded_img) {
img_url = await putImage(encoded_img);
}
const id = nanoid();
const key = `post:${id}`;
const createdAt = Date.now();
const newPost = { id, text, img_url, createdAt, username };
await client.hSet(key, [...Object.entries(newPost).flat()]);
await client.rPush("pending", key);
await client.set(`cooldown:${username}`, "true", { EX: 30 });
return { id };
};
export const deleteAllPosts = async () => {
const client = await getRedisClient();
await client.del("pending");
await client.del("posts");
const keys = await client.keys("post:*");
keys.forEach(async (key) => {
await client.del(key);
});
(await client.keys("cooldown:*")).forEach(async (key) => {
await client.del(key);
});
};
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
app/api/posts/route.js | JavaScript | import { NextResponse } from "next/server";
import { getPosts, createPost, deleteAllPosts, getCooldown } from "./actions";
import { getServerSession } from "next-auth/next";
import { headers } from 'next/headers'
export const dynamic = "force-dynamic";
export async function GET(req) {
const searchParams = new URL(req.url).searchParams;
const { cursor = 0 } = searchParams;
const posts = await getPosts({ cursor });
let cooldown = false;
const session = await getServerSession(req);
const username = session?.user?.name;
if(username) {
cooldown = await getCooldown({ username });
}
return NextResponse.json({ posts, cooldown }, { status: 200 });
}
export async function POST(req) {
const session = await getServerSession(req);
const username = session?.user?.name;
if (!username) {
return NextResponse.json({ error: "not authenticated" }, { status: 401 });
}
const { text, encoded_img } = await req.json();
try {
const { id } = await createPost({ text, encoded_img, username });
console.log("created post", { id });
return NextResponse.json({ id }, { status: 200 });
} catch (e) {
console.log("error creating post", { e });
return NextResponse.json({ error: e.message }, { status: 400 });
}
}
// delete all posts
export async function DELETE(){
const reqHeaders = headers();
const adminPassword = reqHeaders.get("X-Admin-Password");
console.log({adminPassword})
if(!process.env.ADMIN_PASSWORD || adminPassword !== process.env.ADMIN_PASSWORD){
return NextResponse.json({ error: "not authenticated" }, { status: 401 });
}
await deleteAllPosts();
return NextResponse.json({}, { status: 200 });
}
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
app/bye/page.js | JavaScript | "use client";
import React from "react";
import { TrashIcon } from "@heroicons/react/24/solid";
import clsx from "clsx";
import Link from "next/link";
import { PostBox, PostDisplay } from "../components/post-displays";
import { VariableSizeList as List } from "react-window";
import AutoSizer from "react-virtualized-auto-sizer";
import posts from "../../worker/data.jsonl";
const allPosts = Object.values(posts);
const postHeights = allPosts.map((post) => {
let height = 128;
if (post.text) {
height += 64 + 32;
}
if (post.img_url) {
height += 512;
}
return height;
});
const ListRow = ({ index, style }) => {
const post = allPosts[index];
return (
<div style={style}>
<PostBox className={"h-full"}>
<PostDisplay
{...post}
username="anonymous"
createdAt={new Date(parseFloat(post.createdAt)).toLocaleString()}
/>
</PostBox>
</div>
);
};
export default function Bye() {
return (
<div className="flex flex-col relative h-screen w-screen">
<header
className={clsx(
"fixed top-0 w-screen h-[100px] bg-black border-b border-gray-500",
"py-8 flex flex-row justify-center items-center gap-4"
)}
>
<TrashIcon className="w-8 h-8" />
<h1 className="text-4xl">Litter</h1>
<Link
href="https://youtu.be/v8O_tSF_o50"
className="absolute right-0 mr-8"
>
Litter is over. Click here for background.
</Link>
</header>
<main className="mt-[100px] h-full">
{allPosts && (
<AutoSizer>
{({ height, width }) => (
<List
height={height}
itemCount={allPosts.length}
itemSize={(index) => postHeights[index]}
width={width}
>
{ListRow}
</List>
)}
</AutoSizer>
)}
</main>
</div>
);
}
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
app/components/create-post-form.js | JavaScript | "use client";
import React from "react";
import clsx from "clsx";
import { useSession } from "next-auth/react";
import Link from "next/link";
import Image from "next/image";
// form for post creation with text and image
export default function CreatePostForm({ onSubmit, className, cooldown }) {
const [text, setText] = React.useState("");
const [image, setImage] = React.useState(null);
const createPost = async (e) => {
e.preventDefault();
//read image as data url
const encoded_img = image
? await new Promise((resolve) => {
const reader = new FileReader();
reader.onload = (e) => {
const result = e.target.result;
resolve(result);
};
reader.readAsDataURL(image);
})
: null;
await onSubmit({ text, encoded_img });
setText("");
setImage(null);
};
const { status } = useSession();
if (status === "loading") return null;
if (status !== "authenticated") {
return (
<div className="h-full flex flex-row w-screen justify-between bg-black">
<div className="flex flex-col w-full justify-center items-center">
<Link
href="/login"
className="text-xl px-8 py-4 border border-1 border-gray-500 rounded-md"
>
Login to create a post
</Link>
</div>
</div>
);
}
if (cooldown) {
return (
<div className="h-full flex flex-row w-screen justify-between bg-black">
<div className="flex flex-col w-full justify-center items-center">
<span className="text-xl px-8 py-4 border-gray-500 rounded-md">
Please wait 30 seconds before creating another post
</span>
</div>
</div>
);
}
return (
<form
onSubmit={createPost}
className="h-full flex flex-row w-screen justify-between bg-black"
>
<textarea
type="text"
name="text"
placeholder="Type your message here..."
className="resize-none block flex-grow bg-black px-4 py-4 text-lg"
autoFocus
value={text}
onChange={(e) => setText(e.target.value)}
onKeyUp={(e) => {
// submit on shift-enter
if (e.key === "Enter" && e.shiftKey) {
createPost(e);
}
}}
/>
<div className="w-32 border-0 border-l border-gray-700">
{image ? (
<div className="w-full h-full relative">
<Image
src={URL.createObjectURL(image)}
width={256}
height={256}
alt="image to upload"
/>
<button
type="button"
onClick={() => setImage(null)}
className={clsx(
"block absolute bottom-0 bg-black text-white w-full px-1 py-1",
"hover:bg-gray-900 hover:cursor-pointer"
)}
>
Remove
</button>
</div>
) : (
<>
<label
htmlFor="image"
className={clsx(
"flex flex-col h-full w-full justify-center items-center",
"hover:bg-gray-900 hover:cursor-pointer"
)}
>
Add Image
</label>
<input
id="image"
type="file"
name="image"
placeholder="Image"
className="hidden"
onChange={(e) => setImage(e.target.files[0])}
accept="image/*"
/>
</>
)}
</div>
<button
type="submit"
disabled={!(text || image)}
className={clsx(
"flex flex-col w-32 justify-center items-center",
"border-0 border-l border-gray-700 hover:bg-gray-900 hover:cursor-pointer",
"disabled:opacity-50 disabled:cursor-not-allowed"
)}
>
Create
</button>
</form>
);
}
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
app/components/post-displays.js | JavaScript | import { HeartIcon as HeartIconOutline } from "@heroicons/react/24/outline";
import { HeartIcon as HeartIconSolid } from "@heroicons/react/24/solid";
import clsx from "clsx";
export function PostBox({ children, className }) {
return (
<div className={clsx("px-16 py-8 border-b border-gray-500", className)}>
{children}
</div>
);
}
export function PostDisplay({ text, img_url, createdAt, username, children }) {
return (
<article className="flex flex-col">
<div className="flex flex-row gap-4">
<span className="text-gray-500">{`@${username}`}</span>
<span className="text-gray-500">{createdAt}</span>
</div>
<div>
{text && <p className="mt-2 mb-2 text-lg">{text}</p>}
{img_url && (
<img
src={img_url}
width={512}
height={512}
className="mt-2"
alt="post image"
/>
)}
</div>
{children}
</article>
);
}
export function LikesDisplay({ self_liked, num_likes, onLike }) {
return (
<div className="mt-6 flex flex-row gap-2 items-center">
<button className="h-8 w-8 text-gray-300" onClick={() => onLike()}>
{self_liked ? <HeartIconSolid /> : <HeartIconOutline />}
</button>
<span className="text-gray-400">{num_likes || 0}</span>
</div>
);
}
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
app/components/post.js | JavaScript | import React from "react";
import Moment from "react-moment";
import { ErrorBoundary } from "react-error-boundary";
import { useQuery, useQueryClient } from "@tanstack/react-query";
import { useSession } from "next-auth/react";
import { useRouter } from "next/navigation";
import { LikesDisplay, PostBox, PostDisplay } from "./post-displays";
function LikesContainer({ postId, self_liked, num_likes }) {
const { status } = useSession();
const router = useRouter();
const queryClient = useQueryClient();
const onLike = React.useCallback(async () => {
if (status !== "authenticated") {
router.push("/login");
return;
}
await fetch(`/api/posts/${postId}/likes`, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({}),
});
queryClient.invalidateQueries(["posts", postId, "likes"]);
}, [status, router, postId, queryClient]);
return (
<LikesDisplay self_liked={self_liked} num_likes={num_likes} onLike={onLike} />
);
}
function PostContainer({ id, createdAt, ...props }) {
const { data: likesData } = useQuery({
queryKey: ["posts", id, "likes"],
queryFn: async () => {
const res = await fetch(`/api/posts/${id}/likes`);
return await res.json();
},
staleTime: 1000 * 60,
refetchInterval: 1000 * 60,
});
return (
<PostDisplay id={id} {...props} createdAt={<Moment fromNow unix>{createdAt / 1000}</Moment>}>
{likesData && <LikesContainer postId={id} {...likesData} />}
</PostDisplay>
);
}
export default function Post({ id }) {
const { data, isLoading } = useQuery({
queryKey: ["posts", id],
queryFn: async () => {
const res = await fetch(`/api/posts/${id}`);
return await res.json();
},
});
return (
<PostBox>
<ErrorBoundary
fallback={
<div className="text-red-600">Post cannot be rendered....</div>
}
>
{isLoading && <div>Loading...</div>}
{data && <PostContainer {...data} />}
</ErrorBoundary>
</PostBox>
);
}
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
app/globals.css | CSS | @tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
}
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
app/layout.js | JavaScript | import Providers from "./providers";
import { Inter } from "next/font/google";
import "./globals.css";
const inter = Inter({ subsets: ["latin"] });
export const metadata = {
title: "Litter",
description: "The latent social network",
};
export default function RootLayout({ children, params: { session } }) {
return (
<html lang="en">
<body className={inter.className}>
<Providers session={session}>{children}</Providers>
</body>
</html>
);
}
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
app/login/page.js | JavaScript | "use client";
import React from "react";
import { signIn, signOut, useSession } from "next-auth/react";
import { ArrowLeftIcon } from "@heroicons/react/24/solid";
import Link from "next/link";
export default function Login() {
const { status } = useSession();
const { clickAction, buttonText } = {
loading: {
clickAction: () => {},
buttonText: "Loading...",
},
authenticated: {
clickAction: () => signOut({callbackUrl: "/"}),
buttonText: "Sign out",
},
unauthenticated: {
clickAction: () => signIn("github", { callbackUrl: "/" }),
buttonText: "Sign in with GitHub",
},
}[status];
return (
<main className="mx-8 my-8 flex flex-col gap-4 relative">
<Link href="/" className="w-8 h-8 absolute top-0 left-0">
<ArrowLeftIcon />
</Link>
<div className="flex flex-row justify-center items-center">
<button
onClick={clickAction}
className="bg-black text-white px-8 py-4 border border-1 border-gray-500 rounded-md"
>
{buttonText}
</button>
</div>
</main>
);
}
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
app/page.js | JavaScript | "use client";
import React from "react";
import { useQuery, useQueryClient } from "@tanstack/react-query";
import CreatePostForm from "./components/create-post-form";
import Post from "./components/post";
import { TrashIcon } from "@heroicons/react/24/solid";
import { useSession } from "next-auth/react";
import clsx from "clsx";
import Link from "next/link";
export default function Home() {
const queryClient = useQueryClient();
const { data, isLoading } = useQuery({
queryKey: ["posts"],
queryFn: async () => {
const res = await fetch("/api/posts");
return await res.json();
},
staleTime: 1000 * 10,
refetchInterval: 1000 * 10,
});
const { posts, cooldown } = data || { posts: [], cooldown: false };
const createPost = async ({ text, encoded_img }) => {
if (!(text || encoded_img)) return;
const res = await fetch("/api/posts", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({ text, encoded_img }),
});
const json = await res.json();
await queryClient.invalidateQueries(["posts"]);
return json;
};
const { data: session, status } = useSession();
const username = session?.user?.name;
return (
<div className="flex flex-col relative">
<header
className={clsx(
"fixed top-0 w-screen h-[100px] bg-black border-b border-gray-500",
"py-8 flex flex-row justify-center items-center gap-4"
)}
>
<TrashIcon className="w-8 h-8" />
<h1 className="text-4xl">Litter</h1>
<Link href="/login" className="absolute right-0 mr-8">
{username ? `Logged in as @${username}` : "Login"}
</Link>
</header>
<main className="mt-[100px] mb-[120px]">
{isLoading && (
<div className="flex flex-row justify-center mt-28 text-2xl text-gray-400">
Loading...
</div>
)}
<div>
<ul>
{posts &&
posts.map(({ id }) => (
<li key={id}>
<Post
id={id}
onLike={(params) => onLike({ id, ...params })}
/>
</li>
))}
</ul>
</div>
</main>
<footer className="fixed bottom-0 w-screen border-t border-gray-500 h-[120px]">
<CreatePostForm onSubmit={createPost} cooldown={cooldown}/>
</footer>
</div>
);
}
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
app/providers.js | JavaScript | "use client";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { ReactQueryStreamedHydration } from "@tanstack/react-query-next-experimental";
import { useState } from "react";
import { SessionProvider } from "next-auth/react"
export default function Providers({ children, session }) {
const [client] = useState(() => new QueryClient());
return (
<SessionProvider session={session}>
<QueryClientProvider client={client}>
<ReactQueryStreamedHydration>{children}</ReactQueryStreamedHydration>
</QueryClientProvider>
</SessionProvider>
);
}
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
app/utils.ts | TypeScript | import { createClient } from "redis";
import { S3Client } from "@aws-sdk/client-s3";
const redisClient = createClient({
password: process.env.REDIS_PASSWORD ?? "",
socket: {
host: process.env.REDIS_HOST ?? "",
port: Number(process.env.REDIS_PORT) ?? 6379,
},
});
export const getRedisClient = async () => {
if(redisClient.isOpen) return redisClient;
return await redisClient.connect();
};
const s3Client = new S3Client({
region: process.env.AWS_S3_REGION ?? "",
credentials: {
accessKeyId: process.env.AWS_ACCESS_KEY_ID ?? "",
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY ?? "",
}
});
export const getS3Client = async () => s3Client; | yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
next.config.js | JavaScript | /** @type {import('next').NextConfig} */
const nextConfig = {
webpack: (config, options) => {
config.plugins.push(
new options.webpack.IgnorePlugin({
resourceRegExp: /canvas/,
})
);
// add jsonlines loader
config.module.rules.push({
test: /\.jsonl$/,
loader: "jsonlines-loader",
type: "javascript/auto",
});
return config;
},
redirects: async () => {
return [
{
source: "/",
destination: "/bye",
permanent: false,
},
];
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "*.s3.amazonaws.com",
},
],
},
};
module.exports = nextConfig;
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
postcss.config.js | JavaScript | module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
tailwind.config.js | JavaScript | /** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
},
},
plugins: [],
}
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
worker/dump_data.py | Python | import main
import asyncio
import redis.asyncio as redis
import aiofiles
import json
async def dump_data(redis_client: redis.Redis):
async with aiofiles.open("data.jsonl", "w") as f:
async for key, _ in redis_client.zscan_iter("posts", match="*"):
post = await redis_client.hgetall(key) # type: ignore
post.pop("username")
await f.write(json.dumps(post) + "\n")
if __name__ == "__main__":
config = main.create_config()
redis_client = main.create_redis_client(config)
loop = asyncio.get_event_loop()
loop.run_until_complete(dump_data(redis_client=redis_client))
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
worker/main.py | Python | from typing import Callable, Awaitable
from urllib.parse import urlparse
import tempfile
import uuid
import io
import os
from openai import AsyncOpenAI
import aiohttp
import asyncio
import base64
from loguru import logger
import dotenv
from PIL import Image
import redis.asyncio as redis
import boto3
class OpenAIClient:
def __init__(
self,
api_key: str,
upload_img_fn: Callable[[bytes, str], Awaitable[str]],
delete_img_fn: Callable[[str], Awaitable[None]],
debug_store_img: bool = False,
):
self.api_client = AsyncOpenAI(api_key=api_key)
self.upload_img_fn = upload_img_fn
self.delete_img_fn = delete_img_fn
self.debug_store_img = debug_store_img
async def guess_message(self, caption: str) -> str:
completion = await self.api_client.chat.completions.create(
model="gpt-3.5-turbo",
max_tokens=512,
messages=[
{
"role": "user",
"content": f"""
I have a new social network, where text posts get encrypted into image descriptions.
Your job is to decrypt these messages and guess the original post.
Here is the procedure:
- a user posts a text post
- the text is used as the input of an AI text-to-image generator
- the image is fed to an AI image captioning model
This is the output of the captioning model:
--- BEGIN CAPTION ---
"{caption}"
--- END CAPTION ---
Your task:
- Guess the original post.
- Take your best shot.
- Write directly the text you think was originally written by the user.
- Write from the perspective of the original user.
- The original message is not neccesarily visual or descriptive. Rather it is probably a simple message like one would find on Twitter.
- Output just one line with your guess, nothing else!
""".strip(),
},
],
)
guess = completion.choices[0].message.content
if not guess:
raise ValueError("Empty or missing guess")
return guess.strip().strip('"')
async def get_img_caption(self, img_url) -> str:
completion = await self.api_client.chat.completions.create(
model="gpt-4-vision-preview",
max_tokens=512,
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "Describe this image to a person with impaired vision. Be short and concise.",
},
{
"type": "image_url",
"image_url": {
"url": img_url,
},
},
],
},
],
)
caption = completion.choices[0].message.content
if not caption:
raise ValueError("Empty or missing caption")
return caption
async def create_img(self, caption: str, upload_to_key: str | None = None) -> str:
response = await self.api_client.images.generate(
model="dall-e-3",
size="1024x1024",
quality="standard",
n=1,
prompt=f"{caption}\n#notext #message #animageisworthathousandwords",
)
img_url = response.data[0].url
if not img_url:
raise ValueError("Empty or missing image url")
async with aiohttp.ClientSession() as session:
async with session.get(img_url) as resp:
content = await resp.read()
with tempfile.NamedTemporaryFile(suffix=".png") as f:
f.write(content)
f.flush()
img = Image.open(f.name)
if self.debug_store_img:
img.save("debug.jpg")
bytes_io = io.BytesIO()
img.save(bytes_io, format="JPEG")
content = bytes_io.getvalue()
if upload_to_key:
img_url = await self.upload_img_fn(content, upload_to_key)
return img_url
encoded_img = base64.b64encode(content)
data_url = f"data:image/png;base64,{encoded_img.decode('utf-8')}"
return data_url
class KVClient:
def __init__(
self,
redis_client: redis.Redis,
openai_client: OpenAIClient,
modify: bool = False,
):
self.redis_client = redis_client
self.openai_client = openai_client
self.modify = modify
async def process_pending_post(self, key: str):
logger.debug(f"Processing {key}")
post = await self.redis_client.hgetall(key) # type: ignore
created_at = int(post["createdAt"])
logger.debug(f"Created at {created_at}")
if self.modify:
if img_url := post.get("img_url"):
logger.debug(f"Image url: {img_url}")
caption = await self.openai_client.get_img_caption(img_url)
await self.openai_client.delete_img_fn(img_url)
logger.debug(f"Caption: {caption}")
new_img_key = f"processed/{uuid.uuid4()}.jpg"
new_img_url = await self.openai_client.create_img(
caption, upload_to_key=new_img_key
)
logger.debug(f"New image url: {len(new_img_url)}")
await self.redis_client.hset(key, "img_url", new_img_url) # type: ignore
if text := post.get("text"):
logger.debug(f"Text: {text}")
prompt = f"""
Create an image that visually transmits the following message:
--- BEGIN MESSAGE ---
{text}
--- END MESSAGE ---
Make the message into a pictogram, a visual representation of the message.
Do not use text.
""".strip()
img_url = await self.openai_client.create_img(prompt)
logger.debug(f"Image url: {len(img_url)=}")
caption = await self.openai_client.get_img_caption(img_url)
logger.debug(f"Caption: {caption}")
new_text = await self.openai_client.guess_message(caption)
logger.debug(f"New text: {new_text}")
await self.redis_client.hset(key, "text", new_text) # type: ignore
await self.redis_client.zadd("posts", {key: -created_at})
async def get_all_pending_keys(self) -> list[str]:
keys = []
while True:
key = await self.redis_client.lpop("pending") # type: ignore
if not key:
break
keys.append(key)
return keys
async def process_pending(self):
try:
pending_keys = await self.get_all_pending_keys()
if not pending_keys:
return
logger.info(f"Processing {len(pending_keys)} pending posts")
results = await asyncio.gather(
*[self.process_pending_post(key) for key in pending_keys],
return_exceptions=True,
)
for key, result in zip(pending_keys, results):
if isinstance(result, Exception):
try:
raise result
except Exception as e:
logger.exception(f"Error processing {key}: {e}")
except Exception as e:
logger.exception(f"Error processing pending posts: {e}")
async def process_pending_loop(self):
while True:
await self.process_pending()
await asyncio.sleep(5)
def get_env(name: str) -> str:
value = os.environ.get(name)
if not value:
raise ValueError(f"Missing env var {name}")
return value
def create_redis_client(config) -> redis.Redis:
redis_client = redis.Redis(
host=config["REDIS_HOST"],
port=int(config["REDIS_PORT"]),
password=config["REDIS_PASSWORD"],
decode_responses=True,
)
return redis_client
def create_config() -> dict[str, str]:
config = {
**os.environ,
**dotenv.dotenv_values("../.env"),
**dotenv.dotenv_values("../.env.local"),
**dotenv.dotenv_values("../.env.development.local"),
**dotenv.dotenv_values(".env"),
**dotenv.dotenv_values(".env.local"),
**dotenv.dotenv_values(".env.development.local"),
}
return config
if __name__ == "__main__":
config = create_config()
s3_client = boto3.client(
"s3",
aws_access_key_id=config["AWS_ACCESS_KEY_ID"],
aws_secret_access_key=config["AWS_SECRET_ACCESS_KEY"],
region_name=config["AWS_S3_REGION"],
)
def upload_img_sync(content: bytes, key: str) -> str:
s3_client.upload_fileobj(
io.BytesIO(content),
config["AWS_BUCKET_NAME"],
key,
)
url = f"https://{config['AWS_BUCKET_NAME']}.s3.amazonaws.com/{key}"
return url
def upload_img(content: bytes, key: str) -> Awaitable[str]:
return asyncio.to_thread(upload_img_sync, content, key)
def delete_img_sync(img_url: str) -> None:
parsed_url = urlparse(img_url)
key = parsed_url.path[1:]
logger.debug(f"Deleting {key}")
s3_client.delete_object(
Bucket=config["AWS_BUCKET_NAME"],
Key=key,
)
def delete_img(img_url: str) -> Awaitable[None]:
return asyncio.to_thread(delete_img_sync, img_url)
client = OpenAIClient(api_key=config["OPENAI_API_KEY"], upload_img_fn=upload_img, delete_img_fn=delete_img,
debug_store_img=(config.get("DEBUG_STORE_IMG") in ["1", "true", "True"]),
)
redis_client = create_redis_client(config)
kv_client = KVClient(
redis_client=redis_client,
openai_client=client,
modify=True,
)
loop = asyncio.get_event_loop()
loop.run_until_complete(kv_client.process_pending_loop())
| yk/litter | 70 | JavaScript | yk | Yannic Kilcher | ||
fizzbuzz.c | C | #include <stdio.h>
int main() {
for (int i = 0; i < 30; i++) {
if (i % 3 == 0) {
if(i % 5 == 0)
printf("FizzBuzz\n");
else
printf("Fizz\n");
}
else if (i % 5 == 0) {
printf("Buzz\n");
} else {
printf("%d\n", i);
}
}
return 0;
} | yk/llmvm | 31 | Python | yk | Yannic Kilcher | ||
interface.py | Python | from typing import Any
import pydantic
def to_vtype(value, vtype):
match vtype:
case "i32":
return int(value)
case "i8":
return str(value)
case "str":
return str(value)
raise NotImplementedError(vtype)
class Instruction(pydantic.BaseModel):
kind: str
class Expr(Instruction):
pass
class Load(Expr):
kind: str = "load"
vtype: str
ptr: str
class Copy(Expr):
kind: str = "copy"
ptr: str
class Alloc(Expr):
kind: str = "alloc"
vtype: str
class AllocArray(Expr):
kind: str = "alloc_array"
vtype: str
size: int
class GetElementPtr(Expr):
kind: str = "get_element_ptr"
vtype: str
ptr: str
idx: str
class Icmp(Expr):
kind: str = "icmp"
vtype: str
op: str
lhs: str
rhs: str
class Srem(Expr):
kind: str = "srem"
vtype: str
lhs: str
rhs: str
class Add(Expr):
kind: str = "add"
vtype: str
lhs: str
rhs: str
class Mul(Expr):
kind: str = "mul"
vtype: str
lhs: str
rhs: str
class Arg(pydantic.BaseModel):
vtype: str
value: str
class Call(Expr):
kind: str = "call"
name: str
args: list[Arg]
class Assign(Instruction):
kind: str = "assign"
reg: str
expr: Expr
class Store(Instruction):
kind: str = "store"
vtype: str
value: str
ptr: str
class Branch(Instruction):
kind: str = "branch"
label: str
class BranchCond(Instruction):
kind: str = "branch_cond"
cond_reg: str
label_true: str
label_false: str
class Return(Instruction):
kind: str = "return"
vtype: str
value: str
class Switch(Instruction):
kind: str = "switch"
ptr: str
default_label: str
cases: dict[str, str]
class Program(pydantic.BaseModel):
instructions: list[Instruction]
labels: dict[str, int]
constants: dict[str, Any]
convert_numbers_to_chars: bool = False | yk/llmvm | 31 | Python | yk | Yannic Kilcher | ||
main.py | Python | from loguru import logger
import parsing
import vms
import sys
def main():
try:
fname, vm_type = sys.argv[1:]
logger.info(f"Loading {fname}")
with open(fname) as in_f:
program = parsing.parse_program(in_f)
if "snek" in fname:
program.convert_numbers_to_chars = True
logger.info(f"Running {fname}")
match vm_type:
case "ref":
vm = vms.VM(constants=program.constants)
case "gpt":
vm = vms.GPTVM(constants=program.constants)
case "fullgpt":
vm = vms.FullGPTVM(constants=program.constants)
case "chadgpt":
vm = vms.ChadGPTVM(constants=program.constants)
case _:
raise NotImplementedError(vm_type)
retval = vm.run_program(program)
logger.info(f"Program returned {retval}")
sys.exit(retval)
except Exception:
logger.exception("Error running program")
if __name__ == '__main__':
main() | yk/llmvm | 31 | Python | yk | Yannic Kilcher | ||
parsing.py | Python | import re
from loguru import logger
from interface import Arg, Load, Icmp, Srem, Add, Mul, Call, Assign, Store, Branch, BranchCond, Return, Program, to_vtype, GetElementPtr, Copy, Switch, AllocArray, Alloc
def _line_stripper(in_f):
for line in in_f:
line = line.rstrip()
if not line:
continue
yield line
def parse_arg(arg):
logger.debug(f"parse_arg({arg})")
if m := re.match(r"ptr noundef (\S+)", arg):
return Arg(vtype="str", value=m.group(1))
if m := re.match(r"i32 noundef (\S+)", arg):
return Arg(vtype="i32", value=m.group(1))
raise NotImplementedError(arg)
def parse_call(expr):
logger.debug(f"parse_call({expr})")
if m := re.match(r"\s*call \w+(?: \(.*\))? @(\w+)\((.*)\)", expr):
name, args = m.groups()
args = args.split(", ")
args = [parse_arg(arg) for arg in args if arg]
return Call(name=name, args=args)
return None
def parse_expr(expr):
if m := re.match(r"alloca \[(\d+) x (\S+)\]", expr):
size, vtype = m.groups()
return AllocArray(vtype=vtype, size=int(size))
if m := re.match(r"alloca (\S+),", expr):
vtype = m.group(1)
return Alloc(vtype=vtype)
if m := re.match(r"sext \S+ (\S+) to \S+", expr):
return Copy(ptr=m.group(1))
if m := re.match(r"load (\w+), ptr (%\d+),", expr):
return Load(vtype=m.group(1), ptr=m.group(2))
if m := re.match(r"icmp (eq|ne|sgt|sge|slt|sle) (\w+) (\S+), (\S+)", expr):
op, vtype, lhs, rhs = m.groups()
return Icmp(vtype=vtype, op=op, lhs=lhs, rhs=rhs)
if m := re.match(r"srem (\w+) (\S+), (\S+)", expr):
vtype, lhs, rhs = m.groups()
return Srem(vtype=vtype, lhs=lhs, rhs=rhs)
if m := re.match(r"add nsw (\w+) (\S+), (\S+)", expr):
vtype, lhs, rhs = m.groups()
return Add(vtype=vtype, lhs=lhs, rhs=rhs)
if m := re.match(r"mul nsw (\w+) (\S+), (\S+)", expr):
vtype, lhs, rhs = m.groups()
return Mul(vtype=vtype, lhs=lhs, rhs=rhs)
if call := parse_call(expr):
if call is not None:
logger.debug(f"found call {call}")
return call
if m := re.match(r"getelementptr inbounds \[\d+ x (\S+)\], ptr (\S+), i32 0, i32 (\S+)", expr):
vtype, ptr, idx = m.groups()
return GetElementPtr(vtype=vtype, ptr=ptr, idx=idx)
raise NotImplementedError(expr)
def parse_switch(in_f):
cases = {}
for line in _line_stripper(in_f):
if re.fullmatch(r"\s+\]", line):
break
if m := re.match(r"\s+i32 (\S+), label %(\d+)", line):
value, label = m.groups()
cases[value] = label
continue
raise NotImplementedError(line)
else:
raise ValueError("Expected ']' in switch")
return cases
def parse_instructions(in_f):
instructions = []
labels = {}
for line in _line_stripper(in_f):
if re.fullmatch(r"\}", line):
break
if m := re.match(r"(\d+):", line):
label = m.group(1)
labels[label] = len(instructions)
continue
if m := re.fullmatch(r"\s+(%\d+) = (.*)", line): # register assignment
reg, expr = m.groups()
expr = parse_expr(expr)
if expr is not None:
instructions.append(Assign(reg=reg, expr=expr))
continue
if m := re.match(r"\s+store (\w+) (\S+), ptr (\S+),", line):
vtype, value, ptr = m.groups()
instructions.append(Store(vtype=vtype, value=value, ptr=ptr))
continue
if m := re.match(r"\s+br label %(\d+)", line):
label = m.group(1)
instructions.append(Branch(label=label))
continue
if m := re.match(r"\s+br i1 (%\d+), label %(\d+), label %(\d+)", line):
cond_reg, label_true, label_false = m.groups()
instructions.append(BranchCond(cond_reg=cond_reg, label_true=label_true, label_false=label_false))
continue
if m := re.match(r"\s+ret (\S+) (\S+)", line):
vtype, value = m.groups()
instructions.append(Return(vtype=vtype, value=value))
continue
if call := parse_call(line):
if call is not None:
logger.debug(f"found call {call}")
instructions.append(call)
continue
if m := re.match(r"\s+switch \S+ (\S+), label %(\d+) \[", line):
ptr, default_label = m.groups()
cases = parse_switch(in_f)
instructions.append(Switch(ptr=ptr, default_label=default_label, cases=cases))
continue
raise NotImplementedError(line)
return instructions, labels
def parse_program(in_f):
constants = {}
for line in _line_stripper(in_f):
if m := re.match(r'(@\.str(?:\.\d+)?) .* c"([^"]+)\\00",', line):
name, value = m.groups()
value = value.replace(r"\0A", "\n")
constants[name] = to_vtype(value=value, vtype="str")
continue
if re.fullmatch(r"define .* \{", line):
instructions, labels = parse_instructions(in_f)
break
if line.split()[0] in (";", "target", "source_filename"):
continue
raise NotImplementedError(line)
else:
raise NotImplementedError()
program = Program(instructions=instructions, labels=labels, constants=constants)
logger.debug(f"parsed program: {program}")
logger.debug("Instructions:")
for instr in program.instructions:
logger.debug(f" {instr}")
return program
| yk/llmvm | 31 | Python | yk | Yannic Kilcher | ||
snek.c | C | #include <stdio.h>
// very simple ascii snake game on 4x4 grid
#include <stdio.h>
#include <stdlib.h>
#define ROWS 4
#define COLS 4
#define GRID_ACCESS(grid, row, col) grid[row * COLS + col]
int main() {
// Define the grid
char grid[ROWS * COLS];
// Initialize the random number generator
srand(42);
// Initialize the grid with empty spaces
for (int i = 0; i < ROWS; i++) {
for (int j = 0; j < COLS; j++) {
GRID_ACCESS(grid, i, j) = ' ';
}
}
// Initialize the snake at a random position
int snake_row = rand() % ROWS;
int snake_col = rand() % COLS;
GRID_ACCESS(grid, snake_row, snake_col) = 'o';
// Place the food at a random location
int food_row = rand() % ROWS;
int food_col = rand() % COLS;
GRID_ACCESS(grid, food_row, food_col) = '*';
// Print the initial grid
for (int i = 0; i < ROWS; i++) {
for (int j = 0; j < COLS; j++) {
printf("%c ", GRID_ACCESS(grid, i, j));
}
printf("\n");
}
// Game loop
while (1) {
// Take user input for the direction of the snake
char direction;
printf("Enter direction (w/a/s/d): ");
scanf(" %c", &direction);
// Erase the snake from the grid
GRID_ACCESS(grid, snake_row, snake_col) = ' ';
// Update the position of the snake based on the user input
switch (direction) {
case 'w':
snake_row--;
break;
case 's':
snake_row++;
break;
case 'a':
snake_col--;
break;
case 'd':
snake_col++;
break;
}
// Check if the snake has collided with the wall or itself
if (snake_row < 0 || snake_row >= ROWS || snake_col < 0 || snake_col >= COLS || GRID_ACCESS(grid, snake_row, snake_col) == 'o') {
printf("Game over!\n");
break;
}
// Check if the snake has collided with the food
if (snake_row == food_row && snake_col == food_col) {
printf("You won!\n");
break;
}
// Update the grid with the new position of the snake
GRID_ACCESS(grid, snake_row, snake_col) = 'o';
// Print the updated grid
for (int i = 0; i < ROWS; i++) {
for (int j = 0; j < COLS; j++) {
printf("%c ", GRID_ACCESS(grid, i, j));
}
printf("\n");
}
}
return 0;
}
| yk/llmvm | 31 | Python | yk | Yannic Kilcher | ||
vms.py | Python | from typing import Any
import random
import re
from loguru import logger
import openai
import openai.error
import os
import pydantic
from interface import (
Alloc,
AllocArray,
Expr,
to_vtype,
Load,
Icmp,
Srem,
Copy,
Add,
Mul,
Call,
Assign,
Store,
Branch,
BranchCond,
Return,
Program,
GetElementPtr,
Switch,
)
class VM(pydantic.BaseModel):
name: str = "VM"
constants: dict[str, Any]
registers: dict[str, Any] = {}
memory: dict[str, Any] = {}
_program: Program | None = pydantic.PrivateAttr(None)
class Config:
ignored_types = (Expr,)
def _get_from_registers(self, value):
return self.registers[value]
def _to_vtype(self, value, vtype):
return to_vtype(value, vtype)
def get_value(self, value, vtype=None):
if isinstance(value, str):
if value.startswith("%"):
value = self._get_from_registers(value)
if isinstance(value, str):
logger.debug(f"found string {value}")
if m := re.match(r"arr ptr=(\S+) idx=(\S+)", value):
ptr, idx = m.groups()
logger.debug(f"performing array lookup on {ptr} {idx}")
arr = self._get_from_registers(ptr)
logger.debug(f"arr = {arr}")
value = self._load_array(arr, idx)
logger.debug(f"array lookup result = {value}")
elif value.startswith("@"):
value = self.constants[value]
if vtype is not None:
value = self._to_vtype(value, vtype)
return value
def _cmp_with_op(self, op, lhs, rhs) -> bool:
match op:
case "eq":
return lhs == rhs
case "ne":
return lhs != rhs
case "sgt":
return lhs > rhs
case "sge":
return lhs >= rhs
case "slt":
return lhs < rhs
case "sle":
return lhs <= rhs
raise NotImplementedError(op)
def _rem(self, lhs, rhs):
return lhs % rhs
def _add(self, lhs, rhs):
return lhs + rhs
def _mul(self, lhs, rhs):
return lhs * rhs
def _load_array(self, arr, idx):
return arr[idx]
def _alloc_array(self, vtype, size):
if vtype in ("i32", "i8"):
return {str(i): 0 for i in range(size)}
raise NotImplementedError(vtype)
def eval_expr(self, expr: Expr):
logger.debug(f"eval_expr({expr})")
match expr:
case Copy(ptr=ptr):
return self.get_value(ptr)
case Alloc(vtype=vtype):
return self.get_value(0, vtype)
case AllocArray(vtype=vtype, size=size):
return self._alloc_array(vtype, size)
case Load(vtype=vtype, ptr=ptr):
return self._to_vtype(self._get_from_registers(ptr), vtype)
case Icmp(vtype=vtype, op=op, lhs=lhs, rhs=rhs):
logger.debug(f"icmp {vtype} {op} {lhs} {rhs}")
lhs = self.get_value(lhs, vtype)
rhs = self.get_value(rhs, vtype)
return self._cmp_with_op(op, lhs, rhs)
case Srem(vtype=vtype, lhs=lhs, rhs=rhs):
lhs = self.get_value(lhs, vtype)
rhs = self.get_value(rhs, vtype)
return self._rem(lhs, rhs)
case Add(vtype=vtype, lhs=lhs, rhs=rhs):
lhs = self.get_value(lhs, vtype)
rhs = self.get_value(rhs, vtype)
return self._add(lhs, rhs)
case Mul(vtype=vtype, lhs=lhs, rhs=rhs):
lhs = self.get_value(lhs, vtype)
rhs = self.get_value(rhs, vtype)
return self._mul(lhs, rhs)
case Call(name=name, args=args):
logger.debug(f"calling {name} {args}")
match name:
case "printf":
logger.debug(f"printf {args}")
args = [self.get_value(arg.value, arg.vtype) for arg in args]
def _maybe_to_char(value):
try:
return chr(int(value))
except ValueError:
return value
if self._program is not None and self._program.convert_numbers_to_chars:
args = [_maybe_to_char(arg) for arg in args]
logger.debug(f"printf {args}")
fstring = args[0]
# we need to replace all the percent-formatters (like %d) with {}
fstring = re.sub(r"%\w", "{}", fstring)
out_str = fstring.format(*args[1:])
print(out_str, end="")
return 0
case "srand":
seed = self.get_value(args[0].value, args[0].vtype)
self._rng = random.Random(seed)
return
case "scanf":
logger.debug(f"scanf {args}")
dst = args[1].value
prompt = self.get_value(args[0].value, "str")
assert prompt.strip() == "%c"
input_str = input()
char = ord(input_str)
self.store(dst, char)
return 0
case "rand":
return self._rng.randint(0, 100)
raise NotImplementedError(name)
case GetElementPtr(vtype=vtype, ptr=ptr, idx=idx):
logger.debug(f"getting element ptr from {ptr} -> {idx}")
idx = self.get_value(idx)
logger.debug(f"idx into array is {idx}")
return f"arr ptr={ptr} idx={idx}"
raise NotImplementedError(expr)
def _store_in_registers(self, reg, value):
self.registers[reg] = value
def _store(self, ptr, value):
self._store_in_registers(ptr, value)
def _is_array_ref(self, value):
return isinstance(value, str) and value.startswith("arr ptr")
def _parse_array_ref(self, value):
m = re.match(r"arr ptr=(\S+) idx=(\S+)", value)
ptr, idx = m.groups()
return ptr, idx
def _store_array(self, ptr, idx, value):
logger.debug(f"called store_array ptr={ptr} idx={idx} value={value}")
arr = self._get_from_registers(ptr)
logger.debug(f"before store: arr = {arr}")
arr[idx] = value
logger.debug(f"after store: arr = {arr}")
def assign(self, reg, value):
logger.debug(f"assign {value} to {reg}")
self._store(reg, value)
def store(self, ptr, value):
logger.debug(f"store {value} to {ptr}")
# check if ptr points to an array reference
reg_value = self._get_from_registers(ptr)
logger.debug(f"ptr {ptr} exists, value = {reg_value}")
if self._truthy(self._is_array_ref(reg_value)):
logger.debug(f"ptr {ptr} is an array ref")
arr_ptr, idx = self._parse_array_ref(reg_value)
logger.debug(f"parsed array ref: {arr_ptr} {idx}")
self._store_array(arr_ptr, idx, value)
return
self._store(ptr, value)
def _truthy(self, value):
return bool(value)
def run_program(self, program: Program):
self._program = program
iptr = 0
num_instr = 0
while iptr < len(program.instructions):
instr = program.instructions[iptr]
logger.debug(f"{num_instr} || executing {instr}")
num_instr += 1
match instr:
case Return(vtype=vtype, value=value):
logger.debug(f"return {value}")
return self.get_value(value, vtype=vtype)
case Branch(label=label):
logger.debug(f"branch to {label}")
iptr = program.labels[label]
continue
case BranchCond(
cond_reg=cond_reg, label_true=label_true, label_false=label_false
):
cond = self.get_value(cond_reg)
logger.debug(f"cond {cond_reg} = {cond} (type {type(cond)}))")
if self._truthy(cond):
logger.debug(f"branch to {label_true}")
iptr = program.labels[label_true]
else:
logger.debug(f"branch to {label_false}")
iptr = program.labels[label_false]
continue
case Store(value=value, ptr=ptr):
logger.debug(f"store {value} to {ptr}")
value = self.get_value(value)
self.store(ptr, value)
case Assign(reg=reg, expr=expr):
value = self.eval_expr(expr)
self.assign(reg, value)
case Switch(ptr=ptr, default_label=default_label, cases=cases):
value = self.get_value(ptr)
logger.debug(f"switch on {value}")
for case, label in cases.items():
if self._truthy(self._cmp_with_op("eq", value, case)):
logger.debug(f"branch to case {case} -> {label}")
iptr = program.labels[cases[case]]
break
else:
logger.debug(f"branch to default {default_label}")
iptr = program.labels[default_label]
continue
case _:
if isinstance(instr, Expr):
self.eval_expr(instr)
else:
raise NotImplementedError(instr)
iptr += 1
openai.api_key = os.getenv("OPENAI_KEY")
class GPTVM(VM):
name: str = "GPT VM"
registers: dict[str, Any] = {}
default_system: str = ""
postfix: str = """Write your answer on a single line. Be very short and concise.
I just want the plain answer, not the explanation."""
def _gpt_get_answer(self, prompt, system=""):
logger.debug(f"Getting answer for prompt: {prompt} | system: {system}")
messages = []
system = system or self.default_system
if system:
messages.append({"role": "system", "content": system})
prompt = f"""{prompt}
{self.postfix}"""
messages.append({"role": "user", "content": prompt})
for i in range(5):
try:
response = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=messages,
max_tokens=1024,
timeout=10,
)
break
except openai.error.TryAgain:
logger.debug(f"Try again {i}...")
continue
else:
raise RuntimeError("Failed to get response from GPT")
response = response["choices"][0]["message"]["content"].strip() # type: ignore
logger.debug(f"Got answer: {response}")
return response
def _to_vtype(self, value, vtype):
return value
get_from_registers_prompt : str = """Look at registers: {registers}.
Now get me the value of {value}."""
def _get_from_registers(self, value):
return self._gpt_get_answer(
self.get_from_registers_prompt.format(registers=self.registers, value=value)
)
add_prompt : str = """Add {lhs} and {rhs}."""
def _add(self, lhs, rhs):
return self._gpt_get_answer(self.add_prompt.format(lhs=lhs, rhs=rhs))
rem_prompt : str = """Get the remainder value of {lhs} divided by {rhs}."""
def _rem(self, lhs, rhs):
return self._gpt_get_answer(self.rem_prompt.format(lhs=lhs, rhs=rhs))
multiply_prompt : str = """Multiply {lhs} and {rhs}."""
def _mul(self, lhs, rhs):
return self._gpt_get_answer(self.multiply_prompt.format(lhs=lhs, rhs=rhs))
load_array_prompt : str = """Get the value of index {idx} in array {arr}."""
def _load_array(self, arr, idx):
return self._gpt_get_answer(self.load_array_prompt.format(arr=arr, idx=idx))
def _truthy(self, value):
if isinstance(value, bool):
b = value
elif isinstance(value, int):
b = bool(value)
elif isinstance(value, str):
if any(t in value.lower() for t in ("yes", "true")):
b = True
else:
b = False
else:
raise NotImplementedError(value)
logger.debug(f"truthiness of {value} = {b}")
return b
cmp_eq_prompt : str = """Are {lhs} and {rhs} equal?"""
cmp_ne_prompt : str = """Are {lhs} and {rhs} different?"""
cmp_sgt_prompt : str = """Is {lhs} greater than {rhs}?"""
cmp_sge_prompt : str = """Is {lhs} greater than or equal to {rhs}?"""
cmp_slt_prompt : str = """Is {lhs} less than {rhs}?"""
cmp_sle_prompt : str = """Is {lhs} less than or equal to {rhs}?"""
cmp_system : str = """You are a very keen observer."""
def _cmp_with_op(self, op, lhs, rhs) -> bool:
match op:
case "eq":
prompt = self.cmp_eq_prompt.format(lhs=lhs, rhs=rhs)
case "ne":
prompt = self.cmp_ne_prompt.format(lhs=lhs, rhs=rhs)
case "sgt":
prompt = self.cmp_sgt_prompt.format(lhs=lhs, rhs=rhs)
case "sge":
prompt = self.cmp_sge_prompt.format(lhs=lhs, rhs=rhs)
case "slt":
prompt = self.cmp_slt_prompt.format(lhs=lhs, rhs=rhs)
case "sle":
prompt = self.cmp_sle_prompt.format(lhs=lhs, rhs=rhs)
case _:
raise NotImplementedError(op)
return self._gpt_get_answer(system=self.cmp_system, prompt=prompt)
is_array_ref_prompt : str = """Is {value} an array reference?"""
def _is_array_ref(self, value):
return self._gpt_get_answer(self.is_array_ref_prompt.format(value=value))
parse_array_ref_prompt : str = """Parse array reference {value}. Give me the array pointer and the index separated by a pipe symbol (|)"""
def _parse_array_ref(self, value):
return self._gpt_get_answer(self.parse_array_ref_prompt.format(value=value)).split(
"|"
)
store_array_prompt : str = """Store {value} in array {arr} at index {idx}. Give me back the full new array after the update."""
def _store_array(self, ptr, idx, value):
arr = self._get_from_registers(ptr)
answer = self._gpt_get_answer(
self.store_array_prompt.format(value=value, arr=arr, idx=idx)
)
self._store_in_registers(ptr, answer)
class FullGPTVM(GPTVM):
name: str = "Full GPT VM"
registers: str = f"{({i: None for i in range(32)})}"
store_in_registers_prompt : str = """Store the value "{value}" in register {reg}. Here are the current registers: {registers}. Give me back the complete state of the registers after the update."""
def _store_in_registers(self, reg, value):
self.registers = self._gpt_get_answer(
self.store_in_registers_prompt.format(
value=value, reg=reg, registers=self.registers
)
)
class ChadGPTVM(FullGPTVM):
name: str = "Chad GPT VM"
postfix : str = """Bro I know you love to talk, but I really need just the answer.
Please don't explain your answer, and don't write pleaseantaries, like "the answer is...".
Just give me the plain answer.
Here's an example of a good answer: 42. That's it. Just the number. Limit prose. Be super concise."""
get_from_registers_prompt : str = """Bro! Look at those rad registers: {registers}.
Bro fr just tell me me the value of register {value}."""
add_prompt : str = """Yo, broooo! Yo what's the sum of {lhs} and {rhs}?"""
rem_prompt : str = """Bro fr you know how remainders and stuff works?
I really need the remainder value of {lhs} divided by {rhs}. What is it bro?"""
multiply_prompt : str = """My maaaaan, you mad good at multiplication, right?
Yo what's {lhs} times {rhs}?"""
load_array_prompt : str = """Bro listen! I have this array here: {arr}.
And I just need the value of index {idx}. Can you help me out?"""
cmp_eq_prompt : str = """Bro I'm so confused. Are {lhs} and {rhs} equal?"""
cmp_ne_prompt : str = """Bro, my brain is melting. Are {lhs} and {rhs} different?"""
cmp_sgt_prompt : str = """What's up bro? Tell me this: Is {lhs} greater than {rhs}?"""
cmp_sge_prompt : str = """You know what's awesome? Comparing numbers.
Tell me this: Is {lhs} greater than or equal to {rhs}?"""
cmp_slt_prompt : str = """Bro I'm actually not sure about this one:
Is {lhs} less than {rhs}?"""
cmp_sle_prompt : str = """My main man! I need your help with this one:
Is {lhs} less than or equal to {rhs}?"""
cmp_system : str = """Bro!"""
is_array_ref_prompt : str = """Bro look at this: "{value}". Is this an array reference that looks like "arr ptr=..."?
Like does it look like it would point to an array?"""
parse_array_ref_prompt : str = """Bro. I really need to parse this array reference: {value}.
Can you give me the array reference and the index separated by a pipe symbol (|)?"""
store_array_prompt : str = """Bro, look, I have this array here: {arr}.
I need you to store the value "{value}" in it at index {idx}. Can you give me back the full new array after the update?"""
store_in_registers_prompt : str= """My main maaan! I need you to store the value "{value}" in register "{reg}".
Look here, these are the current registers: {registers}.
Can you give me back the complete state of the registers after the update? Thanks bro!"""
| yk/llmvm | 31 | Python | yk | Yannic Kilcher | ||
find_collision.py | Python | #!/usr/bin/env python3
#partially based on https://github.com/AsuharietYgvar/AppleNeuralHash2ONNX/blob/master/nnhash.py
import tensorflow as tf
from art.estimators.classification import TensorFlowV2Classifier
from art.attacks import evasion
import numpy as np
from PIL import Image
seed_fn = './neuralhash_128x96_seed1.dat'
seed1 = open(seed_fn, 'rb').read()[128:]
seed1 = np.frombuffer(seed1, dtype=np.float32)
seed1 = seed1.reshape([96, 128])
def _neural_hash(out):
hash_output = seed1.dot(out.numpy().flatten())
hash_bits = ''.join(['1' if it >= 0 else '0' for it in hash_output])
hash_hex = '{:0{}x}'.format(int(hash_bits, 2), len(hash_bits) // 4)
return hash_hex
def _load_img(fname):
img = Image.open(fname)
img = img.convert('RGB')
img = img.resize([360, 360])
img = np.array(img).astype(np.float32) / 255.0
img = img * 2.0 - 1.0
img = img.transpose(2, 0, 1).reshape([1, 3, 360, 360])
return img
model = tf.saved_model.load('./model.pb')
last_input = None
def _model(inp, **kwargs):
global last_input
last_input = np.copy(inp)
output = model(image=inp)[0][0, :, 0, 0]
return output
source_img = _load_img('./doge.jpeg')
target_img = _load_img('./titanic.jpeg')
loss_object = tf.keras.losses.CosineSimilarity()
target_hash = _model(target_img)
target_neural_hash = _neural_hash(target_hash)
print('TARGET HASH: ', target_neural_hash)
def _save_img(img, fname):
img = img.transpose(1, 2, 0)
img = img + 1.
img = img / 2.
img = img.clip(0., 1.)
img = np.uint8(img * 255) # final image might not have the exact same hash due to clipping & quantization
img = Image.fromarray(img, 'RGB')
img.save(fname, quality=100)
def _loss(dummy, img_hash, *args, **kwargs):
loss = loss_object(img_hash, target_hash)
print('Loss: ', loss.numpy().item())
neural_hash = _neural_hash(img_hash)
print('HASH: ', neural_hash)
if neural_hash == target_neural_hash:
print('-------------')
print('Collision found!!!')
print('-------------')
_save_img(last_input[0], 'collision.jpeg')
exit(0) # we could also continue here & decrease the step size to lower the loss even more
return -loss
classifier = TensorFlowV2Classifier(
model=_model,
loss_object=_loss,
nb_classes=128,
input_shape=(3, 360, 360),
clip_values=(-1, 1),
)
attack = evasion.ProjectedGradientDescentTensorFlowV2(
estimator=classifier,
norm=2, # other common option is np.inf here, but eps and eps_step need to be changed
eps=60., # if no success, raise this. for less artifacts, lower this.
eps_step=.5, # raising this makes it go faster, but more noisy
targeted=False,
max_iter=5000,
)
result = attack.generate(x=source_img, y=(0,))
| yk/neural_hash_collision | 47 | Python | yk | Yannic Kilcher | ||
patch_torch_save.py | Python | from typing import Callable
import inspect
import torch
class BadDict(dict):
def __init__(self, inject_src: str, **kwargs):
super().__init__(**kwargs)
self._inject_src = inject_src
def __reduce__(self):
return eval, (f"exec('''{self._inject_src}''') or dict()",), None, None, iter(self.items())
def patch_save_function(function_to_inject: Callable):
source = inspect.getsourcelines(function_to_inject)[0] # get source code
source = source[1:] # drop function def line
indent = len(source[0]) - len(source[0].lstrip()) # find indent of body
source = [line[indent:] for line in source] # strip first indent
inject_src = "\n".join(source) # make into single string
def patched_save_function(dict_to_save, *args, **kwargs):
dict_to_save = BadDict(inject_src, **dict_to_save)
return torch.save(dict_to_save, *args, **kwargs)
return patched_save_function
| yk/patch-torch-save | 71 | Patches the torch.save function with arbitrary code that gets executed upon torch.load. | Python | yk | Yannic Kilcher | |
activate_env.sh | Shell | #!/bin/bash
# Check if script is being sourced
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
echo "Error: This script must be sourced, not executed."
echo "Use: source activate_env.sh"
exit 1
fi
# Activate the virtual environment
source venv/bin/activate
# Remind user about requirements
echo "Reminder: Install requirements with 'pip install -r requirements.txt' if needed"
# Install portaudio with Homebrew if needed
if ! command -v brew &> /dev/null; then
echo "Homebrew not found, skipping portaudio check"
else
if ! brew list portaudio &> /dev/null; then
echo "portaudio not found, but may be needed for PyAudio. Install with 'brew install portaudio' if you encounter issues."
fi
fi
| ykdojo/osh | 7 | OSH - Automate 99% of your typing for free | Python | ykdojo | YK | Eventual |
audio_recorder.py | Python | #!/usr/bin/env python3
"""
High-quality audio recorder
Records audio with sounddevice for optimal quality
"""
import os
import time
import tempfile
import threading
# Import utility functions and core recording functions
from recorders.utils import list_audio_devices
from recorders.recorder import record_audio
def record_audio_only(output_file='audio_recording.wav', duration=10, verbose=False,
manual_stop_event=None, on_recording_started=None, status_callback=None):
"""
Record high-quality audio using threading with ability to stop manually
Args:
output_file (str): Final output file path
duration (int): Maximum recording duration in seconds
verbose (bool): Whether to show detailed output logs
manual_stop_event (threading.Event, optional): Event to trigger manual stopping from outside
on_recording_started (callable, optional): Callback function to execute when recording actually starts
status_callback (callable, optional): Callback function to report status updates
Returns:
str: Path to recorded audio file or None if failed
"""
# Create a default manual stop event if none is provided
if manual_stop_event is None:
manual_stop_event = threading.Event()
# Create event to stop recording after duration
duration_stop_event = threading.Event()
# Combine both events - will stop when either is triggered
stop_event = threading.Event()
try:
if verbose:
print("=== Starting High-Quality Audio Recording ===")
print(f"Maximum recording duration: {duration} seconds")
if manual_stop_event:
print("Recording can be stopped early using external control")
print(f"Final output will be saved to: {output_file}")
# Create timer thread to stop after duration
def duration_timer():
time.sleep(duration)
duration_stop_event.set()
timer_thread = threading.Thread(target=duration_timer)
timer_thread.daemon = True
timer_thread.start()
# Thread to monitor both stop events
def monitor_events():
while not stop_event.is_set():
if manual_stop_event.is_set() or duration_stop_event.is_set():
stop_event.set()
if verbose and manual_stop_event.is_set():
print("Manual stop requested")
elif verbose and duration_stop_event.is_set():
print(f"Maximum duration of {duration} seconds reached")
break
time.sleep(0.1)
monitor_thread = threading.Thread(target=monitor_events)
monitor_thread.daemon = True
monitor_thread.start()
if verbose:
print("\nStarting recording now...")
# Create a flag to track if we've already triggered the callback
callback_triggered = [False]
# Callback function for when recording actually starts
def on_audio_record_start():
if not callback_triggered[0]:
if verbose:
print("Audio recording has actually started")
callback_triggered[0] = True
# Call the external callback if provided
if on_recording_started:
on_recording_started()
# Start a short timer to trigger the callback after the recording has had time to start
def delayed_callback():
# Wait a short time for recording to initialize
time.sleep(0.5)
on_audio_record_start()
callback_thread = threading.Thread(target=delayed_callback)
callback_thread.daemon = True
callback_thread.start()
# Start audio recording
result = record_audio(output_file, verbose=verbose, stop_event=stop_event, status_callback=status_callback)
if verbose:
print("\n=== Recording Process Completed ===")
if result:
file_size = os.path.getsize(output_file) / (1024 * 1024) # Size in MB
print(f"Final file size: {file_size:.2f} MB")
print(f"Recording saved to: {output_file}")
return result
except Exception as e:
if verbose:
print(f"Error in recording process: {str(e)}")
# Set stop event to end audio recording if an error occurs
stop_event.set()
return None
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser(description="High-quality audio recorder")
parser.add_argument("-d", "--duration", type=int, default=10, help="Maximum recording duration in seconds")
parser.add_argument("-o", "--output", type=str, default="audio_recording.wav", help="Output file path")
parser.add_argument("-v", "--verbose", action="store_true", help="Show detailed logs during recording")
parser.add_argument("-l", "--list", action="store_true", help="List available audio devices")
parser.add_argument("-k", "--key", type=str, default="q", help="Key to press to manually stop recording (defaults to 'q')")
parser.add_argument("--no-manual-interrupt", action="store_true", help="Disable manual interrupt capability")
args = parser.parse_args()
# List devices if requested
if args.list:
print("\n=== Available Audio Devices ===")
list_audio_devices()
exit(0)
# Create manual stop event
manual_stop_event = threading.Event()
# Setup keyboard listener if manual interrupt is enabled
if not args.no_manual_interrupt:
try:
from pynput import keyboard
def on_press(key):
try:
# Check if the pressed key matches the interrupt key
if hasattr(key, 'char') and key.char == args.key:
print(f"\nManual interrupt key '{args.key}' pressed.")
manual_stop_event.set()
return False # Stop listener
except AttributeError:
pass # Special key, ignore
# Start keyboard listener in a separate thread
print(f"Press '{args.key}' to stop recording early")
keyboard_listener = keyboard.Listener(on_press=on_press)
keyboard_listener.daemon = True
keyboard_listener.start()
except ImportError:
print("Warning: pynput module not found. Manual interrupt disabled.")
# Record audio
record_audio_only(
output_file=args.output,
duration=args.duration,
verbose=args.verbose,
manual_stop_event=manual_stop_event
) | ykdojo/osh | 7 | OSH - Automate 99% of your typing for free | Python | ykdojo | YK | Eventual |
audio_transcription.py | Python | #!/usr/bin/env python3
"""
Audio transcription module for Gemini 2.0 Flash Thinking
Processes audio files and returns transcribed text with minimal debug output
"""
import os
import sys
from dotenv import load_dotenv
import google.generativeai as genai
from transcription_prompts import get_audio_transcription_prompt
# Load environment variables from .env file
load_dotenv()
def transcribe_audio(audio_file_path=None, verbose=False):
"""
Process an audio file with Gemini and transcribe its content
Args:
audio_file_path (str, optional): Path to the audio file to process
verbose (bool): Whether to show detailed output logs
Returns:
str: The transcription text if successful, None otherwise
"""
# Configure Gemini client - use GEMINI_API_KEY from .env file
api_key = os.environ.get("GEMINI_API_KEY")
if not api_key:
if verbose:
print("Error: GEMINI_API_KEY not found in environment variables")
print("Please make sure you have a .env file with your GEMINI_API_KEY")
return None
# Use default file if none provided
if not audio_file_path:
audio_file_path = os.path.join(os.path.dirname(__file__), "audio_recording.wav")
if verbose:
print(f"No audio file specified, using default: {audio_file_path}")
# Check if the audio file exists
if not os.path.exists(audio_file_path):
if verbose:
print(f"Error: Audio file '{audio_file_path}' not found.")
return None
try:
# Configure Gemini API
genai.configure(api_key=api_key)
# Read the audio file
if verbose:
print(f"Reading audio file: {audio_file_path}")
with open(audio_file_path, "rb") as f:
audio_data = f.read()
# Determine mime type based on file extension
file_ext = os.path.splitext(audio_file_path)[1].lower()
if file_ext == '.wav':
mime_type = "audio/wav"
elif file_ext == '.mp3':
mime_type = "audio/mpeg"
elif file_ext == '.ogg':
mime_type = "audio/ogg"
elif file_ext == '.flac':
mime_type = "audio/flac"
else:
# Default to wav if unknown
mime_type = "audio/wav"
if verbose:
print(f"Warning: Unknown audio format '{file_ext}', defaulting to {mime_type}")
# Initialize the model
# Previous model: standard flash model
# model = genai.GenerativeModel("gemini-2.0-flash")
# Tried model: pro experimental model (was too slow)
# model = genai.GenerativeModel("gemini-2.5-pro-exp-03-25")
# Current model: flash-thinking experimental model
model = genai.GenerativeModel("gemini-2.0-flash-thinking-exp-01-21")
# Create parts for the generation
audio_part = {"mime_type": mime_type, "data": audio_data}
# Get transcription prompt from shared module
transcription_prompt = get_audio_transcription_prompt()
if verbose:
print("Sending request to Gemini Flash Thinking Experimental...")
print("\n--- Gemini Response ---")
# Generate the response
response = model.generate_content([transcription_prompt, audio_part])
if verbose:
print(response.text)
print("\n--- End of Response ---")
# Return the transcription text with whitespace stripped
return response.text.strip()
except Exception as e:
if verbose:
print(f"Error during audio processing: {str(e)}")
return None
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser(description="Transcribe audio using Gemini AI")
parser.add_argument("-f", "--file", type=str, help="Path to audio file to transcribe")
parser.add_argument("-v", "--verbose", action="store_true", help="Show detailed output")
args = parser.parse_args()
result = transcribe_audio(
audio_file_path=args.file,
verbose=args.verbose
)
if result:
if not args.verbose:
print(result) # Only print result directly in non-verbose mode
else:
print("Transcription failed or returned no results.") | ykdojo/osh | 7 | OSH - Automate 99% of your typing for free | Python | ykdojo | YK | Eventual |
auto_restart.sh | Shell | #!/bin/bash
# This script automatically restarts run_with_env.sh when it exits
# Press Ctrl+C twice to exit: once to exit the inner script, once for this wrapper
echo "=== Auto-restart wrapper started ==="
echo "Press Ctrl+C twice to exit completely (once for the script, once for this wrapper)"
while true; do
echo "Starting run_with_env.sh..."
bash run_with_env.sh
echo "Script exited. Restarting in 1 second..."
sleep 1
done | ykdojo/osh | 7 | OSH - Automate 99% of your typing for free | Python | ykdojo | YK | Eventual |
cleanup_recordings.sh | Shell | #!/bin/bash
# Simple script to remove all recording files
# Find all recording files (mp4 for video, wav for audio, txt for transcriptions)
echo "Finding recording files..."
RECORDINGS=$(find . -name "recording_*.mp4" -o -name "recording_*.wav" -o -name "recording_*.txt")
# Check if any files were found
if [ -z "$RECORDINGS" ]; then
echo "No recording files found."
exit 0
fi
# Display files to be deleted
echo "The following recording files will be deleted:"
echo "$RECORDINGS"
# Count the total number of files
TOTAL_FILES=$(echo "$RECORDINGS" | wc -l | tr -d ' ')
# Ask for confirmation
echo
read -p "Are you sure you want to delete these $TOTAL_FILES files? (y/n): " CONFIRM
if [ "$CONFIRM" = "y" ] || [ "$CONFIRM" = "Y" ]; then
# Delete the files
echo "Deleting files..."
echo "$RECORDINGS" | xargs rm
echo "Done! Recordings deleted."
else
echo "Operation cancelled."
fi | ykdojo/osh | 7 | OSH - Automate 99% of your typing for free | Python | ykdojo | YK | Eventual |
clipboard_handler.py | Python | #!/usr/bin/env python3
"""
Clipboard handler for preserving and restoring clipboard content,
including both text and images.
"""
import time
import platform
import traceback
from pynput.keyboard import Controller, Key
import copykitten
# Check if we're on macOS
is_macos = platform.system() == 'Darwin'
class ClipboardHandler:
"""
Handles saving and restoring clipboard content,
including support for both text and images.
"""
def __init__(self, verbose=False):
"""Initialize the clipboard handler"""
self.verbose = verbose
self.original_text = None
self.original_image = None
self.has_text = False
self.has_image = False
def save_clipboard_content(self):
"""
Save the current clipboard content (both text and image if available)
"""
if self.verbose:
print("Saving clipboard content...")
# Try to get text content
try:
self.original_text = copykitten.paste()
if self.original_text:
self.has_text = True
if self.verbose:
print(f"Saved clipboard text: '{self.original_text[:50]}...' (truncated)"
if len(self.original_text) > 50
else f"Saved clipboard text: '{self.original_text}'")
except Exception as e:
if self.verbose:
print(f"No text in clipboard: {e}")
self.original_text = None
self.has_text = False
# Try to get image content
try:
self.original_image = copykitten.paste_image()
if self.original_image:
self.has_image = True
if self.verbose:
print(f"Saved clipboard image (data size: {len(self.original_image)} bytes)")
except Exception as e:
if self.verbose:
print(f"No image in clipboard: {e}")
self.original_image = None
self.has_image = False
# Summary
if self.verbose:
if not self.has_text and not self.has_image:
print("Clipboard appears to be empty")
elif self.has_text and self.has_image:
print("Clipboard contains both text and image")
elif self.has_text:
print("Clipboard contains only text")
else:
print("Clipboard contains only an image")
def restore_clipboard_content(self):
"""
Restore the original clipboard content
"""
if self.verbose:
print("Restoring clipboard content...")
# First check if we have an image to restore
if self.has_image and self.original_image:
try:
if self.verbose:
print("Attempting to restore image content...")
# There's no direct way to restore image with copykitten without
# dimensions and format, so we'll try using the stored binary data
# On macOS, we might need a system-level command if copykitten fails
if is_macos:
self._restore_macos_image()
else:
# On other platforms, best effort with copykitten
copykitten.copy(self.original_text if self.has_text else "")
except Exception as e:
if self.verbose:
print(f"Failed to restore image: {e}")
# If we only have text, or if image restore failed, restore text
elif self.has_text and self.original_text:
try:
if self.verbose:
print("Restoring text content...")
copykitten.copy(self.original_text)
except Exception as e:
if self.verbose:
print(f"Failed to restore text: {e}")
# If we have nothing, clear the clipboard
else:
try:
if self.verbose:
print("Clearing clipboard...")
copykitten.clear()
except Exception as e:
if self.verbose:
print(f"Failed to clear clipboard: {e}")
def _restore_macos_image(self):
"""
Special handling for macOS image clipboard restoration.
On macOS, for image restoration we need to use a different approach.
For this prototype, we'll just restore text and note the limitation.
"""
if self.verbose:
print("Note: Image restoration on macOS limited to text content only.")
# Fall back to restoring text if we have it
if self.has_text and self.original_text:
copykitten.copy(self.original_text)
else:
copykitten.clear()
def type_text_with_clipboard(text, countdown=False, verbose=False):
"""
Type the given text at the current cursor position using clipboard.
Preserves original clipboard content (text only).
Args:
text (str): The text to type
countdown (bool): Whether to show a countdown before typing (default: False)
verbose (bool): Whether to print debug information (default: False)
"""
try:
keyboard = Controller()
# Create clipboard handler and save original content
clipboard = ClipboardHandler(verbose=verbose)
clipboard.save_clipboard_content()
# Give user time to position cursor if countdown is enabled
if countdown:
if verbose:
print("\nPositioning cursor in 3 seconds...")
for i in range(3, 0, -1):
if verbose:
print(f"{i}...")
time.sleep(1)
if verbose:
print("Now pasting text via clipboard...")
print(f"About to paste: '{text}'")
# Copy text to clipboard
copykitten.copy(text)
# Paste using keyboard shortcut
if is_macos:
keyboard.press(Key.cmd)
keyboard.press('v')
keyboard.release('v')
keyboard.release(Key.cmd)
else:
keyboard.press(Key.ctrl)
keyboard.press('v')
keyboard.release('v')
keyboard.release(Key.ctrl)
# Small delay to ensure paste completes
time.sleep(0.1)
# Restore original clipboard content
clipboard.restore_clipboard_content()
return True
except Exception as e:
if verbose:
print(f"Error while pasting: {e}")
traceback.print_exc()
return False
# Test the module if run directly
if __name__ == "__main__":
print(f"Running on: {platform.system()} {platform.release()}")
# Test the clipboard handler
clipboard = ClipboardHandler(verbose=True)
# First save the current clipboard
print("\n=== Testing Clipboard Save ===")
clipboard.save_clipboard_content()
# Test typing text with clipboard
print("\n=== Testing Text Pasting ===")
type_text_with_clipboard(
"This is a test of the clipboard handler.\nIt preserves your original clipboard content!",
countdown=True,
verbose=True
)
print("\nTest completed.") | ykdojo/osh | 7 | OSH - Automate 99% of your typing for free | Python | ykdojo | YK | Eventual |
clipboard_to_llm.py | Python | #!/usr/bin/env python3
"""
Clipboard to LLM with TTS
A simple tool that reads the current clipboard content when
triggered by the keyboard shortcut Shift+Alt+A (Å).
It then converts the clipboard text to speech using Gemini TTS.
Usage:
- Copy text to your clipboard
- Press Shift+Alt+A
- The script will display the clipboard content and play it using TTS
"""
import time
import subprocess
import asyncio
import os
import threading
import csv
from datetime import datetime
from pynput.keyboard import Controller, Key, Listener, KeyCode
# Import Gemini TTS functionality
from gemini_tts_test import GeminiTTS
# Constants for reading metrics
READING_METRICS_CSV = os.path.join(os.path.dirname(__file__), "reading_metrics.csv")
def ensure_csv_exists(csv_path):
"""
Create CSV file with headers if it doesn't exist
Args:
csv_path (str): Path to CSV file
"""
if not os.path.exists(csv_path):
os.makedirs(os.path.dirname(csv_path), exist_ok=True)
with open(csv_path, 'w', newline='') as file:
writer = csv.writer(file)
writer.writerow(['timestamp', 'characters', 'words', 'paragraphs'])
def record_reading(text):
"""
Record metrics for text-to-speech conversion
Args:
text (str): The text that was converted to speech
"""
# Skip empty text
if not text:
return
# Calculate metrics
char_count = len(text)
word_count = len(text.split())
paragraph_count = text.count('\n\n') + 1 # Count double newlines plus one for first paragraph
# Get current timestamp
timestamp = datetime.now().isoformat()
# Ensure CSV exists
ensure_csv_exists(READING_METRICS_CSV)
# Write to CSV file
with open(READING_METRICS_CSV, 'a', newline='') as file:
writer = csv.writer(file)
writer.writerow([timestamp, char_count, word_count, paragraph_count])
print(f"Recorded reading metrics: {char_count} chars, {word_count} words, {paragraph_count} paragraphs")
def get_clipboard_text():
"""Get text from clipboard using pbpaste on macOS"""
try:
result = subprocess.run(['pbpaste'], capture_output=True, text=True)
return result.stdout
except Exception as e:
print(f"Error getting clipboard content: {e}")
return None
def play_tts(text):
"""Play text using TTS in a separate thread"""
if not text:
return
async def tts_task():
try:
# Create TTS instance with text from clipboard and 1.15x speed
tts = GeminiTTS(speed_factor=1.15)
# Override the test text with our clipboard content
tts.test_text = text
# Play once and exit, with retry logic enabled (max 2 retries)
await tts.run(repeat_count=1, interval=0, max_retries=2)
except Exception as e:
print(f"Error playing TTS: {e}")
# Run the async task in a new thread to not block main thread
def run_async_task():
asyncio.run(tts_task())
# Start in a separate thread so we don't block keyboard listener
tts_thread = threading.Thread(target=run_async_task)
tts_thread.daemon = True # Thread will exit when main program exits
tts_thread.start()
return tts_thread
def on_press(key):
"""Handle key press events"""
# Check for special character "Å" which is produced by Shift+Alt+A on Mac
if hasattr(key, 'char') and key.char == "Å":
print(f"\nShortcut detected: Shift+Alt+A (Å)")
# Delete the "Å" character
keyboard = Controller()
keyboard.press(Key.backspace)
keyboard.release(Key.backspace)
# Get clipboard content
clipboard_content = get_clipboard_text()
# Process the clipboard content
if clipboard_content:
print("\n=== Clipboard Content ===")
print(clipboard_content)
print("=== End of Clipboard Content ===")
print(f"(Length: {len(clipboard_content)} characters)")
# Record reading metrics
record_reading(clipboard_content)
# Play the clipboard content using TTS
print("Playing clipboard content using TTS...")
play_tts(clipboard_content)
else:
print("Clipboard is empty")
# Exit on Ctrl+C (correct check for macOS)
if key == Key.ctrl_l and hasattr(key, 'vk'):
return False
return True
def main():
"""Run the clipboard monitor with TTS"""
print("=== Clipboard to TTS ===")
print("1. Copy text to your clipboard (Cmd+C)")
print("2. Press Shift+Alt+A (Å) to read the clipboard and play it using TTS")
print("3. Press Ctrl+C to exit")
# Create the keyboard listener (not starting it yet)
listener = None
try:
# Start the keyboard listener
listener = Listener(on_press=on_press)
listener.start()
# Keep the main thread alive
while listener.is_alive():
listener.join(0.1) # Check every 0.1 seconds if listener is alive
except KeyboardInterrupt:
print("\nExiting...")
finally:
# Ensure listener is stopped even if an exception occurs
if listener and listener.is_alive():
print("Cleaning up keyboard listener...")
listener.stop()
time.sleep(0.1) # Give a moment for the listener to stop cleanly
if __name__ == "__main__":
main() | ykdojo/osh | 7 | OSH - Automate 99% of your typing for free | Python | ykdojo | YK | Eventual |
clipboard_to_tts_stream.py | Python | #!/usr/bin/env python3
"""
Clipboard to TTS Stream
A simple tool that reads the current clipboard content when
triggered by the keyboard shortcut Shift+Alt+A (Å).
It then converts the clipboard text to speech using Gemini TTS streaming.
Usage:
- Copy text to your clipboard
- Press Shift+Alt+A
- The script will display the clipboard content and play it using streaming TTS
"""
import time
import subprocess
import threading
import os
from pynput.keyboard import Controller, Key, Listener, KeyCode
# Core imports for audio
import pyaudio
import base64
from dotenv import load_dotenv
try:
from google import genai
from google.genai import types
except ImportError:
print("Please install the required packages: pip install google-generativeai python-dotenv pyaudio")
import sys
sys.exit(1)
# Audio constants
SAMPLE_RATE = 24000
CHANNELS = 1
FORMAT = pyaudio.paInt16 # 16-bit audio format
def get_clipboard_text():
"""Get text from clipboard using pbpaste on macOS"""
try:
result = subprocess.run(['pbpaste'], capture_output=True, text=True)
return result.stdout
except Exception as e:
print(f"Error getting clipboard content: {e}")
return None
def play_audio(audio_data, sample_rate=SAMPLE_RATE, channels=CHANNELS):
"""Play audio data directly without saving to file"""
p = pyaudio.PyAudio()
# Open stream
stream = p.open(
format=pyaudio.paInt16,
channels=channels,
rate=sample_rate,
output=True
)
# Play audio
print("Playing audio...")
stream.write(audio_data)
# Cleanup
stream.stop_stream()
stream.close()
p.terminate()
print("Audio playback complete")
def generate_and_play_tts(text):
"""Generate and play TTS for the given text"""
if not text:
print("No text provided")
return
# Load environment variables
load_dotenv()
# Get API key from environment
api_key = os.environ.get("GEMINI_API_KEY")
if not api_key:
print("Gemini API key not found. Please add it to .env file")
import sys
sys.exit(1)
# Initialize client
client = genai.Client(api_key=api_key)
# Model configuration
model = "gemini-2.0-flash-exp-image-generation"
contents = [
types.Content(
role="user",
parts=[
types.Part.from_text(text=f"""Read out loud the following text. No need to say yes, okay, and stuff like that.
Just focus on reading it out loud by itself with nothing else.
IMPORTANT: Skip all preambles like 'okay' or 'I'll read this'. ONLY read exactly these words: {text}"""),
],
),
]
# Configure TTS settings
generate_content_config = types.GenerateContentConfig(
response_modalities=["audio"],
speech_config=types.SpeechConfig(
voice_config=types.VoiceConfig(
prebuilt_voice_config=types.PrebuiltVoiceConfig(voice_name="Aoede")
)
),
safety_settings=[
types.SafetySetting(
category="HARM_CATEGORY_CIVIC_INTEGRITY",
threshold="OFF",
),
],
response_mime_type="text/plain",
)
print("Generating TTS content with Gemini...")
try:
# Stream the response
for chunk in client.models.generate_content_stream(
model=model,
contents=contents,
config=generate_content_config,
):
if not chunk.candidates or not chunk.candidates[0].content or not chunk.candidates[0].content.parts:
continue
if chunk.candidates[0].content.parts[0].inline_data:
inline_data = chunk.candidates[0].content.parts[0].inline_data
audio_data = inline_data.data
print(f"Received audio data chunk of mime type: {inline_data.mime_type}")
# Play the audio directly
play_audio(audio_data)
elif hasattr(chunk, 'text') and chunk.text:
print(chunk.text)
except Exception as e:
print(f"Error: {e}")
def play_tts(text):
"""Play text using TTS in a separate thread"""
if not text:
return
# Run in a new thread to not block main thread
def run_tts_task():
generate_and_play_tts(text)
# Start in a separate thread so we don't block keyboard listener
tts_thread = threading.Thread(target=run_tts_task)
tts_thread.daemon = True # Thread will exit when main program exits
tts_thread.start()
return tts_thread
def on_press(key):
"""Handle key press events"""
# Check for special character "Å" which is produced by Shift+Alt+A on Mac
if hasattr(key, 'char') and key.char == "Å":
print(f"\nShortcut detected: Shift+Alt+A (Å)")
# Delete the "Å" character
keyboard = Controller()
keyboard.press(Key.backspace)
keyboard.release(Key.backspace)
# Get clipboard content
clipboard_content = get_clipboard_text()
# Process the clipboard content
if clipboard_content:
print("\n=== Clipboard Content ===")
print(clipboard_content)
print("=== End of Clipboard Content ===")
print(f"(Length: {len(clipboard_content)} characters)")
# Play the clipboard content using TTS
print("Playing clipboard content using streaming TTS...")
play_tts(clipboard_content)
else:
print("Clipboard is empty")
# Exit on Ctrl+C (correct check for macOS)
if key == Key.ctrl_l and hasattr(key, 'vk'):
return False
return True
def main():
"""Run the clipboard monitor with TTS"""
print("=== Clipboard to Streaming TTS ===")
print("1. Copy text to your clipboard (Cmd+C)")
print("2. Press Shift+Alt+A (Å) to read the clipboard and play it using TTS")
print("3. Press Ctrl+C to exit")
# Create the keyboard listener (not starting it yet)
listener = None
try:
# Start the keyboard listener
listener = Listener(on_press=on_press)
listener.start()
# Keep the main thread alive
while listener.is_alive():
listener.join(0.1) # Check every 0.1 seconds if listener is alive
except KeyboardInterrupt:
print("\nExiting...")
finally:
# Ensure listener is stopped even if an exception occurs
if listener and listener.is_alive():
print("Cleaning up keyboard listener...")
listener.stop()
time.sleep(0.1) # Give a moment for the listener to stop cleanly
if __name__ == "__main__":
main() | ykdojo/osh | 7 | OSH - Automate 99% of your typing for free | Python | ykdojo | YK | Eventual |
commit_metrics.sh | Shell | #!/bin/bash
# Script to automatically commit and push metrics files
# Check if metrics files are modified
if git status --porcelain | grep -q "M.*metrics.*.csv"; then
# Add the metrics files
git add *metrics*.csv
# Commit with timestamp
git commit -m "Update metrics files - $(date '+%Y-%m-%d %H:%M')"
# Push to origin
git push origin main
echo "Metrics files committed and pushed successfully"
else
echo "No changes in metrics files to commit"
fi | ykdojo/osh | 7 | OSH - Automate 99% of your typing for free | Python | ykdojo | YK | Eventual |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.