[LyX/master] Support the mathbbm font.

Stephan Witt st.witt at gmx.net
Tue Jul 28 15:41:05 UTC 2020


Am 28.07.2020 um 05:02 schrieb Thibaut Cuvelier <tcuvelier at lyx.org>:
> 
> On Mon, 27 Jul 2020 at 12:34, Pavel Sanda <sanda at lyx.org> wrote:
> On Mon, Jul 27, 2020 at 04:56:48AM +0200, Thibaut Cuvelier wrote:
> > commit e709a6626e731b460a98ea34d762a776de90b54c
> > Author: Thibaut Cuvelier <tcuvelier at lyx.org>
> > Date:   Mon Jul 27 03:14:38 2020 +0200
> > 
> >     Support the mathbbm font.
> >     
> >     Should just be able to read formulae, not add it from the GUI, as it's mostly redundant with mathds and mathbb.
> 
> Hi Thibaut,
> 
> I suppose that the issue raised by Kornel is not related, as discussed below? 
>  
> why is this font addition needed?
> 
> In order to support more math formulae: \mathbbm supports a few more doublestroke symbols than the existing fonts (like lower-case characters). It's not exactly the most useful math font in the world, but not supporting it made problems in some of my private test cases. (Actually, I mostly need it to convert properly into MathML, but rendering it properly in LyX was not much harder.)
>  
> And how is it related to the changes in src/output_docbook.cpp?
>  
> It's not related at all, that was a squashing mistake… That part is just to ensure that the <abstract> tag is output when it should (the code makes some inference about which paragraphs belong to the abstract, but it does not go into the details to see if these are just comments, for instance): having an empty <abstract> is a validation error in DocBook. 

The issue raised by Kornel is present on Mac too. git bisect says:

e709a6626e731b460a98ea34d762a776de90b54c is the first bad commit
commit e709a6626e731b460a98ea34d762a776de90b54c
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Mon Jul 27 03:14:38 2020 +0200

    Support the mathbbm font.
    
    Should just be able to read formulae, not add it from the GUI, as it's mostly redundant with mathds and mathbb.

:040000 040000 185407fd84a646e4474d3b75fed4220f73f74177 a859b16aba33f1289ab709e4c2d86fdbd30b7a4b M	lib
:040000 040000 f4718a1e3e531e3ff50f014fab803447ec1575e5 bd75a99c099533a1e7f5514b516d8ff336e0b477 M	src

Furthermore if I try to copy the text part with strange display (see attached screen-shot) I get an assertion crash:

$ bt
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00007fff599df2c2 libsystem_kernel.dylib`__pthread_kill + 10
    frame #1: 0x000000010596e80d libsystem_pthread.dylib`pthread_kill + 284
    frame #2: 0x00007fff599496a6 libsystem_c.dylib`abort + 127
    frame #3: 0x0000000100395ebf LyX`lyx::lyx_exit(exit_code=1) at LyX.cpp:275:2
    frame #4: 0x0000000100595bb7 LyX`boost::assertion_failed(expr="false", function="void lyx::doAssertWithCallstack(bool)", file="/Users/stephan/git/lyx/src/support/lassert.cpp", line=44) at boost.cpp:47:2
    frame #5: 0x0000000101056f8b LyX`lyx::doAssertWithCallstack(value=false) at lassert.cpp:44:3
    frame #6: 0x0000000101057712 LyX`lyx::doAssert(expr="false", file="/Users/stephan/git/lyx/src/Paragraph.cpp", line=3528) at lassert.cpp:53:2
  * frame #7: 0x000000010040ba6a LyX`lyx::Paragraph::simpleLyXHTMLOnePar(this=0x0000000106c2d2a0, buf=0x0000000106c4f0f0, xs=0x00007ffeefbf1268, runparams=0x00007ffeefbf0e68, outerfont=0x00007ffeefbf0898, start_paragraph=true, close_paragraph=true, initial=0) const at Paragraph.cpp:3528:5
    frame #8: 0x000000010062aa6e LyX`lyx::(anonymous namespace)::makeParagraphs(buf=0x0000000106c4f0f0, xs=0x00007ffeefbf1268, runparams=0x00007ffeefbf0e68, text=0x0000000106ca53d8, pbegin=0x00007ffeefbf0e18, pend=0x00007ffeefbf0dd8) at output_xhtml.cpp:348:35
    frame #9: 0x0000000100628cf1 LyX`lyx::xhtmlParagraphs(text=0x0000000106ca53d8, buf=0x0000000106c4f0f0, xs=0x00007ffeefbf1268, runparams=0x00007ffeefbf19a8) at output_xhtml.cpp:664:10
    frame #10: 0x0000000100082788 LyX`lyx::Buffer::writeLyXHTMLSource(this=0x0000000106c4f0f0, os=0x00007ffeefbf1b78, runparams=0x00007ffeefbf19a8, output=FullSource) const at Buffer.cpp:2304:4
    frame #11: 0x0000000100209af5 LyX`lyx::(anonymous namespace)::putClipboard(paragraphs=0x000000010799e7c0, docclass=<unavailable>, plaintext=L"des Benutzerhandbuchs gelesen worden ist.", bp=0x0000000107967208) at CutAndPaste.cpp:645:11
    frame #12: 0x0000000100209380 LyX`lyx::cap::copySelection(cur=0x000000010795aea8, plaintext=L"des Benutzerhandbuchs gelesen worden ist.") at CutAndPaste.cpp:1132:2
    frame #13: 0x0000000100208adc LyX`lyx::cap::copySelection(cur=0x000000010795aea8) at CutAndPaste.cpp:1008:2

BR, Stephan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200728/0118e012/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto 2020-07-28 um 17.39.41.png
Type: image/png
Size: 251677 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200728/0118e012/attachment-0001.png>


More information about the lyx-devel mailing list