btex: img tag with src attrib

This commit is contained in:
minjaesong
2024-05-16 17:07:36 +09:00
parent e308e9a356
commit efbdc806ea
6 changed files with 142 additions and 29 deletions

View File

@@ -162,18 +162,19 @@
<section>Figures</section>
<p>Figures, or external images can be inserted using the self-closing <code>img</code> tag.
This tag inserts the image starting from the current line; if the size is taller than the
remaining lines, the image will be printed onto the next page. Its syntax is as follows:</p>
<p><index id="img (tag)"/>Figures, or external images can be inserted using the self-closing <code>img</code> tag.
This tag inserts the image at the centre of the page, starting from the current line;
if the size is taller than the remaining lines, the image will be printed onto the next page.
Its syntax is as follows:</p>
<callout align="left" class="code"><!--
-->&lt;img src="web URL" height="8"/&gt;<br/><!--
-->&lt;img src="http(s) or file URL" height="8"/&gt;<br/><!--
-->&lt;img fromgame="basegame:gui/small.png" height="4"/&gt;<br/><!--
-->&lt;img gameitem="basegame:33" height="1"/&gt;
</callout>
<p>The <code>height</code> attribute specifies the height of the image <emph>in the number of lines</emph>,
rather than pixels.</p>
rather than pixels, the width is calculated automatically. Image width wider than the text width will cause an error.</p>
<p>Supported image formats: JPEG, PNG, BMP or TGA</p>
@@ -295,6 +296,22 @@
<part>Non-laymen Zone</part>
<chapter alt="The Waiting Process">Why Wait for the Books to be Printed? Why Cant I just Print Them by Myself?</chapter>
<p>The <btex/> engine is not fast; it takes at least a few seconds to print a book. The “waiting”
system is there because the book is being printed in the background on separate threads
(yes, they are multi-threaded!) to not interfere with the normal gameplay, or else the players will
encounter the freezing every time the book is being printed, and this would be a huge minus towards
the gameplay experience. If the process exits without any error, the mailing system will be
notified and will send the mail containing finished books to the player; if the process exits
with errors, the mail containing details of the errors will be sent instead.</p>
<p>For this reason the “printing press” is not exposed to the player, they only get to interact with it
indirectly through the “publisher” via mail.</p>
<newpage/>