<dl><dt>DL dt content</dt></dl><dd>DT content</dd><dl><dd><dl><dd><dl><dd>Three deep</dd></dl></dd></dl></dd></dl>
<dl>DL content</dl>
<dl>DL content</dl>
- Propose it be added to the standard distribution
There is a limited amount of "text content" html tags. Some of them do include indentation by default. Most of them don't.
IMO candidates are:
- OL
- UL
- DL
- P
So I'd like to rephrase it, how I see it: --- I'm not sure, if that is what you wanted. ... It's what I see.1) "How can we achieve text indentation" similar to UL or OL, without the markers.2) "How can we improve importing text from other sources" ... IMO that's a completely different thing and it shouldn't be mixed.ad 1)There is a limited amount of "text content" html tags. Some of them do include indentation by default. Most of them don't.IMO candidates are:- OL- UL- DL- P
<ul>
<li class="testClass">level 1
<ul>
<li>level 2</li>
</ul>
</li>
</ul><ul class="testClass">
<li>level 1
<ul>
<li>level 2</li>
</ul>
</li>
</ul>- I'm not sure if the parser can handle that.- I'm not sure if this can be implemented in a consistent way. Especially:* level 1**^x level 2doesn't make sense, since it is the same as
*.x level 1 ... Which is much more readable. <-- uups that's wrong!
I thought it an interesting question because its trying to find a direct simple solution to a layout issue that makes a bunch of sense.
The issue, I think, is, as you indicate, about parsing? Or, maybe, CSS?
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/522ab1c2-a1e3-4605-bedf-d2edf87aaaa9%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/ef87590d-8887-4a20-978d-83d8b7c0d1f1%40googlegroups.com.
I would like to;
- Identify a suitable character to do this perhaps"|" or "^" even "." (if it does not cause other problems)
Maybe we should say if the parser finds the asterisk directly inside a UL tag then it should just output the LI tag without another UL tag. Some with the pound sign and the colon. In other words, if the outer list element is the immediate parent to the list item line, it should not output a second outer list element inside it but go directly to the inner list item. The same would apply to the table tag.
Thanks all for your thinking on this but do consider my initial post. I don't want indentation I want no indentation but not bold as is the case with semicolon. Basically a paragraph.
That's all I want. Very simple leading character addition to wiki text and a matching editor toolbar button that would prefix selected lines just as * and # currently. If available I would use period.
If you want I can argue the merits, but first can we do this - YES and what character can I use?
regards
Tony
Thanks all for your thinking on this but do consider my initial post. I don't want indentation I want no indentation but not bold as is the case with semicolon. Basically a paragraph.
That's all I want. Very simple leading character addition to wiki text and a matching editor toolbar button that would prefix selected lines just as * and # currently. If available I would use period.
If you want I can argue the merits, but first can we do this - YES and what character can I use?
I want to extend the Wiki text markup to include a character that does what I suggest. so lets say I go with period "." - paragraphs or lines with a leading period would be rare and unusual. In fact if we make it first character - Period+anychar not space we can make it more precise. I think you are missing the point that has been made several times. You are EITHER changing HTML or changing CSS, or both. How else you gonna do it?
The indentation is irrelevant to the STRUCTURAL issue. That is a doddle. After. CSS basic.
You can use in a parser anything. How about ".tony" at the start of the line? :-)More seriously the various non-alpha characters have been used across many implementations.
Perhaps period is a good one, this is why I asked. Ideally a single character entry to allow one to quickly refomat a text tiddler with a "." at the start of each indepenednt paragraph that will also have single line breaks between paragraphs.
You may be able to see in the OT what I achieve with use of the dl tag contrary to the standards you point out. This outcome is what I am after.
I understand your post as implying my use contraveins standards? Fair enough.
TonyM wrote:quickly refomat a text tiddler with a "." at the start of each indepenednt paragraph that will also have single line breaks between paragraphs.
I'm pretty sure single line breaks between paragraphs can't happen. It is not backwards compatible and will produce a lot of unwanted p-tags all over the place in the existing
Thanks all for your thinking on this but do consider my initial post. I don't want indentation I want no indentation but not bold as is the case with semicolon. Basically a paragraph.
<p><strong>A Bold line staring at position 1</strong></p>
------------------
A Bold line staring at position 1
<p>A Bold line staring at position 1</p>
That's all I want. Very simple leading character addition to wiki text and a matching editor toolbar button that would prefix selected lines just as * and # currently. If available I would use period.
That is my impression too. In a way the discussion is touching on "Content-type". My understanding is that the standard CT in TW has some "global" parser rules that other parsers need honour? Not sure.FYI, I have myself used BJ's plugins that can create new CTs, or support hybrid ones, where you can run a "pre-parser" before the standard parsers kick in. It works well for my needs (screenplays).
With TW we already have some severe and hard to fix problems, because the existing parser is a bit sloppy at creating HTML code. Not to say it ignores most of the rules.This isn't a big problem if the content and the created HTML output stays within TW. _But_ it is a problem if the content should be re-used as an input for an other system that runs an HTML validator as the first step. ... Such systems can be found in enterprise environments or if a user needs to have "semantic" HTML code.
TT: FYI, I have myself used BJ's plugins that can create new CTs, or support hybrid ones, where you can run a "pre-parser" before the standard parsers kick in. It works well for my needs (screenplays).
There is some discussion going on, how to use different TW type field settings. ... But imo that's more of a 5.2.x topic.
... so lets say I go with period "." - paragraphs or lines with a leading period would be rare and unusual.
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/a67dd7c2-1d70-41ba-975b-c4478f605d95%40googlegroups.com.
I have continued looking at this and it seems '<p>' is enough unless it interferes in some way with tiddlywiki.
Mario I understood I proposed an illegal use of DL. I was using it initially to demonstrate it working as desired. Thanks
If a 1st leading period wrapped the line/paragraph in the p tags during rendering, it would do as I suggested. Multiple empty pairs of paragraph tags collapse into a single blank line on display.
An aside. I note In tiddly wiki you can make up your own html tag name and apply styles.
So If I paste text from a source that does not have sufficient breaks to stop all paragraphs flowing together it would be possible to have an editor toolbar button that prefixes every line/paragraph in a selection with a period. On rendering the leading period will cause each line to be wrapped as a paragraph which in fact they are. The render process could also include an identifier for additional styling.
It should be just as easy to remove the leading period if required.
The advantage over other methods is all wiki text markup will be valid within the paragraphs.
Much of the text I have sourced either has insufficient breaks or too many. This method helps with that as well.
I will keep looking to see if there is a better way.
But any advice how to implement it would help.
Thanks
Tony
So If I paste text from a source that does not have sufficient breaks to stop all paragraphs flowing together it would be possible to have an editor toolbar button that prefixes every line/paragraph in a selection with a period.
I think even wrapping each line in a '<p class="custom">' may be effective however a leading period that does the same at render time has a much lower impact visually when editing the text. It would be convenient when typing text just as ; and : # and * are.
I would be fine if this was an optional wiki text character/rule and would be easy to remove if necessary especially with an editor toolbar button.
So if I can get some tips to add this it would be great.
Regards
Tony