mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
186 lines
6.7 KiB
HTML
186 lines
6.7 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head><meta name="generator" content="Hexo 3.8.0">
|
||
<meta charset="utf-8">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
<meta name="google-site-verification" content="xBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<meta name="description" content="">
|
||
<meta name="keyword" content="">
|
||
<link rel="shortcut icon" href="/uWeb/img/favicon.ico">
|
||
|
||
<title>
|
||
|
||
利用浏览器地址栏对函数作图
|
||
|
||
</title>
|
||
|
||
<!-- Custom CSS -->
|
||
<link rel="stylesheet" href="/uWeb/css/aircloud.css">
|
||
<link href="//at.alicdn.com/t/font_620856_pl6z7sid89qkt9.css" rel="stylesheet" type="text/css">
|
||
<!-- ga & ba script hoook -->
|
||
<script></script>
|
||
</head>
|
||
|
||
<body>
|
||
|
||
<div class="site-nav-toggle" id="site-nav-toggle">
|
||
<button>
|
||
<span class="btn-bar"></span>
|
||
<span class="btn-bar"></span>
|
||
<span class="btn-bar"></span>
|
||
</button>
|
||
</div>
|
||
|
||
<div class="index-about">
|
||
<i> </i>
|
||
</div>
|
||
|
||
<div class="index-container">
|
||
|
||
<div class="index-left">
|
||
|
||
<div class="nav" id="nav">
|
||
<div class="contents" id="nav-content">
|
||
<ul>
|
||
<li>
|
||
<a href="/uWeb/">
|
||
<i class="iconfont icon-shouye1"></i>
|
||
<span>HOME</span>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="/uWeb/tags">
|
||
<i class="iconfont icon-biaoqian1"></i>
|
||
<span>TAGS</span>
|
||
</a>
|
||
</li>
|
||
<li>
|
||
<a href="/uWeb/archives">
|
||
<i class="iconfont icon-guidang2"></i>
|
||
<span>ARCHIVES</span>
|
||
</a>
|
||
</li>
|
||
|
||
</ul>
|
||
</div>
|
||
|
||
<div id="toc" class="toc-article">
|
||
<ol class="toc"><li class="toc-item toc-level-4"><a class="toc-link" href="#安装gnuplot"><span class="toc-text">安装gnuplot</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#地址栏功能配置:"><span class="toc-text">地址栏功能配置:</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#配置文件-sdcard-uweb-default-acmd如下:"><span class="toc-text">配置文件/sdcard/uweb/default.acmd如下:</span></a></li><li class="toc-item toc-level-4"><a class="toc-link" href="#常见问题及诊断"><span class="toc-text">常见问题及诊断</span></a></li></ol>
|
||
</div>
|
||
|
||
</div>
|
||
|
||
|
||
<div class="search-field" id="search-field">
|
||
<div class="search-container">
|
||
<div class="search-input">
|
||
<span id="esc-search"> <i class="icon-fanhui iconfont"></i></span>
|
||
<input id="search-input">
|
||
<span id="begin-search">search</span>
|
||
</div>
|
||
<div class="search-result-container" id="search-result-container">
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="index-about-mobile">
|
||
<i> </i>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="index-middle">
|
||
<!-- Main Content -->
|
||
|
||
|
||
|
||
<div class="post-container">
|
||
<div class="post-title">
|
||
利用浏览器地址栏对函数作图
|
||
</div>
|
||
|
||
<div class="post-meta">
|
||
<span class="attr">Post:<span>2019-06-05 17:55:34</span></span>
|
||
|
||
<span class="attr">Tags:/
|
||
|
||
<a class="tag" href="/uWeb/tags/#termux" title="termux">termux</a>
|
||
<span>/</span>
|
||
|
||
|
||
</span>
|
||
|
||
|
||
</div>
|
||
<div class="post-content ">
|
||
<p>使用Android端<a href="..">uweb浏览器</a>。<br>Termux提供了方便的软件包管理系统,缺省的uWeb地址栏功能配置需用到作图软件gnuplot。</p>
|
||
<h4 id="安装gnuplot"><a href="#安装gnuplot" class="headerlink" title="安装gnuplot"></a>安装gnuplot</h4><ul><br><li>安装<a href="https://www.wocloud.com.cn/webclient/share/sindex.action?id=1p00SB1kA2JpoBce2QHhbgmbxuq0yhuZAjUZYCZyVGCLivSf0dTfmw==" target="_blank" rel="noopener">uweb定制Termux应用</a></li><br><li>Termux下运行以下命令:<br>apt update<br>apt upgrade<br>apt install gnuplot</li><br></ul>
|
||
|
||
<h4 id="地址栏功能配置:"><a href="#地址栏功能配置:" class="headerlink" title="地址栏功能配置:"></a>地址栏功能配置:</h4><ul>
|
||
<li>配置文件<a href=e:/sdcard/uweb/default.acmd>/sdcard/uweb/default.acmd每行格式如下:<br> 菜单名:mimeType:命令行</li>
|
||
<li>命令行可包含参数%s,运行时自动用地址栏输入内容替换。</li>
|
||
<li>如果浏览器窗口当前地址为本地url,则此目录同时作为命令行工作目录。</li>
|
||
</ul>
|
||
<h4 id="配置文件-sdcard-uweb-default-acmd如下:"><a href="#配置文件-sdcard-uweb-default-acmd如下:" class="headerlink" title="配置文件/sdcard/uweb/default.acmd如下:"></a>配置文件/sdcard/uweb/default.acmd如下:</h4><pre><code>命令:text/plain:%s
|
||
函数作图:image/svg+xml:gnuplot -e 'set term svg;set output; plot %s'
|
||
函数作图(3d):image/svg+xml:gnuplot -e 'set term svg;set output; splot %s'
|
||
超级计算器:text/html:echo "%s"|bc -l -q
|
||
</code></pre><p>长按uweb浏览器底部工具条刷新按钮弹出地址栏功能选择,选择“函数作图”,地址栏内输入函数如sin(x)**5就可显示函数图案。</p>
|
||
<h4 id="常见问题及诊断"><a href="#常见问题及诊断" class="headerlink" title="常见问题及诊断"></a>常见问题及诊断</h4><ul>
|
||
<li>确保gnuplot正确安装,在Termux提示符下,敲入gnuplot,然后回车,保证出现”gnuplot>”。</li>
|
||
<li>确保gnuplot正常运行, 在Termux提示符下,执行下面命令:<br><code>gnuplot -e 'set term svg;set output; plot x'</code><br>屏幕输出应该为正常的svg文件(类似html文本)。</li>
|
||
<li>Termux应为uweb定制包,否则有一堆设定需要修改。</li>
|
||
<li>超微浏览器下长按窗口管理按钮,勾选“标准错误输出”。再次在地址栏执行画图操作,此时浏览器会显示出错信息。</li>
|
||
<li>为保证地址栏输入函数符合gnuplot规范,首个测试函数建议为”x”,即整个地址栏内输入为”x”。</li>
|
||
</ul>
|
||
|
||
<br>
|
||
<div id="comment-container">
|
||
</div>
|
||
<div id="disqus_thread"></div>
|
||
|
||
<div id="lv-container">
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<footer class="footer">
|
||
<ul class="list-inline text-center">
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</ul>
|
||
|
||
|
||
</footer>
|
||
|
||
|
||
|
||
|
||
</body>
|
||
|
||
<script>
|
||
// We expose some of the variables needed by the front end
|
||
window.hexo_search_path = ""
|
||
window.hexo_root = "/uWeb/"
|
||
window.isPost = true
|
||
</script>
|
||
<script src="/uWeb/js/index.js"></script>
|
||
|
||
|
||
|
||
|
||
</html>
|