mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-23 02:14:13 +00:00
113 lines
No EOL
5.8 KiB
HTML
113 lines
No EOL
5.8 KiB
HTML
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Internationalization — Miller 5.10.2 documentation</title>
|
|
<link rel="stylesheet" href="_static/classic.css" type="text/css" />
|
|
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
|
|
|
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
|
|
<script src="_static/jquery.js"></script>
|
|
<script src="_static/underscore.js"></script>
|
|
<script src="_static/doctools.js"></script>
|
|
<script src="_static/language_data.js"></script>
|
|
|
|
<link rel="index" title="Index" href="genindex.html" />
|
|
<link rel="search" title="Search" href="search.html" />
|
|
<link rel="next" title="Contact" href="contact.html" />
|
|
<link rel="prev" title="Installation" href="install.html" />
|
|
</head><body>
|
|
<div class="related" role="navigation" aria-label="related navigation">
|
|
<h3>Navigation</h3>
|
|
<ul>
|
|
<li class="right" style="margin-right: 10px">
|
|
<a href="genindex.html" title="General Index"
|
|
accesskey="I">index</a></li>
|
|
<li class="right" >
|
|
<a href="contact.html" title="Contact"
|
|
accesskey="N">next</a> |</li>
|
|
<li class="right" >
|
|
<a href="install.html" title="Installation"
|
|
accesskey="P">previous</a> |</li>
|
|
<li class="nav-item nav-item-0"><a href="index.html">Miller 5.10.2 documentation</a> »</li>
|
|
<li class="nav-item nav-item-this"><a href="">Internationalization</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="document">
|
|
<div class="documentwrapper">
|
|
<div class="bodywrapper">
|
|
<div class="body" role="main">
|
|
|
|
<div class="section" id="internationalization">
|
|
<h1>Internationalization<a class="headerlink" href="#internationalization" title="Permalink to this headline">¶</a></h1>
|
|
<p>Miller handles strings with any characters other than 0x00 or 0xff, using explicit UTF-8-friendly string-length computations. (I have no plans to support UTF-16 or ISO-8859-1.)</p>
|
|
<p>By and large, Miller treats strings as sequences of non-null bytes without need to interpret them semantically. Intentional support for internationalization includes:</p>
|
|
<ul class="simple">
|
|
<li><p>Tabular output formats such pprint and xtab (see <a class="reference internal" href="file-formats.html"><span class="doc">File formats</span></a>) are aligned correctly.</p></li>
|
|
<li><p>The <a class="reference internal" href="reference-dsl.html#reference-dsl-strlen"><span class="std std-ref">strlen</span></a> function correctly counts UTF-8 codepoints rather than bytes.</p></li>
|
|
<li><p>The <a class="reference internal" href="reference-dsl.html#reference-dsl-toupper"><span class="std std-ref">toupper</span></a>, <a class="reference internal" href="reference-dsl.html#reference-dsl-tolower"><span class="std std-ref">tolower</span></a>, and <a class="reference internal" href="reference-dsl.html#reference-dsl-capitalize"><span class="std std-ref">capitalize</span></a> DSL functions within the capabilities of <a class="reference external" href="https://github.com/sheredom/utf8.h">https://github.com/sheredom/utf8.h</a>.</p></li>
|
|
</ul>
|
|
<p>Meanwhile, regular expressions and the DSL functions <a class="reference internal" href="reference-dsl.html#reference-dsl-sub"><span class="std std-ref">sub</span></a> and <a class="reference internal" href="reference-dsl.html#reference-dsl-gsub"><span class="std std-ref">gsub</span></a> function correctly, albeit without explicit intentional support.</p>
|
|
<p>Please file an issue at <a class="reference external" href="https://github.com/johnkerl/miller">https://github.com/johnkerl/miller</a> if you encounter bugs related to internationalization (or anything else for that matter).</p>
|
|
</div>
|
|
|
|
|
|
<div class="clearer"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
|
<div class="sphinxsidebarwrapper">
|
|
<h4>Previous topic</h4>
|
|
<p class="topless"><a href="install.html"
|
|
title="previous chapter">Installation</a></p>
|
|
<h4>Next topic</h4>
|
|
<p class="topless"><a href="contact.html"
|
|
title="next chapter">Contact</a></p>
|
|
<div role="note" aria-label="source link">
|
|
<h3>This Page</h3>
|
|
<ul class="this-page-menu">
|
|
<li><a href="_sources/internationalization.rst.txt"
|
|
rel="nofollow">Show Source</a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="searchbox" style="display: none" role="search">
|
|
<h3 id="searchlabel">Quick search</h3>
|
|
<div class="searchformwrapper">
|
|
<form class="search" action="search.html" method="get">
|
|
<input type="text" name="q" aria-labelledby="searchlabel" />
|
|
<input type="submit" value="Go" />
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<script>$('#searchbox').show(0);</script>
|
|
</div>
|
|
</div>
|
|
<div class="clearer"></div>
|
|
</div>
|
|
<div class="related" role="navigation" aria-label="related navigation">
|
|
<h3>Navigation</h3>
|
|
<ul>
|
|
<li class="right" style="margin-right: 10px">
|
|
<a href="genindex.html" title="General Index"
|
|
>index</a></li>
|
|
<li class="right" >
|
|
<a href="contact.html" title="Contact"
|
|
>next</a> |</li>
|
|
<li class="right" >
|
|
<a href="install.html" title="Installation"
|
|
>previous</a> |</li>
|
|
<li class="nav-item nav-item-0"><a href="index.html">Miller 5.10.2 documentation</a> »</li>
|
|
<li class="nav-item nav-item-this"><a href="">Internationalization</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="footer" role="contentinfo">
|
|
© Copyright 2020, John Kerl.
|
|
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 3.2.1.
|
|
</div>
|
|
</body>
|
|
</html> |