diff options
Diffstat (limited to 'org/meta_abstraction.org')
-rw-r--r-- | org/meta_abstraction.org | 79 |
1 files changed, 39 insertions, 40 deletions
diff --git a/org/meta_abstraction.org b/org/meta_abstraction.org index 317be72..25e742d 100644 --- a/org/meta_abstraction.org +++ b/org/meta_abstraction.org @@ -525,16 +525,16 @@ line_occur = [ "blurb" : 0, ]; uint[string] dochas = [ - "inline_links" : 0, - "inline_notes" : 0, + "inline_links" : 0, + "inline_notes" : 0, "inline_notes_star" : 0, - "codeblock" : 0, - "table" : 0, - "block" : 0, - "group" : 0, - "poem" : 0, - "quote" : 0, - "images" : 0, + "codeblock" : 0, + "table" : 0, + "block" : 0, + "group" : 0, + "poem" : 0, + "quote" : 0, + "images" : 0, ]; auto obj_type_status = flags_type_init; string[string] object_number_poem = [ @@ -3583,21 +3583,21 @@ final string biblio_tag_map()(string abr) { final string biblio_tag_map_()(string abr) { string name; switch (abr) { - case "au": name="author_raw"; break; - case "ed": name="editor_raw"; break; - case "ti": name="fulltitle"; break; - case "lng": name="language"; break; - case "jo": name="journal"; break; - case "vol": name="volume"; break; - case "edn": name="edition"; break; - case "yr": name="year"; break; - case "pl": name="place"; break; - case "pb": name="publisher"; break; - case "pub": name="publisher"; break; - case "pg": name="pages"; break; - case "pgs": name="pages"; break; - case "sn": name="short_name"; break; - default: name=abr; break; + case "au" : name = "author_raw"; break; + case "ed" : name = "editor_raw"; break; + case "ti" : name = "fulltitle"; break; + case "lng" : name = "language"; break; + case "jo" : name = "journal"; break; + case "vol" : name = "volume"; break; + case "edn" : name = "edition"; break; + case "yr" : name = "year"; break; + case "pl" : name = "place"; break; + case "pb" : name = "publisher"; break; + case "pub" : name = "publisher"; break; + case "pg" : name = "pages"; break; + case "pgs" : name = "pages"; break; + case "sn" : name = "short_name"; break; + default : name = abr; break; } return name; } @@ -7601,8 +7601,8 @@ struct DocObj_MetaInfo_ { alias of_part = is_of_part; alias of_section = is_of_section; alias is_of = is_of_type; - string attrib = ""; // TODO analyze attrib and subdivide here? - string lang = ""; // blocks: group, block, quote; not codeblock; TODO poem:verse not yet done + string attrib = ""; + string lang = ""; // blocks: group, block, quote; not codeblock; string syntax = ""; // codeblock only /+ o_n +/ int o_n_substantive = 0; @@ -7631,7 +7631,6 @@ struct DocObj_MetaInfo_ { } bool object_number_off = false; bool visible_object_number = false; - // enum ONtype { none, substantive, non_substantive, glossary, bibliography, book_index, blurb, comment } int object_number_type = 0; // { ocn, non, bkidx } /+ node +/ string[string][string] node; @@ -7646,15 +7645,15 @@ struct DocObj_MetaInfo_ { string marked_up_level() const @property { string _out; switch (heading_lev_markup) { - case 0: _out = "A"; break; - case 1: _out = "B"; break; - case 2: _out = "C"; break; - case 3: _out = "D"; break; - case 4: _out = "1"; break; - case 5: _out = "2"; break; - case 6: _out = "3"; break; - case 7: _out = "4"; break; - default: _out = ""; break; + case 0 : _out = "A"; break; + case 1 : _out = "B"; break; + case 2 : _out = "C"; break; + case 3 : _out = "D"; break; + case 4 : _out = "1"; break; + case 5 : _out = "2"; break; + case 6 : _out = "3"; break; + case 7 : _out = "4"; break; + default : _out = ""; break; // "9"; } return _out; } @@ -7677,7 +7676,7 @@ struct DocObj_TxtAttrib_ { int indent_base = 0; int indent_hang = 0; bool bullet = false; - string language = ""; // not implemented, consider + string language = ""; } #+END_SRC @@ -7685,7 +7684,7 @@ struct DocObj_TxtAttrib_ { #+name: meta_structs_init #+BEGIN_SRC d -struct DocObj_Has_ { // doc object has +struct DocObj_Has_ { bool inline_links = false; bool inline_notes_reg = false; bool inline_notes_star = false; @@ -7703,7 +7702,7 @@ struct DocObj_Table_ { double[] column_widths = []; string[] column_aligns = []; bool heading = false; - bool walls = false; // not implemented + bool walls = false; } #+END_SRC @@ -7741,7 +7740,7 @@ struct DocObj_Pointer_ { #+name: meta_structs_init #+BEGIN_SRC d struct DocObj_Tags_ { - string[] heading_ancestors_text = [ "", "", "", "", "", "", "", "", ]; // TODO redundant? see markedup and collapsed ancestors DONE + string[] heading_ancestors_text = [ "", "", "", "", "", "", "", "", ]; string anchor_tag_html = ""; string in_segment_html = ""; string segment_anchor_tag_epub = ""; |