diff --git a/assets/mods/basegame/books/btex.xml b/assets/mods/basegame/books/btex.xml
index 72d5c576e..fabaaf7ac 100644
--- a/assets/mods/basegame/books/btex.xml
+++ b/assets/mods/basegame/books/btex.xml
@@ -74,11 +74,11 @@
Only the title tag is mandatory. Cover texts will be printed using a special font that has wider
@@ -126,21 +126,23 @@
The part, chapter and section takes optional type attributes which changes how the chapter should be numbered. Available options are:
a — use alphabet for the number (a, b, c, …)A — use majuscule alphabet for the number (A, B, C, …)i — use Roman numeral for the number (i, ii, iii, …)I — use majuscule Roman numeral for the number (I, II, III, …)1 — use numbers (1, 2, 3)a — use alphabets for the number (a, b, c, …)A — use majuscule alphabets for the number (A, B, C, …)i — use Roman numerals for the number (i, ii, iii, …)I — use majuscule Roman numerals for the number (I, II, III, …)1 — use Arabic numerals (1, 2, 3)By default, parts use majuscule Roman numerals and others use just numbers. Alternative styling for the part and the chapter can be defined using the Macro Definition.
By default, parts use majuscule Roman numerals and others use Arabic. Alternative styling for the part and the chapter can be defined using the Macro Definition.
The p and callout tag take align attribute, which controls how the text should be aligned. Available options are:
The p and callout tags can take align attribute, which controls how the text should be aligned. Available options are:
left — aligns the text to the left without breaking words, also known as ragged-rightjustify — aligns the text as evenly as possible, like real books. This is the default value.left — aligns the text flush to the left without breaking words, also known as ragged-rightright — aligns the text flush to the right without breaking words, also known as ragged-leftcenter — aligns the text aligned at the centre along the width of the paper without breaking wordsjustify — aligns the text as evenly as possible, similar to real books. This is the default value.The p, span and callout tags also take class="code" attribute, which results in the text printed using the code font.
The optional title attribute allows a custom name can be given to this page. If unspecified,
the default name is “Index”.
The tag <tableofindices/> is an internal tag used by the typesetter.
macrodef tag which comes before the
+ cover tag. Its syntax is as follows:
Internally, part and chapter headings are printed using macros. Changing the value of the macro + will change how the heading numbers are printed. The following is a list of names and default values:
+ +thepart — Part heading. Default: Part %1$sthechapter — Chapter heading. Default: %1$sThe argument key %1$s will be replaced into a number, Roman numerals, etc.
+ depending on the value of type attribute.
These macros can be used to localise the chapter headings for your language. For example,
+ in Korean text, you might want to change thechapter into %1$s장.
Defining the text to be printed outside the typesetting system, such as the name of the sender
+ and the recipient, can be desired. These texts can be used with the self-closing v tag. This tag
+ can also be used to use an ingame string as well.
To print an external variable, use the id attribute; to print an ingame string, use
+ fromgame attribute. Note that only one of two attributes must be used, using both
+ attributes in a single tag will cause an error.
bucks
+ tag can be used along with the v tag. The following code is an example case:
If the external variable invoice_total_amount contains a string toomany,
+ this code would print out “The total is
v series tags are added:
veun vneun — 은/는vi vga — 이/가veul vreul — 을/를vwa vgwa — 와/과vro veuro — 로/으로Either of the tag in the pair can be used; they will put the correct postposition based on the word.
+ In other words, veun and vneun are identical.
These tags can be used in the following situation: suppose you have a
The variables will be resolved based on the current ingame language, then the necessary + linguistic processing is performed, which would result in a following paragraph + (text in blue denotes the text is inserted using the tags):
+ +이 중 title 태그만이 필수 태그이다. 표지의 문구는 글자간 간격이 넓게 인쇄된다. 책 제목은 두배 큰 크기로 인쇄된다.
표지의 색깔은 hue 속성을 사용해 바꿀 수 있다. 0에서 360 사이의 숫자를 사용할 수 있다.
표지의 색깔은 hue 속성을 사용하여 바꿀 수 있다. 0에서 360 사이의 숫자를 사용할 수 있다.
part — 원고에 새 부(part)를 추가함chapter, section — 원고에 새 장(chapter)/절(section)을 추가함. 목차 페이지에는 다른 이름을 표시하고 싶다면 alt 속성을 사용할 수 있음. 목차 페이지에서 숨기고 싶다면 hide="1" 속성을 추가할 것. 장이 새 페이지에서 시작되게 하려면 chapter 태그 앞에 newpage를 추가할 것p — 새 문단을 삽입함. 본문의 글은 반드시 이 태그 내부에 작성되어야 함. 모든 문단는 16픽셀의 들여쓰기로 조판되나, 다음의 경우 들여쓰기가 적용되지 않음. 부·장·절의 첫 문단, br, newpage, callout, ul, ol, anonbreak 태그 직후의 문단chapter, section — 원고에 새 장(chapter)·절(section)을 추가함. 목차 페이지에는 다른 이름을 표시하고 싶다면 alt 속성을 사용할 수 있음. 목차 페이지에서 숨기고 싶다면 hide="1" 속성을 추가할 것. 장이 새 페이지에서 시작되게 하려면 chapter 태그 앞에 newpage를 추가할 것p — 새 문단을 삽입함. 본문의 글은 반드시 이 태그 내부에 작성되어야 함. 모든 문단는 16픽셀의 들여쓰기로 조판되나, 다음의 경우 들여쓰기가 적용되지 않음: 부·장·절의 첫 문단, br, newpage, callout, ul, ol, anonbreak 태그 직후의 문단span — 문구의 색상이나 스타일을 변경함. 색상은 colour 속성에 작성되어야 함. 6자리 헥스코드, 3자리 헥스코드, CSS Colour Level 4에 정의된 색상명을 사용할 수 있음. 모든 색상은 내부적으로 가장 가까운 3자리 헥스코드로 변경됨에 유의할 것emph — span의 특수한 경우로, 문구를 itemname — span의 특수한 경우로, 게임 내 아이템의 이름을 강조 표시할 때 사용함. 문구는 code — span의 특수한 경우로, 코드를 강조 표시할 때 사용함. 문구는 청록색의 고정폭으로 인자됨br — 스스로 닫는 태그. 임의의 줄바꿈을 삽입함newpage — 스스로 닫는 태그. 임의의 새 페이지를 삽입함anonbreak — 스스로 닫는 태그. 임의의 문단 분할을 적용함. 분할 표시는 한 줄을 비우고 가운데에 긴 줄을 삽입하여 이루어짐.주로 소설을 조판하는 데에 사용됨callout — 문단 태크로서, 문단을 회색 상자에 넣어 돋보이게 조판함ul — 순서 없는 목록을 조판함. 목록의 항목은 li 태그를 사용해 기술됨ol — 순서 있는 목록을 조판함. 목록의 항목은 li 태그를 사용해 기술됨anonbreak — 스스로 닫는 태그. 임의의 문단 분할을 적용함. 분할 표시는 한 줄을 비우고 가운데에 긴 줄을 삽입하여 이루어짐. 주로 소설을 조판하는 데에 사용됨callout — 문단 태그로서, 문단을 회색 상자에 넣어 돋보이게 조판함ul — 순서 없는 목록을 조판함. 목록의 항목은 li 태그를 사용하여 기술됨ol — 순서 있는 목록을 조판함. 목록의 항목은 li 태그를 사용하여 기술됨fullpagebox — 문구를 한 페이지를 비우고, 그 페이지의 중앙에 조판함. 반드시 newpage 태그가 직전에 쓰여야 함btex — 스스로 닫는 태그. btex — 스스로 닫는 태그. 스스로 닫는 태그는 하위 내용을 담을 수 없다. 스스로 닫는 태그는, 예를 들어 tagname이라는 태그가 있으면, 다음과 같이 쓴다. <tagname/>.
스스로 닫는 태그는 하위 내용을 담을 수 없다. 스스로 닫는 태그는, 예를 들어 tagname이라는 태그가 있으면, 다음과 같이 쓴다: <tagname/>.
부와 장과 절은 type 속성을 사용해 번호가 찍히는 스타일을 지정할 수 있다. 지원하는 스타일은 다음과 같다.
부와 장·절은 type 속성을 사용하여 번호가 찍히는 스타일을 지정할 수 있다. 지원하는 스타일은 다음과 같다.
a — 번호로 알파벳을 사용함 (a, b, c, …)A — 번호로 알파벳 대문자를 사용함 (A, B, C, …)i — 번호로 로마 숫자를 사용함 (i, ii, iii, …)I — 번호로 로마 숫자 대문자를 사용함 (I, II, III, …)1 — 번호를 사용함 (1, 2, 3)1 — 번호로 아라비아 숫자를 사용함 (1, 2, 3)기본값은, 부는 로마 숫자 대문자, 장과 절은 그냥 번호를 사용한다. “Part I”로 찍히는 것을 “제1절”로 변경하는 등의 심화된 스타일은 매크로 정의문에서 정의할 수 있다.
+기본값은, 부는 로마 숫자 대문자, 장·절은 아라비아 숫자를 사용한다. 부의 경우 영어로 “Part I”과 같이 찍히고, 이를 “제1절”로 변경하는 등의 심화된 스타일은 매크로 정의문에서 정의할 수 있다.
p와 callout 태그는 align 속성을 지원한다. 지원하는 스타일은 다음과 같다.
left — 문단을 좌측정렬함right — 문단을 우측정렬함center — 문단을 중앙정렬함justify — 문단을 양끝정렬함. 기본값p, span, callout 태그는 추가로 class="code" 속성을 지원한다. 이 속성이 적용된 문구는 코드꼴(code font)을 사용해 인자된다.
p, span, callout 태그는 추가로 class="code" 속성을 지원한다. 이 속성이 적용된 문구는 코드꼴(code font)을 사용하여 인자된다.
index와 a 태그를 사용해 적용할 수 있다.
index와 a 태그를 사용하여 적용할 수 있다.
index — 링크의 목적지를 정의함. 링크의 이름은 문서 전체에서 유일하여야 하며, id 속성에 작성함a — 태그 내부의 문구를 클릭 가능하게 함. 링크의 목적지는 (index 태그의 id) href 속성에 작성함title 속성은 색인 페이지의 장제목을 지정한다. 지정하지 않았으면 “Index”가 인자된다.
<tableofindices/> 태그는 조판 시스템이 내부적으로 사용하는 태그이다.
cover 앞에 macrodef태그를 두어 정의할 수 있다. 매크로 정의문의 구조는 다음과 같다.
내부적으로 부와 장 제목은 매크로를 사용하여 인자된다. 매크로의 값을 바꾸면 번호가 인자되는 스타일을 변경할 수 있다. 매크로의 이름과 기본값은 다음과 같다.
+ +thepart — 부 제목 번호. 기본값: Part %1$sthechapter — 장 제목 번호. 기본값: %1$s매개변수인 %1$s는 각 제목의 type 속성에 따라 적절한 숫자로 치환된다.
이 매크로는 장제목을 원하는 언어의 스타일로 변경하는 데에 사용될 수 있다. 예를 들면 한국어 환경에서는 thechapter를 %1$s장으로 정의하는 것이 되겠다.
편지의 보내는 사람과 받는 사람과 같이 인자될 문구를 조판 시스템 외부에서 정의하는 것이 바람직한 경우가 있다. 이러한 문구는 스스로 닫는 v 태그를 사용하여 추가할 수 있다. 이 태그는 또한 게임 내에 정의된 문자열을 가져오는 데에 사용될 수도 있다.
외부 변수를 인자하려면 id 속성을 사용하여야 한다. 게임 내 문자열을 가져오려면 fromgame 속성을 사용하라. 두 속성은 서로 상충되므로 하나의 속성만을 사용하여야 한다.
bucks 태그 내부에 v 태그를 넣어서 사용할 수 있다. 예시 코드는 다음과 같다.
외부변수 invoice_total_amount에 너무많음이라는 문자열이 선언되어 있다면, 위 코드는 “총액:
v태그는 다음과 같다.
veun vneun — 은/는vi vga — 이/가veul vreul — 을/를vwa vgwa — 와/과vro veuro — 로/으로태그 쌍 중에서는 아무거나 사용해도 무방하다. 어느 쪽이든 알맞는 조사를 추가할 것이다. 달리 말하면, veun과 vneun은 완전히 동일한 태그이다.
이 태그들은 다음과 같은 상황에 쓰일 수 있다. 아래와 같은
변수는 현재 게임 언어에 따라 대입되고, 그 다음 조사처리가 진행된다. 조판이 완료된 문구는 다음과 같다. (파란색은 해당 단어가 태그에 의해 대입되었음을 뜻한다)
+ +