From d6cb4311a9768101ab367a4b5f29a0de3179316b Mon Sep 17 00:00:00 2001
From: Graham Nelson
Date: Mon, 26 Jul 2021 00:34:51 +0100
Subject: [PATCH] Moved localisation code to html module
---
README.md | 2 +-
build.txt | 4 +-
docs/assertions-module/4-tc.html | 2 +-
docs/assertions-module/5-ptd.html | 2 +-
docs/assertions-module/5-ptd2.html | 2 +-
docs/assertions-module/5-tpf.html | 2 +-
docs/core-module/1-wtc.html | 2 +-
docs/html-module/1-hm.html | 2 +
docs/html-module/2-dr.html | 2 +-
docs/html-module/2-dr2.html | 64 ++++-----
docs/html-module/2-if.html | 2 +-
docs/{index-module => html-module}/2-lcl.html | 122 ++++++++++--------
docs/html-module/2-pb.html | 2 +-
docs/html-module/2-sl.html | 2 +-
docs/html-module/index.html | 5 +
docs/if-module/2-tbf.html | 18 +--
docs/index-module/1-im.html | 4 +-
docs/index-module/2-fi.html | 2 +-
docs/index-module/2-fs.html | 2 +-
docs/index-module/2-ii.html | 23 ++--
docs/index-module/2-il.html | 2 +-
docs/index-module/2-ir.html | 54 ++++----
docs/index-module/2-iu.html | 8 +-
docs/index-module/2-lxc.html | 10 +-
docs/index-module/2-sas.html | 2 +-
docs/index-module/3-ae.html | 10 +-
docs/index-module/3-ae2.html | 10 +-
docs/index-module/3-be.html | 6 +-
docs/index-module/3-ce.html | 2 +-
docs/index-module/3-ce2.html | 28 ++--
docs/index-module/3-ce3.html | 18 +--
docs/index-module/3-ce4.html | 26 ++--
docs/index-module/3-ee.html | 10 +-
docs/index-module/3-ee2.html | 6 +-
docs/index-module/3-fe.html | 64 ++++-----
docs/index-module/3-ge.html | 2 +-
docs/index-module/3-ge2.html | 18 +--
docs/index-module/3-ie.html | 32 ++---
docs/index-module/3-le.html | 4 +-
docs/index-module/3-me.html | 44 +++----
docs/index-module/3-pe.html | 2 +-
docs/index-module/3-pe2.html | 34 ++---
docs/index-module/3-re.html | 10 +-
docs/index-module/3-rfse.html | 6 +-
docs/index-module/3-se.html | 16 +--
docs/index-module/3-te.html | 34 ++---
docs/index-module/3-te2.html | 14 +-
docs/index-module/3-tpt.html | 6 +-
docs/index-module/3-ve.html | 10 +-
docs/index-module/3-ve2.html | 12 +-
docs/index-module/4-rem.html | 4 +-
docs/index-module/4-rhm.html | 20 +--
docs/index-module/index.html | 5 -
docs/inform7/1-mn.html | 2 +-
docs/inform7/M-pm.html | 78 +++++------
docs/knowledge-module/2-nv.html | 2 +-
docs/runtime-module/5-kc.html | 2 +-
docs/runtime-module/6-pi.html | 4 +-
docs/values-module/5-dsh.html | 2 +-
inform7/Chapter 1/Main.w | 2 +-
inform7/Figures/memory-diagnostics.txt | 48 +++----
inform7/Figures/timings-diagnostics.txt | 18 +--
.../assertions-module/Chapter 4/The Creator.w | 2 +-
.../Chapter 5/Parsing Type Data.w | 2 +-
.../Chapter 5/Phrase Type Data.w | 2 +-
.../Chapter 5/To Phrase Family.w | 2 +-
.../core-module/Chapter 1/What To Compile.w | 2 +-
inform7/if-module/Chapter 2/The Blurb File.w | 18 +--
.../Chapter 2/Nonlocal Variables.w | 2 +-
.../Chapter 5/Kind Constructors.w | 2 +-
.../Chapter 6/Phrasebook Index.w | 4 +-
inform7/values-module/Chapter 5/Dash.w | 2 +-
inter/index-module/Chapter 1/Index Module.w | 2 -
.../Chapter 2/Index Interpreter.w | 3 +-
inter/index-module/Chapter 2/Index Rules.w | 34 ++---
.../index-module/Chapter 2/Index Utilities.w | 4 +-
inter/index-module/Chapter 2/Lexicon.w | 6 +-
.../Chapter 3/Alphabetic Element.w | 4 +-
.../Chapter 3/Arithmetic Element.w | 6 +-
.../Chapter 3/Behaviour Element.w | 4 +-
inter/index-module/Chapter 3/Chart Element.w | 20 +--
.../index-module/Chapter 3/Commands Element.w | 10 +-
.../index-module/Chapter 3/Contents Element.w | 20 +--
inter/index-module/Chapter 3/Events Element.w | 8 +-
inter/index-module/Chapter 3/Extras Element.w | 4 +-
.../index-module/Chapter 3/Figures Element.w | 62 ++++-----
.../index-module/Chapter 3/Grouped Element.w | 14 +-
.../index-module/Chapter 3/Innards Element.w | 28 ++--
.../index-module/Chapter 3/Lexicon Element.w | 2 +-
inter/index-module/Chapter 3/Map Element.w | 24 ++--
inter/index-module/Chapter 3/Plot Element.w | 30 ++---
.../Chapter 3/Relations Element.w | 8 +-
.../Chapter 3/Rules for Scenes Element.w | 4 +-
.../Chapter 3/Standards Element.w | 4 +-
inter/index-module/Chapter 3/Tables Element.w | 32 ++---
inter/index-module/Chapter 3/Tokens Element.w | 10 +-
inter/index-module/Chapter 3/Values Element.w | 8 +-
inter/index-module/Chapter 3/Verbs Element.w | 8 +-
inter/index-module/Chapter 4/Render EPS Map.w | 2 +-
.../index-module/Chapter 4/Render HTML Map.w | 10 +-
inter/index-module/Contents.w | 1 -
services/html-module/Chapter 1/HTML Module.w | 2 +
.../Chapter 2/Documentation References.w | 64 ++++-----
.../html-module}/Chapter 2/Localisation.w | 72 +++++------
services/html-module/Contents.w | 1 +
105 files changed, 750 insertions(+), 752 deletions(-)
rename docs/{index-module => html-module}/2-lcl.html (73%)
rename {inter/index-module => services/html-module}/Chapter 2/Localisation.w (85%)
diff --git a/README.md b/README.md
index 7d7e7c0c7..3f3008579 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Inform 7
-v10.1.0-alpha.1+6S80 'Krypton' (25 July 2021)
+v10.1.0-alpha.1+6S81 'Krypton' (26 July 2021)
## About Inform 7
diff --git a/build.txt b/build.txt
index 4d84d069e..3b5f0aa5d 100644
--- a/build.txt
+++ b/build.txt
@@ -1,3 +1,3 @@
Prerelease: alpha.1
-Build Date: 25 July 2021
-Build Number: 6S80
+Build Date: 26 July 2021
+Build Number: 6S81
diff --git a/docs/assertions-module/4-tc.html b/docs/assertions-module/4-tc.html
index 6e536310a..c710ff900 100644
--- a/docs/assertions-module/4-tc.html
+++ b/docs/assertions-module/4-tc.html
@@ -846,7 +846,7 @@ to abbreviated forms of object names are normally allowed.
Create an instance of an enumerated kind 4.4.2.3
else
Issue an unable-to-create problem message 4.4.2.8 ;
- IndexUtilities::DocReferences::position_of_symbol (& W );
+ DocReferences::position_of_symbol (& W );
Node::set_text ( p , W );
This code is used in §4.4 .
diff --git a/docs/assertions-module/5-ptd.html b/docs/assertions-module/5-ptd.html
index e2037a1ed..cc86e42c0 100644
--- a/docs/assertions-module/5-ptd.html
+++ b/docs/assertions-module/5-ptd.html
@@ -1087,7 +1087,7 @@ match is shown.
TEMPORARY_TEXT ( pds )
WRITE_TO ( pds , "%+W" ,
Wordings::one_word ( Wordings::first_wn ( ToPhraseFamily::doc_ref ( idb -> head_of_defn ))));
- IndexUtilities::DocReferences::link_to ( OUT , pds , -1);
+ DocReferences::link_to ( OUT , pds , -1);
DISCARD_TEXT ( pds )
} else
IndexUtilities::link_to ( OUT ,
diff --git a/docs/assertions-module/5-ptd2.html b/docs/assertions-module/5-ptd2.html
index e61c3fa3a..e9af4418c 100644
--- a/docs/assertions-module/5-ptd2.html
+++ b/docs/assertions-module/5-ptd2.html
@@ -100,7 +100,7 @@ adjusted for an inline definition (if that's the kind of definition this is).
if ( Wordings::nonempty ( XW ))
XW = ParsingIDTypeData::phtd_parse_return_data ( idtd , XW );
if ( Wordings::nonempty ( XW ))
- IndexUtilities::DocReferences::position_of_symbol (& XW );
+ DocReferences::position_of_symbol (& XW );
if ( Wordings::nonempty ( XW ))
XW = ParsingIDTypeData::phtd_parse_doodads ( idtd , XW , & say_flag );
diff --git a/docs/assertions-module/5-tpf.html b/docs/assertions-module/5-tpf.html
index 53043f058..dfa102007 100644
--- a/docs/assertions-module/5-tpf.html
+++ b/docs/assertions-module/5-tpf.html
@@ -201,7 +201,7 @@ must begin with "to" and contain at least one other word.
Wordings::first_word ( GET_RW ( <to-phrase-preamble> , 3 ));
}
wording PW = GET_RW ( <to-phrase-preamble> , 1 );
- tfd -> ph_documentation_symbol = IndexUtilities::DocReferences::position_of_symbol (& PW );
+ tfd -> ph_documentation_symbol = DocReferences::position_of_symbol (& PW );
tfd -> prototype_text = PW ;
}
}
diff --git a/docs/core-module/1-wtc.html b/docs/core-module/1-wtc.html
index 38ef793de..1707db8e8 100644
--- a/docs/core-module/1-wtc.html
+++ b/docs/core-module/1-wtc.html
@@ -140,7 +140,7 @@ thing which is being compiled when it is.
if ( project == NULL ) internal_error ( "no project" );
latest_syntax_tree = project -> syntax_tree ;
- IndexUtilities::DocReferences::read_xrefs ();
+ DocReferences::read_xrefs ();
Task::issue_problems_arising ( project -> as_copy -> vertex );
PluginManager::start_plugins ();
diff --git a/docs/html-module/1-hm.html b/docs/html-module/1-hm.html
index 4cbf36320..c13c50e31 100644
--- a/docs/html-module/1-hm.html
+++ b/docs/html-module/1-hm.html
@@ -88,9 +88,11 @@ following have been thoroughly debugged and only rarely give trouble —
enum documentation_ref_CLASS
+enum localisation_dictionary_CLASS
DECLARE_CLASS ( documentation_ref )
+DECLARE_CLASS ( localisation_dictionary )
diff --git a/docs/html-module/2-dr.html b/docs/html-module/2-dr.html
index c64bc739b..447b292e2 100644
--- a/docs/html-module/2-dr.html
+++ b/docs/html-module/2-dr.html
@@ -769,7 +769,7 @@ cell. Here the inset table begins:
This code is used in §9 (twice).
+
diff --git a/docs/html-module/2-dr2.html b/docs/html-module/2-dr2.html
index e7e0be652..100c0fa35 100644
--- a/docs/html-module/2-dr2.html
+++ b/docs/html-module/2-dr2.html
@@ -122,12 +122,12 @@ of cross-references generated by Indoc.
The structure documentation_ref is private to this section.
-define DOCUMENTATION_REFERENCE_PROBLEMS_CALLBACK IndexUtilities::DocReferences::show_xref_in_problem
+define DOCUMENTATION_REFERENCE_PROBLEMS_CALLBACK DocReferences::show_xref_in_problem
-void IndexUtilities::DocReferences::show_xref_in_problem ( text_stream * OUT , text_stream * sigil ) {
+void DocReferences::show_xref_in_problem ( text_stream * OUT , text_stream * sigil ) {
wchar_t * chap = NULL , * sec = NULL ;
- wchar_t * leaf = IndexUtilities::DocReferences::link_if_possible_once (
+ wchar_t * leaf = DocReferences::link_if_possible_once (
sigil , & chap , & sec );
if ( leaf ) {
HTML::open_indented_p ( OUT , 2 , "tight" );
@@ -153,16 +153,16 @@ file is read on demand; in some runs, it won't be needed.
int xrefs_read = FALSE ;
-void IndexUtilities::DocReferences::read_xrefs ( void ) {
+void DocReferences::read_xrefs ( void ) {
if ( xrefs_read == FALSE ) {
xrefs_read = TRUE ;
TextFiles::read (
InstalledFiles::filename ( DOCUMENTATION_XREFS_IRES ), TRUE ,
- NULL , FALSE , IndexUtilities::DocReferences::read_xrefs_helper , NULL , NULL );
+ NULL , FALSE , DocReferences::read_xrefs_helper , NULL , NULL );
}
}
-void IndexUtilities::DocReferences::read_xrefs_helper ( text_stream * line ,
+void DocReferences::read_xrefs_helper ( text_stream * line ,
text_file_position * tfp , void * unused_state ) {
WRITE_TO ( line , "\n" );
wording W = Feeds::feed_text ( line );
@@ -210,8 +210,8 @@ extension (say
Documentation References -
To enable index or results pages to link into documentation.
+
+
+ Localisation -
+ Utility functions for standing text which may vary by language.
+
diff --git a/docs/if-module/2-tbf.html b/docs/if-module/2-tbf.html
index 501241113..d73d6c23c 100644
--- a/docs/if-module/2-tbf.html
+++ b/docs/if-module/2-tbf.html
@@ -384,55 +384,55 @@ Inblorb to copy out later.
if ( rel -> release_cover == FALSE ) {
WRITE ( "status alternative ||Using 'Release along with cover art', to "
"provide something more distinctive than the default artwork above" );
- IndexUtilities::DocReferences::link_to ( OUT , I "release_cover" , FALSE );
+ DocReferences::link_to ( OUT , I "release_cover" , FALSE );
WRITE ( "||\n" );
}
if ( rel -> release_website == FALSE ) {
WRITE ( "status alternative ||Using 'Release along with a website'" );
- IndexUtilities::DocReferences::link_to ( OUT , I "release_website" , FALSE );
+ DocReferences::link_to ( OUT , I "release_website" , FALSE );
WRITE ( "||\n" );
}
if ( rel -> release_interpreter == FALSE ) {
WRITE ( "status alternative ||Using 'Release along with an interpreter', "
"for in-browser play on your website" );
- IndexUtilities::DocReferences::link_to ( OUT , I "release_interpreter" , FALSE );
+ DocReferences::link_to ( OUT , I "release_interpreter" , FALSE );
WRITE ( "||\n" );
}
if ( NUMBER_CREATED ( auxiliary_file ) == 0 ) {
WRITE ( "status alternative ||Using 'Release along with a file of "
"\"Such-and-Such\" called \"whatever.pdf\"', perhaps to add a "
"manual, or a welcoming note" );
- IndexUtilities::DocReferences::link_to ( OUT , I "release_files" , FALSE );
+ DocReferences::link_to ( OUT , I "release_files" , FALSE );
WRITE ( "||\n" );
}
if ( rel -> release_source == FALSE ) {
WRITE ( "status alternative ||Using 'Release along with the source text'" );
- IndexUtilities::DocReferences::link_to ( OUT , I "release_source" , FALSE );
+ DocReferences::link_to ( OUT , I "release_source" , FALSE );
WRITE ( "||\n" );
}
if ( rel -> release_solution == FALSE ) {
WRITE ( "status alternative ||Using 'Release along with a solution'" );
- IndexUtilities::DocReferences::link_to ( OUT , I "release_solution" , FALSE );
+ DocReferences::link_to ( OUT , I "release_solution" , FALSE );
WRITE ( "||\n" );
}
if ( rel -> release_card == FALSE ) {
WRITE ( "status alternative ||Using 'Release along with the library card'" );
- IndexUtilities::DocReferences::link_to ( OUT , I "release_card" , FALSE );
+ DocReferences::link_to ( OUT , I "release_card" , FALSE );
WRITE ( "||\n" );
}
if ( rel -> release_booklet == FALSE ) {
WRITE ( "status alternative ||Using 'Release along with the introductory booklet'" );
- IndexUtilities::DocReferences::link_to ( OUT , I "release_booklet" , FALSE );
+ DocReferences::link_to ( OUT , I "release_booklet" , FALSE );
WRITE ( "||\n" );
}
if ( rel -> release_postcard == FALSE ) {
WRITE ( "status alternative ||Using 'Release along with the introductory postcard'" );
- IndexUtilities::DocReferences::link_to ( OUT , I "release_postcard" , FALSE );
+ DocReferences::link_to ( OUT , I "release_postcard" , FALSE );
WRITE ( "||\n" );
}
diff --git a/docs/index-module/1-im.html b/docs/index-module/1-im.html
index 8f1c0d63b..a22b86093 100644
--- a/docs/index-module/1-im.html
+++ b/docs/index-module/1-im.html
@@ -93,8 +93,7 @@ which use this module:
-enum localisation_dictionary_CLASS
-enum index_page_CLASS
+enum index_page_CLASS
enum index_element_CLASS
enum inter_lexicon_CLASS
enum index_lexicon_entry_CLASS
@@ -109,7 +108,6 @@ which use this module:
enum rubric_holder_CLASS
-DECLARE_CLASS ( localisation_dictionary )
DECLARE_CLASS ( index_element )
DECLARE_CLASS ( index_page )
DECLARE_CLASS ( inter_lexicon )
diff --git a/docs/index-module/2-fi.html b/docs/index-module/2-fi.html
index ec8781167..2e37ab197 100644
--- a/docs/index-module/2-fi.html
+++ b/docs/index-module/2-fi.html
@@ -706,7 +706,7 @@ can only be known once the spatial grid has been found, i.e., on }
+
diff --git a/docs/index-module/2-fs.html b/docs/index-module/2-fs.html
index 2f9c493b3..1229ef4f5 100644
--- a/docs/index-module/2-fs.html
+++ b/docs/index-module/2-fs.html
@@ -211,7 +211,7 @@ annotated.
The structure simplified_scene is accessed in 2/ir, 3/pe2 and here. The structure simplified_end is accessed in 3/pe2 and here. The structure simplified_connector is accessed in 3/pe2 and here.
+
diff --git a/docs/index-module/2-ii.html b/docs/index-module/2-ii.html
index 637b6460e..c264a83f5 100644
--- a/docs/index-module/2-ii.html
+++ b/docs/index-module/2-ii.html
@@ -95,8 +95,7 @@ pages. For example:
-void InterpretIndex::generate ( inter_tree * I , text_stream * structure , localisation_dictionary * D ) {
+void InterpretIndex::generate ( inter_tree * I , text_stream * structure , localisation_dictionary * D ) {
InterpretIndex::set_tree ( I );
filename * index_structure = InstalledFiles::index_structure_file ( structure );
index_generation_state igs ;
@@ -127,7 +126,7 @@ which goes through the
+
diff --git a/docs/index-module/2-lxc.html b/docs/index-module/2-lxc.html
index 46f186a0a..abe49a633 100644
--- a/docs/index-module/2-lxc.html
+++ b/docs/index-module/2-lxc.html
@@ -324,7 +324,7 @@ of what it is: for instance,
void IndexLexicon::listing ( OUTPUT_STREAM , inter_lexicon * lexicon , int proper_nouns_only ,
- localisation_dictionary * LD ) {
+ localisation_dictionary * LD ) {
index_lexicon_entry * lex ;
LOOP_OVER_LINKED_LIST ( lex , index_lexicon_entry , lexicon -> unsorted ) {
LOG ( "%S: %d\n" , lex -> lemma , lex -> part_of_speech );
@@ -382,7 +382,7 @@ eds. Howarth and Lyons (1996).
if ( lex -> part_of_speech == PREP_TLEXE )
- Localisation::write_1 ( OUT , LD , I "Index.Elements.Lx.ToBe" , lex -> lemma );
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.Lx.ToBe" , lex -> lemma );
else
WRITE ( "%S" , lex -> lemma );
@@ -423,7 +423,7 @@ source text: so any single link would be potentially misleading.
Begin definition text 6.3.1 ;
WRITE ( ", " );
- Localisation::write_1 ( OUT , LD , I "Index.Elements.Lx.KindOf" ,
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.Lx.KindOf" ,
Metadata::read_optional_textual ( lex -> lex_package , I "^index_superkind" ));
End definition text 6.3.2 ;
@@ -459,7 +459,7 @@ different contexts. We want to quote all of those.
Begin definition text 6.3.1 ;
WRITE ( ", " );
- Localisation::write_1 ( OUT , LD , I "Index.Elements.Lx.ValueOf" ,
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.Lx.ValueOf" ,
Metadata::read_optional_textual ( lex -> lex_package , I "^index_kind" ));
End definition text 6.3.2 ;
@@ -481,7 +481,7 @@ different contexts. We want to quote all of those.
This code is used in §6.3 , §6.4 , §6.5 , §6.6 .
+
diff --git a/docs/index-module/2-sas.html b/docs/index-module/2-sas.html
index ada1e1923..87c638594 100644
--- a/docs/index-module/2-sas.html
+++ b/docs/index-module/2-sas.html
@@ -292,7 +292,7 @@ to show, hide and colour things:
This code is used in §1.2.8 (twice).
+
diff --git a/docs/index-module/3-ae.html b/docs/index-module/3-ae.html
index c42a8fad6..00e252894 100644
--- a/docs/index-module/3-ae.html
+++ b/docs/index-module/3-ae.html
@@ -76,7 +76,7 @@ function togglePopup(material_id) {
-void AlphabeticElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void AlphabeticElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
tree_inventory * inv = Synoptic::inv ( I );
TreeLists::sort ( inv -> action_nodes , AlphabeticElement::alphabetical_order );
@@ -155,20 +155,20 @@ function togglePopup(material_id) {
-void AlphabeticElement::column ( OUTPUT_STREAM , text_stream * key , localisation_dictionary * LD ) {
+void AlphabeticElement::column ( OUTPUT_STREAM , text_stream * key , localisation_dictionary * LD ) {
TEMPORARY_TEXT ( full )
WRITE_TO ( full , "Index.Elements.A2.%S" , key );
- Localisation::bold_0 ( OUT , LD , full );
+ Localisation::bold ( OUT , LD , full );
DISCARD_TEXT ( full )
}
-void AlphabeticElement::note ( OUTPUT_STREAM , text_stream * key , localisation_dictionary * LD ) {
+void AlphabeticElement::note ( OUTPUT_STREAM , text_stream * key , localisation_dictionary * LD ) {
TEMPORARY_TEXT ( full )
WRITE_TO ( full , "Index.Elements.A2.%S" , key );
- Localisation::italic_0 ( OUT , LD , full );
+ Localisation::italic ( OUT , LD , full );
DISCARD_TEXT ( full )
}
diff --git a/docs/index-module/3-ae2.html b/docs/index-module/3-ae2.html
index 0ce554590..f46a942b8 100644
--- a/docs/index-module/3-ae2.html
+++ b/docs/index-module/3-ae2.html
@@ -77,7 +77,7 @@ so we do little more than tabulate that data here.
-void ArithmeticElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void ArithmeticElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
tree_inventory * inv = Synoptic::inv ( I );
TreeLists::sort ( inv -> kind_nodes , Synoptic::module_order );
@@ -98,7 +98,7 @@ so we do little more than tabulate that data here.
HTML::first_html_column ( OUT , 0 );
HTML_TAG_WITH ( "img" , "border=0 src=inform:/doc_images/calc2.png" );
WRITE ( " " );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.Ar.Calculator" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.Ar.Calculator" );
HTML::end_html_row ( OUT );
HTML::end_html_table ( OUT );
HTML_CLOSE ( "p" );
@@ -146,7 +146,7 @@ so we do little more than tabulate that data here.
if ( Str::len ( dims ) > 0 ) {
WRITE ( "%S" , dims );
} else {
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Ar.Dimensionless" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Ar.Dimensionless" );
}
This code is used in §1.2 .
@@ -199,10 +199,10 @@ text, sorted into kind order of left and then right operand.
-void ArithmeticElement::column ( OUTPUT_STREAM , text_stream * key , localisation_dictionary * LD ) {
+void ArithmeticElement::column ( OUTPUT_STREAM , text_stream * key , localisation_dictionary * LD ) {
TEMPORARY_TEXT ( full )
WRITE_TO ( full , "Index.Elements.Ar.%S" , key );
- Localisation::bold_0 ( OUT , LD , full );
+ Localisation::bold ( OUT , LD , full );
WRITE ( " " );
DISCARD_TEXT ( full )
}
diff --git a/docs/index-module/3-be.html b/docs/index-module/3-be.html
index 1c05e475e..aa6a80f71 100644
--- a/docs/index-module/3-be.html
+++ b/docs/index-module/3-be.html
@@ -76,7 +76,7 @@ function togglePopup(material_id) {
-void BehaviourElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void BehaviourElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
tree_inventory * inv = Synoptic::inv ( I );
@@ -84,7 +84,7 @@ function togglePopup(material_id) {
if ( num_naps == 0 ) {
HTML_OPEN ( "p" );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.Bh.None" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.Bh.None" );
HTML_CLOSE ( "p" );
} else {
TreeLists::sort ( inv -> named_action_pattern_nodes , Synoptic::module_order );
@@ -95,7 +95,7 @@ function togglePopup(material_id) {
IndexUtilities::link_package ( OUT , pack );
HTML_TAG ( "br" );
WRITE ( " " );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Bh.Defined" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Bh.Defined" );
inter_tree_node * D = Inter::Packages::definition ( pack );
LOOP_THROUGH_INTER_CHILDREN ( C , D ) {
if ( C -> W . data [ ID_IFLD ] == PACKAGE_IST ) {
diff --git a/docs/index-module/3-ce.html b/docs/index-module/3-ce.html
index 4ca2b4e1a..3401b10c8 100644
--- a/docs/index-module/3-ce.html
+++ b/docs/index-module/3-ce.html
@@ -78,7 +78,7 @@ simplified form of the iFiction record, without the XML overhead.
-void CardElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void CardElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
inter_package * pack = Inter::Packages::by_url ( I , I "/main/completion/bibliographic" );
diff --git a/docs/index-module/3-ce2.html b/docs/index-module/3-ce2.html
index 7bd1f72a2..25bb5005d 100644
--- a/docs/index-module/3-ce2.html
+++ b/docs/index-module/3-ce2.html
@@ -79,7 +79,7 @@ and it is quite dense with information.
-void ChartElement::render ( OUTPUT_STREAM , localisation_dictionary * D ) {
+void ChartElement::render ( OUTPUT_STREAM , localisation_dictionary * D ) {
inter_tree * I = InterpretIndex::get_tree ();
tree_inventory * inv = Synoptic::inv ( I );
TreeLists::sort ( inv -> kind_nodes , Synoptic::module_order );
@@ -143,7 +143,7 @@ higher up, but kinds with priority 0 do not appear in the index at all.
HTML::first_html_column_nowrap ( OUT , 0 , "#e0e0e0" );
WRITE ( "<b>" );
- Localisation::write_0 ( OUT , D , I "Index.Elements.Ch.BasicKinds" );
+ Localisation::roman ( OUT , D , I "Index.Elements.Ch.BasicKinds" );
WRITE ( "</b>" );
ChartElement::index_kind_col_head ( OUT , I "Index.Elements.Ch.DefaultColumn" , "default" , D );
ChartElement::index_kind_col_head ( OUT , I "Index.Elements.Ch.RepeatColumn" , "repeat" , D );
@@ -161,7 +161,7 @@ higher up, but kinds with priority 0 do not appear in the index at all.
HTML::first_html_column_nowrap ( OUT , 0 , "#e0e0e0" );
WRITE ( "<b>" );
- Localisation::write_0 ( OUT , D , I "Index.Elements.Ch.NewKinds" );
+ Localisation::roman ( OUT , D , I "Index.Elements.Ch.NewKinds" );
WRITE ( "</b>" );
ChartElement::index_kind_col_head ( OUT , I "Index.Elements.Ch.DefaultColumn" , "default" , D );
ChartElement::index_kind_col_head ( OUT , NULL , NULL , D );
@@ -193,25 +193,25 @@ row.
HTML_OPEN_WITH ( "tr" , "style=\"display:none\" id=\"default\"" );
HTML_OPEN_WITH ( "td" , "colspan=\"5\"" );
- Localisation::write_0 ( OUT , D , I "Index.Elements.Ch.DefaultGloss" );
+ Localisation::roman ( OUT , D , I "Index.Elements.Ch.DefaultGloss" );
HTML_TAG ( "hr" );
HTML_CLOSE ( "td" );
HTML_CLOSE ( "tr" );
HTML_OPEN_WITH ( "tr" , "style=\"display:none\" id=\"repeat\"" );
HTML_OPEN_WITH ( "td" , "colspan=\"5\"" );
- Localisation::write_0 ( OUT , D , I "Index.Elements.Ch.RepeatGloss" );
+ Localisation::roman ( OUT , D , I "Index.Elements.Ch.RepeatGloss" );
HTML_TAG ( "hr" );
HTML_CLOSE ( "td" );
HTML_CLOSE ( "tr" );
HTML_OPEN_WITH ( "tr" , "style=\"display:none\" id=\"props\"" );
HTML_OPEN_WITH ( "td" , "colspan=\"5\"" );
- Localisation::write_0 ( OUT , D , I "Index.Elements.Ch.PropsGloss" );
+ Localisation::roman ( OUT , D , I "Index.Elements.Ch.PropsGloss" );
HTML_TAG ( "hr" );
HTML_CLOSE ( "td" );
HTML_CLOSE ( "tr" );
HTML_OPEN_WITH ( "tr" , "style=\"display:none\" id=\"under\"" );
HTML_OPEN_WITH ( "td" , "colspan=\"5\"" );
- Localisation::write_0 ( OUT , D , I "Index.Elements.Ch.UnderGloss" );
+ Localisation::roman ( OUT , D , I "Index.Elements.Ch.UnderGloss" );
HTML_TAG ( "hr" );
HTML_CLOSE ( "td" );
HTML_CLOSE ( "tr" );
@@ -262,7 +262,7 @@ or as paragraph of text in pass 2:
IndexUtilities::anchor_numbered ( OUT , i );
WRITE ( "<b>" ); IndexUtilities::kind_name ( OUT , pack , FALSE , TRUE ); WRITE ( "</b>" );
WRITE ( " (" );
- Localisation::italic_0 ( OUT , D , I "Index.Elements.Ch.Plural" );
+ Localisation::italic ( OUT , D , I "Index.Elements.Ch.Plural" );
WRITE ( " " );
IndexUtilities::kind_name ( OUT , pack , TRUE , FALSE ); WRITE ( ")" );
IndexUtilities::link_to_documentation ( OUT , pack );
@@ -330,7 +330,7 @@ or as paragraph of text in pass 2:
HTML_OPEN ( "p" );
HTML_TAG_WITH ( "a" , "name=contra" );
HTML_OPEN_WITH ( "span" , "class=\"smaller\"" );
- Localisation::write_0 ( OUT , D , I "Index.Elements.Ch.CovarianceGloss" );
+ Localisation::roman ( OUT , D , I "Index.Elements.Ch.CovarianceGloss" );
HTML_CLOSE ( "span" );
HTML_CLOSE ( "p" );
@@ -341,10 +341,10 @@ link is to the part of the rubric explaining what goes into the column.
void ChartElement::index_kind_col_head ( OUTPUT_STREAM , text_stream * key , char * anchor ,
- localisation_dictionary * D ) {
+ localisation_dictionary * D ) {
HTML::next_html_column_nowrap ( OUT , 0 );
WRITE ( "<i>" );
- if ( Str::len ( key ) > 0 ) Localisation::write_0 ( OUT , D , key );
+ if ( Str::len ( key ) > 0 ) Localisation::roman ( OUT , D , key );
WRITE ( "</i> " );
if ( anchor ) {
HTML_OPEN_WITH ( "a" , "href=\"#\" onClick=\"showBasic('%s');\"" , anchor );
@@ -428,7 +428,7 @@ whole row.
void ChartElement::index_subkinds ( OUTPUT_STREAM , tree_inventory * inv , inter_package * pack ,
- int depth , int pass , localisation_dictionary * D ) {
+ int depth , int pass , localisation_dictionary * D ) {
inter_package * subkind_pack ;
LOOP_OVER_INVENTORY_PACKAGES ( subkind_pack , i , inv -> kind_nodes )
if (( Metadata::read_optional_numeric ( subkind_pack , I "^is_base" )) &&
@@ -440,7 +440,7 @@ whole row.
}
void ChartElement::index_object_kind ( OUTPUT_STREAM , tree_inventory * inv ,
- inter_package * pack , int depth , int pass , localisation_dictionary * D ) {
+ inter_package * pack , int depth , int pass , localisation_dictionary * D ) {
if ( depth == MAX_OBJECT_INDEX_DEPTH ) internal_error ( "MAX_OBJECT_INDEX_DEPTH exceeded" );
inter_symbol * class_s = Metadata::read_optional_symbol ( pack , I "^object_class" );
if ( class_s == NULL ) internal_error ( "no class for object kind" );
@@ -499,7 +499,7 @@ whole row.
if ( pass == 2 ) WRITE ( "</b>" );
if ( pass == 2 ) {
WRITE ( " (" );
- Localisation::italic_0 ( OUT , D , I "Index.Elements.Ch.Plural" );
+ Localisation::italic ( OUT , D , I "Index.Elements.Ch.Plural" );
WRITE ( " " );
IndexUtilities::kind_name ( OUT , pack , TRUE , FALSE );
WRITE ( ")" );
diff --git a/docs/index-module/3-ce3.html b/docs/index-module/3-ce3.html
index ee0735be4..6fd073455 100644
--- a/docs/index-module/3-ce3.html
+++ b/docs/index-module/3-ce3.html
@@ -77,7 +77,7 @@ function togglePopup(material_id) {
-void CommandsElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void CommandsElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
linked_list * entries = NEW_LINKED_LIST ( command_index_entry );
@@ -219,20 +219,20 @@ as follows:
case OUT_OF_WORLD_COMMAND:
HTML::begin_colour ( OUT , I "800000" );
WRITE ( ""%S", " , cie -> command_headword );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Cm.Command" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Cm.Command" );
HTML::end_colour ( OUT );
HTML_TAG ( "br" );
break ;
case TESTING_COMMAND:
HTML::begin_colour ( OUT , I "800000" );
WRITE ( ""%S", " , cie -> command_headword );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Cm.TestingCommand" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Cm.TestingCommand" );
HTML::end_colour ( OUT );
HTML_TAG ( "br" );
break ;
case BARE_DIRECTION_COMMAND:
WRITE ( ""[direction]" - " );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Cm.DirectionCommand" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Cm.DirectionCommand" );
HTML_TAG ( "br" );
break ;
}
@@ -242,23 +242,23 @@ as follows:
void CommandsElement::index_normal ( OUTPUT_STREAM , inter_tree * I , inter_package * cg_pack ,
- text_stream * headword , localisation_dictionary * LD ) {
+ text_stream * headword , localisation_dictionary * LD ) {
inter_package * entry ;
LOOP_THROUGH_SUBPACKAGES ( entry , cg_pack , I "_cg_line" )
CommandsElement::index_grammar_line ( OUT , entry , headword , LD );
}
void CommandsElement::index_alias ( OUTPUT_STREAM , inter_tree * I , inter_package * cg_pack ,
- text_stream * headword , localisation_dictionary * LD ) {
+ text_stream * headword , localisation_dictionary * LD ) {
WRITE ( ""%S", " , headword );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Cm.Alias" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Cm.Alias" );
WRITE ( " "%S"" , Metadata::read_textual ( cg_pack , I "^command" ));
IndexUtilities::link_package ( OUT , cg_pack );
HTML_TAG ( "br" );
}
void CommandsElement::index_grammar_line ( OUTPUT_STREAM , inter_package * cgl ,
- text_stream * headword , localisation_dictionary * LD ) {
+ text_stream * headword , localisation_dictionary * LD ) {
inter_symbol * an_s = Metadata::read_optional_symbol ( cgl , I "^action" );
if ( an_s == NULL ) return ;
inter_package * an = Inter::Packages::container ( an_s -> definition );
@@ -276,7 +276,7 @@ as follows:
( int ) Metadata::read_numeric ( an , I "action_id" ), TRUE );
if ( Metadata::read_optional_numeric ( cgl , I "^reversed" )) {
WRITE ( " " );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Cm.Reversed" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Cm.Reversed" );
}
if ( oow ) HTML::end_colour ( OUT );
HTML_TAG ( "br" );
diff --git a/docs/index-module/3-ce4.html b/docs/index-module/3-ce4.html
index 0d8498464..225d69b06 100644
--- a/docs/index-module/3-ce4.html
+++ b/docs/index-module/3-ce4.html
@@ -76,7 +76,7 @@ function togglePopup(material_id) {
-void ContentsElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void ContentsElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
tree_inventory * inv = Synoptic::inv ( I );
TreeLists::sort ( inv -> extension_nodes , Synoptic::category_order );
@@ -98,9 +98,9 @@ function togglePopup(material_id) {
text_stream * author = Metadata::read_optional_textual ( pack , I "^author" );
if ( Str::len ( title ) > 0 ) {
if ( Str::len ( author ) > 0 )
- Localisation::write_2 ( OUT , LD , I "Index.Elements.C.Titling" , title , author );
+ Localisation::roman_tt ( OUT , LD , I "Index.Elements.C.Titling" , title , author );
else
- Localisation::write_1 ( OUT , LD , I "Index.Elements.C.AnonymousTitling" , title );
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.C.AnonymousTitling" , title );
}
WRITE ( "</b>" );
HTML_CLOSE ( "p" );
@@ -111,7 +111,7 @@ function togglePopup(material_id) {
HTML_OPEN ( "p" );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.C.ContentsHeading" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.C.ContentsHeading" );
HTML_CLOSE ( "p" );
int min_positive_level = 10 , entries_written = 0 ;
inter_package * heading_pack ;
@@ -129,7 +129,7 @@ function togglePopup(material_id) {
if ( entries_written == 0 ) {
HTML_OPEN ( "p" );
WRITE ( "(" );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.C.NoContents" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.C.NoContents" );
WRITE ( ")" );
HTML_CLOSE ( "p" );
WRITE ( "\n" );
@@ -174,7 +174,7 @@ function togglePopup(material_id) {
HTML_OPEN ( "p" );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.C.ExtensionsHeading" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.C.ExtensionsHeading" );
HTML_CLOSE ( "p" );
ContentsElement::index_extensions_included_by ( OUT , inv , NULL , FALSE , LD );
inter_package * ext_pack ;
@@ -192,7 +192,7 @@ function togglePopup(material_id) {
void ContentsElement::index_extensions_included_by ( OUTPUT_STREAM , tree_inventory * inv ,
- inter_symbol * owner_id , int auto_included , localisation_dictionary * LD ) {
+ inter_symbol * owner_id , int auto_included , localisation_dictionary * LD ) {
int show_head = TRUE ;
inter_package * pack ;
LOOP_OVER_INVENTORY_PACKAGES ( pack , i , inv -> extension_nodes ) {
@@ -205,12 +205,12 @@ function togglePopup(material_id) {
HTML::open_indented_p ( OUT , 2 , "hanging" );
HTML::begin_colour ( OUT , I "808080" );
if ( auto_included == TRUE )
- Localisation::write_0 ( OUT , LD , I "Index.Elements.C.IncludedAutomatically" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.C.IncludedAutomatically" );
else if ( auto_included == FALSE )
- Localisation::write_0 ( OUT , LD , I "Index.Elements.C.IncludedFromSource" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.C.IncludedFromSource" );
else {
inter_package * owner_pack = Inter::Packages::container ( owner_id -> definition );
- Localisation::write_1 ( OUT , LD , I "Index.Elements.C.IncludedBy" ,
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.C.IncludedBy" ,
Metadata::read_optional_textual ( owner_pack , I "^title" ));
}
HTML::end_colour ( OUT );
@@ -239,7 +239,7 @@ function togglePopup(material_id) {
text_stream * v = Metadata::read_textual ( pack , I "^version" );
if ( Str::len ( v ) > 0 ) {
HTML_OPEN_WITH ( "span" , "class=\"smaller\"" );
- Localisation::write_1 ( OUT , LD , I "Index.Elements.C.Version" , v );
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.C.Version" , v );
HTML_CLOSE ( "span" );
WRITE ( " " );
}
@@ -266,8 +266,8 @@ function togglePopup(material_id) {
void ContentsElement::word_count ( OUTPUT_STREAM , inter_package * pack ,
- localisation_dictionary * LD ) {
- Localisation::write_1n ( OUT , LD , I "Index.Elements.C.Words" ,
+ localisation_dictionary * LD ) {
+ Localisation::roman_i ( OUT , LD , I "Index.Elements.C.Words" ,
( int ) Metadata::read_numeric ( pack , I "^word_count" ));
}
diff --git a/docs/index-module/3-ee.html b/docs/index-module/3-ee.html
index db58fa575..4fb53965a 100644
--- a/docs/index-module/3-ee.html
+++ b/docs/index-module/3-ee.html
@@ -76,7 +76,7 @@ function togglePopup(material_id) {
-void EventsElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void EventsElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
tree_inventory * inv = Synoptic::inv ( I );
TreeLists::sort ( inv -> rule_nodes , Synoptic::module_order );
@@ -86,7 +86,7 @@ function togglePopup(material_id) {
Index timetabled events 1.2 ;
if (( when_count == 0 ) && ( tt_count == 0 )) {
HTML_OPEN ( "p" );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Ev.None" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Ev.None" );
HTML_CLOSE ( "p" );
}
}
@@ -101,7 +101,7 @@ function togglePopup(material_id) {
( Metadata::exists ( pack , I "^timed_for" ) == FALSE )) {
if ( when_count == 0 ) {
HTML_OPEN ( "p" );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Ev.Timeless" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Ev.Timeless" );
HTML_CLOSE ( "p" );
}
when_count ++;
@@ -109,7 +109,7 @@ function togglePopup(material_id) {
WRITE ( "%S" , Metadata::read_textual ( pack , I "^preamble" ));
IndexUtilities::link_package ( OUT , pack );
WRITE ( " (" );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.Ev.WhereTriggered" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.Ev.WhereTriggered" );
WRITE ( ": " );
inter_package * entry ;
LOOP_THROUGH_SUBPACKAGES ( entry , pack , I "_timed_rule_trigger" ) {
@@ -131,7 +131,7 @@ function togglePopup(material_id) {
( Metadata::exists ( pack , I "^timed_for" ))) {
if ( tt_count == 0 ) {
HTML_OPEN ( "p" );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Ev.Timetable" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Ev.Timetable" );
HTML_CLOSE ( "p" );
}
tt_count ++;
diff --git a/docs/index-module/3-ee2.html b/docs/index-module/3-ee2.html
index 4b6f14c90..88abc7ea4 100644
--- a/docs/index-module/3-ee2.html
+++ b/docs/index-module/3-ee2.html
@@ -77,7 +77,7 @@ really, and most of the code here is just to arrange them in some logical order.
-void ExtrasElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void ExtrasElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
tree_inventory * inv = Synoptic::inv ( I );
TreeLists::sort ( inv -> rulebook_nodes , Synoptic::module_order );
@@ -122,9 +122,9 @@ really, and most of the code here is just to arrange them in some logical order.
HTML_OPEN ( "p" );
WRITE ( "<b>" );
if ( Metadata::read_optional_numeric ( E , I "^category" ) == 1 ) {
- Localisation::write_0 ( OUT , LD , I "Index.Elements.Xt.FromSourceText" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.Xt.FromSourceText" );
} else {
- Localisation::write_1 ( OUT , LD , I "Index.Elements.Xt.FromExtension" ,
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.Xt.FromExtension" ,
Metadata::read_optional_textual ( E , I "^credit" ));
}
WRITE ( "</b>" );
diff --git a/docs/index-module/3-fe.html b/docs/index-module/3-fe.html
index acdcee194..5251039fa 100644
--- a/docs/index-module/3-fe.html
+++ b/docs/index-module/3-fe.html
@@ -78,7 +78,7 @@ function togglePopup(material_id) {
-void FiguresElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void FiguresElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
tree_inventory * inv = Synoptic::inv ( I );
TreeLists::sort ( inv -> figure_nodes , Synoptic::module_order );
@@ -95,11 +95,11 @@ function togglePopup(material_id) {
if ( TreeLists::len ( inv -> figure_nodes ) <= 1 ) {
HTML_OPEN ( "p" );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.Fi.NoFigures" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.Fi.NoFigures" );
HTML_CLOSE ( "p" );
} else {
HTML_OPEN ( "p" );
- Localisation::bold_0 ( OUT , LD , I "Index.Elements.Fi.ListOfFigures" );
+ Localisation::bold ( OUT , LD , I "Index.Elements.Fi.ListOfFigures" );
HTML_CLOSE ( "p" );
Tabulate the figures 1.1.1 ;
}
@@ -139,7 +139,7 @@ to match this width, preserving the aspect ratio.
if ( count_of_displayed_figures > MAX_INDEXED_FIGURES ) {
HTML_OPEN ( "p" );
WRITE ( "(" );
- Localisation::write_2n ( OUT , LD , I "Index.Elements.Fi.ThumbnailLimit" ,
+ Localisation::roman_ii ( OUT , LD , I "Index.Elements.Fi.ThumbnailLimit" ,
MAX_INDEXED_FIGURES , 10 * MAX_INDEXED_FIGURES );
WRITE ( ")" );
HTML_CLOSE ( "p" );
@@ -164,15 +164,15 @@ to match this width, preserving the aspect ratio.
}
}
if ( format_found == 0 ) {
- Localisation::italic_0 ( description , LD , I "Index.Elements.Fi.UnknownFormat" );
+ Localisation::italic ( description , LD , I "Index.Elements.Fi.UnknownFormat" );
} else {
- Localisation::write_1 ( description , LD , I "Index.Elements.Fi.Format" , real_format );
+ Localisation::roman_t ( description , LD , I "Index.Elements.Fi.Format" , real_format );
WRITE_TO ( description , ": " );
- Localisation::write_2n ( description , LD , I "Index.Elements.Fi.Dimensions" ,
+ Localisation::roman_ii ( description , LD , I "Index.Elements.Fi.Dimensions" ,
( int ) width , ( int ) height );
}
} else {
- Localisation::italic_0 ( description , LD , I "Index.Elements.Fi.Missing" );
+ Localisation::italic ( description , LD , I "Index.Elements.Fi.Missing" );
}
This code is used in §1.1.1 .
@@ -206,7 +206,7 @@ to match this width, preserving the aspect ratio.
WRITE ( "%S" , description );
HTML_TAG ( "br" );
}
- Localisation::write_2sn ( description , LD , I "Index.Elements.Fi.Resource" ,
+ Localisation::roman_ti ( description , LD , I "Index.Elements.Fi.Resource" ,
Filenames::get_leafname ( F ), ( int ) id );
HTML::end_html_row ( OUT );
@@ -217,10 +217,10 @@ to match this width, preserving the aspect ratio.
if ( TreeLists::len ( inv -> sound_nodes ) == 0 ) {
HTML_OPEN ( "p" );
- Localisation::bold_0 ( OUT , LD , I "Index.Elements.Fi.ListOfSounds" );
+ Localisation::bold ( OUT , LD , I "Index.Elements.Fi.ListOfSounds" );
HTML_CLOSE ( "p" );
HTML_OPEN ( "p" );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.Fi.NoSounds" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.Fi.NoSounds" );
HTML_CLOSE ( "p" );
} else {
Tabulate the sounds 1.2.1 ;
@@ -283,13 +283,13 @@ to match this width, preserving the aspect ratio.
}
}
if ( format_found == 0 ) {
- Localisation::italic_0 ( description , LD , I "Index.Elements.Fi.UnknownSoundFormat" );
+ Localisation::italic ( description , LD , I "Index.Elements.Fi.UnknownSoundFormat" );
} else {
if ( waveform_style == FALSE ) Describe sound in MIDI format 1.2.1.1.1
else Describe sound in waveform format 1.2.1.1.2 ;
}
} else {
- Localisation::italic_0 ( description , LD , I "Index.Elements.Fi.MissingSound" );
+ Localisation::italic ( description , LD , I "Index.Elements.Fi.MissingSound" );
}
This code is used in §1.2.1 .
@@ -298,14 +298,14 @@ to match this width, preserving the aspect ratio.
if ( no_tracks == 1 ) {
- Localisation::write_2ns ( description , LD , I "Index.Elements.Fi.SoundFormatOneTrack" ,
+ Localisation::roman_it ( description , LD , I "Index.Elements.Fi.SoundFormatOneTrack" ,
( int ) midi_version , real_format );
} else {
- Localisation::write_3nsn ( description , LD , I "Index.Elements.Fi.SoundFormatMultiTrack" ,
+ Localisation::write_iti ( description , LD , I "Index.Elements.Fi.SoundFormatMultiTrack" ,
( int ) midi_version , real_format , ( int ) no_tracks );
}
WRITE_TO ( description , " - " );
- Localisation::italic_0 ( description , LD , I "Index.Elements.Fi.SoundUnsupported" );
+ Localisation::italic ( description , LD , I "Index.Elements.Fi.SoundUnsupported" );
This code is used in §1.2.1.1 .
TEMPORARY_TEXT ( size )
WRITE_TO ( size , "%d.%01dKB" , fsize /1024, ( fsize %1024)/102);
- Localisation::write_2 ( description , LD , I "Index.Elements.Fi.SoundFile" , size , real_format );
+ Localisation::roman_tt ( description , LD , I "Index.Elements.Fi.SoundFile" , size , real_format );
DISCARD_TEXT ( size )
int min = ( duration /6000), sec = ( duration %6000)/100, centisec = ( duration %100);
WRITE_TO ( description , ": " );
@@ -323,27 +323,27 @@ to match this width, preserving the aspect ratio.
else WRITE_TO ( seconds , "%d.%02d" , sec , centisec );
if ( min > 0 ) {
if (( sec > 0 ) || ( centisec > 0 )) {
- Localisation::write_2ns ( description , LD , I "Index.Elements.Fi.DurationMS" ,
+ Localisation::roman_it ( description , LD , I "Index.Elements.Fi.DurationMS" ,
min , seconds );
} else {
- Localisation::write_1n ( description , LD , I "Index.Elements.Fi.DurationM" , min );
+ Localisation::roman_i ( description , LD , I "Index.Elements.Fi.DurationM" , min );
}
} else {
- Localisation::write_1 ( description , LD , I "Index.Elements.Fi.DurationS" , seconds );
+ Localisation::roman_t ( description , LD , I "Index.Elements.Fi.DurationS" , seconds );
}
DISCARD_TEXT ( seconds )
WRITE_TO ( description , "<br>" );
TEMPORARY_TEXT ( sample )
WRITE_TO ( sample , "%d.%01dkHz" , pSampleRate /1000, ( pSampleRate %1000)/100);
- Localisation::write_1 ( OUT , LD , I "Index.Elements.Fi.Sampled" , sample );
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.Fi.Sampled" , sample );
DISCARD_TEXT ( sample )
WRITE_TO ( description , " " );
- if ( pChannels == 1 ) Localisation::write_0 ( OUT , LD , I "Index.Elements.Fi.Mono" );
- else Localisation::write_0 ( OUT , LD , I "Index.Elements.Fi.Stereo" );
+ if ( pChannels == 1 ) Localisation::roman ( OUT , LD , I "Index.Elements.Fi.Mono" );
+ else Localisation::roman ( OUT , LD , I "Index.Elements.Fi.Stereo" );
WRITE_TO ( description , " (" );
TEMPORARY_TEXT ( bitrate )
WRITE_TO ( bitrate , "%d.%01d" , pBitsPerSecond /1000, ( pSampleRate %1000)/100);
- Localisation::write_1 ( OUT , LD , I "Index.Elements.Fi.BitRate" , bitrate );
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.Fi.BitRate" , bitrate );
DISCARD_TEXT ( bitrate )
WRITE_TO ( description , ")" );
@@ -373,7 +373,7 @@ to match this width, preserving the aspect ratio.
WRITE ( "%S" , description );
HTML_TAG ( "br" );
}
- Localisation::write_2sn ( description , LD , I "Index.Elements.Fi.Resource" ,
+ Localisation::roman_ti ( description , LD , I "Index.Elements.Fi.Resource" ,
Filenames::get_leafname ( F ), ( int ) id );
HTML::end_html_row ( OUT );
@@ -387,11 +387,11 @@ to match this width, preserving the aspect ratio.
if ( TreeLists::len ( inv -> file_nodes ) == 0 ) {
HTML_OPEN ( "p" );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.Fi.NoFiles" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.Fi.NoFiles" );
HTML_CLOSE ( "p" );
} else {
HTML_OPEN ( "p" );
- Localisation::bold_0 ( OUT , LD , I "Index.Elements.Fi.ListOfFiles" );
+ Localisation::bold ( OUT , LD , I "Index.Elements.Fi.ListOfFiles" );
HTML_CLOSE ( "p" );
Tabulate the files 1.3.1 ;
}
@@ -417,18 +417,18 @@ to match this width, preserving the aspect ratio.
IndexUtilities::link_package ( OUT , pack );
HTML_TAG ( "br" );
if ( is_binary )
- Localisation::write_1 ( OUT , LD , I "Index.Elements.Fi.BinaryFile" ,
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.Fi.BinaryFile" ,
Metadata::read_textual ( pack , I "^leafname" ));
else
- Localisation::write_1 ( OUT , LD , I "Index.Elements.Fi.TextFile" ,
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.Fi.TextFile" ,
Metadata::read_textual ( pack , I "^leafname" ));
WRITE ( " - " );
if ( Metadata::read_optional_numeric ( pack , I "^file_owned" )) {
- Localisation::write_0 ( OUT , LD , I "Index.Elements.Fi.FileOwnedByThis" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.Fi.FileOwnedByThis" );
} else if ( Metadata::read_optional_numeric ( pack , I "^file_owned_by_other" )) {
- Localisation::write_0 ( OUT , LD , I "Index.Elements.Fi.FileOwnedByOther" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.Fi.FileOwnedByOther" );
} else {
- Localisation::write_1 ( OUT , LD , I "Index.Elements.Fi.FileOwnedBy" ,
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.Fi.FileOwnedBy" ,
Metadata::read_textual ( pack , I "^file_owner" ));
}
HTML::end_html_row ( OUT );
diff --git a/docs/index-module/3-ge.html b/docs/index-module/3-ge.html
index 999ff4c73..0479512ba 100644
--- a/docs/index-module/3-ge.html
+++ b/docs/index-module/3-ge.html
@@ -75,7 +75,7 @@ function togglePopup(material_id) {
-void GazetteerElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void GazetteerElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
IndexLexicon::listing ( OUT , InterpretIndex::get_lexicon (), TRUE , LD );
}
diff --git a/docs/index-module/3-ge2.html b/docs/index-module/3-ge2.html
index 90066d933..7411e493a 100644
--- a/docs/index-module/3-ge2.html
+++ b/docs/index-module/3-ge2.html
@@ -76,7 +76,7 @@ function togglePopup(material_id) {
-void GroupedElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void GroupedElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
tree_inventory * inv = Synoptic::inv ( I );
TreeLists::sort ( inv -> action_nodes , Synoptic::module_order );
@@ -125,7 +125,7 @@ page for each action.
-void GroupedElement::detail_pages ( localisation_dictionary * LD ) {
+void GroupedElement::detail_pages ( localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
tree_inventory * inv = Synoptic::inv ( I );
TreeLists::sort ( inv -> action_nodes , Synoptic::module_order );
@@ -193,11 +193,11 @@ page for each action.
IndexUtilities::link_package ( OUT , an_pack );
if ( requires_light ) {
WRITE ( " (" );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.A1.RequiresLight" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.A1.RequiresLight" );
WRITE ( ")" );
}
WRITE ( " (" );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.A1.PastTense" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.A1.PastTense" );
WRITE ( " %S)" , Metadata::read_optional_textual ( an_pack , I "^past_name" ));
text_stream * spec = Metadata::read_optional_textual ( an_pack , I "^specification" );
if ( Str::len ( spec ) > 0 ) WRITE ( ": %S" , spec );
@@ -211,7 +211,7 @@ page for each action.
HTML_OPEN ( "p" );
- Localisation::bold_0 ( OUT , LD , I "Index.Elements.A1.CommandsHeading" );
+ Localisation::bold ( OUT , LD , I "Index.Elements.A1.CommandsHeading" );
HTML_CLOSE ( "p" );
HTML_OPEN ( "p" );
int producers = 0 ;
@@ -222,7 +222,7 @@ page for each action.
Inter::Packages::container ( xref -> definition ), NULL , LD );
producers ++;
}
- if ( producers == 0 ) Localisation::bold_0 ( OUT , LD , I "Index.Elements.A1.NoCommands" );
+ if ( producers == 0 ) Localisation::bold ( OUT , LD , I "Index.Elements.A1.NoCommands" );
HTML_CLOSE ( "p" );
This code is used in §2.1 .
@@ -232,7 +232,7 @@ page for each action.
if ( GroupedElement::no_vars ( an_pack , I ) > 0 ) {
HTML_OPEN ( "p" );
- Localisation::bold_0 ( OUT , LD , I "Index.Elements.A1.ValuesHeading" );
+ Localisation::bold ( OUT , LD , I "Index.Elements.A1.ValuesHeading" );
HTML_CLOSE ( "p" );
GroupedElement::index_shv_set ( OUT , I , an_pack );
}
@@ -243,7 +243,7 @@ page for each action.
HTML_OPEN ( "p" );
- Localisation::bold_0 ( OUT , LD , I "Index.Elements.A1.RulesHeading" );
+ Localisation::bold ( OUT , LD , I "Index.Elements.A1.RulesHeading" );
HTML_CLOSE ( "p" );
HTML_OPEN ( "p" );
int resp_count = 0 ;
@@ -277,7 +277,7 @@ page for each action.
resp_count += IndexRules::index_action_rules ( OUT , inv , an_pack , report_pack ,
I "report" , I "report" , LD );
if ( resp_count > 1 ) {
- Localisation::write_0 ( OUT , LD , I "Index.Elements.A1.ResponseIcons" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.A1.ResponseIcons" );
WRITE ( ": " );
IndexUtilities::extra_all_link_with ( OUT , TreeLists::len ( inv -> rule_nodes ), "responses" );
WRITE ( "%d" , resp_count );
diff --git a/docs/index-module/3-ie.html b/docs/index-module/3-ie.html
index 0dfacbb59..71255acec 100644
--- a/docs/index-module/3-ie.html
+++ b/docs/index-module/3-ie.html
@@ -77,7 +77,7 @@ technical implementation rather than the content of a work.
-void InnardsElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void InnardsElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
tree_inventory * inv = Synoptic::inv ( I );
TreeLists::sort ( inv -> use_option_nodes , Synoptic::module_order );
@@ -87,7 +87,7 @@ technical implementation rather than the content of a work.
HTML_OPEN ( "p" );
IndexUtilities::extra_link ( OUT , 3 );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.In.Technicalities" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.In.Technicalities" );
HTML_CLOSE ( "p" );
IndexUtilities::extra_div_open ( OUT , 3 , 2 , "e0e0e0" );
HTML_OPEN ( "p" );
@@ -103,7 +103,7 @@ technical implementation rather than the content of a work.
IndexUtilities::anchor ( OUT , I "STORYFILE" );
HTML_OPEN ( "p" );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.In.Format" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.In.Format" );
WRITE ( ": " );
inter_package * pack = Inter::Packages::by_url ( I , I "/main/completion/basics" );
text_stream * VM = Metadata::read_optional_textual ( pack , I "^virtual_machine" );
@@ -121,7 +121,7 @@ technical implementation rather than the content of a work.
HTML_OPEN ( "p" );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.In.ActiveUseOptions" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.In.ActiveUseOptions" );
WRITE ( ":" );
HTML_CLOSE ( "p" );
InnardsElement::index_options_in_force_from ( OUT , inv , MAIN_TEXT_UO_ORIGIN , NULL , LD );
@@ -131,7 +131,7 @@ technical implementation rather than the content of a work.
InnardsElement::index_options_in_force_from ( OUT , inv , EXTENSION_UO_ORIGIN , E , LD );
int c = 0 ;
HTML_OPEN ( "p" );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.In.InactiveUseOptions" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.In.InactiveUseOptions" );
WRITE ( ":" );
HTML_CLOSE ( "p" );
HTML::open_indented_p ( OUT , 2 , "tight" );
@@ -144,7 +144,7 @@ technical implementation rather than the content of a work.
if ( c ++ > 0 ) WRITE ( ", " );
}
}
- if ( c == 0 ) Localisation::write_0 ( OUT , LD , I "Index.Elements.In.NoUseOptions" );
+ if ( c == 0 ) Localisation::roman ( OUT , LD , I "Index.Elements.In.NoUseOptions" );
HTML_CLOSE ( "p" );
@@ -166,7 +166,7 @@ technical implementation rather than the content of a work.
HTML_OPEN ( "p" );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.In.LanguageDefinition" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.In.LanguageDefinition" );
WRITE ( ":" );
HTML_CLOSE ( "p" );
HTML_OPEN ( "p" );
@@ -174,10 +174,10 @@ technical implementation rather than the content of a work.
text_stream * used = Metadata::read_optional_textual ( pack , I "^language_elements_used" );
text_stream * not_used = Metadata::read_optional_textual ( pack , I "^language_elements_not_used" );
if ( Str::len ( used ) > 0 )
- Localisation::write_1 ( OUT , LD , I "Index.Elements.In.Included" , used );
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.In.Included" , used );
if (( Str::len ( used ) > 0 ) && ( Str::len ( not_used ) > 0 )) WRITE ( "<br>" );
if ( Str::len ( not_used ) > 0 )
- Localisation::write_1 ( OUT , LD , I "Index.Elements.In.Excluded" , not_used );
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.In.Excluded" , not_used );
HTML_CLOSE ( "p" );
@@ -186,7 +186,7 @@ technical implementation rather than the content of a work.
HTML_OPEN ( "p" );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.In.Log" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.In.Log" );
WRITE ( ":" );
HTML_CLOSE ( "p" );
HTML_OPEN ( "p" );
@@ -244,7 +244,7 @@ except for
@@ -378,7 +378,7 @@ will be things which are offstage (and their contents and any parts thereof):
-void MapElement::index_usages ( OUTPUT_STREAM , faux_instance * I , localisation_dictionary * LD ) {
+void MapElement::index_usages ( OUTPUT_STREAM , faux_instance * I , localisation_dictionary * LD ) {
int k = 0 ;
inter_package * pack = I -> package ;
inter_tree_node * P = Metadata::read_optional_list ( pack , I "^backdrop_presences" );
@@ -390,7 +390,7 @@ will be things which are offstage (and their contents and any parts thereof):
k ++;
if ( k == 1 ) {
HTML::open_indented_p ( OUT , 1 , "tight" );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Mp.MentionedIn" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Mp.MentionedIn" );
WRITE ( ": " );
} else WRITE ( "; " );
IndexUtilities::link ( OUT , ( int ) v2 );
@@ -417,18 +417,18 @@ will be things which are offstage (and their contents and any parts thereof):
}
int MapElement::annotate_player ( OUTPUT_STREAM , faux_instance * I ,
- localisation_dictionary * LD ) {
+ localisation_dictionary * LD ) {
if ( I == FauxInstances::start_room ()) {
WRITE ( " - " );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Mp.RoomWherePlayBegins" );
- IndexUtilities::DocReferences::link ( OUT , I "ROOMPLAYBEGINS" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Mp.RoomWherePlayBegins" );
+ DocReferences::link ( OUT , I "ROOMPLAYBEGINS" );
return TRUE ;
}
return FALSE ;
}
int MapElement::annotate_door ( OUTPUT_STREAM , faux_instance * O ,
- localisation_dictionary * LD ) {
+ localisation_dictionary * LD ) {
if (( O ) && ( FauxInstances::is_a_door ( O ))) {
faux_instance * A = NULL , * B = NULL ;
FauxInstances::get_door_data ( O , & A , & B );
@@ -439,8 +439,8 @@ will be things which are offstage (and their contents and any parts thereof):
if ( X == NULL ) WRITE_TO ( to , "nowhere" );
else FauxInstances::write_name ( to , X );
WRITE ( " - " );
- if (( A ) && ( B )) Localisation::italic_1 ( OUT , LD , I "Index.Elements.Mp.DoorTo" , to );
- else Localisation::italic_1 ( OUT , LD , I "Index.Elements.Mp.OneSidedDoorTo" , to );
+ if (( A ) && ( B )) Localisation::italic_t ( OUT , LD , I "Index.Elements.Mp.DoorTo" , to );
+ else Localisation::italic_t ( OUT , LD , I "Index.Elements.Mp.OneSidedDoorTo" , to );
DISCARD_TEXT ( to )
return TRUE ;
}
@@ -451,7 +451,7 @@ will be things which are offstage (and their contents and any parts thereof):
void MapElement::index_spatial_relationship ( OUTPUT_STREAM , faux_instance * I ,
- localisation_dictionary * LD ) {
+ localisation_dictionary * LD ) {
text_stream * rel = NULL ;
faux_instance * P = FauxInstances::progenitor ( I );
if ( P ) {
@@ -462,7 +462,7 @@ will be things which are offstage (and their contents and any parts thereof):
if ( FauxInstances::is_worn ( I )) rel = I "Index.Elements.Mp.BriefWorn" ;
}
if ( rel ) {
- Localisation::italic_0 ( OUT , LD , rel );
+ Localisation::italic ( OUT , LD , rel );
WRITE ( " " );
}
}
@@ -482,7 +482,7 @@ it already turns up under its owner.
void MapElement::index_object_further ( OUTPUT_STREAM , faux_instance * I , int depth ,
- int details , localisation_dictionary * LD ) {
+ int details , localisation_dictionary * LD ) {
faux_instance_set * faux_set = InterpretIndex::get_faux_instances ();
if ( depth > NUMBER_CREATED ( faux_instance ) + 1 ) return ;
if ( FauxInstances::incorp_child ( I )) {
@@ -518,7 +518,7 @@ it already turns up under its owner.
int MapElement::add_to_World_index ( OUTPUT_STREAM , faux_instance * O ,
- localisation_dictionary * LD ) {
+ localisation_dictionary * LD ) {
if (( O ) && ( FauxInstances::is_a_thing ( O ))) {
HTML::open_indented_p ( OUT , 1 , "tight" );
faux_instance * P = FauxInstances::progenitor ( O );
@@ -531,7 +531,7 @@ it already turns up under its owner.
if ( FauxInstances::is_worn ( O )) rel = I "Index.Elements.Mp.Worn" ;
TEMPORARY_TEXT ( to )
FauxInstances::write_name ( to , P );
- Localisation::italic_1 ( OUT , LD , rel , to );
+ Localisation::italic_t ( OUT , LD , rel , to );
WRITE ( " " );
DISCARD_TEXT ( to )
int at = FauxInstances::progenitor_set_at ( O );
@@ -544,7 +544,7 @@ it already turns up under its owner.
}
void MapElement::index_player_further ( OUTPUT_STREAM , faux_instance * I , int depth ,
- int details , localisation_dictionary * LD ) {
+ int details , localisation_dictionary * LD ) {
faux_instance * yourself = FauxInstances::yourself ();
if (( I == FauxInstances::start_room ()) && ( yourself ) &&
( FauxInstances::indexed_yet ( yourself ) == FALSE ))
@@ -552,7 +552,7 @@ it already turns up under its owner.
}
void MapElement::index_backdrop_further ( OUTPUT_STREAM , faux_instance * loc , int depth ,
- int details , int how , localisation_dictionary * LD ) {
+ int details , int how , localisation_dictionary * LD ) {
faux_instance_set * faux_set = InterpretIndex::get_faux_instances ();
int discoveries = 0 ;
faux_instance * bd ;
@@ -577,7 +577,7 @@ it already turns up under its owner.
switch ( how ) {
case 1 : HTML_OPEN ( "p" );
- Localisation::bold_0 ( OUT , LD , I "Index.Elements.Mp.EverywhereHeading" );
+ Localisation::bold ( OUT , LD , I "Index.Elements.Mp.EverywhereHeading" );
HTML_TAG ( "br" ); break ;
case 2 : HTML_TAG ( "br" ); break ;
}
diff --git a/docs/index-module/3-pe.html b/docs/index-module/3-pe.html
index ebac49881..10c54dbe5 100644
--- a/docs/index-module/3-pe.html
+++ b/docs/index-module/3-pe.html
@@ -75,7 +75,7 @@ function togglePopup(material_id) {
-void PhrasebookElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void PhrasebookElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
inter_package * pack = Inter::Packages::by_url ( I , I "/main/completion/phrases" );
for ( int pass = 1 ; pass <= 2 ; pass ++) {
diff --git a/docs/index-module/3-pe2.html b/docs/index-module/3-pe2.html
index 602266cd7..b5ef9a5bb 100644
--- a/docs/index-module/3-pe2.html
+++ b/docs/index-module/3-pe2.html
@@ -83,7 +83,7 @@ seems natural enough to learn in practice.
-void PlotElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void PlotElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
tree_inventory * inv = Synoptic::inv ( I );
TreeLists::sort ( inv -> scene_nodes , PlotElement::scene_order );
@@ -128,7 +128,7 @@ about and created but never made use of.)
HTML_OPEN ( "p" );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Pl.LegendHeading" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Pl.LegendHeading" );
WRITE ( ": " );
PlotElement::scene_icon_legend ( OUT , "WPB" , LD , I "Index.Elements.Pl.WPBLegend" );
WRITE ( "; " );
@@ -144,7 +144,7 @@ about and created but never made use of.)
WRITE ( "; " );
PlotElement::scene_icon_legend ( OUT , "Recurring" , LD , I "Index.Elements.Pl.RecurringLegend" );
WRITE ( ". " );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Pl.LegendNote" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Pl.LegendNote" );
HTML_CLOSE ( "p" );
@@ -189,12 +189,12 @@ fact, end.
HTML::open_indented_p ( OUT , 1 , "hanging" );
IndexUtilities::anchor_numbered ( OUT , ssc -> allocation_id );
- Localisation::bold_1 ( OUT , LD , I "Index.Elements.Pl.SceneName" ,
+ Localisation::bold_t ( OUT , LD , I "Index.Elements.Pl.SceneName" ,
Metadata::read_textual ( ssc -> pack , I "^name" ));
IndexUtilities::link_package ( OUT , ssc -> pack );
if ( FauxScenes::recurs ( ssc )) {
WRITE ( " " );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Pl.Recurring" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Pl.Recurring" );
}
HTML_CLOSE ( "p" );
@@ -204,7 +204,7 @@ fact, end.
HTML::open_indented_p ( OUT , 1 , "tight" );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.Pl.EntireGame" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.Pl.EntireGame" );
HTML_CLOSE ( "p" );
This code is used in §1.3.1 .
@@ -219,7 +219,7 @@ fact, end.
IndexRules::scene_context ( ssc )) == FALSE ) {
if ( rbc ++ == 0 ) {
HTML::open_indented_p ( OUT , 1 , "hanging" );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Pl.During" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Pl.During" );
HTML_CLOSE ( "p" );
}
HTML::open_indented_p ( OUT , 2 , "hanging" );
@@ -235,16 +235,16 @@ fact, end.
HTML::open_indented_p ( OUT , 1 , "hanging" );
- if ( end == 0 ) Localisation::italic_0 ( OUT , LD , I "Index.Elements.Pl.BeginsWhen" );
- if ( end == 1 ) Localisation::italic_0 ( OUT , LD , I "Index.Elements.Pl.EndsWhen" );
- if ( end >= 2 ) Localisation::italic_1 ( OUT , LD , I "Index.Elements.Pl.EndsUnusuallyWhen" ,
+ if ( end == 0 ) Localisation::italic ( OUT , LD , I "Index.Elements.Pl.BeginsWhen" );
+ if ( end == 1 ) Localisation::italic ( OUT , LD , I "Index.Elements.Pl.EndsWhen" );
+ if ( end >= 2 ) Localisation::italic_t ( OUT , LD , I "Index.Elements.Pl.EndsUnusuallyWhen" ,
FauxScenes::end_name ( ssc -> ends [ end ]));
WRITE ( " " );
int count = 0 ;
Index the play-begins condition 1.3.1.4.1 ;
Index the I7 condition for a scene to end 1.3.1.4.2 ;
Index connections to other scene ends 1.3.1.4.3 ;
- if ( count == 0 ) Localisation::bold_0 ( OUT , LD , I "Index.Elements.Pl.Never" );
+ if ( count == 0 ) Localisation::bold ( OUT , LD , I "Index.Elements.Pl.Never" );
HTML_CLOSE ( "p" );
This code is used in §1.3.1 .
@@ -255,7 +255,7 @@ fact, end.
if (( end ==0) && ( FauxScenes::starts_at_start_of_play ( ssc ))) {
if ( count > 0 ) {
HTML_TAG ( "br" );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Pl.OrWhen" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Pl.OrWhen" );
WRITE ( " " );
}
WRITE ( "<b>play begins</b>" );
@@ -270,7 +270,7 @@ fact, end.
if ( FauxScenes::has_anchor_condition ( ssc -> ends [ end ])) {
if ( count > 0 ) {
HTML_TAG ( "br" );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Pl.OrWhen" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Pl.OrWhen" );
WRITE ( " " );
}
WRITE ( "%S" , FauxScenes::anchor_condition ( ssc -> ends [ end ]));
@@ -288,7 +288,7 @@ fact, end.
scon = scon -> next ) {
if ( count > 0 ) {
HTML_TAG ( "br" );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Pl.OrWhen" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Pl.OrWhen" );
WRITE ( " " );
}
simplified_scene * to_ssc = FauxScenes::connects_to ( scon );
@@ -310,7 +310,7 @@ fact, end.
inter_package * rb_pack = Inter::Packages::container ( rb -> definition );
if ( IndexRules::is_empty ( I , rb_pack ) == FALSE ) {
HTML::open_indented_p ( OUT , 1 , "hanging" );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Pl.WhatHappens" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Pl.WhatHappens" );
WRITE ( ":" ); HTML_CLOSE ( "p" );
IndexRules::rulebook_list ( OUT , I , rb_pack , I "" , IndexRules::no_rule_context (), LD );
}
@@ -427,11 +427,11 @@ this one does; then to scenes which begin when this one ends.
WRITE ( " " ); PlotElement::scene_icon_unspaced ( OUT , si );
}
-void PlotElement::scene_icon_legend ( OUTPUT_STREAM , char * si , localisation_dictionary * LD ,
+void PlotElement::scene_icon_legend ( OUTPUT_STREAM , char * si , localisation_dictionary * LD ,
text_stream * gloss ) {
PlotElement::scene_icon_unspaced ( OUT , si );
WRITE ( " " );
- Localisation::italic_0 ( OUT , LD , gloss );
+ Localisation::italic ( OUT , LD , gloss );
}
void PlotElement::scene_icon_unspaced ( OUTPUT_STREAM , char * si ) {
diff --git a/docs/index-module/3-re.html b/docs/index-module/3-re.html
index e30abe52a..9f998f58a 100644
--- a/docs/index-module/3-re.html
+++ b/docs/index-module/3-re.html
@@ -76,7 +76,7 @@ function togglePopup(material_id) {
-void RelationsElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void RelationsElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
tree_inventory * inv = Synoptic::inv ( I );
TreeLists::sort ( inv -> relation_nodes , Synoptic::module_order );
@@ -84,13 +84,13 @@ function togglePopup(material_id) {
HTML_OPEN ( "p" );
HTML::begin_plain_html_table ( OUT );
HTML::first_html_column ( OUT , 0 );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Rl.NameColumn" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Rl.NameColumn" );
HTML::next_html_column ( OUT , 0 );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Rl.CategoryColumn" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Rl.CategoryColumn" );
HTML::next_html_column ( OUT , 0 );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Rl.FromColumn" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Rl.FromColumn" );
HTML::next_html_column ( OUT , 0 );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Rl.ToColumn" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Rl.ToColumn" );
HTML::end_html_row ( OUT );
inter_package * pack ;
LOOP_OVER_INVENTORY_PACKAGES ( pack , i , inv -> relation_nodes ) {
diff --git a/docs/index-module/3-rfse.html b/docs/index-module/3-rfse.html
index ae0259507..569edb559 100644
--- a/docs/index-module/3-rfse.html
+++ b/docs/index-module/3-rfse.html
@@ -75,13 +75,13 @@ function togglePopup(material_id) {
-void RulesForScenesElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void RulesForScenesElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
tree_inventory * inv = Synoptic::inv ( I );
TreeLists::sort ( inv -> rulebook_nodes , Synoptic::module_order );
HTML_OPEN ( "p" );
- Localisation::bold_0 ( OUT , LD , I "Index.Elements.RS.Machinery" );
+ Localisation::bold ( OUT , LD , I "Index.Elements.RS.Machinery" );
HTML_CLOSE ( "p" );
IndexRules::rulebook_box ( OUT , inv , I "Index.Elements.RS.SceneChanging" , NULL ,
@@ -89,7 +89,7 @@ function togglePopup(material_id) {
HTML_OPEN ( "p" );
IndexUtilities::anchor ( OUT , I "SRULES" );
- Localisation::bold_0 ( OUT , LD , I "Index.Elements.RS.General" );
+ Localisation::bold ( OUT , LD , I "Index.Elements.RS.General" );
HTML_CLOSE ( "p" );
IndexRules::rulebook_box ( OUT , inv , I "Index.Elements.RS.SceneBegins" , NULL ,
diff --git a/docs/index-module/3-se.html b/docs/index-module/3-se.html
index a35e7af6e..1e60a3a5e 100644
--- a/docs/index-module/3-se.html
+++ b/docs/index-module/3-se.html
@@ -77,7 +77,7 @@ their contents in logical order.
-void StandardsElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void StandardsElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
tree_inventory * inv = Synoptic::inv ( I );
TreeLists::sort ( inv -> rulebook_nodes , Synoptic::module_order );
@@ -163,13 +163,13 @@ their contents in logical order.
IndexRules::rulebook_box ( OUT , inv , I "Index.Elements.St.Instead" , I "rules_instead" ,
IndexRules::find_rulebook ( inv , I "instead" ), NULL , 1 , TRUE , LD );
IndexRules::rulebook_box ( OUT , inv , I "Index.Elements.St.Check" , NULL , NULL ,
- Localisation::read ( LD , I "Index.Elements.St.CheckRules" ), 1 , TRUE , LD );
+ Localisation::read ( LD , I "Index.Elements.St.CheckRules" ), 1 , TRUE , LD );
IndexRules::rulebook_box ( OUT , inv , I "Index.Elements.St.CarryOut" , NULL , NULL ,
- Localisation::read ( LD , I "Index.Elements.St.CarryOutRules" ), 1 , TRUE , LD );
+ Localisation::read ( LD , I "Index.Elements.St.CarryOutRules" ), 1 , TRUE , LD );
IndexRules::rulebook_box ( OUT , inv , I "Index.Elements.St.After" , I "rules_after" ,
IndexRules::find_rulebook ( inv , I "after" ), NULL , 1 , TRUE , LD );
IndexRules::rulebook_box ( OUT , inv , I "Index.Elements.St.Report" , NULL , NULL ,
- Localisation::read ( LD , I "Index.Elements.St.ReportRules" ), 1 , TRUE , LD );
+ Localisation::read ( LD , I "Index.Elements.St.ReportRules" ), 1 , TRUE , LD );
-void StandardsElement::subhead ( OUTPUT_STREAM , localisation_dictionary * LD ,
+void StandardsElement::subhead ( OUTPUT_STREAM , localisation_dictionary * LD ,
text_stream * heading_key , text_stream * rubric_key ) {
- HTML_OPEN ( "p" ); Localisation::bold_0 ( OUT , LD , heading_key ); HTML_CLOSE ( "p" );
- HTML_OPEN ( "p" ); Localisation::write_0 ( OUT , LD , rubric_key ); HTML_CLOSE ( "p" );
+ HTML_OPEN ( "p" ); Localisation::bold ( OUT , LD , heading_key ); HTML_CLOSE ( "p" );
+ HTML_OPEN ( "p" ); Localisation::roman ( OUT , LD , rubric_key ); HTML_CLOSE ( "p" );
}
void StandardsElement::activity ( OUTPUT_STREAM , tree_inventory * inv , text_stream * id ,
- int indent , localisation_dictionary * LD ) {
+ int indent , localisation_dictionary * LD ) {
inter_package * av = IndexRules::find_activity ( inv , id );
if ( av ) IndexRules::activity_box ( OUT , inv -> of_tree , av , indent , LD );
}
diff --git a/docs/index-module/3-te.html b/docs/index-module/3-te.html
index bfe7eb826..438af3f9f 100644
--- a/docs/index-module/3-te.html
+++ b/docs/index-module/3-te.html
@@ -78,7 +78,7 @@ main source text, all the tables in the Standard Rules, and so on.
-void TablesElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void TablesElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
tree_inventory * inv = Synoptic::inv ( I );
TreeLists::sort ( inv -> table_nodes , Synoptic::category_order );
@@ -119,8 +119,8 @@ Rules, which of course are always present. So these are hidden by default.
if ( first_ext ) {
HTML_OPEN ( "p" );
IndexUtilities::extra_link ( OUT , 2 );
- if ( mc > 1 ) Localisation::write_0 ( OUT , LD , I "Index.Elements.Tb.ShowExtensionTables" );
- else Localisation::write_0 ( OUT , LD , I "Index.Elements.Tb.ShowOnlyExtensionTables" );
+ if ( mc > 1 ) Localisation::roman ( OUT , LD , I "Index.Elements.Tb.ShowExtensionTables" );
+ else Localisation::roman ( OUT , LD , I "Index.Elements.Tb.ShowOnlyExtensionTables" );
HTML_CLOSE ( "p" );
first_ext = FALSE ;
}
@@ -193,21 +193,21 @@ Rules, which of course are always present. So these are hidden by default.
WRITE ( "<i>" );
HTML_OPEN_WITH ( "span" , "class=\"smaller\"" );
if ( defines ) {
- if ( nr == 1 ) Localisation::write_1n ( OUT , LD , I "Index.Elements.Tb.Definition" , nr );
- else Localisation::write_1n ( OUT , LD , I "Index.Elements.Tb.Definitions" , nr );
+ if ( nr == 1 ) Localisation::roman_i ( OUT , LD , I "Index.Elements.Tb.Definition" , nr );
+ else Localisation::roman_i ( OUT , LD , I "Index.Elements.Tb.Definitions" , nr );
} else {
- if ( nc == 1 ) Localisation::write_1n ( OUT , LD , I "Index.Elements.Tb.Column" , nc );
- else Localisation::write_1n ( OUT , LD , I "Index.Elements.Tb.Columns" , nc );
+ if ( nc == 1 ) Localisation::roman_i ( OUT , LD , I "Index.Elements.Tb.Column" , nc );
+ else Localisation::roman_i ( OUT , LD , I "Index.Elements.Tb.Columns" , nc );
WRITE ( " x " );
- if ( nr == 1 ) Localisation::write_1n ( OUT , LD , I "Index.Elements.Tb.Row" , nr );
- else Localisation::write_1n ( OUT , LD , I "Index.Elements.Tb.Rows" , nr );
+ if ( nr == 1 ) Localisation::roman_i ( OUT , LD , I "Index.Elements.Tb.Row" , nr );
+ else Localisation::roman_i ( OUT , LD , I "Index.Elements.Tb.Rows" , nr );
}
if ( nb > 0 ) {
WRITE ( " (" );
- Localisation::write_1n ( OUT , LD , I "Index.Elements.Tb.Blank" , nb );
+ Localisation::roman_i ( OUT , LD , I "Index.Elements.Tb.Blank" , nb );
if ( Str::len ( for_each ) > 0 ) {
WRITE ( ", " );
- Localisation::write_1 ( OUT , LD , I "Index.Elements.Tb.BlankEach" , for_each );
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.Tb.BlankEach" , for_each );
}
WRITE ( ")" );
}
@@ -228,7 +228,7 @@ Rules, which of course are always present. So these are hidden by default.
inter_package * col_pack = Inter::Packages::container ( id_s -> definition );
HTML::first_html_column ( OUT , 0 );
WRITE ( " " );
- Localisation::write_1n ( OUT , LD , I "Index.Elements.Tb.Col" , col +1);
+ Localisation::roman_i ( OUT , LD , I "Index.Elements.Tb.Col" , col +1);
WRITE ( ": " );
Give usage details 1.3.2.1 ;
HTML::next_html_column ( OUT , 0 );
@@ -247,13 +247,13 @@ Rules, which of course are always present. So these are hidden by default.
IndexUtilities::link ( OUT , at );
} else {
if ( defines ) {
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Tb.Sets" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Tb.Sets" );
WRITE ( " " );
}
WRITE ( "%S " , CW );
TEMPORARY_TEXT ( TEMP )
if ( defines ) WRITE_TO ( TEMP , "%S" , CW );
- else Localisation::write_1 ( OUT , LD , I "Index.Elements.Tb.Entry" , CW );
+ else Localisation::roman_t ( OUT , LD , I "Index.Elements.Tb.Entry" , CW );
PasteButtons::paste_text ( OUT , TEMP );
DISCARD_TEXT ( TEMP )
}
@@ -264,12 +264,12 @@ Rules, which of course are always present. So these are hidden by default.
if (( defines ) && ( col == 0 )) {
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Tb.Names" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Tb.Names" );
} else if ( defines ) {
- Localisation::write_1 ( OUT , LD , I "Index.Elements.Tb.Property" ,
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.Tb.Property" ,
Metadata::read_optional_textual ( col_pack , I "^contents" ));
} else {
- Localisation::write_1 ( OUT , LD , I "Index.Elements.Tb.Of" ,
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.Tb.Of" ,
Metadata::read_optional_textual ( col_pack , I "^contents" ));
}
diff --git a/docs/index-module/3-te2.html b/docs/index-module/3-te2.html
index 5a5f4c8ea..6db489490 100644
--- a/docs/index-module/3-te2.html
+++ b/docs/index-module/3-te2.html
@@ -75,12 +75,12 @@ function togglePopup(material_id) {
-void TokensElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void TokensElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
HTML_OPEN ( "p" );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.To.Explanation1" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.To.Explanation1" );
HTML_CLOSE ( "p" );
HTML_OPEN ( "p" );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.To.Explanation2" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.To.Explanation2" );
HTML_CLOSE ( "p" );
inter_tree * I = InterpretIndex::get_tree ();
@@ -113,17 +113,17 @@ when is
void TokensElement::token ( OUTPUT_STREAM , inter_tree * I , char * special ,
inter_package * cg_pack , text_stream * help , text_stream * explanation ,
- localisation_dictionary * LD ) {
+ localisation_dictionary * LD ) {
HTML::open_indented_p ( OUT , 1 , "tight" );
WRITE ( "\"[" );
if ( special ) WRITE ( "%s" , special );
else if ( cg_pack ) WRITE ( "%S" , Metadata::read_optional_textual ( cg_pack , I "^name" ));
WRITE ( "]\"" );
if ( cg_pack ) IndexUtilities::link_package ( OUT , cg_pack );
- if ( Str::len ( help ) > 0 ) IndexUtilities::DocReferences::link ( OUT , help );
+ if ( Str::len ( help ) > 0 ) DocReferences::link ( OUT , help );
if ( explanation ) {
WRITE ( " - " );
- Localisation::write_1 ( OUT , LD , I "Index.Elements.To.SameAs" , explanation );
+ Localisation::roman_t ( OUT , LD , I "Index.Elements.To.SameAs" , explanation );
}
HTML_CLOSE ( "p" );
if ( cg_pack ) {
@@ -141,7 +141,7 @@ when is
IndexUtilities::link_package ( OUT , line_pack );
if ( Metadata::read_optional_numeric ( line_pack , I "^reversed" )) {
WRITE ( " " );
- Localisation::write_0 ( OUT , LD , I "Index.Elements.To.Reversed" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.To.Reversed" );
}
HTML_CLOSE ( "p" );
}
diff --git a/docs/index-module/3-tpt.html b/docs/index-module/3-tpt.html
index 4265aca73..37c00dc21 100644
--- a/docs/index-module/3-tpt.html
+++ b/docs/index-module/3-tpt.html
@@ -118,7 +118,7 @@ and text underneath in another of class "headingrubric".
void Elements::periodic_table ( OUTPUT_STREAM , index_page * current_page ,
- text_stream * index_leaf , localisation_dictionary * D ) {
+ text_stream * index_leaf , localisation_dictionary * D ) {
int max_elements = 0 ;
index_page * ip ;
LOOP_OVER ( ip , index_page )
@@ -271,7 +271,7 @@ text file from the content of a single element.
-void Elements::test_card ( OUTPUT_STREAM , wording W , localisation_dictionary * LD ) {
+void Elements::test_card ( OUTPUT_STREAM , wording W , localisation_dictionary * LD ) {
TEMPORARY_TEXT ( elt )
WRITE_TO ( elt , "%+W" , W );
Elements::render ( OUT , elt , LD );
@@ -282,7 +282,7 @@ text file from the content of a single element.
-void Elements::render ( OUTPUT_STREAM , text_stream * elt , localisation_dictionary * LD ) {
+void Elements::render ( OUTPUT_STREAM , text_stream * elt , localisation_dictionary * LD ) {
if ( Str::eq_wide_string ( elt , L "A1" )) { GroupedElement::render ( OUT , LD ); return ; }
if ( Str::eq_wide_string ( elt , L "A2" )) { AlphabeticElement::render ( OUT , LD ); return ; }
if ( Str::eq_wide_string ( elt , L "Ar" )) { ArithmeticElement::render ( OUT , LD ); return ; }
diff --git a/docs/index-module/3-ve.html b/docs/index-module/3-ve.html
index 378799650..195ec9c46 100644
--- a/docs/index-module/3-ve.html
+++ b/docs/index-module/3-ve.html
@@ -77,7 +77,7 @@ quite different.
-void ValuesElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void ValuesElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
tree_inventory * inv = Synoptic::inv ( I );
TreeLists::sort ( inv -> variable_nodes , Synoptic::module_order );
@@ -111,7 +111,7 @@ quite different.
if ( understood_note_given == FALSE ) {
understood_note_given = TRUE ;
- Localisation::write_0 ( OUT , LD , I "Index.Elements.Vl.UnderstoodVariables" );
+ Localisation::roman ( OUT , LD , I "Index.Elements.Vl.UnderstoodVariables" );
HTML_TAG ( "br" );
}
@@ -145,9 +145,9 @@ quite different.
HTML_OPEN ( "p" );
- Localisation::bold_0 ( OUT , LD , I "Index.Elements.Vl.EquationsHeading" );
+ Localisation::bold ( OUT , LD , I "Index.Elements.Vl.EquationsHeading" );
WRITE ( " (" );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Vl.AboutEquations" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Vl.AboutEquations" );
WRITE ( ")" );
HTML_CLOSE ( "p" );
HTML_OPEN ( "p" );
@@ -163,7 +163,7 @@ quite different.
N ++;
}
}
- if ( N == 0 ) Localisation::italic_0 ( OUT , LD , I "Index.Elements.Vl.NoEquations" );
+ if ( N == 0 ) Localisation::italic ( OUT , LD , I "Index.Elements.Vl.NoEquations" );
HTML_CLOSE ( "p" );
diff --git a/docs/index-module/3-ve2.html b/docs/index-module/3-ve2.html
index 47de2ed13..cfeff15fb 100644
--- a/docs/index-module/3-ve2.html
+++ b/docs/index-module/3-ve2.html
@@ -77,9 +77,9 @@ be more usefully informative.
-void VerbsElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void VerbsElement::render ( OUTPUT_STREAM , localisation_dictionary * LD ) {
HTML_OPEN ( "p" );
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Vb.About" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Vb.About" );
HTML_CLOSE ( "p" );
int verb_count = 0 ;
@@ -96,11 +96,11 @@ be more usefully informative.
else if ( lex -> part_of_speech == MVERB_TLEXE ) key = I "Index.Elements.Vb.To" ;
else if ( lex -> part_of_speech == PREP_TLEXE ) key = I "Index.Elements.Vb.ToBe" ;
else key = I "Index.Elements.Vb.ToBeAbleTo" ;
- Localisation::write_1 ( OUT , LD , key , entry_text );
+ Localisation::roman_t ( OUT , LD , key , entry_text );
IndexUtilities::link_package ( OUT , lex -> lex_package );
WRITE ( " ... " );
if ( lex -> part_of_speech == MVERB_TLEXE )
- Localisation::italic_0 ( OUT , LD , I "Index.Elements.Vb.ForSayingOnly" );
+ Localisation::italic ( OUT , LD , I "Index.Elements.Vb.ForSayingOnly" );
else WRITE ( "%S" , Metadata::read_optional_textual ( lex -> lex_package , I "^meaning" ));
HTML_CLOSE ( "p" );
VerbsElement::tabulate ( OUT , lex , I "^present" , I "Index.Elements.Vb.Present" , LD );
@@ -111,12 +111,12 @@ be more usefully informative.
}
void VerbsElement::tabulate ( OUTPUT_STREAM , index_lexicon_entry * lex , text_stream * key ,
- text_stream * tense , localisation_dictionary * LD ) {
+ text_stream * tense , localisation_dictionary * LD ) {
text_stream * val = Metadata::read_optional_textual ( lex -> lex_package , key );
if ( Str::len ( key ) > 0 ) {
HTML::open_indented_p ( OUT , 2 , "tight" );
WRITE ( "<i>" );
- Localisation::italic_0 ( OUT , LD , tense );
+ Localisation::italic ( OUT , LD , tense );
WRITE ( "</i> %S" , val );
HTML_CLOSE ( "p" );
}
diff --git a/docs/index-module/4-rem.html b/docs/index-module/4-rem.html
index 066c267ad..050ce8167 100644
--- a/docs/index-module/4-rem.html
+++ b/docs/index-module/4-rem.html
@@ -91,7 +91,7 @@ MathJax = {
-void RenderEPSMap::render_map_as_EPS ( filename * F , localisation_dictionary * LD ) {
+void RenderEPSMap::render_map_as_EPS ( filename * F , localisation_dictionary * LD ) {
inter_tree * I = InterpretIndex::get_tree ();
Prepare the EPS levels 1.1 ;
Open a stream and write the EPS map to it 1.2 ;
@@ -120,7 +120,7 @@ MathJax = {
main_eml -> actual_height = 0 ;
main_eml -> titling_point_size = ConfigureIndexMap::get_int_mp ( I "title-size" , NULL );
main_eml -> titling = Str::new ();
- Localisation::write_0 ( main_eml -> titling , LD , I "Index.EPSMap.DefaultTitle" );
+ Localisation::roman ( main_eml -> titling , LD , I "Index.EPSMap.DefaultTitle" );
main_eml -> contains_titling = TRUE ;
main_eml -> contains_rooms = FALSE ;
ConfigureIndexMap::prepare_map_parameter_scope (&( main_eml -> map_parameters ));
diff --git a/docs/index-module/4-rhm.html b/docs/index-module/4-rhm.html
index 807e7a0ca..baa195f2d 100644
--- a/docs/index-module/4-rhm.html
+++ b/docs/index-module/4-rhm.html
@@ -551,7 +551,7 @@ the details part of the World Index page) will be all right.
-void HTMLMap::render_map_as_HTML ( OUTPUT_STREAM , localisation_dictionary * LD ) {
+void HTMLMap::render_map_as_HTML ( OUTPUT_STREAM , localisation_dictionary * LD ) {
faux_instance_set * faux_set = InterpretIndex::get_faux_instances ();
HTMLMap::calculate_map_grid ();
@@ -690,7 +690,7 @@ from each other.)
if ( A ) {
k ++;
if ( k == 1 ) { HTML_OPEN ( "p" ); } else WRITE ( "; " );
- Localisation::italic_2 ( OUT , LD , I "Index.Elements.Mp.MappingAs" ,
+ Localisation::italic_tt ( OUT , LD , I "Index.Elements.Mp.MappingAs" ,
FauxInstances::get_name ( D ), FauxInstances::get_name ( A ));
}
}
@@ -701,7 +701,7 @@ from each other.)
void HTMLMap::devise_level_rubric ( int z , text_stream * level_rubric ,
- localisation_dictionary * LD ) {
+ localisation_dictionary * LD ) {
text_stream * key = I "Index.Elements.Mp.DefaultLevel" ;
int par = 0 ;
switch ( Universe . corner1 . z - Universe . corner0 . z ) {
@@ -732,7 +732,7 @@ from each other.)
break ;
}
}
- Localisation::write_1n ( level_rubric , LD , key , par );
+ Localisation::roman_i ( level_rubric , LD , key , par );
}
void HTMLMap::render_single_room_as_HTML ( OUTPUT_STREAM , faux_instance * R ,
- localisation_dictionary * LD ) {
+ localisation_dictionary * LD ) {
WRITE ( "\n\n" );
HTML_OPEN ( "p" );
IndexUtilities::anchor ( OUT , R -> anchor_text );
@@ -772,7 +772,7 @@ index page.
void HTMLMap::plot_map_level ( OUTPUT_STREAM , int x0 , int x1 , int y0 , int y1 , int z ,
- int pass , localisation_dictionary * LD ) {
+ int pass , localisation_dictionary * LD ) {
if ( pass == 1 )
LOGIF ( SPATIAL_MAP , "Plot: [%d, %d] x [%d, %d] x {%d}\n" , x0 , x1 , y0 , y1 , z );
@@ -1095,7 +1095,7 @@ of the cell. First, the eight cells around the outside:
void HTMLMap::plot_map_cell ( OUTPUT_STREAM , int pass , vector P , int i1 , int i2 ,
- int faux_exit , localisation_dictionary * LD ) {
+ int faux_exit , localisation_dictionary * LD ) {
faux_instance_set * faux_set = InterpretIndex::get_faux_instances ();
int bitmap = icon_grid [ ICON_GRID_POS ( P , i1 , i2 )];
if ( pass == 2 ) bitmap &= CONNECTIVE_BITMAP ;
@@ -1175,12 +1175,12 @@ of the cell. First, the eight cells around the outside:
if ( I3 ) FauxInstances::write_name ( destination_name , I3 );
if ( D ) {
- if ( I3 ) Localisation::write_3 ( tool_tip , LD , I "Index.Elements.Mp.ExitThroughTooltip" ,
+ if ( I3 ) Localisation::write_ttt ( tool_tip , LD , I "Index.Elements.Mp.ExitThroughTooltip" ,
direction_name , door_name , destination_name );
- else Localisation::write_2 ( tool_tip , LD , I "Index.Elements.Mp.ExitBlockedTooltip" ,
+ else Localisation::roman_tt ( tool_tip , LD , I "Index.Elements.Mp.ExitBlockedTooltip" ,
direction_name , door_name );
} else {
- if ( I3 ) Localisation::write_2 ( tool_tip , LD , I "Index.Elements.Mp.ExitTooltip" ,
+ if ( I3 ) Localisation::roman_tt ( tool_tip , LD , I "Index.Elements.Mp.ExitTooltip" ,
direction_name , destination_name );
}
WRITE_TO ( tool_tip , "\"" );
diff --git a/docs/index-module/index.html b/docs/index-module/index.html
index 960363bca..e7c07262d 100644
--- a/docs/index-module/index.html
+++ b/docs/index-module/index.html
@@ -82,11 +82,6 @@
Index Locations -
To provide routines to help build the various HTML index files, none of which are actually created in this section.
-
-
- Localisation -
- Utility functions for standing text which may vary by language.
-
Index Interpreter -
diff --git a/docs/inform7/1-mn.html b/docs/inform7/1-mn.html
index 8a28f2f4d..5a755ff58 100644
--- a/docs/inform7/1-mn.html
+++ b/docs/inform7/1-mn.html
@@ -280,7 +280,7 @@ they can be rather lengthy.
Main::write_diagnostics (
I "preform-summary.txt" , & Main::log_preform_summary );
Main::write_diagnostics (
- I "documentation-diagnostics.txt" , & IndexUtilities::DocReferences::log_statistics );
+ I "documentation-diagnostics.txt" , & DocReferences::log_statistics );
Main::write_diagnostics (
I "verbs-diagnostics.txt" , & VerbUsages::log_all );
Main::write_diagnostics (
diff --git a/docs/inform7/M-pm.html b/docs/inform7/M-pm.html
index 6397c29df..dfdee3d29 100644
--- a/docs/inform7/M-pm.html
+++ b/docs/inform7/M-pm.html
@@ -83,13 +83,13 @@ which take more than 1/1000th of the total running time.
100.0% in inform7 run
- 56.2% in compilation to Inter
- 40.0% in Sequence::undertake_queued_tasks
- 3.5% in MajorNodes::pre_pass
+ 55.7% in compilation to Inter
+ 40.1% in Sequence::undertake_queued_tasks
+ 3.4% in MajorNodes::pre_pass
2.6% in MajorNodes::pass_1
- 2.0% in RTPhrasebook::compile_entries
+ 2.1% in RTPhrasebook::compile_entries
1.4% in ImperativeDefinitions::assess_all
- 1.3% in RTKindConstructors::compile
+ 1.1% in RTKindConstructors::compile
0.4% in ImperativeDefinitions::compile_first_block
0.4% in MajorNodes::pass_2
0.4% in Sequence::undertake_queued_tasks
@@ -100,13 +100,13 @@ which take more than 1/1000th of the total running time.
0.1% in RTKindConstructors::compile_permissions
0.1% in Task::make_built_in_kind_constructors
0.1% in World::stages_II_and_III
- 2.0% not specifically accounted for
- 41.8% in running Inter pipeline
- 11.3% in step preparation
+ 1.8% not specifically accounted for
+ 42.3% in running Inter pipeline
+ 11.0% in step preparation
9.8% in inter step 7/14: consolidate-text
- 8.0% in inter step 2/14: link
- 7.0% in inter step 14/14: generate inform6 -> auto.inf
- 1.6% in inter step 10/14: make-identifiers-unique
+ 8.1% in inter step 2/14: link
+ 7.2% in inter step 14/14: generate inform6 -> auto.inf
+ 1.5% in inter step 10/14: make-identifiers-unique
0.4% in inter step 11/14: reconcile-verbs
0.2% in inter step 13/14: eliminate-redundant-operations
0.2% in inter step 6/14: assimilate
@@ -115,9 +115,9 @@ which take more than 1/1000th of the total running time.
0.1% in inter step 12/14: eliminate-redundant-labels
0.1% in inter step 4/14: parse-linked-matter
0.1% in inter step 5/14: resolve-conditional-compilation
- 1.8% not specifically accounted for
- 1.6% in supervisor
- 0.3% not specifically accounted for
+ 2.5% not specifically accounted for
+ 1.7% in supervisor
+ 0.2% not specifically accounted for
-Total memory consumption was 391653K = 382 MB
+Total memory consumption was 391746K = 383 MB
-60.4% was used for 1994726 objects, in 371043 frames in 296 x 800K = 236800K = 231 MB:
+60.4% was used for 1995426 objects, in 371050 frames in 296 x 800K = 236800K = 231 MB:
10.4% inter_tree_node_array 58 x 8192 = 475136 objects, 41813824 bytes
- 7.1% text_stream_array 5123 x 100 = 512300 objects, 28852736 bytes
+ 7.1% text_stream_array 5128 x 100 = 512800 objects, 28880896 bytes
4.3% linked_list 30840 objects, 17270400 bytes
3.4% inter_symbol_array 139 x 1024 = 142336 objects, 13668704 bytes
2.5% parse_node 129399 objects, 10351920 bytes
@@ -149,7 +149,7 @@ represent less than 1/1000th of the total.
0.3% dictionary 33229 objects, 1594992 bytes
0.3% match_trie_array 11 x 1000 = 11000 objects, 1496352 bytes
0.3% i6_schema_array 23 x 100 = 2300 objects, 1380736 bytes
- 0.3% dict_entry_array 391 x 100 = 39100 objects, 1263712 bytes
+ 0.3% dict_entry_array 393 x 100 = 39300 objects, 1270176 bytes
0.2% map_data 670 objects, 1125600 bytes
0.2% id_body 940 objects, 1075360 bytes
0.2% adjective_meaning 202 objects, 1000304 bytes
@@ -204,8 +204,8 @@ represent less than 1/1000th of the total.
---- ap_clause_array 2 x 400 = 800 objects, 51264 bytes
---- inter_node_list 769 objects, 43064 bytes
---- text_substitution 436 objects, 41856 bytes
- ---- activity_list_array 1 x 1000 objects, 40032 bytes
---- anl_clause_array 1 x 1000 objects, 40032 bytes
+ ---- activity_list_array 1 x 1000 objects, 40032 bytes
---- to_family_data 496 objects, 39680 bytes
---- shared_variable_access_list_array 12 x 100 = 1200 objects, 38784 bytes
---- parsing_data 670 objects, 37520 bytes
@@ -228,8 +228,8 @@ represent less than 1/1000th of the total.
---- instance 167 objects, 17368 bytes
---- parse_node_tree 20 objects, 17280 bytes
---- understanding_reference_array 2 x 100 = 200 objects, 16064 bytes
- ---- linked_list_item_array 1 x 1000 objects, 16032 bytes
---- match_avinue_array 1 x 1000 objects, 16032 bytes
+ ---- linked_list_item_array 1 x 1000 objects, 16032 bytes
---- action_name_list_array 1 x 1000 objects, 16032 bytes
---- method 330 objects, 15840 bytes
---- to_phrase_request 59 objects, 15576 bytes
@@ -267,16 +267,16 @@ represent less than 1/1000th of the total.
---- compatibility_specification 66 objects, 3168 bytes
---- either_or_property_data 62 objects, 2976 bytes
---- use_option 29 objects, 2552 bytes
- ---- parentage_inference_data 79 objects, 2528 bytes
---- part_of_inference_data 79 objects, 2528 bytes
+ ---- parentage_inference_data 79 objects, 2528 bytes
---- kind_constructor_instance_array 1 x 100 objects, 2432 bytes
---- kind_constructor_casting_rule_array 1 x 100 objects, 2432 bytes
- ---- equation_symbol 30 objects, 2400 bytes
---- inter_construct 30 objects, 2400 bytes
+ ---- equation_symbol 30 objects, 2400 bytes
---- semver_range 22 objects, 2288 bytes
---- scene 1 object, 2096 bytes
- ---- pipeline_step 14 objects, 1680 bytes
---- pronoun_usage 42 objects, 1680 bytes
+ ---- pipeline_step 14 objects, 1680 bytes
---- table_contribution_array 1 x 100 objects, 1632 bytes
---- plugin 25 objects, 1600 bytes
---- cached_kind_declaration 39 objects, 1560 bytes
@@ -305,9 +305,9 @@ represent less than 1/1000th of the total.
---- inter_data_type 14 objects, 784 bytes
---- internal_test 14 objects, 672 bytes
---- inform_language 6 objects, 672 bytes
- ---- inter_warehouse_room 10 objects, 640 bytes
- ---- relation_guard 5 objects, 640 bytes
---- I6T_intervention 8 objects, 640 bytes
+ ---- relation_guard 5 objects, 640 bytes
+ ---- inter_warehouse_room 10 objects, 640 bytes
---- inbuild_search_result 15 objects, 600 bytes
---- rulebook_outcome 17 objects, 544 bytes
---- small_word_set 11 objects, 528 bytes
@@ -317,20 +317,20 @@ represent less than 1/1000th of the total.
---- inference_family 11 objects, 440 bytes
---- i6_memory_setting 13 objects, 416 bytes
---- module_package 10 objects, 400 bytes
- ---- bp_family 12 objects, 384 bytes
---- article_usage 8 objects, 384 bytes
+ ---- bp_family 12 objects, 384 bytes
---- source_file 5 objects, 360 bytes
---- inbuild_genre 7 objects, 336 bytes
- ---- pronoun 8 objects, 320 bytes
- ---- grammatical_category 8 objects, 320 bytes
---- door_dir_notice 5 objects, 320 bytes
+ ---- grammatical_category 8 objects, 320 bytes
+ ---- pronoun 8 objects, 320 bytes
---- tree_inventory 1 object, 312 bytes
---- build_step 4 objects, 288 bytes
---- up_family 9 objects, 288 bytes
- ---- contents_entry 7 objects, 280 bytes
---- compilation_unit 5 objects, 280 bytes
- ---- explicit_bp_data 5 objects, 280 bytes
---- door_to_notice 5 objects, 280 bytes
+ ---- contents_entry 7 objects, 280 bytes
+ ---- explicit_bp_data 5 objects, 280 bytes
---- inform_pipeline 4 objects, 256 bytes
---- verb_usage_tier 5 objects, 240 bytes
---- adjective_meaning_family 7 objects, 224 bytes
@@ -340,31 +340,31 @@ represent less than 1/1000th of the total.
---- kit_dependency 4 objects, 192 bytes
---- plural_dictionary_entry 4 objects, 192 bytes
---- inform_project 1 object, 176 bytes
- ---- code_generation_target 4 objects, 160 bytes
- ---- imperative_defn_family 4 objects, 160 bytes
- ---- link_instruction 4 objects, 160 bytes
---- inference_subject_family 5 objects, 160 bytes
---- inter_architecture 4 objects, 160 bytes
+ ---- code_generation_target 4 objects, 160 bytes
+ ---- link_instruction 4 objects, 160 bytes
+ ---- imperative_defn_family 4 objects, 160 bytes
---- element_activation 4 objects, 128 bytes
---- codegen_pipeline 1 object, 128 bytes
---- inbuild_nest 3 objects, 120 bytes
---- local_block_value 2 objects, 112 bytes
---- inform_kit_ittt 2 objects, 96 bytes
- ---- compile_task_data 1 object, 80 bytes
---- group_together_function 2 objects, 80 bytes
+ ---- compile_task_data 1 object, 80 bytes
---- article 2 objects, 80 bytes
- ---- build_methodology 1 object, 56 bytes
---- figures_data 1 object, 56 bytes
+ ---- build_methodology 1 object, 56 bytes
---- inter_warehouse 1 object, 56 bytes
- ---- star_invention 1 object, 48 bytes
---- HTML_file_state 1 object, 48 bytes
+ ---- star_invention 1 object, 48 bytes
+ ---- kind_template_definition 1 object, 40 bytes
---- loop_over_scope 1 object, 40 bytes
---- by_function_bp_data 1 object, 40 bytes
- ---- kind_template_definition 1 object, 40 bytes
39.5% was used for memory not allocated for objects:
- 20.6% text stream storage 82727296 bytes in 530401 claims
+ 20.6% text stream storage 82822772 bytes in 530909 claims
4.5% dictionary storage 18153472 bytes in 33229 claims
---- sorting 744 bytes in 3 claims
1.7% source text 7200000 bytes in 3 claims
@@ -382,7 +382,7 @@ represent less than 1/1000th of the total.
---- code generation workspace for objects 9648 bytes in 9 claims
---- emitter array storage 157552 bytes in 2061 claims
-18.6% was overhead - 74983096 bytes = 73225K = 71 MB
+18.6% was overhead - 74948472 bytes = 73191K = 71 MB
diff --git a/docs/values-module/5-dsh.html b/docs/values-module/5-dsh.html
index cf4b91eea..a4b522a77 100644
--- a/docs/values-module/5-dsh.html
+++ b/docs/values-module/5-dsh.html
@@ -2275,7 +2275,7 @@ extensions).
TEMPORARY_TEXT ( pds )
WRITE_TO ( pds , "%+W" , Wordings::one_word ( Wordings::first_wn ( NW )));
if ( Log::aspect_switched_on ( PHRASE_USAGE_DA )) {
- IndexUtilities::DocReferences::doc_mark_used ( pds ,
+ DocReferences::doc_mark_used ( pds ,
Wordings::first_wn ( Node::get_text ( inv )));
}
DISCARD_TEXT ( pds )
diff --git a/inform7/Chapter 1/Main.w b/inform7/Chapter 1/Main.w
index 6de97046f..bd1f26d02 100755
--- a/inform7/Chapter 1/Main.w
+++ b/inform7/Chapter 1/Main.w
@@ -173,7 +173,7 @@ they can be rather lengthy.
Main::write_diagnostics(
I"preform-summary.txt", &Main::log_preform_summary);
Main::write_diagnostics(
- I"documentation-diagnostics.txt", &IndexUtilities::DocReferences::log_statistics);
+ I"documentation-diagnostics.txt", &DocReferences::log_statistics);
Main::write_diagnostics(
I"verbs-diagnostics.txt", &VerbUsages::log_all);
Main::write_diagnostics(
diff --git a/inform7/Figures/memory-diagnostics.txt b/inform7/Figures/memory-diagnostics.txt
index c98cb087a..a58ff5812 100644
--- a/inform7/Figures/memory-diagnostics.txt
+++ b/inform7/Figures/memory-diagnostics.txt
@@ -100,9 +100,9 @@ Total memory consumption was 391746K = 383 MB
---- instance 167 objects, 17368 bytes
---- parse_node_tree 20 objects, 17280 bytes
---- understanding_reference_array 2 x 100 = 200 objects, 16064 bytes
- ---- action_name_list_array 1 x 1000 objects, 16032 bytes
---- match_avinue_array 1 x 1000 objects, 16032 bytes
---- linked_list_item_array 1 x 1000 objects, 16032 bytes
+ ---- action_name_list_array 1 x 1000 objects, 16032 bytes
---- method 330 objects, 15840 bytes
---- to_phrase_request 59 objects, 15576 bytes
---- adjective 137 objects, 15344 bytes
@@ -135,16 +135,16 @@ Total memory consumption was 391746K = 383 MB
---- method_set 102 objects, 3264 bytes
---- kind_constructor_comparison_schema_array 1 x 100 objects, 3232 bytes
---- inform_extension 19 objects, 3192 bytes
- ---- compatibility_specification 66 objects, 3168 bytes
---- definition 44 objects, 3168 bytes
+ ---- compatibility_specification 66 objects, 3168 bytes
---- either_or_property_data 62 objects, 2976 bytes
---- use_option 29 objects, 2552 bytes
---- part_of_inference_data 79 objects, 2528 bytes
---- parentage_inference_data 79 objects, 2528 bytes
- ---- kind_constructor_casting_rule_array 1 x 100 objects, 2432 bytes
---- kind_constructor_instance_array 1 x 100 objects, 2432 bytes
- ---- equation_symbol 30 objects, 2400 bytes
+ ---- kind_constructor_casting_rule_array 1 x 100 objects, 2432 bytes
---- inter_construct 30 objects, 2400 bytes
+ ---- equation_symbol 30 objects, 2400 bytes
---- semver_range 22 objects, 2288 bytes
---- scene 1 object, 2096 bytes
---- pronoun_usage 42 objects, 1680 bytes
@@ -156,35 +156,35 @@ Total memory consumption was 391746K = 383 MB
---- inter_annotation_form 35 objects, 1400 bytes
---- inter_tree_location_list 34 objects, 1360 bytes
---- special_meaning_holder 33 objects, 1320 bytes
+ ---- build_script 40 objects, 1280 bytes
---- constant_phrase 20 objects, 1280 bytes
---- table_column 16 objects, 1280 bytes
- ---- build_script 40 objects, 1280 bytes
---- invocation_options_array 1 x 100 objects, 1224 bytes
---- direction_inference_data 30 objects, 1200 bytes
---- tree_inventory_item 28 objects, 1120 bytes
---- runtime_kind_structure 13 objects, 1040 bytes
---- quantifier 16 objects, 1024 bytes
- ---- named_rulebook_outcome 15 objects, 960 bytes
---- submodule_identity 30 objects, 960 bytes
+ ---- named_rulebook_outcome 15 objects, 960 bytes
---- pipeline_stage 19 objects, 912 bytes
---- inbuild_requirement 22 objects, 880 bytes
- ---- code_generation 1 object, 864 bytes
---- control_structure_phrase 12 objects, 864 bytes
+ ---- code_generation 1 object, 864 bytes
---- cached_understanding 21 objects, 840 bytes
---- phrase_option_array 1 x 100 objects, 824 bytes
---- target_vm 6 objects, 816 bytes
---- generated_segment 25 objects, 800 bytes
---- inter_data_type 14 objects, 784 bytes
- ---- inform_language 6 objects, 672 bytes
---- internal_test 14 objects, 672 bytes
+ ---- inform_language 6 objects, 672 bytes
---- I6T_intervention 8 objects, 640 bytes
- ---- inter_warehouse_room 10 objects, 640 bytes
---- relation_guard 5 objects, 640 bytes
+ ---- inter_warehouse_room 10 objects, 640 bytes
---- inbuild_search_result 15 objects, 600 bytes
---- rulebook_outcome 17 objects, 544 bytes
---- small_word_set 11 objects, 528 bytes
- ---- implication 13 objects, 520 bytes
---- inform_kit 5 objects, 520 bytes
+ ---- implication 13 objects, 520 bytes
---- equation 4 objects, 480 bytes
---- inference_family 11 objects, 440 bytes
---- i6_memory_setting 13 objects, 416 bytes
@@ -197,12 +197,12 @@ Total memory consumption was 391746K = 383 MB
---- grammatical_category 8 objects, 320 bytes
---- pronoun 8 objects, 320 bytes
---- tree_inventory 1 object, 312 bytes
- ---- up_family 9 objects, 288 bytes
---- build_step 4 objects, 288 bytes
- ---- contents_entry 7 objects, 280 bytes
- ---- door_to_notice 5 objects, 280 bytes
- ---- explicit_bp_data 5 objects, 280 bytes
+ ---- up_family 9 objects, 288 bytes
---- compilation_unit 5 objects, 280 bytes
+ ---- door_to_notice 5 objects, 280 bytes
+ ---- contents_entry 7 objects, 280 bytes
+ ---- explicit_bp_data 5 objects, 280 bytes
---- inform_pipeline 4 objects, 256 bytes
---- verb_usage_tier 5 objects, 240 bytes
---- adjective_meaning_family 7 objects, 224 bytes
@@ -212,31 +212,31 @@ Total memory consumption was 391746K = 383 MB
---- kit_dependency 4 objects, 192 bytes
---- plural_dictionary_entry 4 objects, 192 bytes
---- inform_project 1 object, 176 bytes
- ---- code_generation_target 4 objects, 160 bytes
- ---- imperative_defn_family 4 objects, 160 bytes
- ---- inter_architecture 4 objects, 160 bytes
- ---- link_instruction 4 objects, 160 bytes
---- inference_subject_family 5 objects, 160 bytes
- ---- codegen_pipeline 1 object, 128 bytes
+ ---- inter_architecture 4 objects, 160 bytes
+ ---- code_generation_target 4 objects, 160 bytes
+ ---- link_instruction 4 objects, 160 bytes
+ ---- imperative_defn_family 4 objects, 160 bytes
---- element_activation 4 objects, 128 bytes
+ ---- codegen_pipeline 1 object, 128 bytes
---- inbuild_nest 3 objects, 120 bytes
---- local_block_value 2 objects, 112 bytes
---- inform_kit_ittt 2 objects, 96 bytes
- ---- compile_task_data 1 object, 80 bytes
---- group_together_function 2 objects, 80 bytes
+ ---- compile_task_data 1 object, 80 bytes
---- article 2 objects, 80 bytes
- ---- inter_warehouse 1 object, 56 bytes
- ---- build_methodology 1 object, 56 bytes
---- figures_data 1 object, 56 bytes
+ ---- build_methodology 1 object, 56 bytes
+ ---- inter_warehouse 1 object, 56 bytes
---- HTML_file_state 1 object, 48 bytes
---- star_invention 1 object, 48 bytes
- ---- by_function_bp_data 1 object, 40 bytes
---- kind_template_definition 1 object, 40 bytes
---- loop_over_scope 1 object, 40 bytes
+ ---- by_function_bp_data 1 object, 40 bytes
39.5% was used for memory not allocated for objects:
- 20.6% text stream storage 82822316 bytes in 530909 claims
+ 20.6% text stream storage 82822772 bytes in 530909 claims
4.5% dictionary storage 18153472 bytes in 33229 claims
---- sorting 744 bytes in 3 claims
1.7% source text 7200000 bytes in 3 claims
diff --git a/inform7/Figures/timings-diagnostics.txt b/inform7/Figures/timings-diagnostics.txt
index 171dc858c..125a99967 100644
--- a/inform7/Figures/timings-diagnostics.txt
+++ b/inform7/Figures/timings-diagnostics.txt
@@ -1,9 +1,9 @@
100.0% in inform7 run
- 55.7% in compilation to Inter
- 39.9% in //Sequence::undertake_queued_tasks//
- 3.6% in //MajorNodes::pre_pass//
+ 55.4% in compilation to Inter
+ 39.5% in //Sequence::undertake_queued_tasks//
+ 3.5% in //MajorNodes::pre_pass//
2.6% in //MajorNodes::pass_1//
- 2.0% in //RTPhrasebook::compile_entries//
+ 2.1% in //RTPhrasebook::compile_entries//
1.4% in //ImperativeDefinitions::assess_all//
1.1% in //RTKindConstructors::compile//
0.4% in //ImperativeDefinitions::compile_first_block//
@@ -16,11 +16,11 @@
0.1% in //RTKindConstructors::compile_permissions//
0.1% in //Task::make_built_in_kind_constructors//
0.1% in //World::stages_II_and_III//
- 1.6% not specifically accounted for
- 42.3% in running Inter pipeline
+ 1.8% not specifically accounted for
+ 42.6% in running Inter pipeline
11.2% in step preparation
- 9.8% in inter step 7/14: consolidate-text
- 8.1% in inter step 2/14: link
+ 10.2% in inter step 7/14: consolidate-text
+ 8.2% in inter step 2/14: link
7.0% in inter step 14/14: generate inform6 -> auto.inf
1.6% in inter step 10/14: make-identifiers-unique
0.4% in inter step 11/14: reconcile-verbs
@@ -31,6 +31,6 @@
0.1% in inter step 12/14: eliminate-redundant-labels
0.1% in inter step 4/14: parse-linked-matter
0.1% in inter step 5/14: resolve-conditional-compilation
- 2.4% not specifically accounted for
+ 2.2% not specifically accounted for
1.7% in supervisor
0.2% not specifically accounted for
diff --git a/inform7/assertions-module/Chapter 4/The Creator.w b/inform7/assertions-module/Chapter 4/The Creator.w
index df279f57e..120398ab3 100644
--- a/inform7/assertions-module/Chapter 4/The Creator.w
+++ b/inform7/assertions-module/Chapter 4/The Creator.w
@@ -604,7 +604,7 @@ to abbreviated forms of object names are normally allowed.
@
else
@;
- IndexUtilities::DocReferences::position_of_symbol(&W);
+ DocReferences::position_of_symbol(&W);
Node::set_text(p, W);
@ =
diff --git a/inform7/assertions-module/Chapter 5/Parsing Type Data.w b/inform7/assertions-module/Chapter 5/Parsing Type Data.w
index 4fc759925..6ec82060b 100644
--- a/inform7/assertions-module/Chapter 5/Parsing Type Data.w
+++ b/inform7/assertions-module/Chapter 5/Parsing Type Data.w
@@ -25,7 +25,7 @@ void ParsingIDTypeData::parse(id_type_data *idtd, wording XW) {
if (Wordings::nonempty(XW))
XW = ParsingIDTypeData::phtd_parse_return_data(idtd, XW); /* trim return from the front */
if (Wordings::nonempty(XW))
- IndexUtilities::DocReferences::position_of_symbol(&XW); /* trim doc ref from the back */
+ DocReferences::position_of_symbol(&XW); /* trim doc ref from the back */
if (Wordings::nonempty(XW))
XW = ParsingIDTypeData::phtd_parse_doodads(idtd, XW, &say_flag); /* and doodads from the back */
diff --git a/inform7/assertions-module/Chapter 5/Phrase Type Data.w b/inform7/assertions-module/Chapter 5/Phrase Type Data.w
index 3a98b941f..6c7d6309d 100644
--- a/inform7/assertions-module/Chapter 5/Phrase Type Data.w
+++ b/inform7/assertions-module/Chapter 5/Phrase Type Data.w
@@ -890,7 +890,7 @@ void IDTypeData::inv_write_HTML_representation(OUTPUT_STREAM, parse_node *inv) {
TEMPORARY_TEXT(pds)
WRITE_TO(pds, "%+W",
Wordings::one_word(Wordings::first_wn(ToPhraseFamily::doc_ref(idb->head_of_defn))));
- IndexUtilities::DocReferences::link_to(OUT, pds, -1);
+ DocReferences::link_to(OUT, pds, -1);
DISCARD_TEXT(pds)
} else
IndexUtilities::link_to(OUT,
diff --git a/inform7/assertions-module/Chapter 5/To Phrase Family.w b/inform7/assertions-module/Chapter 5/To Phrase Family.w
index a7ea42f95..54b8632eb 100644
--- a/inform7/assertions-module/Chapter 5/To Phrase Family.w
+++ b/inform7/assertions-module/Chapter 5/To Phrase Family.w
@@ -113,7 +113,7 @@ void ToPhraseFamily::claim(imperative_defn_family *self, imperative_defn *id) {
Wordings::first_word(GET_RW(, 3));
}
wording PW = GET_RW(, 1);
- tfd->ph_documentation_symbol = IndexUtilities::DocReferences::position_of_symbol(&PW);
+ tfd->ph_documentation_symbol = DocReferences::position_of_symbol(&PW);
tfd->prototype_text = PW;
}
}
diff --git a/inform7/core-module/Chapter 1/What To Compile.w b/inform7/core-module/Chapter 1/What To Compile.w
index 9e0e05077..ac362c483 100644
--- a/inform7/core-module/Chapter 1/What To Compile.w
+++ b/inform7/core-module/Chapter 1/What To Compile.w
@@ -66,7 +66,7 @@ int Task::carry_out(build_step *S) {
if (project == NULL) internal_error("no project");
latest_syntax_tree = project->syntax_tree;
- IndexUtilities::DocReferences::read_xrefs();
+ DocReferences::read_xrefs();
Task::issue_problems_arising(project->as_copy->vertex);
PluginManager::start_plugins();
diff --git a/inform7/if-module/Chapter 2/The Blurb File.w b/inform7/if-module/Chapter 2/The Blurb File.w
index 34007dc2d..f30ec640c 100644
--- a/inform7/if-module/Chapter 2/The Blurb File.w
+++ b/inform7/if-module/Chapter 2/The Blurb File.w
@@ -252,55 +252,55 @@ Inblorb to copy out later.
if (rel->release_cover == FALSE) {
WRITE("status alternative ||Using 'Release along with cover art', to "
"provide something more distinctive than the default artwork above");
- IndexUtilities::DocReferences::link_to(OUT, I"release_cover", FALSE);
+ DocReferences::link_to(OUT, I"release_cover", FALSE);
WRITE("||\n");
}
if (rel->release_website == FALSE) {
WRITE("status alternative ||Using 'Release along with a website'");
- IndexUtilities::DocReferences::link_to(OUT, I"release_website", FALSE);
+ DocReferences::link_to(OUT, I"release_website", FALSE);
WRITE("||\n");
}
if (rel->release_interpreter == FALSE) {
WRITE("status alternative ||Using 'Release along with an interpreter', "
"for in-browser play on your website");
- IndexUtilities::DocReferences::link_to(OUT, I"release_interpreter", FALSE);
+ DocReferences::link_to(OUT, I"release_interpreter", FALSE);
WRITE("||\n");
}
if (NUMBER_CREATED(auxiliary_file) == 0) {
WRITE("status alternative ||Using 'Release along with a file of "
"\"Such-and-Such\" called \"whatever.pdf\"', perhaps to add a "
"manual, or a welcoming note");
- IndexUtilities::DocReferences::link_to(OUT, I"release_files", FALSE);
+ DocReferences::link_to(OUT, I"release_files", FALSE);
WRITE("||\n");
}
if (rel->release_source == FALSE) {
WRITE("status alternative ||Using 'Release along with the source text'");
- IndexUtilities::DocReferences::link_to(OUT, I"release_source", FALSE);
+ DocReferences::link_to(OUT, I"release_source", FALSE);
WRITE("||\n");
}
if (rel->release_solution == FALSE) {
WRITE("status alternative ||Using 'Release along with a solution'");
- IndexUtilities::DocReferences::link_to(OUT, I"release_solution", FALSE);
+ DocReferences::link_to(OUT, I"release_solution", FALSE);
WRITE("||\n");
}
if (rel->release_card == FALSE) {
WRITE("status alternative ||Using 'Release along with the library card'");
- IndexUtilities::DocReferences::link_to(OUT, I"release_card", FALSE);
+ DocReferences::link_to(OUT, I"release_card", FALSE);
WRITE("||\n");
}
if (rel->release_booklet == FALSE) {
WRITE("status alternative ||Using 'Release along with the introductory booklet'");
- IndexUtilities::DocReferences::link_to(OUT, I"release_booklet", FALSE);
+ DocReferences::link_to(OUT, I"release_booklet", FALSE);
WRITE("||\n");
}
if (rel->release_postcard == FALSE) {
WRITE("status alternative ||Using 'Release along with the introductory postcard'");
- IndexUtilities::DocReferences::link_to(OUT, I"release_postcard", FALSE);
+ DocReferences::link_to(OUT, I"release_postcard", FALSE);
WRITE("||\n");
}
diff --git a/inform7/knowledge-module/Chapter 2/Nonlocal Variables.w b/inform7/knowledge-module/Chapter 2/Nonlocal Variables.w
index 0b700a19d..62ca7e95a 100644
--- a/inform7/knowledge-module/Chapter 2/Nonlocal Variables.w
+++ b/inform7/knowledge-module/Chapter 2/Nonlocal Variables.w
@@ -106,7 +106,7 @@ nonlocal_variable *NonlocalVariables::new(wording W, kind *K, shared_variable *s
nonlocal_variable *nlv = CREATE(nonlocal_variable);
latest_nonlocal_variable = nlv;
- nlv->var_documentation_symbol = IndexUtilities::DocReferences::position_of_symbol(&W);
+ nlv->var_documentation_symbol = DocReferences::position_of_symbol(&W);
nlv->name = W;
nlv->nlv_created_at = current_sentence;
nlv->nlv_kind = K;
diff --git a/inform7/runtime-module/Chapter 5/Kind Constructors.w b/inform7/runtime-module/Chapter 5/Kind Constructors.w
index f5b7084ef..830c64c9a 100644
--- a/inform7/runtime-module/Chapter 5/Kind Constructors.w
+++ b/inform7/runtime-module/Chapter 5/Kind Constructors.w
@@ -511,7 +511,7 @@ void RTKindConstructors::compile(void) {
if (Wordings::nonempty(W)) {
TEMPORARY_TEXT(temp)
WRITE_TO(temp, "kind_%N", Wordings::first_wn(W));
- if (IndexUtilities::DocReferences::validate_if_possible(temp))
+ if (DocReferences::validate_if_possible(temp))
Kinds::Behaviour::set_documentation_reference(K, temp);
DISCARD_TEXT(temp)
}
diff --git a/inform7/runtime-module/Chapter 6/Phrasebook Index.w b/inform7/runtime-module/Chapter 6/Phrasebook Index.w
index d0e78ff1c..7be781106 100644
--- a/inform7/runtime-module/Chapter 6/Phrasebook Index.w
+++ b/inform7/runtime-module/Chapter 6/Phrasebook Index.w
@@ -289,9 +289,9 @@ of course.
HTML_CLOSE("p");
TEMPORARY_TEXT(pds)
WRITE_TO(pds, "%+W", Wordings::one_word(Wordings::first_wn(ToPhraseFamily::doc_ref(idb->head_of_defn))));
- IndexUtilities::DocReferences::doc_fragment(OUT, pds);
+ DocReferences::doc_fragment(OUT, pds);
HTML_OPEN("p"); WRITE("See ");
- IndexUtilities::DocReferences::fully_link(OUT, pds);
+ DocReferences::fully_link(OUT, pds);
DISCARD_TEXT(pds)
}
diff --git a/inform7/values-module/Chapter 5/Dash.w b/inform7/values-module/Chapter 5/Dash.w
index cab96d83e..52373063f 100644
--- a/inform7/values-module/Chapter 5/Dash.w
+++ b/inform7/values-module/Chapter 5/Dash.w
@@ -1777,7 +1777,7 @@ extensions).
TEMPORARY_TEXT(pds)
WRITE_TO(pds, "%+W", Wordings::one_word(Wordings::first_wn(NW)));
if (Log::aspect_switched_on(PHRASE_USAGE_DA)) {
- IndexUtilities::DocReferences::doc_mark_used(pds,
+ DocReferences::doc_mark_used(pds,
Wordings::first_wn(Node::get_text(inv)));
}
DISCARD_TEXT(pds)
diff --git a/inter/index-module/Chapter 1/Index Module.w b/inter/index-module/Chapter 1/Index Module.w
index 8338a2301..d1f7971fa 100644
--- a/inter/index-module/Chapter 1/Index Module.w
+++ b/inter/index-module/Chapter 1/Index Module.w
@@ -30,7 +30,6 @@ void IndexModule::end(void) {
@
-@e localisation_dictionary_CLASS
@e index_page_CLASS
@e index_element_CLASS
@e inter_lexicon_CLASS
@@ -46,7 +45,6 @@ void IndexModule::end(void) {
@e rubric_holder_CLASS
=
-DECLARE_CLASS(localisation_dictionary)
DECLARE_CLASS(index_element)
DECLARE_CLASS(index_page)
DECLARE_CLASS(inter_lexicon)
diff --git a/inter/index-module/Chapter 2/Index Interpreter.w b/inter/index-module/Chapter 2/Index Interpreter.w
index f355862a1..58f80f768 100644
--- a/inter/index-module/Chapter 2/Index Interpreter.w
+++ b/inter/index-module/Chapter 2/Index Interpreter.w
@@ -20,8 +20,7 @@ element Vl
declares a new index page with leafname |Kinds.html|, and with the highlight
colour (in CSS hexadecimal style) |e9cf08|; and then declzres that it contains
the three elements |Ch|, |Ar| and |Vl|, in that order. Note that this file does
-not contain any user-facing text: all of that comes from //Localisation//, with
-|%%Kinds|, |%%Ch|, |%%Ar| and |%%Vl| being localisation contexts.
+not contain any user-facing text: all of that comes from //html: Localisation//.
The file also doesn't contain instructions for what goes into those elements.
All of that is hardwired into this module's code: for example, |Ar| is generated
diff --git a/inter/index-module/Chapter 2/Index Rules.w b/inter/index-module/Chapter 2/Index Rules.w
index ef6cbffbc..1e1118884 100644
--- a/inter/index-module/Chapter 2/Index Rules.w
+++ b/inter/index-module/Chapter 2/Index Rules.w
@@ -162,8 +162,8 @@ void IndexRules::rulebook_box(OUTPUT_STREAM, tree_inventory *inv,
if (rb_pack == NULL) return;
TEMPORARY_TEXT(textual_name)
- if (Str::len(titling_key) > 0) Localisation::write_0(textual_name, LD, titling_key);
- else Localisation::write_0(textual_name, LD, I"Index.Elements.RS.Nameless");
+ if (Str::len(titling_key) > 0) Localisation::roman(textual_name, LD, titling_key);
+ else Localisation::roman(textual_name, LD, I"Index.Elements.RS.Nameless");
string_position start = Str::start(textual_name);
Str::put(start, Characters::tolower(Str::get(start)));
@@ -209,7 +209,7 @@ void IndexRules::rulebook_box(OUTPUT_STREAM, tree_inventory *inv,
if (n == 0) {
HTML::open_indented_p(OUT, 2, "tight");
- Localisation::write_0(OUT, LD, I"Index.Elements.RS.Empty");
+ Localisation::roman(OUT, LD, I"Index.Elements.RS.Empty");
HTML_CLOSE("p");
} else if (disclaimer_instead) {
HTML::open_indented_p(OUT, 2, "tight"); WRITE("%S", disclaimer_instead); HTML_CLOSE("p");
@@ -218,7 +218,7 @@ void IndexRules::rulebook_box(OUTPUT_STREAM, tree_inventory *inv,
}
@ =
- if (Str::len(doc_link) > 0) IndexUtilities::DocReferences::link(OUT, doc_link);
+ if (Str::len(doc_link) > 0) DocReferences::link(OUT, doc_link);
WRITE(" ... %S", Metadata::read_optional_textual(rb_pack, I"^focus"));
IndexUtilities::link_package(OUT, rb_pack);
@@ -330,7 +330,7 @@ int IndexRules::index_rule(OUTPUT_STREAM, inter_tree *I, inter_package *R,
WRITE("%S", italicised_text);
if (rc.scene_context) {
WRITE(" ");
- Localisation::write_1(OUT, LD, I"Index.Elements.RS.During",
+ Localisation::roman_t(OUT, LD, I"Index.Elements.RS.During",
FauxScenes::scene_name(rc.scene_context));
}
WRITE(" ");
@@ -351,7 +351,7 @@ int IndexRules::index_rule(OUTPUT_STREAM, inter_tree *I, inter_package *R,
WRITE(" name ");
Str::clear(S);
- Localisation::write_2(S, LD, I"Index.Elements.RS.Response", name,
+ Localisation::roman_tt(S, LD, I"Index.Elements.RS.Response", name,
Metadata::read_optional_textual(owner, I"^printed_name"));
PasteButtons::paste_text(OUT, S);
WRITE(" unlist ");
@@ -435,7 +435,7 @@ void IndexRules::index_response(OUTPUT_STREAM, inter_package *rule_pack,
Str::clear(S);
TEMPORARY_TEXT(letter)
WRITE_TO(letter, "%c", 'A' + marker);
- Localisation::write_2(S, LD, I"Index.Elements.RS.Response",
+ Localisation::roman_tt(S, LD, I"Index.Elements.RS.Response",
Metadata::read_textual(rule_pack, I"^name"), letter);
PasteButtons::paste_text(OUT, S);
WRITE(" set ");
@@ -450,7 +450,7 @@ void IndexRules::index_outcomes(OUTPUT_STREAM, inter_tree *I, inter_package *rb_
LOOP_THROUGH_SUBPACKAGES(ro_pack, rb_pack, I"_rulebook_outcome") {
HTML::open_indented_p(OUT, 2, "hanging");
WRITE("");
- Localisation::write_0(OUT, LD, I"Index.Elements.RS.Outcome");
+ Localisation::roman(OUT, LD, I"Index.Elements.RS.Outcome");
WRITE(" ");
int is_def = (int) Metadata::read_optional_numeric(ro_pack, I"^is_default");
if (is_def) WRITE("");
@@ -458,11 +458,11 @@ void IndexRules::index_outcomes(OUTPUT_STREAM, inter_tree *I, inter_package *rb_
if (is_def) WRITE(" (default)");
WRITE(" - ");
if (Metadata::read_optional_numeric(ro_pack, I"^succeeds"))
- Localisation::write_0(OUT, LD, I"Index.Elements.RS.Success");
+ Localisation::roman(OUT, LD, I"Index.Elements.RS.Success");
else if (Metadata::read_optional_numeric(ro_pack, I"^fails"))
- Localisation::write_0(OUT, LD, I"Index.Elements.RS.Failure");
+ Localisation::roman(OUT, LD, I"Index.Elements.RS.Failure");
else
- Localisation::write_0(OUT, LD, I"Index.Elements.RS.NoOutcome");
+ Localisation::roman(OUT, LD, I"Index.Elements.RS.NoOutcome");
WRITE(" ");
HTML_CLOSE("p");
}
@@ -470,14 +470,14 @@ void IndexRules::index_outcomes(OUTPUT_STREAM, inter_tree *I, inter_package *rb_
if (Metadata::read_optional_numeric(rb_pack, I"^default_succeeds")) {
HTML::open_indented_p(OUT, 2, "hanging");
WRITE("");
- Localisation::write_0(OUT, LD, I"Index.Elements.RS.DefaultSuccess");
+ Localisation::roman(OUT, LD, I"Index.Elements.RS.DefaultSuccess");
WRITE(" ");
HTML_CLOSE("p");
}
if (Metadata::read_optional_numeric(rb_pack, I"^default_fails")) {
HTML::open_indented_p(OUT, 2, "hanging");
WRITE("");
- Localisation::write_0(OUT, LD, I"Index.Elements.RS.DefaultFailure");
+ Localisation::roman(OUT, LD, I"Index.Elements.RS.DefaultFailure");
WRITE(" ");
HTML_CLOSE("p");
}
@@ -549,15 +549,15 @@ void IndexRules::activity_box(OUTPUT_STREAM, inter_tree *I, inter_package *av_pa
HTML::open_indented_p(OUT, 1, "tight");
TEMPORARY_TEXT(skeleton)
- Localisation::write_1(skeleton, LD, I"Index.Elements.RS.BeforeActivity", textual_name);
+ Localisation::roman_t(skeleton, LD, I"Index.Elements.RS.BeforeActivity", textual_name);
PasteButtons::paste_text(OUT, skeleton);
WRITE(": b ");
Str::clear(skeleton);
- Localisation::write_1(skeleton, LD, I"Index.Elements.RS.ForActivity", textual_name);
+ Localisation::roman_t(skeleton, LD, I"Index.Elements.RS.ForActivity", textual_name);
PasteButtons::paste_text(OUT, skeleton);
WRITE(": f ");
Str::clear(skeleton);
- Localisation::write_1(skeleton, LD, I"Index.Elements.RS.AfterActivity", textual_name);
+ Localisation::roman_t(skeleton, LD, I"Index.Elements.RS.AfterActivity", textual_name);
PasteButtons::paste_text(OUT, skeleton);
WRITE(": a ");
DISCARD_TEXT(skeleton)
@@ -586,5 +586,5 @@ void IndexRules::activity_box(OUTPUT_STREAM, inter_tree *I, inter_package *av_pa
@ =
IndexUtilities::link_to_documentation(OUT, av_pack);
WRITE(" ... ");
- Localisation::write_0(OUT, LD, I"Index.Elements.RS.Activity");
+ Localisation::roman(OUT, LD, I"Index.Elements.RS.Activity");
IndexUtilities::link_package(OUT, av_pack);
diff --git a/inter/index-module/Chapter 2/Index Utilities.w b/inter/index-module/Chapter 2/Index Utilities.w
index 0e017ef8e..701508ee9 100644
--- a/inter/index-module/Chapter 2/Index Utilities.w
+++ b/inter/index-module/Chapter 2/Index Utilities.w
@@ -45,7 +45,7 @@ void IndexUtilities::banner_line(OUTPUT_STREAM, index_page *page, int N, text_st
HTML_OPEN_WITH("p", "style=\"margin-top:0px;padding-top:0px;"
"margin-bottom:0px;padding-bottom:0px;line-height:150%%;\"");
WRITE("%S — \n", name);
- Localisation::write_0(OUT, D, exp);
+ Localisation::roman(OUT, D, exp);
HTML_CLOSE("p");
HTML_CLOSE("td");
@@ -105,7 +105,7 @@ system set up in //html: Documentation References//.
=
void IndexUtilities::link_to_documentation(OUTPUT_STREAM, inter_package *pack) {
text_stream *doc = Metadata::read_optional_textual(pack, I"^documentation");
- if (Str::len(doc) > 0) IndexUtilities::DocReferences::link(OUT, doc);
+ if (Str::len(doc) > 0) DocReferences::link(OUT, doc);
}
@h Links to detail pages.
diff --git a/inter/index-module/Chapter 2/Lexicon.w b/inter/index-module/Chapter 2/Lexicon.w
index bc402f3ae..0b30a58ab 100644
--- a/inter/index-module/Chapter 2/Lexicon.w
+++ b/inter/index-module/Chapter 2/Lexicon.w
@@ -263,7 +263,7 @@ eds. Howarth and Lyons (1996).
@ =
if (lex->part_of_speech == PREP_TLEXE)
- Localisation::write_1(OUT, LD, I"Index.Elements.Lx.ToBe", lex->lemma);
+ Localisation::roman_t(OUT, LD, I"Index.Elements.Lx.ToBe", lex->lemma);
else
WRITE("%S", lex->lemma);
@@ -294,7 +294,7 @@ source text: so any single link would be potentially misleading.
@ =
@;
WRITE(", ");
- Localisation::write_1(OUT, LD, I"Index.Elements.Lx.KindOf",
+ Localisation::roman_t(OUT, LD, I"Index.Elements.Lx.KindOf",
Metadata::read_optional_textual(lex->lex_package, I"^index_superkind"));
@;
@@ -316,7 +316,7 @@ different contexts. We want to quote all of those.
@ =
@;
WRITE(", ");
- Localisation::write_1(OUT, LD, I"Index.Elements.Lx.ValueOf",
+ Localisation::roman_t(OUT, LD, I"Index.Elements.Lx.ValueOf",
Metadata::read_optional_textual(lex->lex_package, I"^index_kind"));
@;
diff --git a/inter/index-module/Chapter 3/Alphabetic Element.w b/inter/index-module/Chapter 3/Alphabetic Element.w
index 9b8903857..0f313f094 100644
--- a/inter/index-module/Chapter 3/Alphabetic Element.w
+++ b/inter/index-module/Chapter 3/Alphabetic Element.w
@@ -73,7 +73,7 @@ void AlphabeticElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
void AlphabeticElement::column(OUTPUT_STREAM, text_stream *key, localisation_dictionary *LD) {
TEMPORARY_TEXT(full)
WRITE_TO(full, "Index.Elements.A2.%S", key);
- Localisation::bold_0(OUT, LD, full);
+ Localisation::bold(OUT, LD, full);
DISCARD_TEXT(full)
}
@@ -81,7 +81,7 @@ void AlphabeticElement::column(OUTPUT_STREAM, text_stream *key, localisation_dic
void AlphabeticElement::note(OUTPUT_STREAM, text_stream *key, localisation_dictionary *LD) {
TEMPORARY_TEXT(full)
WRITE_TO(full, "Index.Elements.A2.%S", key);
- Localisation::italic_0(OUT, LD, full);
+ Localisation::italic(OUT, LD, full);
DISCARD_TEXT(full)
}
diff --git a/inter/index-module/Chapter 3/Arithmetic Element.w b/inter/index-module/Chapter 3/Arithmetic Element.w
index b758d45e1..04fde0d74 100644
--- a/inter/index-module/Chapter 3/Arithmetic Element.w
+++ b/inter/index-module/Chapter 3/Arithmetic Element.w
@@ -24,7 +24,7 @@ void ArithmeticElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
HTML::first_html_column(OUT, 0);
HTML_TAG_WITH("img", "border=0 src=inform:/doc_images/calc2.png");
WRITE(" ");
- Localisation::write_0(OUT, LD, I"Index.Elements.Ar.Calculator");
+ Localisation::roman(OUT, LD, I"Index.Elements.Ar.Calculator");
HTML::end_html_row(OUT);
HTML::end_html_table(OUT);
HTML_CLOSE("p");
@@ -64,7 +64,7 @@ void ArithmeticElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
if (Str::len(dims) > 0) {
WRITE("%S", dims);
} else {
- Localisation::italic_0(OUT, LD, I"Index.Elements.Ar.Dimensionless");
+ Localisation::italic(OUT, LD, I"Index.Elements.Ar.Dimensionless");
}
@ This is simply a table of all the multiplications declared in the source
@@ -112,7 +112,7 @@ text, sorted into kind order of left and then right operand.
void ArithmeticElement::column(OUTPUT_STREAM, text_stream *key, localisation_dictionary *LD) {
TEMPORARY_TEXT(full)
WRITE_TO(full, "Index.Elements.Ar.%S", key);
- Localisation::bold_0(OUT, LD, full);
+ Localisation::bold(OUT, LD, full);
WRITE(" ");
DISCARD_TEXT(full)
}
diff --git a/inter/index-module/Chapter 3/Behaviour Element.w b/inter/index-module/Chapter 3/Behaviour Element.w
index 800315871..90223f6f6 100644
--- a/inter/index-module/Chapter 3/Behaviour Element.w
+++ b/inter/index-module/Chapter 3/Behaviour Element.w
@@ -13,7 +13,7 @@ void BehaviourElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
if (num_naps == 0) {
HTML_OPEN("p");
- Localisation::write_0(OUT, LD, I"Index.Elements.Bh.None");
+ Localisation::roman(OUT, LD, I"Index.Elements.Bh.None");
HTML_CLOSE("p");
} else {
TreeLists::sort(inv->named_action_pattern_nodes, Synoptic::module_order);
@@ -24,7 +24,7 @@ void BehaviourElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
IndexUtilities::link_package(OUT, pack);
HTML_TAG("br");
WRITE(" ");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Bh.Defined");
+ Localisation::italic(OUT, LD, I"Index.Elements.Bh.Defined");
inter_tree_node *D = Inter::Packages::definition(pack);
LOOP_THROUGH_INTER_CHILDREN(C, D) {
if (C->W.data[ID_IFLD] == PACKAGE_IST) {
diff --git a/inter/index-module/Chapter 3/Chart Element.w b/inter/index-module/Chapter 3/Chart Element.w
index 7cb0173a5..4cfaf64e6 100644
--- a/inter/index-module/Chapter 3/Chart Element.w
+++ b/inter/index-module/Chapter 3/Chart Element.w
@@ -61,7 +61,7 @@ higher up, but kinds with priority 0 do not appear in the index at all.
@ =
HTML::first_html_column_nowrap(OUT, 0, "#e0e0e0");
WRITE("");
- Localisation::write_0(OUT, D, I"Index.Elements.Ch.BasicKinds");
+ Localisation::roman(OUT, D, I"Index.Elements.Ch.BasicKinds");
WRITE(" ");
ChartElement::index_kind_col_head(OUT, I"Index.Elements.Ch.DefaultColumn", "default", D);
ChartElement::index_kind_col_head(OUT, I"Index.Elements.Ch.RepeatColumn", "repeat", D);
@@ -74,7 +74,7 @@ higher up, but kinds with priority 0 do not appear in the index at all.
@ =
HTML::first_html_column_nowrap(OUT, 0, "#e0e0e0");
WRITE("");
- Localisation::write_0(OUT, D, I"Index.Elements.Ch.NewKinds");
+ Localisation::roman(OUT, D, I"Index.Elements.Ch.NewKinds");
WRITE(" ");
ChartElement::index_kind_col_head(OUT, I"Index.Elements.Ch.DefaultColumn", "default", D);
ChartElement::index_kind_col_head(OUT, NULL, NULL, D);
@@ -96,25 +96,25 @@ row.
@ =
HTML_OPEN_WITH("tr", "style=\"display:none\" id=\"default\"");
HTML_OPEN_WITH("td", "colspan=\"5\"");
- Localisation::write_0(OUT, D, I"Index.Elements.Ch.DefaultGloss");
+ Localisation::roman(OUT, D, I"Index.Elements.Ch.DefaultGloss");
HTML_TAG("hr");
HTML_CLOSE("td");
HTML_CLOSE("tr");
HTML_OPEN_WITH("tr", "style=\"display:none\" id=\"repeat\"");
HTML_OPEN_WITH("td", "colspan=\"5\"");
- Localisation::write_0(OUT, D, I"Index.Elements.Ch.RepeatGloss");
+ Localisation::roman(OUT, D, I"Index.Elements.Ch.RepeatGloss");
HTML_TAG("hr");
HTML_CLOSE("td");
HTML_CLOSE("tr");
HTML_OPEN_WITH("tr", "style=\"display:none\" id=\"props\"");
HTML_OPEN_WITH("td", "colspan=\"5\"");
- Localisation::write_0(OUT, D, I"Index.Elements.Ch.PropsGloss");
+ Localisation::roman(OUT, D, I"Index.Elements.Ch.PropsGloss");
HTML_TAG("hr");
HTML_CLOSE("td");
HTML_CLOSE("tr");
HTML_OPEN_WITH("tr", "style=\"display:none\" id=\"under\"");
HTML_OPEN_WITH("td", "colspan=\"5\"");
- Localisation::write_0(OUT, D, I"Index.Elements.Ch.UnderGloss");
+ Localisation::roman(OUT, D, I"Index.Elements.Ch.UnderGloss");
HTML_TAG("hr");
HTML_CLOSE("td");
HTML_CLOSE("tr");
@@ -156,7 +156,7 @@ or as paragraph of text in pass 2:
IndexUtilities::anchor_numbered(OUT, i); /* ...the anchor to which the grey icon in the table led */
WRITE(""); IndexUtilities::kind_name(OUT, pack, FALSE, TRUE); WRITE(" ");
WRITE(" (");
- Localisation::italic_0(OUT, D, I"Index.Elements.Ch.Plural");
+ Localisation::italic(OUT, D, I"Index.Elements.Ch.Plural");
WRITE(" ");
IndexUtilities::kind_name(OUT, pack, TRUE, FALSE); WRITE(")");
IndexUtilities::link_to_documentation(OUT, pack);
@@ -204,7 +204,7 @@ or as paragraph of text in pass 2:
HTML_OPEN("p");
HTML_TAG_WITH("a", "name=contra");
HTML_OPEN_WITH("span", "class=\"smaller\"");
- Localisation::write_0(OUT, D, I"Index.Elements.Ch.CovarianceGloss");
+ Localisation::roman(OUT, D, I"Index.Elements.Ch.CovarianceGloss");
HTML_CLOSE("span");
HTML_CLOSE("p");
@@ -217,7 +217,7 @@ void ChartElement::index_kind_col_head(OUTPUT_STREAM, text_stream *key, char *an
localisation_dictionary *D) {
HTML::next_html_column_nowrap(OUT, 0);
WRITE("");
- if (Str::len(key) > 0) Localisation::write_0(OUT, D, key);
+ if (Str::len(key) > 0) Localisation::roman(OUT, D, key);
WRITE(" ");
if (anchor) {
HTML_OPEN_WITH("a", "href=\"#\" onClick=\"showBasic('%s');\"", anchor);
@@ -354,7 +354,7 @@ void ChartElement::index_object_kind(OUTPUT_STREAM, tree_inventory *inv,
if (pass == 2) WRITE("");
if (pass == 2) {
WRITE(" (");
- Localisation::italic_0(OUT, D, I"Index.Elements.Ch.Plural");
+ Localisation::italic(OUT, D, I"Index.Elements.Ch.Plural");
WRITE(" ");
IndexUtilities::kind_name(OUT, pack, TRUE, FALSE);
WRITE(")");
diff --git a/inter/index-module/Chapter 3/Commands Element.w b/inter/index-module/Chapter 3/Commands Element.w
index 32eb3abac..b5b628a07 100644
--- a/inter/index-module/Chapter 3/Commands Element.w
+++ b/inter/index-module/Chapter 3/Commands Element.w
@@ -127,20 +127,20 @@ linked_list *CommandsElement::sort(linked_list *entries) {
case OUT_OF_WORLD_COMMAND:
HTML::begin_colour(OUT, I"800000");
WRITE(""%S", ", cie->command_headword);
- Localisation::italic_0(OUT, LD, I"Index.Elements.Cm.Command");
+ Localisation::italic(OUT, LD, I"Index.Elements.Cm.Command");
HTML::end_colour(OUT);
HTML_TAG("br");
break;
case TESTING_COMMAND:
HTML::begin_colour(OUT, I"800000");
WRITE(""%S", ", cie->command_headword);
- Localisation::italic_0(OUT, LD, I"Index.Elements.Cm.TestingCommand");
+ Localisation::italic(OUT, LD, I"Index.Elements.Cm.TestingCommand");
HTML::end_colour(OUT);
HTML_TAG("br");
break;
case BARE_DIRECTION_COMMAND:
WRITE(""[direction]" - ");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Cm.DirectionCommand");
+ Localisation::italic(OUT, LD, I"Index.Elements.Cm.DirectionCommand");
HTML_TAG("br");
break;
}
@@ -158,7 +158,7 @@ void CommandsElement::index_normal(OUTPUT_STREAM, inter_tree *I, inter_package *
void CommandsElement::index_alias(OUTPUT_STREAM, inter_tree *I, inter_package *cg_pack,
text_stream *headword, localisation_dictionary *LD) {
WRITE(""%S", ", headword);
- Localisation::italic_0(OUT, LD, I"Index.Elements.Cm.Alias");
+ Localisation::italic(OUT, LD, I"Index.Elements.Cm.Alias");
WRITE(" "%S"", Metadata::read_textual(cg_pack, I"^command"));
IndexUtilities::link_package(OUT, cg_pack);
HTML_TAG("br");
@@ -183,7 +183,7 @@ void CommandsElement::index_grammar_line(OUTPUT_STREAM, inter_package *cgl,
(int) Metadata::read_numeric(an, I"action_id"), TRUE);
if (Metadata::read_optional_numeric(cgl, I"^reversed")) {
WRITE(" ");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Cm.Reversed");
+ Localisation::italic(OUT, LD, I"Index.Elements.Cm.Reversed");
}
if (oow) HTML::end_colour(OUT);
HTML_TAG("br");
diff --git a/inter/index-module/Chapter 3/Contents Element.w b/inter/index-module/Chapter 3/Contents Element.w
index 309b3e5fc..aa65bfb1c 100644
--- a/inter/index-module/Chapter 3/Contents Element.w
+++ b/inter/index-module/Chapter 3/Contents Element.w
@@ -24,16 +24,16 @@ void ContentsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
text_stream *author = Metadata::read_optional_textual(pack, I"^author");
if (Str::len(title) > 0) {
if (Str::len(author) > 0)
- Localisation::write_2(OUT, LD, I"Index.Elements.C.Titling", title, author);
+ Localisation::roman_tt(OUT, LD, I"Index.Elements.C.Titling", title, author);
else
- Localisation::write_1(OUT, LD, I"Index.Elements.C.AnonymousTitling", title);
+ Localisation::roman_t(OUT, LD, I"Index.Elements.C.AnonymousTitling", title);
}
WRITE("");
HTML_CLOSE("p");
@ =
HTML_OPEN("p");
- Localisation::write_0(OUT, LD, I"Index.Elements.C.ContentsHeading");
+ Localisation::roman(OUT, LD, I"Index.Elements.C.ContentsHeading");
HTML_CLOSE("p");
int min_positive_level = 10, entries_written = 0;
inter_package *heading_pack;
@@ -51,7 +51,7 @@ void ContentsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
if (entries_written == 0) {
HTML_OPEN("p");
WRITE("(");
- Localisation::write_0(OUT, LD, I"Index.Elements.C.NoContents");
+ Localisation::roman(OUT, LD, I"Index.Elements.C.NoContents");
WRITE(")");
HTML_CLOSE("p");
WRITE("\n");
@@ -88,7 +88,7 @@ void ContentsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
@ =
HTML_OPEN("p");
- Localisation::write_0(OUT, LD, I"Index.Elements.C.ExtensionsHeading");
+ Localisation::roman(OUT, LD, I"Index.Elements.C.ExtensionsHeading");
HTML_CLOSE("p");
ContentsElement::index_extensions_included_by(OUT, inv, NULL, FALSE, LD);
inter_package *ext_pack;
@@ -117,12 +117,12 @@ void ContentsElement::index_extensions_included_by(OUTPUT_STREAM, tree_inventory
HTML::open_indented_p(OUT, 2, "hanging");
HTML::begin_colour(OUT, I"808080");
if (auto_included == TRUE)
- Localisation::write_0(OUT, LD, I"Index.Elements.C.IncludedAutomatically");
+ Localisation::roman(OUT, LD, I"Index.Elements.C.IncludedAutomatically");
else if (auto_included == FALSE)
- Localisation::write_0(OUT, LD, I"Index.Elements.C.IncludedFromSource");
+ Localisation::roman(OUT, LD, I"Index.Elements.C.IncludedFromSource");
else {
inter_package *owner_pack = Inter::Packages::container(owner_id->definition);
- Localisation::write_1(OUT, LD, I"Index.Elements.C.IncludedBy",
+ Localisation::roman_t(OUT, LD, I"Index.Elements.C.IncludedBy",
Metadata::read_optional_textual(owner_pack, I"^title"));
}
HTML::end_colour(OUT);
@@ -148,7 +148,7 @@ void ContentsElement::index_extensions_included_by(OUTPUT_STREAM, tree_inventory
text_stream *v = Metadata::read_textual(pack, I"^version");
if (Str::len(v) > 0) {
HTML_OPEN_WITH("span", "class=\"smaller\"");
- Localisation::write_1(OUT, LD, I"Index.Elements.C.Version", v);
+ Localisation::roman_t(OUT, LD, I"Index.Elements.C.Version", v);
HTML_CLOSE("span");
WRITE(" ");
}
@@ -173,6 +173,6 @@ void ContentsElement::index_extensions_included_by(OUTPUT_STREAM, tree_inventory
@ =
void ContentsElement::word_count(OUTPUT_STREAM, inter_package *pack,
localisation_dictionary *LD) {
- Localisation::write_1n(OUT, LD, I"Index.Elements.C.Words",
+ Localisation::roman_i(OUT, LD, I"Index.Elements.C.Words",
(int) Metadata::read_numeric(pack, I"^word_count"));
}
diff --git a/inter/index-module/Chapter 3/Events Element.w b/inter/index-module/Chapter 3/Events Element.w
index fa139740d..53899907d 100644
--- a/inter/index-module/Chapter 3/Events Element.w
+++ b/inter/index-module/Chapter 3/Events Element.w
@@ -15,7 +15,7 @@ void EventsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
@;
if ((when_count == 0) && (tt_count == 0)) {
HTML_OPEN("p");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Ev.None");
+ Localisation::italic(OUT, LD, I"Index.Elements.Ev.None");
HTML_CLOSE("p");
}
}
@@ -27,7 +27,7 @@ void EventsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
(Metadata::exists(pack, I"^timed_for") == FALSE)) {
if (when_count == 0) {
HTML_OPEN("p");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Ev.Timeless");
+ Localisation::italic(OUT, LD, I"Index.Elements.Ev.Timeless");
HTML_CLOSE("p");
}
when_count++;
@@ -35,7 +35,7 @@ void EventsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
WRITE("%S", Metadata::read_textual(pack, I"^preamble"));
IndexUtilities::link_package(OUT, pack);
WRITE(" (");
- Localisation::write_0(OUT, LD, I"Index.Elements.Ev.WhereTriggered");
+ Localisation::roman(OUT, LD, I"Index.Elements.Ev.WhereTriggered");
WRITE(": ");
inter_package *entry;
LOOP_THROUGH_SUBPACKAGES(entry, pack, I"_timed_rule_trigger") {
@@ -53,7 +53,7 @@ void EventsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
(Metadata::exists(pack, I"^timed_for"))) {
if (tt_count == 0) {
HTML_OPEN("p");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Ev.Timetable");
+ Localisation::italic(OUT, LD, I"Index.Elements.Ev.Timetable");
HTML_CLOSE("p");
}
tt_count++;
diff --git a/inter/index-module/Chapter 3/Extras Element.w b/inter/index-module/Chapter 3/Extras Element.w
index 777be57b4..e6efde8ea 100644
--- a/inter/index-module/Chapter 3/Extras Element.w
+++ b/inter/index-module/Chapter 3/Extras Element.w
@@ -44,9 +44,9 @@ void ExtrasElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
HTML_OPEN("p");
WRITE("");
if (Metadata::read_optional_numeric(E, I"^category") == 1) {
- Localisation::write_0(OUT, LD, I"Index.Elements.Xt.FromSourceText");
+ Localisation::roman(OUT, LD, I"Index.Elements.Xt.FromSourceText");
} else {
- Localisation::write_1(OUT, LD, I"Index.Elements.Xt.FromExtension",
+ Localisation::roman_t(OUT, LD, I"Index.Elements.Xt.FromExtension",
Metadata::read_optional_textual(E, I"^credit"));
}
WRITE(" ");
diff --git a/inter/index-module/Chapter 3/Figures Element.w b/inter/index-module/Chapter 3/Figures Element.w
index 6e62827fe..5b16affed 100644
--- a/inter/index-module/Chapter 3/Figures Element.w
+++ b/inter/index-module/Chapter 3/Figures Element.w
@@ -21,11 +21,11 @@ void FiguresElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
@ =
if (TreeLists::len(inv->figure_nodes) <= 1) { /* cover art always creates 1 */
HTML_OPEN("p");
- Localisation::write_0(OUT, LD, I"Index.Elements.Fi.NoFigures");
+ Localisation::roman(OUT, LD, I"Index.Elements.Fi.NoFigures");
HTML_CLOSE("p");
} else {
HTML_OPEN("p");
- Localisation::bold_0(OUT, LD, I"Index.Elements.Fi.ListOfFigures");
+ Localisation::bold(OUT, LD, I"Index.Elements.Fi.ListOfFigures");
HTML_CLOSE("p");
@;
}
@@ -61,7 +61,7 @@ to match this width, preserving the aspect ratio.
if (count_of_displayed_figures > MAX_INDEXED_FIGURES) {
HTML_OPEN("p");
WRITE("(");
- Localisation::write_2n(OUT, LD, I"Index.Elements.Fi.ThumbnailLimit",
+ Localisation::roman_ii(OUT, LD, I"Index.Elements.Fi.ThumbnailLimit",
MAX_INDEXED_FIGURES, 10*MAX_INDEXED_FIGURES);
WRITE(")");
HTML_CLOSE("p");
@@ -82,15 +82,15 @@ to match this width, preserving the aspect ratio.
}
}
if (format_found == 0) {
- Localisation::italic_0(description, LD, I"Index.Elements.Fi.UnknownFormat");
+ Localisation::italic(description, LD, I"Index.Elements.Fi.UnknownFormat");
} else {
- Localisation::write_1(description, LD, I"Index.Elements.Fi.Format", real_format);
+ Localisation::roman_t(description, LD, I"Index.Elements.Fi.Format", real_format);
WRITE_TO(description, ": ");
- Localisation::write_2n(description, LD, I"Index.Elements.Fi.Dimensions",
+ Localisation::roman_ii(description, LD, I"Index.Elements.Fi.Dimensions",
(int) width, (int) height);
}
} else {
- Localisation::italic_0(description, LD, I"Index.Elements.Fi.Missing");
+ Localisation::italic(description, LD, I"Index.Elements.Fi.Missing");
}
@ =
@@ -120,7 +120,7 @@ to match this width, preserving the aspect ratio.
WRITE("%S", description);
HTML_TAG("br");
}
- Localisation::write_2sn(description, LD, I"Index.Elements.Fi.Resource",
+ Localisation::roman_ti(description, LD, I"Index.Elements.Fi.Resource",
Filenames::get_leafname(F), (int) id);
HTML::end_html_row(OUT);
@@ -129,10 +129,10 @@ to match this width, preserving the aspect ratio.
@ =
if (TreeLists::len(inv->sound_nodes) == 0) {
HTML_OPEN("p");
- Localisation::bold_0(OUT, LD, I"Index.Elements.Fi.ListOfSounds");
+ Localisation::bold(OUT, LD, I"Index.Elements.Fi.ListOfSounds");
HTML_CLOSE("p");
HTML_OPEN("p");
- Localisation::write_0(OUT, LD, I"Index.Elements.Fi.NoSounds");
+ Localisation::roman(OUT, LD, I"Index.Elements.Fi.NoSounds");
HTML_CLOSE("p");
} else {
@;
@@ -187,30 +187,30 @@ to match this width, preserving the aspect ratio.
}
}
if (format_found == 0) {
- Localisation::italic_0(description, LD, I"Index.Elements.Fi.UnknownSoundFormat");
+ Localisation::italic(description, LD, I"Index.Elements.Fi.UnknownSoundFormat");
} else {
if (waveform_style == FALSE) @
else @;
}
} else {
- Localisation::italic_0(description, LD, I"Index.Elements.Fi.MissingSound");
+ Localisation::italic(description, LD, I"Index.Elements.Fi.MissingSound");
}
@ =
if (no_tracks == 1) {
- Localisation::write_2ns(description, LD, I"Index.Elements.Fi.SoundFormatOneTrack",
+ Localisation::roman_it(description, LD, I"Index.Elements.Fi.SoundFormatOneTrack",
(int) midi_version, real_format);
} else {
- Localisation::write_3nsn(description, LD, I"Index.Elements.Fi.SoundFormatMultiTrack",
+ Localisation::write_iti(description, LD, I"Index.Elements.Fi.SoundFormatMultiTrack",
(int) midi_version, real_format, (int) no_tracks);
}
WRITE_TO(description, " - ");
- Localisation::italic_0(description, LD, I"Index.Elements.Fi.SoundUnsupported");
+ Localisation::italic(description, LD, I"Index.Elements.Fi.SoundUnsupported");
@ =
TEMPORARY_TEXT(size)
WRITE_TO(size, "%d.%01dKB", fsize/1024, (fsize%1024)/102);
- Localisation::write_2(description, LD, I"Index.Elements.Fi.SoundFile", size, real_format);
+ Localisation::roman_tt(description, LD, I"Index.Elements.Fi.SoundFile", size, real_format);
DISCARD_TEXT(size)
int min = (duration/6000), sec = (duration%6000)/100, centisec = (duration%100);
WRITE_TO(description, ": ");
@@ -219,27 +219,27 @@ to match this width, preserving the aspect ratio.
else WRITE_TO(seconds, "%d.%02d", sec, centisec);
if (min > 0) {
if ((sec > 0) || (centisec > 0)) {
- Localisation::write_2ns(description, LD, I"Index.Elements.Fi.DurationMS",
+ Localisation::roman_it(description, LD, I"Index.Elements.Fi.DurationMS",
min, seconds);
} else {
- Localisation::write_1n(description, LD, I"Index.Elements.Fi.DurationM", min);
+ Localisation::roman_i(description, LD, I"Index.Elements.Fi.DurationM", min);
}
} else {
- Localisation::write_1(description, LD, I"Index.Elements.Fi.DurationS", seconds);
+ Localisation::roman_t(description, LD, I"Index.Elements.Fi.DurationS", seconds);
}
DISCARD_TEXT(seconds)
WRITE_TO(description, " ");
TEMPORARY_TEXT(sample)
WRITE_TO(sample, "%d.%01dkHz", pSampleRate/1000, (pSampleRate%1000)/100);
- Localisation::write_1(OUT, LD, I"Index.Elements.Fi.Sampled", sample);
+ Localisation::roman_t(OUT, LD, I"Index.Elements.Fi.Sampled", sample);
DISCARD_TEXT(sample)
WRITE_TO(description, " ");
- if (pChannels == 1) Localisation::write_0(OUT, LD, I"Index.Elements.Fi.Mono");
- else Localisation::write_0(OUT, LD, I"Index.Elements.Fi.Stereo");
+ if (pChannels == 1) Localisation::roman(OUT, LD, I"Index.Elements.Fi.Mono");
+ else Localisation::roman(OUT, LD, I"Index.Elements.Fi.Stereo");
WRITE_TO(description, " (");
TEMPORARY_TEXT(bitrate)
WRITE_TO(bitrate, "%d.%01d", pBitsPerSecond/1000, (pSampleRate%1000)/100);
- Localisation::write_1(OUT, LD, I"Index.Elements.Fi.BitRate", bitrate);
+ Localisation::roman_t(OUT, LD, I"Index.Elements.Fi.BitRate", bitrate);
DISCARD_TEXT(bitrate)
WRITE_TO(description, ")");
@@ -265,7 +265,7 @@ to match this width, preserving the aspect ratio.
WRITE("%S", description);
HTML_TAG("br");
}
- Localisation::write_2sn(description, LD, I"Index.Elements.Fi.Resource",
+ Localisation::roman_ti(description, LD, I"Index.Elements.Fi.Resource",
Filenames::get_leafname(F), (int) id);
HTML::end_html_row(OUT);
@@ -275,11 +275,11 @@ This is more or less perfunctory, but still of some use, if only as a list.
@ =
if (TreeLists::len(inv->file_nodes) == 0) {
HTML_OPEN("p");
- Localisation::write_0(OUT, LD, I"Index.Elements.Fi.NoFiles");
+ Localisation::roman(OUT, LD, I"Index.Elements.Fi.NoFiles");
HTML_CLOSE("p");
} else {
HTML_OPEN("p");
- Localisation::bold_0(OUT, LD, I"Index.Elements.Fi.ListOfFiles");
+ Localisation::bold(OUT, LD, I"Index.Elements.Fi.ListOfFiles");
HTML_CLOSE("p");
@;
}
@@ -301,18 +301,18 @@ This is more or less perfunctory, but still of some use, if only as a list.
IndexUtilities::link_package(OUT, pack);
HTML_TAG("br");
if (is_binary)
- Localisation::write_1(OUT, LD, I"Index.Elements.Fi.BinaryFile",
+ Localisation::roman_t(OUT, LD, I"Index.Elements.Fi.BinaryFile",
Metadata::read_textual(pack, I"^leafname"));
else
- Localisation::write_1(OUT, LD, I"Index.Elements.Fi.TextFile",
+ Localisation::roman_t(OUT, LD, I"Index.Elements.Fi.TextFile",
Metadata::read_textual(pack, I"^leafname"));
WRITE(" - ");
if (Metadata::read_optional_numeric(pack, I"^file_owned")) {
- Localisation::write_0(OUT, LD, I"Index.Elements.Fi.FileOwnedByThis");
+ Localisation::roman(OUT, LD, I"Index.Elements.Fi.FileOwnedByThis");
} else if (Metadata::read_optional_numeric(pack, I"^file_owned_by_other")) {
- Localisation::write_0(OUT, LD, I"Index.Elements.Fi.FileOwnedByOther");
+ Localisation::roman(OUT, LD, I"Index.Elements.Fi.FileOwnedByOther");
} else {
- Localisation::write_1(OUT, LD, I"Index.Elements.Fi.FileOwnedBy",
+ Localisation::roman_t(OUT, LD, I"Index.Elements.Fi.FileOwnedBy",
Metadata::read_textual(pack, I"^file_owner"));
}
HTML::end_html_row(OUT);
diff --git a/inter/index-module/Chapter 3/Grouped Element.w b/inter/index-module/Chapter 3/Grouped Element.w
index 5eaaa221b..c9a1a809d 100644
--- a/inter/index-module/Chapter 3/Grouped Element.w
+++ b/inter/index-module/Chapter 3/Grouped Element.w
@@ -111,11 +111,11 @@ void GroupedElement::detail_pages(localisation_dictionary *LD) {
IndexUtilities::link_package(OUT, an_pack);
if (requires_light) {
WRITE(" (");
- Localisation::write_0(OUT, LD, I"Index.Elements.A1.RequiresLight");
+ Localisation::roman(OUT, LD, I"Index.Elements.A1.RequiresLight");
WRITE(")");
}
WRITE(" (");
- Localisation::italic_0(OUT, LD, I"Index.Elements.A1.PastTense");
+ Localisation::italic(OUT, LD, I"Index.Elements.A1.PastTense");
WRITE(" %S)", Metadata::read_optional_textual(an_pack, I"^past_name"));
text_stream *spec = Metadata::read_optional_textual(an_pack, I"^specification");
if (Str::len(spec) > 0) WRITE(": %S", spec);
@@ -125,7 +125,7 @@ void GroupedElement::detail_pages(localisation_dictionary *LD) {
@ =
HTML_OPEN("p");
- Localisation::bold_0(OUT, LD, I"Index.Elements.A1.CommandsHeading");
+ Localisation::bold(OUT, LD, I"Index.Elements.A1.CommandsHeading");
HTML_CLOSE("p");
HTML_OPEN("p");
int producers = 0;
@@ -136,20 +136,20 @@ void GroupedElement::detail_pages(localisation_dictionary *LD) {
Inter::Packages::container(xref->definition), NULL, LD);
producers++;
}
- if (producers == 0) Localisation::bold_0(OUT, LD, I"Index.Elements.A1.NoCommands");
+ if (producers == 0) Localisation::bold(OUT, LD, I"Index.Elements.A1.NoCommands");
HTML_CLOSE("p");
@ =
if (GroupedElement::no_vars(an_pack, I) > 0) {
HTML_OPEN("p");
- Localisation::bold_0(OUT, LD, I"Index.Elements.A1.ValuesHeading");
+ Localisation::bold(OUT, LD, I"Index.Elements.A1.ValuesHeading");
HTML_CLOSE("p");
GroupedElement::index_shv_set(OUT, I, an_pack);
}
@ =
HTML_OPEN("p");
- Localisation::bold_0(OUT, LD, I"Index.Elements.A1.RulesHeading");
+ Localisation::bold(OUT, LD, I"Index.Elements.A1.RulesHeading");
HTML_CLOSE("p");
HTML_OPEN("p");
int resp_count = 0;
@@ -183,7 +183,7 @@ void GroupedElement::detail_pages(localisation_dictionary *LD) {
resp_count += IndexRules::index_action_rules(OUT, inv, an_pack, report_pack,
I"report", I"report", LD);
if (resp_count > 1) {
- Localisation::write_0(OUT, LD, I"Index.Elements.A1.ResponseIcons");
+ Localisation::roman(OUT, LD, I"Index.Elements.A1.ResponseIcons");
WRITE(": ");
IndexUtilities::extra_all_link_with(OUT, TreeLists::len(inv->rule_nodes), "responses");
WRITE("%d", resp_count);
diff --git a/inter/index-module/Chapter 3/Innards Element.w b/inter/index-module/Chapter 3/Innards Element.w
index fe9144915..13766598a 100644
--- a/inter/index-module/Chapter 3/Innards Element.w
+++ b/inter/index-module/Chapter 3/Innards Element.w
@@ -16,7 +16,7 @@ void InnardsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
HTML_OPEN("p");
IndexUtilities::extra_link(OUT, 3);
- Localisation::write_0(OUT, LD, I"Index.Elements.In.Technicalities");
+ Localisation::roman(OUT, LD, I"Index.Elements.In.Technicalities");
HTML_CLOSE("p");
IndexUtilities::extra_div_open(OUT, 3, 2, "e0e0e0");
HTML_OPEN("p");
@@ -29,7 +29,7 @@ void InnardsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
@ =
IndexUtilities::anchor(OUT, I"STORYFILE");
HTML_OPEN("p");
- Localisation::write_0(OUT, LD, I"Index.Elements.In.Format");
+ Localisation::roman(OUT, LD, I"Index.Elements.In.Format");
WRITE(": ");
inter_package *pack = Inter::Packages::by_url(I, I"/main/completion/basics");
text_stream *VM = Metadata::read_optional_textual(pack, I"^virtual_machine");
@@ -43,7 +43,7 @@ void InnardsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
@ =
HTML_OPEN("p");
- Localisation::write_0(OUT, LD, I"Index.Elements.In.ActiveUseOptions");
+ Localisation::roman(OUT, LD, I"Index.Elements.In.ActiveUseOptions");
WRITE(":");
HTML_CLOSE("p");
InnardsElement::index_options_in_force_from(OUT, inv, MAIN_TEXT_UO_ORIGIN, NULL, LD);
@@ -53,7 +53,7 @@ void InnardsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
InnardsElement::index_options_in_force_from(OUT, inv, EXTENSION_UO_ORIGIN, E, LD);
int c = 0;
HTML_OPEN("p");
- Localisation::write_0(OUT, LD, I"Index.Elements.In.InactiveUseOptions");
+ Localisation::roman(OUT, LD, I"Index.Elements.In.InactiveUseOptions");
WRITE(":");
HTML_CLOSE("p");
HTML::open_indented_p(OUT, 2, "tight");
@@ -66,7 +66,7 @@ void InnardsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
if (c++ > 0) WRITE(", ");
}
}
- if (c == 0) Localisation::write_0(OUT, LD, I"Index.Elements.In.NoUseOptions");
+ if (c == 0) Localisation::roman(OUT, LD, I"Index.Elements.In.NoUseOptions");
HTML_CLOSE("p");
@ =
@@ -80,7 +80,7 @@ void InnardsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
@ =
HTML_OPEN("p");
- Localisation::write_0(OUT, LD, I"Index.Elements.In.LanguageDefinition");
+ Localisation::roman(OUT, LD, I"Index.Elements.In.LanguageDefinition");
WRITE(":");
HTML_CLOSE("p");
HTML_OPEN("p");
@@ -88,15 +88,15 @@ void InnardsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
text_stream *used = Metadata::read_optional_textual(pack, I"^language_elements_used");
text_stream *not_used = Metadata::read_optional_textual(pack, I"^language_elements_not_used");
if (Str::len(used) > 0)
- Localisation::write_1(OUT, LD, I"Index.Elements.In.Included", used);
+ Localisation::roman_t(OUT, LD, I"Index.Elements.In.Included", used);
if ((Str::len(used) > 0) && (Str::len(not_used) > 0)) WRITE(" ");
if (Str::len(not_used) > 0)
- Localisation::write_1(OUT, LD, I"Index.Elements.In.Excluded", not_used);
+ Localisation::roman_t(OUT, LD, I"Index.Elements.In.Excluded", not_used);
HTML_CLOSE("p");
@ =
HTML_OPEN("p");
- Localisation::write_0(OUT, LD, I"Index.Elements.In.Log");
+ Localisation::roman(OUT, LD, I"Index.Elements.In.Log");
WRITE(":");
HTML_CLOSE("p");
HTML_OPEN("p");
@@ -171,13 +171,13 @@ void InnardsElement::index_options_in_force_from(OUTPUT_STREAM, tree_inventory *
HTML::begin_colour(OUT, I"808080");
switch (way) {
case MAIN_TEXT_UO_ORIGIN:
- Localisation::write_0(OUT, LD, I"Index.Elements.In.SetFromSource");
+ Localisation::roman(OUT, LD, I"Index.Elements.In.SetFromSource");
break;
case OPTIONS_FILE_UO_ORIGIN:
- Localisation::write_0(OUT, LD, I"Index.Elements.In.SetAutomatically");
- IndexUtilities::DocReferences::link(OUT, I"OPTIONSFILE"); break;
+ Localisation::roman(OUT, LD, I"Index.Elements.In.SetAutomatically");
+ DocReferences::link(OUT, I"OPTIONSFILE"); break;
case EXTENSION_UO_ORIGIN:
- Localisation::write_1(OUT, LD, I"Index.Elements.In.SetFrom",
+ Localisation::roman_t(OUT, LD, I"Index.Elements.In.SetFrom",
Metadata::read_optional_textual(E, I"^credit"));
break;
}
@@ -200,6 +200,6 @@ void InnardsElement::index_options_in_force_from(OUTPUT_STREAM, tree_inventory *
PasteButtons::paste_text(OUT, TEMP);
DISCARD_TEXT(TEMP)
WRITE(" ");
- Localisation::italic_0(OUT, LD, I"Index.Elements.In.Double");
+ Localisation::italic(OUT, LD, I"Index.Elements.In.Double");
}
HTML_CLOSE("p");
diff --git a/inter/index-module/Chapter 3/Lexicon Element.w b/inter/index-module/Chapter 3/Lexicon Element.w
index f76dfea87..7360fa0e7 100644
--- a/inter/index-module/Chapter 3/Lexicon Element.w
+++ b/inter/index-module/Chapter 3/Lexicon Element.w
@@ -7,7 +7,7 @@ void LexiconElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
IndexUtilities::anchor(OUT, I"LEXICON");
HTML_OPEN("p");
HTML_OPEN_WITH("span", "class=\"smaller\"");
- Localisation::write_0(OUT, LD, I"Index.Elements.Lx.Explanation");
+ Localisation::roman(OUT, LD, I"Index.Elements.Lx.Explanation");
HTML_CLOSE("span");
HTML_CLOSE("p");
IndexLexicon::listing(OUT, InterpretIndex::get_lexicon(), FALSE, LD);
diff --git a/inter/index-module/Chapter 3/Map Element.w b/inter/index-module/Chapter 3/Map Element.w
index a91498df5..290127789 100644
--- a/inter/index-module/Chapter 3/Map Element.w
+++ b/inter/index-module/Chapter 3/Map Element.w
@@ -58,10 +58,10 @@ void MapElement::render(OUTPUT_STREAM, localisation_dictionary *LD, int test_onl
@ =
faux_instance *within = FauxInstances::region_of(reg);
if (within)
- Localisation::bold_2(OUT, LD, I"Index.Elements.Mp.RegionInRegion",
+ Localisation::bold_tt(OUT, LD, I"Index.Elements.Mp.RegionInRegion",
FauxInstances::get_name(reg), FauxInstances::get_name(within));
else
- Localisation::bold_1(OUT, LD, I"Index.Elements.Mp.Region",
+ Localisation::bold_t(OUT, LD, I"Index.Elements.Mp.Region",
FauxInstances::get_name(reg));
@ =
@@ -86,7 +86,7 @@ will be things which are offstage (and their contents and any parts thereof):
@;
if (++out_of_play_count == 1) {
suppress_panel_changes = TRUE;
- Localisation::bold_0(OUT, LD, I"Index.Elements.Mp.NowhereHeading");
+ Localisation::bold(OUT, LD, I"Index.Elements.Mp.NowhereHeading");
HTML_TAG("br");
}
MapElement::index(OUT, I, 2, FALSE, LD);
@@ -177,7 +177,7 @@ void MapElement::index(OUTPUT_STREAM, faux_instance *I, int depth, int details,
WRITE(", ");
TEMPORARY_TEXT(whatever)
FauxInstances::write_kind(whatever, I);
- Localisation::write_1(OUT, LD, I"Index.Elements.Mp.KindOf", whatever);
+ Localisation::roman_t(OUT, LD, I"Index.Elements.Mp.KindOf", whatever);
DISCARD_TEXT(whatever)
}
@@ -243,7 +243,7 @@ void MapElement::index_usages(OUTPUT_STREAM, faux_instance *I, localisation_dict
k++;
if (k == 1) {
HTML::open_indented_p(OUT, 1, "tight");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Mp.MentionedIn");
+ Localisation::italic(OUT, LD, I"Index.Elements.Mp.MentionedIn");
WRITE(": ");
} else WRITE("; ");
IndexUtilities::link(OUT, (int) v2);
@@ -273,8 +273,8 @@ int MapElement::annotate_player(OUTPUT_STREAM, faux_instance *I,
localisation_dictionary *LD) {
if (I == FauxInstances::start_room()) {
WRITE(" - ");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Mp.RoomWherePlayBegins");
- IndexUtilities::DocReferences::link(OUT, I"ROOMPLAYBEGINS");
+ Localisation::italic(OUT, LD, I"Index.Elements.Mp.RoomWherePlayBegins");
+ DocReferences::link(OUT, I"ROOMPLAYBEGINS");
return TRUE;
}
return FALSE;
@@ -292,8 +292,8 @@ int MapElement::annotate_door(OUTPUT_STREAM, faux_instance *O,
if (X == NULL) WRITE_TO(to, "nowhere");
else FauxInstances::write_name(to, X);
WRITE(" - ");
- if ((A) && (B)) Localisation::italic_1(OUT, LD, I"Index.Elements.Mp.DoorTo", to);
- else Localisation::italic_1(OUT, LD, I"Index.Elements.Mp.OneSidedDoorTo", to);
+ if ((A) && (B)) Localisation::italic_t(OUT, LD, I"Index.Elements.Mp.DoorTo", to);
+ else Localisation::italic_t(OUT, LD, I"Index.Elements.Mp.OneSidedDoorTo", to);
DISCARD_TEXT(to)
return TRUE;
}
@@ -313,7 +313,7 @@ void MapElement::index_spatial_relationship(OUTPUT_STREAM, faux_instance *I,
if (FauxInstances::is_worn(I)) rel = I"Index.Elements.Mp.BriefWorn";
}
if (rel) {
- Localisation::italic_0(OUT, LD, rel);
+ Localisation::italic(OUT, LD, rel);
WRITE(" ");
}
}
@@ -379,7 +379,7 @@ int MapElement::add_to_World_index(OUTPUT_STREAM, faux_instance *O,
if (FauxInstances::is_worn(O)) rel = I"Index.Elements.Mp.Worn";
TEMPORARY_TEXT(to)
FauxInstances::write_name(to, P);
- Localisation::italic_1(OUT, LD, rel, to);
+ Localisation::italic_t(OUT, LD, rel, to);
WRITE(" ");
DISCARD_TEXT(to)
int at = FauxInstances::progenitor_set_at(O);
@@ -422,7 +422,7 @@ void MapElement::index_backdrop_further(OUTPUT_STREAM, faux_instance *loc, int d
@ =
switch (how) {
case 1: HTML_OPEN("p");
- Localisation::bold_0(OUT, LD, I"Index.Elements.Mp.EverywhereHeading");
+ Localisation::bold(OUT, LD, I"Index.Elements.Mp.EverywhereHeading");
HTML_TAG("br"); break;
case 2: HTML_TAG("br"); break;
}
diff --git a/inter/index-module/Chapter 3/Plot Element.w b/inter/index-module/Chapter 3/Plot Element.w
index 356dc22d4..0411de053 100644
--- a/inter/index-module/Chapter 3/Plot Element.w
+++ b/inter/index-module/Chapter 3/Plot Element.w
@@ -47,7 +47,7 @@ about and created but never made use of.)
@ =
HTML_OPEN("p");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Pl.LegendHeading");
+ Localisation::italic(OUT, LD, I"Index.Elements.Pl.LegendHeading");
WRITE(": ");
PlotElement::scene_icon_legend(OUT, "WPB", LD, I"Index.Elements.Pl.WPBLegend");
WRITE("; ");
@@ -63,7 +63,7 @@ about and created but never made use of.)
WRITE("; ");
PlotElement::scene_icon_legend(OUT, "Recurring", LD, I"Index.Elements.Pl.RecurringLegend");
WRITE(". ");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Pl.LegendNote");
+ Localisation::italic(OUT, LD, I"Index.Elements.Pl.LegendNote");
HTML_CLOSE("p");
@ =
@@ -95,18 +95,18 @@ fact, end.
@ =
HTML::open_indented_p(OUT, 1, "hanging");
IndexUtilities::anchor_numbered(OUT, ssc->allocation_id);
- Localisation::bold_1(OUT, LD, I"Index.Elements.Pl.SceneName",
+ Localisation::bold_t(OUT, LD, I"Index.Elements.Pl.SceneName",
Metadata::read_textual(ssc->pack, I"^name"));
IndexUtilities::link_package(OUT, ssc->pack);
if (FauxScenes::recurs(ssc)) {
WRITE(" ");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Pl.Recurring");
+ Localisation::italic(OUT, LD, I"Index.Elements.Pl.Recurring");
}
HTML_CLOSE("p");
@ =
HTML::open_indented_p(OUT, 1, "tight");
- Localisation::write_0(OUT, LD, I"Index.Elements.Pl.EntireGame");
+ Localisation::roman(OUT, LD, I"Index.Elements.Pl.EntireGame");
HTML_CLOSE("p");
@ =
@@ -117,7 +117,7 @@ fact, end.
IndexRules::scene_context(ssc)) == FALSE) {
if (rbc++ == 0) {
HTML::open_indented_p(OUT, 1, "hanging");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Pl.During");
+ Localisation::italic(OUT, LD, I"Index.Elements.Pl.During");
HTML_CLOSE("p");
}
HTML::open_indented_p(OUT, 2, "hanging");
@@ -129,23 +129,23 @@ fact, end.
@ =
HTML::open_indented_p(OUT, 1, "hanging");
- if (end == 0) Localisation::italic_0(OUT, LD, I"Index.Elements.Pl.BeginsWhen");
- if (end == 1) Localisation::italic_0(OUT, LD, I"Index.Elements.Pl.EndsWhen");
- if (end >= 2) Localisation::italic_1(OUT, LD, I"Index.Elements.Pl.EndsUnusuallyWhen",
+ if (end == 0) Localisation::italic(OUT, LD, I"Index.Elements.Pl.BeginsWhen");
+ if (end == 1) Localisation::italic(OUT, LD, I"Index.Elements.Pl.EndsWhen");
+ if (end >= 2) Localisation::italic_t(OUT, LD, I"Index.Elements.Pl.EndsUnusuallyWhen",
FauxScenes::end_name(ssc->ends[end]));
WRITE(" ");
int count = 0;
@;
@;
@;
- if (count == 0) Localisation::bold_0(OUT, LD, I"Index.Elements.Pl.Never");
+ if (count == 0) Localisation::bold(OUT, LD, I"Index.Elements.Pl.Never");
HTML_CLOSE("p");
@ =
if ((end==0) && (FauxScenes::starts_at_start_of_play(ssc))) {
if (count > 0) {
HTML_TAG("br");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Pl.OrWhen");
+ Localisation::italic(OUT, LD, I"Index.Elements.Pl.OrWhen");
WRITE(" ");
}
WRITE("play begins ");
@@ -156,7 +156,7 @@ fact, end.
if (FauxScenes::has_anchor_condition(ssc->ends[end])) {
if (count > 0) {
HTML_TAG("br");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Pl.OrWhen");
+ Localisation::italic(OUT, LD, I"Index.Elements.Pl.OrWhen");
WRITE(" ");
}
WRITE("%S", FauxScenes::anchor_condition(ssc->ends[end]));
@@ -170,7 +170,7 @@ fact, end.
scon=scon->next) {
if (count > 0) {
HTML_TAG("br");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Pl.OrWhen");
+ Localisation::italic(OUT, LD, I"Index.Elements.Pl.OrWhen");
WRITE(" ");
}
simplified_scene *to_ssc = FauxScenes::connects_to(scon);
@@ -188,7 +188,7 @@ fact, end.
inter_package *rb_pack = Inter::Packages::container(rb->definition);
if (IndexRules::is_empty(I, rb_pack) == FALSE) {
HTML::open_indented_p(OUT, 1, "hanging");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Pl.WhatHappens");
+ Localisation::italic(OUT, LD, I"Index.Elements.Pl.WhatHappens");
WRITE(":"); HTML_CLOSE("p");
IndexRules::rulebook_list(OUT, I, rb_pack, I"", IndexRules::no_rule_context(), LD);
}
@@ -285,7 +285,7 @@ void PlotElement::scene_icon_legend(OUTPUT_STREAM, char *si, localisation_dictio
text_stream *gloss) {
PlotElement::scene_icon_unspaced(OUT, si);
WRITE(" ");
- Localisation::italic_0(OUT, LD, gloss);
+ Localisation::italic(OUT, LD, gloss);
}
void PlotElement::scene_icon_unspaced(OUTPUT_STREAM, char *si) {
diff --git a/inter/index-module/Chapter 3/Relations Element.w b/inter/index-module/Chapter 3/Relations Element.w
index 9e900e888..123de5123 100644
--- a/inter/index-module/Chapter 3/Relations Element.w
+++ b/inter/index-module/Chapter 3/Relations Element.w
@@ -13,13 +13,13 @@ void RelationsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
HTML_OPEN("p");
HTML::begin_plain_html_table(OUT);
HTML::first_html_column(OUT, 0);
- Localisation::italic_0(OUT, LD, I"Index.Elements.Rl.NameColumn");
+ Localisation::italic(OUT, LD, I"Index.Elements.Rl.NameColumn");
HTML::next_html_column(OUT, 0);
- Localisation::italic_0(OUT, LD, I"Index.Elements.Rl.CategoryColumn");
+ Localisation::italic(OUT, LD, I"Index.Elements.Rl.CategoryColumn");
HTML::next_html_column(OUT, 0);
- Localisation::italic_0(OUT, LD, I"Index.Elements.Rl.FromColumn");
+ Localisation::italic(OUT, LD, I"Index.Elements.Rl.FromColumn");
HTML::next_html_column(OUT, 0);
- Localisation::italic_0(OUT, LD, I"Index.Elements.Rl.ToColumn");
+ Localisation::italic(OUT, LD, I"Index.Elements.Rl.ToColumn");
HTML::end_html_row(OUT);
inter_package *pack;
LOOP_OVER_INVENTORY_PACKAGES(pack, i, inv->relation_nodes) {
diff --git a/inter/index-module/Chapter 3/Rules for Scenes Element.w b/inter/index-module/Chapter 3/Rules for Scenes Element.w
index 8b62684cf..f9d7ec7ea 100644
--- a/inter/index-module/Chapter 3/Rules for Scenes Element.w
+++ b/inter/index-module/Chapter 3/Rules for Scenes Element.w
@@ -11,7 +11,7 @@ void RulesForScenesElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
TreeLists::sort(inv->rulebook_nodes, Synoptic::module_order);
HTML_OPEN("p");
- Localisation::bold_0(OUT, LD, I"Index.Elements.RS.Machinery");
+ Localisation::bold(OUT, LD, I"Index.Elements.RS.Machinery");
HTML_CLOSE("p");
IndexRules::rulebook_box(OUT, inv, I"Index.Elements.RS.SceneChanging", NULL,
@@ -19,7 +19,7 @@ void RulesForScenesElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
HTML_OPEN("p");
IndexUtilities::anchor(OUT, I"SRULES");
- Localisation::bold_0(OUT, LD, I"Index.Elements.RS.General");
+ Localisation::bold(OUT, LD, I"Index.Elements.RS.General");
HTML_CLOSE("p");
IndexRules::rulebook_box(OUT, inv, I"Index.Elements.RS.SceneBegins", NULL,
diff --git a/inter/index-module/Chapter 3/Standards Element.w b/inter/index-module/Chapter 3/Standards Element.w
index 38ba40fc4..a468b28ba 100644
--- a/inter/index-module/Chapter 3/Standards Element.w
+++ b/inter/index-module/Chapter 3/Standards Element.w
@@ -138,8 +138,8 @@ void StandardsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
@ =
void StandardsElement::subhead(OUTPUT_STREAM, localisation_dictionary *LD,
text_stream *heading_key, text_stream *rubric_key) {
- HTML_OPEN("p"); Localisation::bold_0(OUT, LD, heading_key); HTML_CLOSE("p");
- HTML_OPEN("p"); Localisation::write_0(OUT, LD, rubric_key); HTML_CLOSE("p");
+ HTML_OPEN("p"); Localisation::bold(OUT, LD, heading_key); HTML_CLOSE("p");
+ HTML_OPEN("p"); Localisation::roman(OUT, LD, rubric_key); HTML_CLOSE("p");
}
void StandardsElement::activity(OUTPUT_STREAM, tree_inventory *inv, text_stream *id,
diff --git a/inter/index-module/Chapter 3/Tables Element.w b/inter/index-module/Chapter 3/Tables Element.w
index e21ee135d..0599813df 100644
--- a/inter/index-module/Chapter 3/Tables Element.w
+++ b/inter/index-module/Chapter 3/Tables Element.w
@@ -44,8 +44,8 @@ Rules, which of course are always present. So these are hidden by default.
if (first_ext) {
HTML_OPEN("p");
IndexUtilities::extra_link(OUT, 2);
- if (mc > 1) Localisation::write_0(OUT, LD, I"Index.Elements.Tb.ShowExtensionTables");
- else Localisation::write_0(OUT, LD, I"Index.Elements.Tb.ShowOnlyExtensionTables");
+ if (mc > 1) Localisation::roman(OUT, LD, I"Index.Elements.Tb.ShowExtensionTables");
+ else Localisation::roman(OUT, LD, I"Index.Elements.Tb.ShowOnlyExtensionTables");
HTML_CLOSE("p");
first_ext = FALSE;
}
@@ -98,21 +98,21 @@ Rules, which of course are always present. So these are hidden by default.
WRITE("");
HTML_OPEN_WITH("span", "class=\"smaller\"");
if (defines) {
- if (nr == 1) Localisation::write_1n(OUT, LD, I"Index.Elements.Tb.Definition", nr);
- else Localisation::write_1n(OUT, LD, I"Index.Elements.Tb.Definitions", nr);
+ if (nr == 1) Localisation::roman_i(OUT, LD, I"Index.Elements.Tb.Definition", nr);
+ else Localisation::roman_i(OUT, LD, I"Index.Elements.Tb.Definitions", nr);
} else {
- if (nc == 1) Localisation::write_1n(OUT, LD, I"Index.Elements.Tb.Column", nc);
- else Localisation::write_1n(OUT, LD, I"Index.Elements.Tb.Columns", nc);
+ if (nc == 1) Localisation::roman_i(OUT, LD, I"Index.Elements.Tb.Column", nc);
+ else Localisation::roman_i(OUT, LD, I"Index.Elements.Tb.Columns", nc);
WRITE(" x ");
- if (nr == 1) Localisation::write_1n(OUT, LD, I"Index.Elements.Tb.Row", nr);
- else Localisation::write_1n(OUT, LD, I"Index.Elements.Tb.Rows", nr);
+ if (nr == 1) Localisation::roman_i(OUT, LD, I"Index.Elements.Tb.Row", nr);
+ else Localisation::roman_i(OUT, LD, I"Index.Elements.Tb.Rows", nr);
}
if (nb > 0) {
WRITE(" (");
- Localisation::write_1n(OUT, LD, I"Index.Elements.Tb.Blank", nb);
+ Localisation::roman_i(OUT, LD, I"Index.Elements.Tb.Blank", nb);
if (Str::len(for_each) > 0) {
WRITE(", ");
- Localisation::write_1(OUT, LD, I"Index.Elements.Tb.BlankEach", for_each);
+ Localisation::roman_t(OUT, LD, I"Index.Elements.Tb.BlankEach", for_each);
}
WRITE(")");
}
@@ -129,7 +129,7 @@ Rules, which of course are always present. So these are hidden by default.
inter_package *col_pack = Inter::Packages::container(id_s->definition);
HTML::first_html_column(OUT, 0);
WRITE(" ");
- Localisation::write_1n(OUT, LD, I"Index.Elements.Tb.Col", col+1);
+ Localisation::roman_i(OUT, LD, I"Index.Elements.Tb.Col", col+1);
WRITE(": ");
@;
HTML::next_html_column(OUT, 0);
@@ -144,24 +144,24 @@ Rules, which of course are always present. So these are hidden by default.
IndexUtilities::link(OUT, at);
} else {
if (defines) {
- Localisation::italic_0(OUT, LD, I"Index.Elements.Tb.Sets");
+ Localisation::italic(OUT, LD, I"Index.Elements.Tb.Sets");
WRITE(" ");
}
WRITE("%S ", CW);
TEMPORARY_TEXT(TEMP)
if (defines) WRITE_TO(TEMP, "%S", CW);
- else Localisation::write_1(OUT, LD, I"Index.Elements.Tb.Entry", CW);
+ else Localisation::roman_t(OUT, LD, I"Index.Elements.Tb.Entry", CW);
PasteButtons::paste_text(OUT, TEMP);
DISCARD_TEXT(TEMP)
}
@ =
if ((defines) && (col == 0)) {
- Localisation::italic_0(OUT, LD, I"Index.Elements.Tb.Names");
+ Localisation::italic(OUT, LD, I"Index.Elements.Tb.Names");
} else if (defines) {
- Localisation::write_1(OUT, LD, I"Index.Elements.Tb.Property",
+ Localisation::roman_t(OUT, LD, I"Index.Elements.Tb.Property",
Metadata::read_optional_textual(col_pack, I"^contents"));
} else {
- Localisation::write_1(OUT, LD, I"Index.Elements.Tb.Of",
+ Localisation::roman_t(OUT, LD, I"Index.Elements.Tb.Of",
Metadata::read_optional_textual(col_pack, I"^contents"));
}
diff --git a/inter/index-module/Chapter 3/Tokens Element.w b/inter/index-module/Chapter 3/Tokens Element.w
index d279b8a20..10f019f7b 100644
--- a/inter/index-module/Chapter 3/Tokens Element.w
+++ b/inter/index-module/Chapter 3/Tokens Element.w
@@ -5,10 +5,10 @@ To write the Tokens element (To) in the index.
@ =
void TokensElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
HTML_OPEN("p");
- Localisation::write_0(OUT, LD, I"Index.Elements.To.Explanation1");
+ Localisation::roman(OUT, LD, I"Index.Elements.To.Explanation1");
HTML_CLOSE("p");
HTML_OPEN("p");
- Localisation::write_0(OUT, LD, I"Index.Elements.To.Explanation2");
+ Localisation::roman(OUT, LD, I"Index.Elements.To.Explanation2");
HTML_CLOSE("p");
inter_tree *I = InterpretIndex::get_tree();
@@ -47,10 +47,10 @@ void TokensElement::token(OUTPUT_STREAM, inter_tree *I, char *special,
else if (cg_pack) WRITE("%S", Metadata::read_optional_textual(cg_pack, I"^name"));
WRITE("]\"");
if (cg_pack) IndexUtilities::link_package(OUT, cg_pack);
- if (Str::len(help) > 0) IndexUtilities::DocReferences::link(OUT, help);
+ if (Str::len(help) > 0) DocReferences::link(OUT, help);
if (explanation) {
WRITE(" - ");
- Localisation::write_1(OUT, LD, I"Index.Elements.To.SameAs", explanation);
+ Localisation::roman_t(OUT, LD, I"Index.Elements.To.SameAs", explanation);
}
HTML_CLOSE("p");
if (cg_pack) {
@@ -68,7 +68,7 @@ void TokensElement::token(OUTPUT_STREAM, inter_tree *I, char *special,
IndexUtilities::link_package(OUT, line_pack);
if (Metadata::read_optional_numeric(line_pack, I"^reversed")) {
WRITE(" ");
- Localisation::write_0(OUT, LD, I"Index.Elements.To.Reversed");
+ Localisation::roman(OUT, LD, I"Index.Elements.To.Reversed");
}
HTML_CLOSE("p");
}
diff --git a/inter/index-module/Chapter 3/Values Element.w b/inter/index-module/Chapter 3/Values Element.w
index 1925677d2..422e8db37 100644
--- a/inter/index-module/Chapter 3/Values Element.w
+++ b/inter/index-module/Chapter 3/Values Element.w
@@ -33,7 +33,7 @@ void ValuesElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
@ =
if (understood_note_given == FALSE) {
understood_note_given = TRUE;
- Localisation::write_0(OUT, LD, I"Index.Elements.Vl.UnderstoodVariables");
+ Localisation::roman(OUT, LD, I"Index.Elements.Vl.UnderstoodVariables");
HTML_TAG("br");
}
@@ -59,9 +59,9 @@ void ValuesElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
@ =
HTML_OPEN("p");
- Localisation::bold_0(OUT, LD, I"Index.Elements.Vl.EquationsHeading");
+ Localisation::bold(OUT, LD, I"Index.Elements.Vl.EquationsHeading");
WRITE(" (");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Vl.AboutEquations");
+ Localisation::italic(OUT, LD, I"Index.Elements.Vl.AboutEquations");
WRITE(")");
HTML_CLOSE("p");
HTML_OPEN("p");
@@ -77,5 +77,5 @@ void ValuesElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
N++;
}
}
- if (N == 0) Localisation::italic_0(OUT, LD, I"Index.Elements.Vl.NoEquations");
+ if (N == 0) Localisation::italic(OUT, LD, I"Index.Elements.Vl.NoEquations");
HTML_CLOSE("p");
diff --git a/inter/index-module/Chapter 3/Verbs Element.w b/inter/index-module/Chapter 3/Verbs Element.w
index 294e45ca9..cbde075e3 100644
--- a/inter/index-module/Chapter 3/Verbs Element.w
+++ b/inter/index-module/Chapter 3/Verbs Element.w
@@ -8,7 +8,7 @@ be more usefully informative.
=
void VerbsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
HTML_OPEN("p");
- Localisation::italic_0(OUT, LD, I"Index.Elements.Vb.About");
+ Localisation::italic(OUT, LD, I"Index.Elements.Vb.About");
HTML_CLOSE("p");
int verb_count = 0;
@@ -25,11 +25,11 @@ void VerbsElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
else if (lex->part_of_speech == MVERB_TLEXE) key = I"Index.Elements.Vb.To";
else if (lex->part_of_speech == PREP_TLEXE) key = I"Index.Elements.Vb.ToBe";
else key = I"Index.Elements.Vb.ToBeAbleTo";
- Localisation::write_1(OUT, LD, key, entry_text);
+ Localisation::roman_t(OUT, LD, key, entry_text);
IndexUtilities::link_package(OUT, lex->lex_package);
WRITE(" ... ");
if (lex->part_of_speech == MVERB_TLEXE)
- Localisation::italic_0(OUT, LD, I"Index.Elements.Vb.ForSayingOnly");
+ Localisation::italic(OUT, LD, I"Index.Elements.Vb.ForSayingOnly");
else WRITE("%S", Metadata::read_optional_textual(lex->lex_package, I"^meaning"));
HTML_CLOSE("p");
VerbsElement::tabulate(OUT, lex, I"^present", I"Index.Elements.Vb.Present", LD);
@@ -45,7 +45,7 @@ void VerbsElement::tabulate(OUTPUT_STREAM, index_lexicon_entry *lex, text_stream
if (Str::len(key) > 0) {
HTML::open_indented_p(OUT, 2, "tight");
WRITE("");
- Localisation::italic_0(OUT, LD, tense);
+ Localisation::italic(OUT, LD, tense);
WRITE(" %S", val);
HTML_CLOSE("p");
}
diff --git a/inter/index-module/Chapter 4/Render EPS Map.w b/inter/index-module/Chapter 4/Render EPS Map.w
index 532369903..2aac92287 100644
--- a/inter/index-module/Chapter 4/Render EPS Map.w
+++ b/inter/index-module/Chapter 4/Render EPS Map.w
@@ -25,7 +25,7 @@ void RenderEPSMap::render_map_as_EPS(filename *F, localisation_dictionary *LD) {
main_eml->actual_height = 0;
main_eml->titling_point_size = ConfigureIndexMap::get_int_mp(I"title-size", NULL);
main_eml->titling = Str::new();
- Localisation::write_0(main_eml->titling, LD, I"Index.EPSMap.DefaultTitle");
+ Localisation::roman(main_eml->titling, LD, I"Index.EPSMap.DefaultTitle");
main_eml->contains_titling = TRUE;
main_eml->contains_rooms = FALSE;
ConfigureIndexMap::prepare_map_parameter_scope(&(main_eml->map_parameters));
diff --git a/inter/index-module/Chapter 4/Render HTML Map.w b/inter/index-module/Chapter 4/Render HTML Map.w
index be23f626e..98bdc6d91 100644
--- a/inter/index-module/Chapter 4/Render HTML Map.w
+++ b/inter/index-module/Chapter 4/Render HTML Map.w
@@ -497,7 +497,7 @@ from each other.)
if (A) {
k++;
if (k == 1) { HTML_OPEN("p"); } else WRITE("; ");
- Localisation::italic_2(OUT, LD, I"Index.Elements.Mp.MappingAs",
+ Localisation::italic_tt(OUT, LD, I"Index.Elements.Mp.MappingAs",
FauxInstances::get_name(D), FauxInstances::get_name(A));
}
}
@@ -538,7 +538,7 @@ void HTMLMap::devise_level_rubric(int z, text_stream *level_rubric,
break;
}
}
- Localisation::write_1n(level_rubric, LD, key, par);
+ Localisation::roman_i(level_rubric, LD, key, par);
}
@h Single-room submaps.
@@ -913,12 +913,12 @@ void HTMLMap::plot_map_cell(OUTPUT_STREAM, int pass, vector P, int i1, int i2,
if (I3) FauxInstances::write_name(destination_name, I3);
if (D) {
- if (I3) Localisation::write_3(tool_tip, LD, I"Index.Elements.Mp.ExitThroughTooltip",
+ if (I3) Localisation::write_ttt(tool_tip, LD, I"Index.Elements.Mp.ExitThroughTooltip",
direction_name, door_name, destination_name);
- else Localisation::write_2(tool_tip, LD, I"Index.Elements.Mp.ExitBlockedTooltip",
+ else Localisation::roman_tt(tool_tip, LD, I"Index.Elements.Mp.ExitBlockedTooltip",
direction_name, door_name);
} else {
- if (I3) Localisation::write_2(tool_tip, LD, I"Index.Elements.Mp.ExitTooltip",
+ if (I3) Localisation::roman_tt(tool_tip, LD, I"Index.Elements.Mp.ExitTooltip",
direction_name, destination_name);
}
WRITE_TO(tool_tip, "\"");
diff --git a/inter/index-module/Contents.w b/inter/index-module/Contents.w
index 5e9747deb..e2aa73c13 100644
--- a/inter/index-module/Contents.w
+++ b/inter/index-module/Contents.w
@@ -9,7 +9,6 @@ Chapter 1: Starting Up
Chapter 2: Utilities
Index Locations
- Localisation
Index Interpreter
Styles and Scripts
Index Utilities
diff --git a/services/html-module/Chapter 1/HTML Module.w b/services/html-module/Chapter 1/HTML Module.w
index e06fd49e2..3fa75b4e5 100644
--- a/services/html-module/Chapter 1/HTML Module.w
+++ b/services/html-module/Chapter 1/HTML Module.w
@@ -24,6 +24,8 @@ void HTMLModule::end(void) {
@
@e documentation_ref_CLASS
+@e localisation_dictionary_CLASS
=
DECLARE_CLASS(documentation_ref)
+DECLARE_CLASS(localisation_dictionary)
diff --git a/services/html-module/Chapter 2/Documentation References.w b/services/html-module/Chapter 2/Documentation References.w
index 81fa40f62..25951c3b8 100644
--- a/services/html-module/Chapter 2/Documentation References.w
+++ b/services/html-module/Chapter 2/Documentation References.w
@@ -1,4 +1,4 @@
-[IndexUtilities::DocReferences::] Documentation References.
+[DocReferences::] Documentation References.
To enable index or results pages to link into documentation.
@@ -31,12 +31,12 @@ typedef struct documentation_ref {
@
-@d DOCUMENTATION_REFERENCE_PROBLEMS_CALLBACK IndexUtilities::DocReferences::show_xref_in_problem
+@d DOCUMENTATION_REFERENCE_PROBLEMS_CALLBACK DocReferences::show_xref_in_problem
=
-void IndexUtilities::DocReferences::show_xref_in_problem(text_stream *OUT, text_stream *sigil) {
+void DocReferences::show_xref_in_problem(text_stream *OUT, text_stream *sigil) {
wchar_t *chap = NULL, *sec = NULL;
- wchar_t *leaf = IndexUtilities::DocReferences::link_if_possible_once(
+ wchar_t *leaf = DocReferences::link_if_possible_once(
sigil, &chap, &sec);
if (leaf) {
HTML::open_indented_p(OUT, 2, "tight");
@@ -61,16 +61,16 @@ file is read on demand; in some runs, it won't be needed.
=
int xrefs_read = FALSE;
-void IndexUtilities::DocReferences::read_xrefs(void) {
+void DocReferences::read_xrefs(void) {
if (xrefs_read == FALSE) {
xrefs_read = TRUE;
TextFiles::read(
InstalledFiles::filename(DOCUMENTATION_XREFS_IRES), TRUE,
- NULL, FALSE, IndexUtilities::DocReferences::read_xrefs_helper, NULL, NULL);
+ NULL, FALSE, DocReferences::read_xrefs_helper, NULL, NULL);
}
}
-void IndexUtilities::DocReferences::read_xrefs_helper(text_stream *line,
+void DocReferences::read_xrefs_helper(text_stream *line,
text_file_position *tfp, void *unused_state) {
WRITE_TO(line, "\n");
wording W = Feeds::feed_text(line);
@@ -117,8 +117,8 @@ we return the leafname for this documentation page, without filename
extension (say |doc24|); if it does not exist, we return NULL.
=
-int IndexUtilities::DocReferences::validate_if_possible(text_stream *temp) {
- IndexUtilities::DocReferences::read_xrefs();
+int DocReferences::validate_if_possible(text_stream *temp) {
+ DocReferences::read_xrefs();
documentation_ref *dr;
LOOP_OVER(dr, documentation_ref)
if (Str::eq(dr->doc_symbol, temp))
@@ -129,8 +129,8 @@ int IndexUtilities::DocReferences::validate_if_possible(text_stream *temp) {
@ And similarly, returning the page we link to:
=
-wchar_t *IndexUtilities::DocReferences::link_if_possible_once(text_stream *temp, wchar_t **chap, wchar_t **sec) {
- IndexUtilities::DocReferences::read_xrefs();
+wchar_t *DocReferences::link_if_possible_once(text_stream *temp, wchar_t **chap, wchar_t **sec) {
+ DocReferences::read_xrefs();
documentation_ref *dr;
LOOP_OVER(dr, documentation_ref)
if (Str::eq(dr->doc_symbol, temp)) {
@@ -163,7 +163,7 @@ to other natural languages.
documented at ### ==> { Wordings::first_wn(WR[1]), - }
@ =
-wording IndexUtilities::DocReferences::position_of_symbol(wording *W) {
+wording DocReferences::position_of_symbol(wording *W) {
if ((*W)) {
*W = GET_RW(, 1);
return Wordings::one_word(<>);
@@ -177,8 +177,8 @@ such a phrase, it increments the usage count by calling the following:
=
#ifdef CORE_MODULE
-void IndexUtilities::DocReferences::doc_mark_used(text_stream *symb, int at_word) {
- IndexUtilities::DocReferences::read_xrefs();
+void DocReferences::doc_mark_used(text_stream *symb, int at_word) {
+ DocReferences::read_xrefs();
documentation_ref *dr;
LOOP_OVER(dr, documentation_ref) {
if (Str::eq(dr->doc_symbol, symb)) {
@@ -203,9 +203,9 @@ especially, but to be accumulated over a whole corpus of source texts, e.g.:
=
=
-void IndexUtilities::DocReferences::log_statistics(void) {
+void DocReferences::log_statistics(void) {
LOG("The following shows how often each built-in phrase was used:\n");
- IndexUtilities::DocReferences::read_xrefs();
+ DocReferences::read_xrefs();
documentation_ref *dr;
LOOP_OVER(dr, documentation_ref)
if (Str::begins_with_wide_string(dr->doc_symbol, L"ph"))
@@ -217,8 +217,8 @@ void IndexUtilities::DocReferences::log_statistics(void) {
following routine.
=
-void IndexUtilities::DocReferences::link_to(OUTPUT_STREAM, text_stream *fn, int full) {
- documentation_ref *dr = IndexUtilities::DocReferences::name_to_dr(fn);
+void DocReferences::link_to(OUTPUT_STREAM, text_stream *fn, int full) {
+ documentation_ref *dr = DocReferences::name_to_dr(fn);
if (dr) {
if (full >= 0) WRITE(" "); else WRITE(" ");
HTML_OPEN_WITH("a", "href=inform:/%N.html", dr->section);
@@ -230,16 +230,16 @@ void IndexUtilities::DocReferences::link_to(OUTPUT_STREAM, text_stream *fn, int
}
}
-void IndexUtilities::DocReferences::link(OUTPUT_STREAM, text_stream *fn) {
- IndexUtilities::DocReferences::link_to_S(OUT, fn, FALSE);
+void DocReferences::link(OUTPUT_STREAM, text_stream *fn) {
+ DocReferences::link_to_S(OUT, fn, FALSE);
}
-void IndexUtilities::DocReferences::fully_link(OUTPUT_STREAM, text_stream *fn) {
- IndexUtilities::DocReferences::link_to_S(OUT, fn, TRUE);
+void DocReferences::fully_link(OUTPUT_STREAM, text_stream *fn) {
+ DocReferences::link_to_S(OUT, fn, TRUE);
}
-void IndexUtilities::DocReferences::link_to_S(OUTPUT_STREAM, text_stream *fn, int full) {
- documentation_ref *dr = IndexUtilities::DocReferences::name_to_dr(fn);
+void DocReferences::link_to_S(OUTPUT_STREAM, text_stream *fn, int full) {
+ documentation_ref *dr = DocReferences::name_to_dr(fn);
if (dr) {
if (full >= 0) WRITE(" "); else WRITE(" ");
HTML_OPEN_WITH("a", "href=inform:/%N.html", dr->section);
@@ -258,17 +258,17 @@ if the file can't be found, or contains nothing germane, we fail safe by doing
nothing at all -- not issuing any internal errors.
=
-void IndexUtilities::DocReferences::doc_fragment(OUTPUT_STREAM, text_stream *fn) {
- IndexUtilities::DocReferences::doc_fragment_to(OUT, fn);
+void DocReferences::doc_fragment(OUTPUT_STREAM, text_stream *fn) {
+ DocReferences::doc_fragment_to(OUT, fn);
}
int fragments_loaded = FALSE;
-void IndexUtilities::DocReferences::doc_fragment_to(OUTPUT_STREAM, text_stream *fn) {
+void DocReferences::doc_fragment_to(OUTPUT_STREAM, text_stream *fn) {
if (fragments_loaded == FALSE) {
@;
fragments_loaded = TRUE;
}
- documentation_ref *dr = IndexUtilities::DocReferences::name_to_dr(fn);
+ documentation_ref *dr = DocReferences::name_to_dr(fn);
if ((dr) && (dr->fragment_at)) {
char *p = dr->fragment_at;
int i;
@@ -315,7 +315,7 @@ void IndexUtilities::DocReferences::doc_fragment_to(OUTPUT_STREAM, text_stream *
for (j=0; p[i+j]; j++) {
if ((p[i+j] == '=') && (p[i+j+1] == '*')) {
i = i+j+1;
- tracking = IndexUtilities::DocReferences::name_to_dr(rn);
+ tracking = DocReferences::name_to_dr(rn);
if (tracking) tracking->fragment_at = p+i+1;
break;
} else {
@@ -330,8 +330,8 @@ void IndexUtilities::DocReferences::doc_fragment_to(OUTPUT_STREAM, text_stream *
and we need to search fairly seldom:
=
-documentation_ref *IndexUtilities::DocReferences::name_to_dr(text_stream *fn) {
- IndexUtilities::DocReferences::read_xrefs();
+documentation_ref *DocReferences::name_to_dr(text_stream *fn) {
+ DocReferences::read_xrefs();
documentation_ref *dr;
LOOP_OVER(dr, documentation_ref)
if (Str::eq(dr->doc_symbol, fn))
@@ -345,7 +345,7 @@ documentation_ref *IndexUtilities::DocReferences::name_to_dr(text_stream *fn) {
@ =
if (problem_count == 0) {
LOG("Bad ref was <%S>. Known references are:\n", fn);
- IndexUtilities::DocReferences::read_xrefs();
+ DocReferences::read_xrefs();
LOOP_OVER(dr, documentation_ref)
LOG("%S = %+N\n", dr->doc_symbol, dr->section);
internal_error("Bad index documentation reference");
diff --git a/inter/index-module/Chapter 2/Localisation.w b/services/html-module/Chapter 2/Localisation.w
similarity index 85%
rename from inter/index-module/Chapter 2/Localisation.w
rename to services/html-module/Chapter 2/Localisation.w
index 7159c71ff..8f5e5729b 100644
--- a/inter/index-module/Chapter 2/Localisation.w
+++ b/services/html-module/Chapter 2/Localisation.w
@@ -17,7 +17,7 @@ is available.
It would be elegant to handle this using |inform_language| objects, but
those exist only in the //supervisor// module, which is a part of //inform7//
-but not of //inter//: and this indexing module has to work in both.
+but not of //inter//: and this code has to work in both.
For now, a |localisation_dictionary| object is just a wrapper for a simple
|dictionary| of key-value pairs, but it may become more elaborate later.
@@ -166,7 +166,7 @@ of the keys, substituting textual values in for placeholders. For example, given
= (text)
%Index.Elements.RS.Unlist = The *1 is not listed in the *2.
=
-Calling //Localisation::write_2// on the key |"Index.Elements.RS.Unlist"| with
+Calling //Localisation::roman_tt// on the key |"Index.Elements.RS.Unlist"| with
the values "imports rule" and "customs rulebook" would then produce:
= (text)
The imports rule is not listed in the customs rulebook.
@@ -185,39 +185,30 @@ with everything under the first line being italicised. For example:
Note that a valid documentation reference must begin with an upper-case letter.
=
-void Localisation::bold_0(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key) {
- WRITE("");
- Localisation::write_0(OUT, D, key);
- WRITE(" ");
+void Localisation::bold(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key) {
+ WRITE(""); Localisation::roman(OUT, D, key); WRITE(" ");
}
-void Localisation::italic_0(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key) {
- WRITE("");
- Localisation::write_0(OUT, D, key);
- WRITE(" ");
+void Localisation::italic(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key) {
+ WRITE(""); Localisation::roman(OUT, D, key); WRITE(" ");
}
-void Localisation::write_0(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key) {
+void Localisation::roman(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key) {
text_stream *vals[10];
@;
Localisation::write_general(OUT, D, key, vals);
}
-void Localisation::bold_1(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
+@ =
+void Localisation::bold_t(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
text_stream *val1) {
- WRITE("");
- Localisation::write_1(OUT, D, key, val1);
- WRITE(" ");
+ WRITE(""); Localisation::roman_t(OUT, D, key, val1); WRITE(" ");
}
-
-void Localisation::italic_1(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
+void Localisation::italic_t(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
text_stream *val1) {
- WRITE("");
- Localisation::write_1(OUT, D, key, val1);
- WRITE(" ");
+ WRITE(""); Localisation::roman_t(OUT, D, key, val1); WRITE(" ");
}
-
-void Localisation::write_1(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
+void Localisation::roman_t(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
text_stream *val1) {
text_stream *vals[10];
@;
@@ -225,7 +216,8 @@ void Localisation::write_1(OUTPUT_STREAM, localisation_dictionary *D, text_strea
Localisation::write_general(OUT, D, key, vals);
}
-void Localisation::write_1n(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
+@ =
+void Localisation::roman_i(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
int val1) {
text_stream *vals[10];
@;
@@ -236,21 +228,16 @@ void Localisation::write_1n(OUTPUT_STREAM, localisation_dictionary *D, text_stre
DISCARD_TEXT(f1)
}
-void Localisation::bold_2(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
+@ =
+void Localisation::bold_tt(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
text_stream *val1, text_stream *val2) {
- WRITE("");
- Localisation::write_2(OUT, D, key, val1, val2);
- WRITE(" ");
+ WRITE(""); Localisation::roman_tt(OUT, D, key, val1, val2); WRITE(" ");
}
-
-void Localisation::italic_2(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
+void Localisation::italic_tt(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
text_stream *val1, text_stream *val2) {
- WRITE("");
- Localisation::write_2(OUT, D, key, val1, val2);
- WRITE(" ");
+ WRITE(""); Localisation::roman_tt(OUT, D, key, val1, val2); WRITE(" ");
}
-
-void Localisation::write_2(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
+void Localisation::roman_tt(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
text_stream *val1, text_stream *val2) {
text_stream *vals[10];
@;
@@ -258,7 +245,8 @@ void Localisation::write_2(OUTPUT_STREAM, localisation_dictionary *D, text_strea
Localisation::write_general(OUT, D, key, vals);
}
-void Localisation::write_2n(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
+@ =
+void Localisation::roman_ii(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
int val1, int val2) {
text_stream *vals[10];
@;
@@ -272,7 +260,8 @@ void Localisation::write_2n(OUTPUT_STREAM, localisation_dictionary *D, text_stre
DISCARD_TEXT(f2)
}
-void Localisation::write_2sn(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
+@ =
+void Localisation::roman_ti(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
text_stream *val1, int val2) {
text_stream *vals[10];
@;
@@ -283,7 +272,8 @@ void Localisation::write_2sn(OUTPUT_STREAM, localisation_dictionary *D, text_str
DISCARD_TEXT(f2)
}
-void Localisation::write_2ns(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
+@ =
+void Localisation::roman_it(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
int val1, text_stream *val2) {
text_stream *vals[10];
@;
@@ -294,7 +284,8 @@ void Localisation::write_2ns(OUTPUT_STREAM, localisation_dictionary *D, text_str
DISCARD_TEXT(f1)
}
-void Localisation::write_3(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
+@ =
+void Localisation::write_ttt(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
text_stream *val1, text_stream *val2, text_stream *val3) {
text_stream *vals[10];
@;
@@ -302,7 +293,8 @@ void Localisation::write_3(OUTPUT_STREAM, localisation_dictionary *D, text_strea
Localisation::write_general(OUT, D, key, vals);
}
-void Localisation::write_3nsn(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
+@ =
+void Localisation::write_iti(OUTPUT_STREAM, localisation_dictionary *D, text_stream *key,
int val1, text_stream *val2, int val3) {
text_stream *vals[10];
@;
@@ -346,7 +338,7 @@ void Localisation::write_general(OUTPUT_STREAM, localisation_dictionary *D,
while ((i'))
PUT_TO(link, Str::get_at(prototype, i++));
if (Characters::isupper(Str::get_at(link, 0)))
- IndexUtilities::DocReferences::link(OUT, link);
+ DocReferences::link(OUT, link);
else WRITE("<%S>", link);
DISCARD_TEXT(link)
break;
diff --git a/services/html-module/Contents.w b/services/html-module/Contents.w
index 59a8ec039..bcb3d39fb 100644
--- a/services/html-module/Contents.w
+++ b/services/html-module/Contents.w
@@ -18,3 +18,4 @@ Chapter 2: Intranet
Documentation Renderer
Installed Files
Documentation References
+ Localisation