-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.xml
102 lines (102 loc) · 5.25 KB
/
index.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html xmlns:its="http://www.w3.org/2005/11/its" lang="en" prefix="og: http://ogp.me/ns#">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="utf-8" />
<title>sintl: simple HTML5 translation</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Alegreya+Sans:400,400italic,500" />
<link rel="stylesheet" href="https://bsd.lv/css/style.css" />
<link rel="stylesheet" href="index.css" />
<meta property="og:title" content="sintl" />
<meta property="og:description" content="Simple HTML5 translation." />
<meta name="description" content="Simple HTML5 translation." />
<meta property="og:url" content="https://kristaps.bsd.lv/sintl/index.html" />
<meta property="og:type" content="website" />
</head>
<body itemscope="itemscope" itemtype="http://schema.org/SoftwareApplication" its:translate="no">
<header>
<div class="text">
<div>sintl(1)</div>
<div><span its:translate="yes">simple HTML5 translation</span></div>
<nav id="nav">
<a href="https://github.com/kristapsdz/sintl"><i class="fa fa-github"></i> github</a>
<a itemprop="downloadURL" href="snapshots/sintl.tar.gz"><i class="fa fa-gears"></i> source</a>
<a href="snapshots"><i class="fa fa-archive"></i> archive</a>
<a href="atom.xml"><i class="fa fa-rss"></i> rss</a>
<span>
<a href="https://kristaps.bsd.lv/cgi-bin/minci.cgi/index.html?project-name=sintl">
<i class="fa fa-tachometer"></i> build status
</a>
</span>
</nav>
</div>
</header>
<article id="main" class="text">
<p>
<span class="nm" itemprop="name">sintl</span> is an
<span itemprop="description" its:translate="yes">
<a href="http://opensource.org/licenses/ISC" rel="license">open source</a> UNIX utility for
managing HTML5 translations</span>.
It works similarly to <a href="http://itstool.org/">itstool</a>, except that it's built exclusively for HTML5,
depends only on <a href="http://expat.sourceforge.net/">libexpat</a>, is in C, and works with <a
href="http://docs.oasis-open.org/xliff/xliff-core/v2.0/os/xliff-core-v2.0-os.html">XLIFF</a>
instead of <a href="https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html">PO</a> files.
It is a <a href="https://bsd.lv">BSD.lv</a> project.
</p>
<p>
The <a href="sintl.1.html">sintl(1)</a> executable creates XLIFF templates from HTML5, keeps templates up
to date with current translatable content in the HTML5, and joins HTML5 with XLIFF to produce translated output.
The HTML5 input uses a simple subset of <a href="http://www.w3.org/TR/its20/">ITS</a> to indicate what should
and should not be translated.
</p>
<p>
An example input file is as follows.
</p>
<article data-sblg-article="1" data-sblg-articletag="code" data-sblg-permlink="0"></article>
<p>
Input markup within elements labelled as <code><span
its:translate="yes">this</span></code> (which is the default) are marked for translation.
Phrase elements (<i>, <strong>, etc.) are included in the translatable content to keep paragraphs consistent.
The translation dictionary is just an XML file with key-value pairs.
</p>
<article data-sblg-article="1" data-sblg-articletag="code" data-sblg-permlink="0"></article>
<p>
Join the translation file with the input file to produce translated content.
It's as easy as that.
</p>
<article data-sblg-article="1" data-sblg-articletag="code" data-sblg-permlink="0"></article>
<p>
To use, download <a itemprop="downloadURL" href="snapshots/sintl.tar.gz">sintl.tar.gz</a> (<a
href="snapshots/sintl.tar.gz.sha512">sha512</a>, <a href="snapshots">archives</a>) and run
<code>./configure</code> and <code>make install</code> as usual.
It is designed to work on any modern UNIX operating system, although its target environment is <a
href="https://www.openbsd.org">OpenBSD</a>.
(If you're on Mac OS X, you should have expat installed from a third-party package manager: the built-in expat
does not integrate with <a href="https://man.openbsd.org/pkg-config">pkg-config</a>.)
</p>
<p>
The last versions are as follows:
</p>
<nav data-sblg-nav="1" data-sblg-navcontent="1" data-sblg-navtag="version">
<i class="fa fa-fw fa-clock-o"></i>
Version <span class="version">${sblg-title}</span> (<time datetime="${sblg-date}">${sblg-date}</time>): ${sblg-aside}
</nav>
</article>
<footer>
<div>
© 2014, 2016, 2018–2020
<a rel="author" href="https://github.com/kristapsdz">Kristaps Dzonsons</a>
</div>
<nav>
<a title="github" href="https://github.com/kristapsdz/sintl"><i class="fa fa-fw fa-github"></i></a>
<a title="download" itemprop="downloadURL" href="snapshots/sintl.tar.gz"><i class="fa fa-fw fa-gears"></i></a>
<a title="archive" href="snapshots"><i class="fa fa-fw fa-archive"></i></a>
<a title="feed" href="atom.xml"><i class="fa fa-fw fa-rss"></i></a>
<a title="builds" href="https://kristaps.bsd.lv/cgi-bin/minci.cgi/index.html?project-name=sintl">
<i class="fa fa-fw fa-tachometer"></i>
</a>
</nav>
</footer>
</body>
</html>