Re: New feature provides support for pdf for mat(OSPP)
Darcy Shen via Texmacs-dev <[email protected]> Mon, 09 Oct 2023 22:12:11 +0800
| Newsgroups | gmane.editors.texmacs.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============8171465759750118370== Content-Type: multipart/alternative; boundary="----=_Part_40_711755740.1696860731462" ------=_Part_40_711755740.1696860731462 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable tangdouer had done a great job on the PDF project. I just released Mogan Research 1.2.0-beta23:=C2=A0https://github.com/XmacsL= abs/mogan/releases/tag/v1.2.0-beta23 Enable `Export PDF with tm attachment` in Edit-Preferences->Others, and the= n you can export a tm document as a PDF with this tm document attached. The produced PDF could be used to share with other people, and edit it via = Mogan Research 1.2.0-beta23. I think Max's idea is really awesome! And tangdouer's impl is relatively ro= bust. Report one bug here: I use Mogan Research 1.2.0 beta23, and find that if I try to export sicp_fu= ll.tm to pdf.=C2=A0=C2=A0https://github.com/XmacsLabs/interactive-sicp/blob= /main/sicp_full.tm The console logs is very verbose even debug_convert is not enabled. The root cause is that `debug_convert` is not guarded. Here is right way to= avoid verbose logs: ``` if (DEBUG_CONVERT) debug_convert << blablabla ``` https://github.com/XmacsLabs/mogan/blob/v1.2.0-beta23/src/Plugins/Pdf/pdf_h= ummus_extract_attachment.cpp#L205-L220 ---- On Mon, 09 Oct 2023 20:36:41 +0800 tjh via Texmacs-dev <texmacs-dev@gn= u.org> wrote --- Hello everyone, I am tangdouer, from China. I have contributed to mogan som= e code as a OSPP participant. My project is http://forum.texmacs.cn/t/proposal-mechanism-to-append-docume= nts-to-and-augment-the-generated-pdf/1386. My mentor is Max. I have contrib= uted some code to https://github.com/XmacsLabs/mogan. The main work is to a= dd a new feature to mogan: attach tm doc to exported pdf when exporting the= pdf.And supports mogan to open, modify, and save this kind of pdf.I think = it is very convenient to operate on a pdf file instead of a tm file. Now I have almost completed this feature. And the latest beta version of mo= gan already provides support for this feature. However, this feature has no= t been fully tested at present, there may still be bugs. I would like to in= vite everyone to experience this feature and review the code I wrote, so th= at this code can be fed back to TeXmacs. _______________________________________________ Texmacs-dev mailing list [email protected] https://lists.gnu.org/mailman/listinfo/texmacs-dev ------=_Part_40_711755740.1696860731462 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>= <meta content=3D"text/html;charset=3DUTF-8" http-equiv=3D"Content-Type"></h= ead><body ><div style=3D"font-family: Verdana, Arial, Helvetica, sans-serif= ; font-size: 10pt;"><div>tangdouer had done a great job on the PDF project.= <br></div><div><br></div><div>I just released Mogan Research 1.2.0-beta23:&= nbsp;<a target=3D"_blank" data-zeanchor=3D"true" href=3D"https://github.com= /XmacsLabs/mogan/releases/tag/v1.2.0-beta23">https://github.com/XmacsLabs/m= ogan/releases/tag/v1.2.0-beta23</a><br></div><div><br></div><div>Enable `Ex= port PDF with tm attachment` in Edit-Preferences->Others, and then you c= an export a tm document as a PDF with this tm document attached.<br></div><= div><br></div><div>The produced PDF could be used to share with other peopl= e, and edit it via Mogan Research 1.2.0-beta23.<br></div><div><br></div><di= v>I think Max's idea is really awesome! And tangdouer's impl is relatively = robust.<br></div><div><br></div><div>Report one bug here:<br></div><div>I u= se Mogan Research 1.2.0 beta23, and find that if I try to export sicp_full.= tm to pdf. <a target=3D"_blank" data-zeanchor=3D"true" href=3D"h= ttps://github.com/XmacsLabs/interactive-sicp/blob/main/sicp_full.tm">https:= //github.com/XmacsLabs/interactive-sicp/blob/main/sicp_full.tm</a><br></div= ><div>The console logs is very verbose even debug_convert is not enabled.<b= r></div><div><br></div><div>The root cause is that `debug_convert` is not g= uarded. Here is right way to avoid verbose logs:<br></div><div>```<br></div= ><div>if (DEBUG_CONVERT) debug_convert << blablabla<br></div><div>```= <br></div><div><br></div><div><a target=3D"_blank" data-zeanchor=3D"true" h= ref=3D"https://github.com/XmacsLabs/mogan/blob/v1.2.0-beta23/src/Plugins/Pd= f/pdf_hummus_extract_attachment.cpp#L205-L220">https://github.com/XmacsLabs= /mogan/blob/v1.2.0-beta23/src/Plugins/Pdf/pdf_hummus_extract_attachment.cpp= #L205-L220</a><br></div><div><br></div><div class=3D"zmail_extra_hr" style= =3D"border-top: 1px solid rgb(204, 204, 204); height: 0px; margin-top: 10px= ; margin-bottom: 10px; line-height: 0px;"><br></div><div class=3D"zmail_ext= ra" data-zbluepencil-ignore=3D"true"><div><br></div><div id=3D"Zm-_Id_-Sgn1= ">---- On Mon, 09 Oct 2023 20:36:41 +0800 <b>tjh via Texmacs-dev <texmac= [email protected]></b> wrote ---<br></div><div><br></div><blockquote id=3D"b= lockquote_zmail" style=3D"margin: 0px;"><div style=3D""><p class=3D"x_16606= 65325md-end-block x_1660665325md-p x_1660665325md-focus" style=3D"box-sizin= g: border-box; line-height: inherit; orphans: 4; margin-top: 0px; white-spa= ce: pre-wrap; position: relative;"><span class=3D"colour" style=3D"color: r= gb(0, 0, 0); box-sizing: border-box; line-height: inherit; orphans: 4; marg= in-top: 0px; white-space: pre-wrap; position: relative;"><span class=3D"x_1= 660665325md-plain x_1660665325md-expand" style=3D"box-sizing : border-box;= ">Hello everyone, I am tangdouer, from China. I have contributed to mogan s= ome code as a OSPP participant.</span></span><br></p><p class=3D"x_16606653= 25md-end-block x_1660665325md-p" style=3D"box-sizing: border-box; line-heig= ht: inherit; orphans: 4; margin-top: 0px; white-space: pre-wrap; position: = relative;"><span class=3D"colour" style=3D"color: rgb(0, 0, 0); box-sizing:= border-box; line-height: inherit; orphans: 4; margin-top: 0px; white-space= : pre-wrap; position: relative;"><span class=3D"x_1660665325md-plain" style= =3D"box-sizing : border-box;">My project is </span><span class=3D"x_166066= 5325md-meta-i-c x_1660665325md-link" style=3D"box-sizing : border-box;"><a= href=3D"http://forum.texmacs.cn/t/proposal-mechanism-to-append-documents-t= o-and-augment-the-generated-pdf/1386" style=3D"box-sizing : border-box; cu= rsor : pointer; outline : 0px; color : rgb(224, 224, 224);" target=3D"_b= lank"><span class=3D"x_1660665325md-plain" style=3D"box-sizing : border-bo= x;">mechanism to append documents to and augment the generated PDF</span></= a><span class=3D"x_1660665325md-plain" style=3D"box-sizing : border-box;">= . My mentor is Max. I have contributed some code to </span><span class=3D"x= _1660665325md-meta-i-c x_1660665325md-link" style=3D"box-sizing : border-b= ox;"><a href=3D"https://github.com/XmacsLabs/mogan" style=3D"box-sizing : = border-box; cursor : pointer; outline : 0px; color : rgb(224, 224, 224);= " target=3D"_blank"><span class=3D"x_1660665325md-plain" style=3D"box-sizin= g : border-box;">mogan</span></a><span class=3D"x_1660665325md-plain" styl= e=3D"box-sizing : border-box;">. The main work is to add a new feature to = mogan: attach tm doc to exported pdf when exporting the pdf.And supports mo= gan to open, modify, and save this kind of pdf.I think it is very convenien= t to operate on a pdf file instead of a tm file.</span></span></span></span= ><br></p><p class=3D"x_1660665325md-end-block x_1660665325md-p x_1660665325= md-focus" style=3D"box-sizing: border-box; line-height: inherit; orphans: 4= ; margin-top: 0px; white-space: pre-wrap; position: relative;"><span class= =3D"colour" style=3D"color: rgb(0, 0, 0); box-sizing: border-box; line-heig= ht: inherit; orphans: 4; margin-top: 0px; white-space: pre-wrap; position: = relative;"><span class=3D"x_1660665325md-plain x_1660665325md-expand" style= =3D"box-sizing : border-box;">Now I have almost completed this feature. An= d the latest beta version of mogan already provides support for this featur= e. However, this feature has not been fully tested at present, there may st= ill be bugs. I would like to invite everyone to experience this feature and= review the code I wrote, so that this code can be fed back to TeXmacs.</sp= an></span><br></p></div><div>______________________________________________= _<br></div><div>Texmacs-dev mailing list<br></div><div>[email protected]<= br></div><div>https://lists.gnu.org/mailman/listinfo/texmacs-dev<br></div><= /blockquote></div><div><br></div></div><br></body></html> ------=_Part_40_711755740.1696860731462-- --===============8171465759750118370== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KVGV4bWFjcy1k ZXYgbWFpbGluZyBsaXN0ClRleG1hY3MtZGV2QGdudS5vcmcKaHR0cHM6Ly9saXN0cy5nbnUub3Jn L21haWxtYW4vbGlzdGluZm8vdGV4bWFjcy1kZXYK --===============8171465759750118370==--