style="left-margin: (n x 30)px;"
attributes?/foswiki/tools
directory) which will report existing topics which already have content that may be interpreted as paragraph indent tar -xzf
of the upgrade tarball, nobody runs an actual upgrade script as such...
: one level of indent : two level indent text following the above indent more text that is part of the above indent : three level indent : three level indent, but rendered as a separate paraRendered as:
one level of indent
two level indent text following the above indent more text that is part of the above indent
three level indent
three level indent, but rendered as a separate para
1 An ol item : two level of indent. counting list level : three level indent, counting list level text following the above indent more text that is part of the above indent 1 Another ol item three levels in 1 Yet another ol item three levels in : four level indent, counting list level : two level indent 1 An ol item, continued numbering in sequence after the firstRendered as:
two level of indent. counting list level
three level indent, counting list level text following the above indent more text that is part of the above indent
four level indent, counting list level
two level indent
=::Render
should translate them to <p class="foswikiParaLevelN">. This class would be appropriately styled in CSS ( {padding-left: (n x 30)px;}
or maybe 3em?) to achieve the desired indentation effect.
<blockquote>
. -- Contributors: PaulHarvey - 08 Nov 2009
liberal
. I know that I would like to set some topics to strict
to help pasting tables from word/excel staying as TML tables).
-- PaulHarvey - 15 Nov 2009
I'm with Kenneth on the nastiness of an indenting feature (see http://twiki.org/cgi-bin/view/Codev/TWikiMarkupForBlockquotes) but otherwise cool with this.
-- CrawfordCurrie - 19 Nov 2009
The useful part of that conversation was apparently Mediawiki's syntax:
: one level of indent : two level indent : three level indentShould this proposal be updated to work this into new TML syntax? -- PaulHarvey - 19 Nov 2009 Reset the clock because the proposal has been changed substantially... -- PaulHarvey - 19 Nov 2009 I really would like a way to do muti-level, bulletless indenting without having to fart about with CSS, and the MediaWiki syntax looks pretty good. Tentatively supported, though I'd like to hear some other voices on this. -- CrawfordCurrie - 20 Nov 2009 i think this formatting markup is not bad at all! it's consistent with current TML and, as a bonus, leverages people's MediaWiki knowledge. i am concerned, however, that several of the revisions to TML and WikiWord definitions have lead to grief before, so a high degree of caution is required. perhaps some of you with large topic collections could execute the following command to see if this is feasible or if it would "break" "too much" existing data?
grep -RPe '^( {3}|\t)+:' data/Possibly a better recipe:
egrep -r --include=\*.txt "^( |$tab)+: " data | wc -l-- WillNorris - 21 Nov 2009 I used
find data/ -type f -name '*.txt' |wc
to get the total number of topics.
-- PaulHarvey - 23 Nov 2009
What would happen if it was found in a pre
?
-- AndrewJones - 03 Dec 2009
I wasn't able to use your grep on debian so I used following:
find data/ -type f -name '*.txt' | xargs pcregrep -M '^( {3}|\t)+:'
egrep -r '^( |XXX)+:' data
where XXX there means typing ctrl-v ctrl-i
on the keyboard - CN
egrep -r --include=\*.txt "^( |$tab)+: " data | wc -l
which is better because: :peserver:
otherwise
: one level of indent : two level indent : three level indentSince then, I've been fairly divorced from TWiki and Foswiki, using TWiki markup with some personal variants to maintain a "personal" free-format database that I'm hoping someday do move back to TWiki/Foswiki and put on the web (without the really personal stuff). I've found that I do an awful lot of quoting--I mean multiple paragraphs per Foswiki topic / page (I call those records in my database). The markup I use (which has at least one problem--below) is more of a start blockquote, end blockquote markup--I use single quotes on dedicated lines (sometimes more than one, and sometimes in combination with equal signs (to denote preformatted / monospaced text--e.g., code). For example: '
Looking at this, you'd initially think that this was a single level blockquote, and ...Some similar examples of ambiguity cannot be resolved by looking ahead, they are just plain ambiguous. -- RandyKramer - 04 Dec 2009 Randy, for doing citation/quote markup, I strongly believe <blockquote> and <q>/<cite> are the right tools for the job. TinyMCE provides the ability to indent paragraphs by applying a...this is a non-blockquoted followup paragraph. But, if you later find two single quotes on a line as the last blockquote markup in a given Foswiki page, you'd realize that I want the paragraphs here to appear as a nested blockquote, as shown here.
style="left-margin:
attribute to <p> (and other?) blocks, however, and that's what we can't represent neatly in TML.
A legitimate use of this is the user who desires the content below a minor heading to be indented (visually distinct) from the rest of their content.
I have updated the proposal's work plan to cover implementing a script which will examine the user's topics for any text that will be accidentally interpreted as indented paras.
Unfortunately I don't see an easy way to do more than grep through the topics - checking the final rendering of topics incl. macro expansion would entail a huge amount of work (and CPU time).
I am willing to hear other opinions about that, however.
-- PaulHarvey - 05 Dec 2009
Paul,
Thanks for your comments!
This page is a little hard to follow because it addresses both blockquotes and indented paragraphs.
If you use the proposed markup or something like it for indented paragraphs:
: one level of indent : two level indent : three level indentThat leaves the field free for a markup like I prefer (a begin / end type markup) to be used for blockquotes either soon, or sometime in the future. I have a strong need for a *wiki (FosT[wW]iki) markup for blockquotes, and, how can I say this--something that makes the intent obvious in the non-rendered raw *wiki text (like some of the various structured text markups that are intended to be read in raw or rendered form). -- RandyKramer - 06 Dec 2009 You're right, this page needs a cleanup. It was written from the point of view of features in TinyMCE that are crippled due to lack of TML representation. So to clarify: "support blockquote" was simply adding a button in the WYSIWYG editor; "support indenting" was just trying to find a way of doing indenting without messing about with style attributes on <p> tags. At a stretch, I would consider extending this proposal to something like:
: one level of indent :" two level indent, blockquote : three level indent, within the blockquoteBut I would have to reset the clock and ask everybody to come back and review again Which is a terrible reason for not rewriting this proposal, but it doesn't satisfy your need for start/end style blockquoting which is not something I was thinking about when I wrote this up, and probably deserves its own proposal. Randy, are you happy to make your blockquote syntax a separate proposal? -- PaulHarvey - 06 Dec 2009 Yes, sure it can be a separate proposal. I don't know how soon I'll bother even making a proposal, as my current focus is getting folding for *wiki markup into the Scintilla based family of editors. BTW, from my point of view, I don't see any particular need to extend the proposal as you describe--maybe somebody else does. -- RandyKramer - 06 Dec 2009 Looking forward to seeing the Scintilla work, it sounds very interesting. So I suppose I can set this to AcceptedBy14DayRule -- PaulHarvey - 07 Dec 2009 Updated examples. -- PaulHarvey - 07 Dec 2009 Updated with another example to demonstrate behaviour in lists. -- PaulHarvey - 09 Dec 2009 AcceptedBy14DayRule, created Tasks.Item2516 -- PaulHarvey - 21 Dec 2009 The TinyMCE part needs a bit more work, but Crawford has implemented the new syntax in Tasks.Item2516 -- PaulHarvey - 13 Dec 2011
TopicSummary | Support <blockquote> and paragraph indenting in TinyMCEPlugin |
CurrentState | MergedToCore |
CommittedDeveloper | PaulHarvey, CrawfordCurrie |
ReasonForDecision | AcceptedBy14DayRule |
DateOfCommitment | 21 Nov 2009 |
ConcernRaisedBy | |
BugTracking | Tasks.Item2341, Tasks.Item2516 |
RelatedTopics | WysiwygTaskTeam, Support.Question293, WysiwygContentPolicies, SupportLineThroughFormatTag |
PlannedFor | 2.0 |
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
png | screenshot.png | manage | 40 K | 11 Nov 2009 - 23:05 | PaulHarvey | New toolbar layout |