Markdown Bag _tex under TeX

Source: Internet
Author: User


Recently in the travel, the network time is intermittent, the electricity also breaks the time to continue, today sees W32tex's changelog, discovered updated a markdown package (supports Plain/context/latex). Address in: Ctan:package markdown. This package can be updated in Tex Live, the convenience of this package is all based on Lua, so sometimes think of luatex or useful, but only if your machine performance is good enough to use it is not slow.

In fact, Tex is also used to render DocBook and Groff and so on. It can be said that, as long as the brain hole is large, but also willing to write code, any typesetting language can almost be converted to and Tex equivalent form. But previously this project is actually immature, the main reason is that the underlying Tex technology is dependent on the evolution of backward operating system evolution for about more than 10 years. But right now, Tex's underlying technology began to evolve at a high speed at the start of the LuaTeX project (though it brought hundreds of bugs). So the markdown package mentioned here is available and is recommended for use.

Someone familiar with my history of digging a hole can certainly turn to something I used to give to my Tex-plus front end, the implementation is very simple, with the off-the-shelf markdown library to do IO-level translate, this kind of thing is actually very simple. But this will cause some of the lack of style processing, so temporarily stranded. Processing on Io is necessary, such as the comments I recently added to the code:

    Reference:
      * https://www.microsoft.com/en-us/Typography/OpenTypeSpecification.aspx
      * https:// developer.apple.com/fonts/truetype-reference-manual/
    Name Syntax (TODO):
      Example: \jfont\t=ot:simsun.ttc[ 1]:upjisr-h at 20pt
               \jfont\t=ot:yumin.ttf; ' Kana ', jp90:upjisr-h at 20pt

This syntax is basically the month to release the OpenType support syntax style, in parsing, need JFM file as CCJK language font agent system, the role is used to do punctuation, Because there is no ready-made control punctuation and feature of contextual punctuation in our OpenType, it is theoretically achievable, but this kind of thing is not done by anyone. In the above syntax, only the last one is parsed: the string that follows. This part of the code is done on Io.

All right, that's it. Go out and catch the train.



Author: Li Aling
Link: https://zhuanlan.zhihu.com/p/21319488
Source: Know

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.