We hijacked an other thread <https://groups.google.com/forum/#!topic/tiddlywiki/wLWbqCouB54>, which shouldn't happen. So I wanted to start over here:
On Tuesday, February 25, 2020 at 11:13:54 PM UTC+1, TonyM wrote: > > Mario, > > You are a wizard with this kind of thing, I hope you could assist me. I > ask now because your above solution is slow close to what I have asked for > for some time. > > - Is there a possibility you could generalise this so others could > modify it to produce their own parser/pragma? > - If you see in the core where * # ; : are defined it seems to me it > should be trivial to add another special character and set html tags but > it > is not. > - could you make a standard plugin template we can modify to set the > lead character and the html tags to apply? > - I really want the leading period "." to trigger a html paragraph > around multiple sentences until we get to end of line (line break) > - However I see value if I could build others > > Thanks if this is possible > Tony > On Wednesday, February 26, 2020 at 6:37:01 PM UTC+1, PMario wrote: > > On Tuesday, February 25, 2020 at 11:13:54 PM UTC+1, TonyM wrote: > .. > >> You are a wizard with this kind of thing, I hope you could assist me. I >> ask now because your above solution is slow close to what I have asked for >> for some time. >> > ... > >> >> - I really want the leading period "." to trigger a html paragraph >> around multiple sentences until we get to end of line (line break) >> >> I have seen this request, but I don't understand it. I think the first > time it came up with the "single linebreak" - "hard linebreak" in > paragraphs discussion. > > In my thinking having a dot at the start of the wikitext line is annoying. > I'd rather go with some spaces, which you can sometimes see. > > Also inserting a dot at the beginning of a line is the same manual work as > hitting [Enter] or even 2 times Enter, to create a real wikitext paragraph. > > The second problem I have is, that a "hard paragraph" will create HTML > code like this: > > <p> > <p>This text is wrapped because there was a "dot" at the beginning of the > line</p> > </p> > > Which is ugly, since TW already suffers from "divitis > <https://csscreator.com/divitis>". So imo we shouldn't add > "paragraphitis" if we can avoid it ;) > > Mario > On Thursday, February 27, 2020 at 12:27:36 AM UTC+1, TonyM wrote: > > Mario, > > I would expect a dot at the beginning to simply do this. > > <p>This text is wrapped because there was a "dot" at the beginning of the > line</p> > > To me this is a very valuable tool for use in my own wikis, not only for > massaging imported content but helping me structure notes as I compose > them. It would be easy to remove all leading periods if required and if we > copy the resultant html for reuse it is good for sharing. > > I want a bespoke setting here, not a change to the fundamental markup > standards, and if possible offer the option for other bespoke leading > charater markup. eg someone may like to indicate sections or chapters > etc... with their own markup, basically allowing a markup character to be > defined use standard html tags, tags not already catered for in wikitext or > widgets. > > Perhaps you are not interested but It would help me (and I believe others > would like it) a lot. But the question is why is the addition of such > bespoke markup not possible?, from what I can see programmatically it > should be trivial, perhaps even entries in a data tiddler to define them. > > With an Editor toolbar button I can turn all lines into paragraphs buy, > select all, click, prepending the lines with a period. > > One way to test the value is to copy a big block of multi paragraph lorum > ipsum then use a editor toolbar item to select all lines and prepend with > ";" > > Empty `<P>` tags collapse to one blank line between paragraphs and > indicating the "pre-wrapped" line starts helps and editor review the > layout, especially for content sourced elsewhere. Which often contains > multiple blank lines, using this they all collapse to a single blank line > when rendered. > > In rapid note taking I use ";" and ":" a lot, and this would complement > these by providing automatically managed paragraphs. There is no non-bold > equivalent to ";". > > If you have another character or markup pattern in mind happy to consider. > But I realy, realy, want this, given my personal organiser, my data > imports, note taking in courses etc.. Material I add tends to go nowhere > but in my own personal wikis. > > And yes, for some people this will satisfy there frustration with the line > breaks. > > Regards > Tony > > On Thursday, February 27, 2020 at 2:52:36 AM UTC+1, PMario wrote: > > On Thursday, February 27, 2020 at 12:27:36 AM UTC+1, TonyM wrote: > > Perhaps you are not interested but It would help me (and I believe others >> would like it) a lot. >> > > I wouldn't discuss it, if I wouldn't be interested. I just need to > understand it in a broader context. > > >> But the question is why is the addition of such bespoke markup not >> possible? >> > > It is possible -- and it should create html markup that is in line with > the html spec. The spec is important for eg: accessibility tools like > screen readers. So our wikitext should produce output, that doesn't confuse > those tools. > > >> , from what I can see programmatically it should be trivial, perhaps even >> entries in a data tiddler to define them. >> > > Not really trivial. ... The elements you pointed out, are all part of the > list-parser. So they create 2 elements. > eg: > * test ... creates an <ul> wrapper and <li> elements. > ; test ... creates a <dl> wrapper and <dt> elements. > > So if the leading-dot is added, in a naive way it creates nested > paragraphs, which is outside the html specs. > I did test it with a <section> > <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section> > wrapper and <p> elements which seems to be OK. > > eg: > > .test 1 > .test 2 > > will give us > > <section> > <p>test 1</p> > <p>test 2</p> > </section> > > There may be other possibilities, to add this behaviour, but I didn't > think about that ... yet. > > -mario > On Thursday, February 27, 2020 at 8:55:43 AM UTC+1, TonyM wrote: > > Mario > > Thanks. That explains a lot more. Would it be ok to nest it in a div, > perhaps the div could have a class so styles could be applied e.g. the > paragraph style, thus the transition to multiple paragraphs could be > changed e.g. 1.5 line space between paragraphs. > > Regards > Tony > On Thursday, February 27, 2020 at 9:14:50 AM UTC+1, TiddlyTweeter wrote: > > Ciao TonyM > > Here is my naive comment. I'm still not fully clear what the outcome you > looking for is meant to "look like". > > But I think CSS might be a workable solution. Either in a div container or > a CSS rule that detects markup? > > Best wishes > TT > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e39bdd79-9ed9-48c2-9150-ed4cd54fde14%40googlegroups.com.

