"<!DOCTYPE html><html lang=\"en\"><head>\n<meta charset=\"UTF-8\"><meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0\">\n<title>Search — Anuvāda</title>\n<meta name=\"robots\" content=\"index,follow,max-snippet:-1\">\n<meta name=\"description\" content=\"Full-text search of Tibetan Buddhist translations (English, Tibetan, Chinese).\"><link rel=\"canonical\" href=\"https://naxiai.com/tibetan/search\">\n<meta property=\"og:type\" content=\"article\"><meta property=\"og:title\" content=\"Search\"><meta property=\"og:url\" content=\"https://naxiai.com/tibetan/search\"><meta property=\"og:description\" content=\"Full-text search of Tibetan Buddhist translations (English, Tibetan, Chinese).\">\n<link rel=\"alternate\" type=\"application/atom+xml\" title=\"New translations\" href=\"/tibetan/feed.xml\">\n<link rel=\"sitemap\" type=\"application/xml\" href=\"/tibetan/sitemap.xml\">\n<link rel=\"stylesheet\" href=\"/static/tibetan.css?v=20261114e\">\n<script src=\"/static/cite-copy.js\" defer></script>\n<link rel=\"stylesheet\" href=\"https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Newsreader:opsz,wght@6..72,400;6..72,500&family=Noto+Serif+Tibetan:wght@400;500&family=Libre+Franklin:wght@400;500;600&family=Noto+Serif+SC:wght@400;500&family=JetBrains+Mono:wght@400;500&display=swap\">\n\n<style>()</style></head><body>\n<a class=\"skip\" href=\"#main\">Skip to content</a>\n<header class=\"site-nav\"><div class=\"wrap\">\n  <a class=\"brand\" href=\"/tibetan\">Anuvāda<span>藏文佛典 · translations · commentary</span></a>\n  <nav class=\"nav-links\" aria-label=\"Tibetan section\">\n    <a href=\"/tibetan/library\">Library</a>\n    <a href=\"/tibetan/catalogue\">Registry</a>\n    <a href=\"/tibetan/works\">Translations</a>\n    <a href=\"/tibetan/glossary\">Glossary</a>\n    <a href=\"/tibetan/search\">Search</a>\n    <a href=\"/tibetan/citations\">Citations</a>\n    <a href=\"/tibetan/pipeline\">Method</a>\n  </nav>\n</div></header>\n<main id=\"main\">\n  <nav class=\"breadcrumb\"><a href=\"/tibetan\">Anuvāda</a> &rsaquo;\n    <a href=\"/tibetan/works\">Translations</a></nav>\n  <h1>Search the translations</h1>\n  <p class=\"meta\">Full-text search over 15,560 passages in 484 translated texts\n     (English, Tibetan and Chinese). <b>Broad</b> matches any of your words;\n     <b>narrow</b> matches the exact phrase.</p>\n  <div class=\"searchbar\">\n    <input id=\"q\" type=\"search\" placeholder=\"e.g. bodhicitta, “mind of enlightenment”, 如来\"\n           value=\"\" autocomplete=\"off\">\n    <span class=\"chips\" id=\"mode\">\n      <button class=\"chipbtn active\" data-mode=\"broad\">Broad</button>\n      <button class=\"chipbtn\" data-mode=\"narrow\">Narrow</button>\n    </span>\n    <span class=\"chips\" id=\"lang\">\n      <button class=\"chipbtn active\" data-lang=\"both\">All</button>\n      <button class=\"chipbtn\" data-lang=\"en\">English</button>\n      <button class=\"chipbtn\" data-lang=\"zh\">中文</button>\n    </span>\n  </div>\n  <p class=\"count\" id=\"count\"></p>\n  <div id=\"results\"></div>\n  <script>\n  (function(){\n    var q=document.getElementById('q'), out=document.getElementById('results'),\n        cnt=document.getElementById('count'), mode='broad', lang='both', t=null;\n    function esc(s){return String(s==null?'':s).replace(/[&<>\"]/g,function(c){return {'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;'}[c];});}\n    function seg(id, key){\n      var box=document.getElementById(id);\n      box.addEventListener('click',function(e){\n        var b=e.target.closest('button'); if(!b) return;\n        box.querySelectorAll('button').forEach(function(x){x.classList.remove('active');});\n        b.classList.add('active');\n        if(key==='mode') mode=b.dataset.mode; else lang=b.dataset.lang;\n        run();\n      });\n    }\n    seg('mode'); seg('lang');\n    function run(){\n      var v=q.value.trim();\n      if(!v){ out.innerHTML=''; cnt.textContent=''; return; }\n      clearTimeout(t);\n      t=setTimeout(function(){\n        var url='/tibetan/api/search?q='+encodeURIComponent(v)+'&mode='+mode+'&lang='+lang+'&limit=50';\n        fetch(url).then(function(r){return r.json();}).then(function(d){\n          cnt.textContent=d.count? d.count+' result'+(d.count===1?'':'s')+(d.count>=50?' (first 50)':'') : 'No results';\n          out.innerHTML=(d.results||[]).map(function(x){\n            var label=x.i? ('passage '+x.i) : 'work';\n            return '<div class=\"res\"><h3><a href=\"/tibetan/works/'+esc(x.work)+'\">'+esc(x.title||x.work)+'</a></h3>'\n              + (x.snippet? '<p class=\"snip\">'+x.snippet+'</p>' : '')\n              + '<p class=\"meta\">'+esc((x.toh||'').replace('toh','Toh '))+' · '+label\n              + (x.lang==='zh'?' · 中文':'') + '</p></div>';\n          }).join('');\n        }).catch(function(){ cnt.textContent='Search unavailable'; });\n      }, 180);\n    }\n    q.addEventListener('input', run);\n    if(q.value.trim()) run();\n  })();\n  </script>\n</main>\n<footer class=\"site\"><div class=\"wrap\">\n  <span>Anuvāda — a scholarly resource of NaxiAI. Tibetan source retains its own licence.</span>\n  <span><a href=\"/tibetan/feed.xml\">Atom</a> · <a href=\"/tibetan/sitemap.xml\">Sitemap</a> · <a href=\"/tibetan/llms.txt\">llms.txt</a></span>\n</div></footer>\n</body></html>"