Correct tag hierarchy, to allow for table-of-contents entries.

This commit is contained in:
Simon Cozens 2015-08-31 10:39:10 +01:00
parent 387d6af428
commit 11a07c4729
5 changed files with 36 additions and 36 deletions

View File

@ -1,11 +1,11 @@
<sect1 id="what-is-harfbuzz"> <chapter id="what-is-harfbuzz">
<title>What is Harfbuzz?</title> <title>What is Harfbuzz?</title>
<para> <para>
Harfbuzz is a <emphasis>text shaping engine</emphasis>. It solves Harfbuzz is a <emphasis>text shaping engine</emphasis>. It solves
the problem of selecting and positioning glyphs from a font given a the problem of selecting and positioning glyphs from a font given a
Unicode string. Unicode string.
</para> </para>
<sect2 id="why-do-i-need-it"> <section id="why-do-i-need-it">
<title>Why do I need it?</title> <title>Why do I need it?</title>
<para> <para>
Text shaping is an integral part of preparing text for display. It Text shaping is an integral part of preparing text for display. It
@ -99,8 +99,8 @@
rest of this manual, we are going to assume that you are the rest of this manual, we are going to assume that you are the
implementor of a text layout engine. implementor of a text layout engine.
</para> </para>
</sect2> </section>
<sect2 id="why-is-it-called-harfbuzz"> <section id="why-is-it-called-harfbuzz">
<title>Why is it called Harfbuzz?</title> <title>Why is it called Harfbuzz?</title>
<para> <para>
Harfbuzz began its life as text shaping code within the FreeType Harfbuzz began its life as text shaping code within the FreeType
@ -111,5 +111,5 @@
engine for OpenType fonts - &quot;Harfbuzz&quot; is the Persian engine for OpenType fonts - &quot;Harfbuzz&quot; is the Persian
for &quot;open type&quot;. for &quot;open type&quot;.
</para> </para>
</sect2> </section>
</sect1> </chapter>

View File

@ -1,4 +1,4 @@
<sect1 id="hello-harfbuzz"> <chapter id="hello-harfbuzz">
<title>Hello, Harfbuzz</title> <title>Hello, Harfbuzz</title>
<para> <para>
Here's the simplest Harfbuzz that can possibly work. We will improve Here's the simplest Harfbuzz that can possibly work. We will improve
@ -90,7 +90,7 @@
hb_buffer_destroy(buf); hb_buffer_destroy(buf);
hb_font_destroy(hb_ft_font); hb_font_destroy(hb_ft_font);
</programlisting> </programlisting>
<sect2 id="what-harfbuzz-doesnt-do"> <section id="what-harfbuzz-doesnt-do">
<title>What Harfbuzz doesn't do</title> <title>What Harfbuzz doesn't do</title>
<para> <para>
The code above will take a UTF8 string, shape it, and give you the The code above will take a UTF8 string, shape it, and give you the
@ -179,5 +179,5 @@ ABC אבג DEF
Harfbuzz's API to refine that example and improve our text shaping Harfbuzz's API to refine that example and improve our text shaping
capabilities. capabilities.
</para> </para>
</sect2> </section>
</sect1> </chapter>

View File

@ -1,4 +1,4 @@
<sect1 id="buffers-language-script-and-direction"> <chapter id="buffers-language-script-and-direction">
<title>Buffers, language, script and direction</title> <title>Buffers, language, script and direction</title>
<para> <para>
The input to Harfbuzz is a series of Unicode characters, stored in a The input to Harfbuzz is a series of Unicode characters, stored in a
@ -6,7 +6,7 @@
the text that we want and then customize the properties of the the text that we want and then customize the properties of the
buffer. buffer.
</para> </para>
<sect2 id="creating-and-destroying-buffers"> <section id="creating-and-destroying-buffers">
<title>Creating and destroying buffers</title> <title>Creating and destroying buffers</title>
<para> <para>
As we saw in our initial example, a buffer is created and As we saw in our initial example, a buffer is created and
@ -49,8 +49,8 @@ void somefunc(hb_buffer_t *buffer) {
throw away the string in the buffer but keep the options, you can throw away the string in the buffer but keep the options, you can
instead call <literal>hb_buffer_clear_contents(buffer)</literal>. instead call <literal>hb_buffer_clear_contents(buffer)</literal>.
</para> </para>
</sect2> </section>
<sect2 id="adding-text-to-the-buffer"> <section id="adding-text-to-the-buffer">
<title>Adding text to the buffer</title> <title>Adding text to the buffer</title>
<para> <para>
Now we have a brand new Harfbuzz buffer. Let's start filling it Now we have a brand new Harfbuzz buffer. Let's start filling it
@ -58,20 +58,20 @@ void somefunc(hb_buffer_t *buffer) {
of Unicode codepoints, but your input string is probably in one of of Unicode codepoints, but your input string is probably in one of
the standard Unicode character encodings (UTF-8, UTF-16, UTF-3 ) the standard Unicode character encodings (UTF-8, UTF-16, UTF-3 )
</para> </para>
</sect2> </section>
<sect2 id="setting-buffer-properties"> <section id="setting-buffer-properties">
<title>Setting buffer properties</title> <title>Setting buffer properties</title>
<para> <para>
</para> </para>
</sect2> </section>
<sect2 id="what-about-the-other-scripts"> <section id="what-about-the-other-scripts">
<title>What about the other scripts?</title> <title>What about the other scripts?</title>
<para> <para>
</para> </para>
</sect2> </section>
<sect2 id="customizing-unicode-functions"> <section id="customizing-unicode-functions">
<title>Customizing Unicode functions</title> <title>Customizing Unicode functions</title>
<para> <para>
</para> </para>
</sect2> </section>
</sect1> </chapter>

View File

@ -1,18 +1,18 @@
<sect1 id="fonts-and-faces"> <chapter id="fonts-and-faces">
<title>Fonts and faces</title> <title>Fonts and faces</title>
<sect2 id="using-freetype"> <section id="using-freetype">
<title>Using FreeType</title> <title>Using FreeType</title>
<para> <para>
</para> </para>
</sect2> </section>
<sect2 id="using-harfbuzzs-native-opentype-implementation"> <section id="using-harfbuzzs-native-opentype-implementation">
<title>Using Harfbuzz's native OpenType implementation</title> <title>Using Harfbuzz's native OpenType implementation</title>
<para> <para>
</para> </para>
</sect2> </section>
<sect2 id="using-your-own-font-functions"> <section id="using-your-own-font-functions">
<title>Using your own font functions</title> <title>Using your own font functions</title>
<para> <para>
</para> </para>
</sect2> </section>
</sect1> </chapter>

View File

@ -1,13 +1,13 @@
<sect1 id="shaping-and-shape-plans"> <chapter id="shaping-and-shape-plans">
<title>Shaping and shape plans</title> <title>Shaping and shape plans</title>
<sect2 id="opentype-features"> <section id="opentype-features">
<title>OpenType features</title> <title>OpenType features</title>
<para> <para>
</para> </para>
</sect2> </section>
<sect2 id="plans-and-caching"> <section id="plans-and-caching">
<title>Plans and caching</title> <title>Plans and caching</title>
<para> <para>
</para> </para>
</sect2> </section>
</sect1> </chapter>