wion / tWriter.tmbundle

An extended Textile bundle for TextMate.
0 stars 0 forks source link

grammar scope: Need support for `bq..` tag #13

Open wion opened 3 years ago

wion commented 3 years ago

The bq. tag now works, but support for the bq.. (multi-paragraphs) tag needs added. This requires figuring out how to continue the presentation on displayed quotations across line breaks until escaped, typically with a different Textile tag (e.g. p., hn., etc).

wion commented 3 years ago

This now works. Only thing needed was to account for the extra dot in the displayed quotations scope. The continuing para behaviour already worked, I just happened to discover it by accident. ;)

tWriter quotes and code

To do the multi-para dance:

  1. Type the @bq..@ tag (two dots) and the first paragraph, as normal.
  2. Hit in series:
    1. Return ⮐
    2. Tab ⇥
    3. Return ⮐
  3. Type second para, and so on until end of the last one.
  4. Hit in series to exit the tab and end the displayed quotation:
    1. Return
    2. Backspace ←

There is no distinction between the bq. and the bq.. para development. You just have to be careful that you use the right number of tag dots when transferring to Textpattern.

In Textpattern, to truly escape the multi-para displayed quotation, a new block element starting with a dot tag (p., hn., etc) must be used, so might as well get in habit of adding it in the .textile draft article.

wion commented 3 years ago

Reopening, because it would be nice if step 2.ii in previous post (making the tabbed and active position) happened automatically when conducting the initial carriage return (2.i) for bq.. context.

But I don't know how to do it.

Anyone?

Same for #12, and similar situation for #9