From 07581b1b102a37c55d88dcaa7a6e5d1ba4e7de39 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 25 Jan 2022 11:27:04 -0500 Subject: metadata, topic register to json removed, unused --- org/meta_conf_make_meta.org | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'org') diff --git a/org/meta_conf_make_meta.org b/org/meta_conf_make_meta.org index 5dd581e..737b309 100644 --- a/org/meta_conf_make_meta.org +++ b/org/meta_conf_make_meta.org @@ -462,9 +462,7 @@ struct MetaComposite { string classify_loc; string classify_subject; string classify_topic_register; - string classify_topic_register_json; // experimental use in sqlite topics table string[] classify_topic_register_arr; - string[] classify_topic_register_json_arr; // experimental use in sqlite topics table string[] classify_topic_register_expanded_arr; // experimental use in sqlite topics table string[] creator_author_arr; string creator_author; @@ -1483,34 +1481,6 @@ if ("classify" in _yaml _topic_register = _topic_register .replaceAll(wrds, "\"$1\"") .replaceAll(mkp_delim, ":$1$2"); - string[] _topics_json_arr; - //+ - foreach (_topic; _topic_register.split(";")) { - while (_topic.match(":")) { - foreach (m; _topic.match(":")) { - _topic = m.pre ~ " ☼ [ " ~ m.post ~ " ] "; - } - } - _topics_json_arr ~= (" ") ~ (_topic - .split("☼").join(":") - .split("|").join(", ")); - } - // +/ - /+ - foreach (_topic; _topic_register.split(";")) { - while (_topic.match(":")) { - foreach (m; _topic.match(":")) { - _topic = m.pre ~ " ☼ { " ~ m.post ~ " } "; - } - } - _topics_json_arr ~= (" { ") ~ (_topic - .split("☼").join(":") - .split("|").join(", ")) - ~ " }"; - } - +/ - _struct_composite.meta.classify_topic_register_json_arr = _topics_json_arr; - _struct_composite.meta.classify_topic_register_json = "{\n" ~ _topics_json_arr.join(",\n") ~ "\n}"; } string[] main_topics_ = _struct_composite.meta.classify_topic_register.strip.split(rgx.topic_register_main_terms_split); string[] topics; @@ -1540,8 +1510,6 @@ if ("classify" in _yaml _struct_composite.meta.classify_topic_register_expanded_arr = topics_expanded; // writeln("\n------\n", _struct_composite.meta.title_full); // writeln(_struct_composite.meta.classify_topic_register); - // writeln(_struct_composite.meta.classify_topic_register_json_arr); - // writeln(_struct_composite.meta.classify_topic_register_json); // writeln(_struct_composite.meta.classify_topic_register_expanded_arr.sort.join("\n")); // writeln(_struct_composite.meta.classify_topic_register_arr); } -- cgit v1.2.3