Closed anermina closed 1 month ago
@anermina can you please help rebase and fix the conflicts? Thanks.
@opoudjis The addition of index terms leads to a crash in isodoc:
Style: (ID tocW_02): More than 1 ordered list in a numbered clause
gems/metanorma-iso-2.8.4/lib/isodoc/iso/index.rb:107:in `see_lbl'
gems/metanorma-iso-2.8.4/lib/isodoc/iso/index.rb:46:in `index_entries_opt'
gems/metanorma-iso-2.8.4/lib/isodoc/iso/index.rb:52:in `index_entries'
gems/metanorma-iso-2.8.4/lib/isodoc/iso/index.rb:28:in `block (2 levels) in index1'
gems/metanorma-iso-2.8.4/lib/isodoc/iso/index.rb:27:in `each'
gems/metanorma-iso-2.8.4/lib/isodoc/iso/index.rb:27:in `block in index1'
gems/metanorma-iso-2.8.4/lib/isodoc/iso/index.rb:23:in `each'
gems/metanorma-iso-2.8.4/lib/isodoc/iso/index.rb:23:in `index1'
gems/metanorma-iso-2.8.4/lib/isodoc/iso/index.rb:16:in `index'
bundler/gems/isodoc-2e24301f533c/lib/isodoc/presentation_xml_convert.rb:63:in `section'
bundler/gems/isodoc-2e24301f533c/lib/isodoc/presentation_xml_convert.rb:45:in `conversions'
bundler/gems/isodoc-2e24301f533c/lib/isodoc/presentation_xml_convert.rb:28:in `convert1'
The error finally that appeared was:
undefined method `see' for an instance of IsoDoc::Plateau::I18n
The error finally that appeared was:
undefined method `see' for an instance of IsoDoc::Plateau::I18n
Yes, I fixed this in https://github.com/metanorma/metanorma-iso/commit/f8e687d83ae5116140e56176da9465234dd9212c
@anermina is this still "work in progress" or is this done? We need to merge this ASAP.
@opoudjis
The error finally that appeared was:
undefined method `see' for an instance of IsoDoc::Plateau::I18n
Yes, I fixed this in metanorma/metanorma-iso@f8e687d
There is another crash with indexes in isodoc, this is not fixed:
Style: (ID tocW_02): More than 1 ordered list in a numbered clause
gems/3.3.0/gems/metanorma-iso-2.8.4/lib/isodoc/iso/index.rb:107:in `see_lbl'
gems/3.3.0/gems/metanorma-iso-2.8.4/lib/isodoc/iso/index.rb:46:in `index_entries_opt'
gems/3.3.0/gems/metanorma-iso-2.8.4/lib/isodoc/iso/index.rb:52:in `index_entries'
gems/3.3.0/gems/metanorma-iso-2.8.4/lib/isodoc/iso/index.rb:28:in `block (2 levels) in index1'
gems/3.3.0/gems/metanorma-iso-2.8.4/lib/isodoc/iso/index.rb:27:in `each'
gems/3.3.0/gems/metanorma-iso-2.8.4/lib/isodoc/iso/index.rb:27:in `block in index1'
Actually, the final message is the same:
undefined method `see' for an instance of IsoDoc::Plateau::I18n
@opoudjis I have updated isodoc and metanorma-plateau, but still failing. Have you tried this PR?
@opoudjis it now works after also updating metanorma-iso in the Gemfile.
This is no longer in progress.
It isn't quite clear from the HTML (the only file where the Index section is visible) where the index terms should be used and where they should not be, because HTML uses page numbers and does not include hyperlinks. I was able to determine that terms should not be listed in the Index section if they are used in the appendices. However, the term "建築物の高さ" appears only in Appendix C, and I made an exception for this case by encoding it as an index term, even though it is used in an appendix.
In today's commits, the encoding was changed to avoid referencing notes, lists, tables, and similar elements.
@anermina
Once 1 is done please help merge this. Thanks!
Merging!
@ronaldtse My previous comment wasn’t clear enough - it was about the reference documents. The original HTML file is the only one that contains the index terms for this document, and it uses non-hyperlinked page numbers. I was checking this file to determine where to use the index terms.
Our HTML and PDF seem fine.
Closes https://github.com/metanorma/mn-samples-plateau/issues/91.