Am Wed, 29 Jul 2020 13:23:36 +0200 schrieb Kornel Benko <kor...@lyx.org>:
> ja/UserGuide.lyx > fr/UserGuide.lyx > ru/UserGuide.lyx > > Here are the messages: > ja/UserGuide.lyx: > ... > insets/InsetIndex.cpp (200): Unsupported feature: an index entry contains an > @. Complete > entry: "ようこしゆう@用語集 ! ふろくらむ@プログラム" insets/InsetIndex.cpp (200): > Unsupported feature: an index entry contains an @. Complete entry: "はせいし@派生枝" > insets/InsetIndex.cpp (200): Unsupported feature: an index entry contains an > @. Complete > entry: "ふんしよ@文書 ! はせいし@派生枝" support/lassert.cpp (51): ASSERTION ucs4[i] < > 0x80 VIOLATED IN /usr2/src/lyx/lyx-git/src/support/docstring.cpp:65 > > > fr/UserGuide.lyx: > ... > xml.cpp (159): No division separation tag found in endDivision(). > insets/InsetIndex.cpp (200): Unsupported feature: an index entry contains an > @. Complete > entry: "Entrées bidons ! maïs@maison" support/lassert.cpp (51): ASSERTION > ucs4[i] < 0x80 > VIOLATED IN /usr2/src/lyx/lyx-git/src/support/docstring.cpp:65 > > ru/UserGuide.lyx > ... > xml.cpp (159): No division separation tag found in endDivision(). > insets/InsetIndex.cpp (200): Unsupported feature: an index entry contains an > @. Complete > entry: "Фиктивные рубрики ! maïs@maison" support/lassert.cpp (51): ASSERTION > ucs4[i] < > 0x80 VIOLATED IN /usr2/src/lyx/lyx-git/src/support/docstring.cpp:65 > > Kornel Attached patch omits the assertions for me. Kornel
diff --git a/src/output_docbook.cpp b/src/output_docbook.cpp index 75c160d612..33d9910912 100644 --- a/src/output_docbook.cpp +++ b/src/output_docbook.cpp @@ -340,11 +340,12 @@ ParagraphList::const_iterator makeParagraphBibliography( for (; par != pend; ++par) { // Start the precooked bibliography entry. This is very much like opening a paragraph tag. // Don't forget the citation ID! docstring attr; for (auto i = 0; i < par->size(); ++i) { - if (par->getInset(0)->lyxCode() == BIBITEM_CODE) { + Inset const *ip = par->getInset(0); + if (ip != nullptr && ip->lyxCode() == BIBITEM_CODE) { const auto * bibitem = dynamic_cast<const InsetBibitem*>(par->getInset(i)); attr = from_utf8("xml:id='") + bibitem->bibLabel() + from_utf8("'"); break; } } @@ -415,11 +416,11 @@ ParagraphList::const_iterator makeParagraphs( // TODO: Could get rid of this with a DocBook equivalent to htmlisblock? if (!special_case && par->size() == 1 && par->getInset(0)) { Inset const * firstInset = par->getInset(0); // Floats cannot be in paragraphs. - special_case = to_ascii(firstInset->layoutName()).substr(0, 6) == "Float:"; + special_case = to_utf8(firstInset->layoutName()).substr(0, 6) == "Float:"; // Bibliographies cannot be in paragraphs. if (!special_case && firstInset->asInsetCommand()) special_case = firstInset->asInsetCommand()->params().getCmdName() == "bibtex";
pgphlUHXtjJSR.pgp
Description: Digitale Signatur von OpenPGP
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel