Leading "." (period) for line break @TonyM

74 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Mat

ungelesen,
18.09.2019, 11:28:2918.09.19
an TiddlyWiki
In another thread, fellow TonyM wrote:

I have tried to seek support to at least in my own wiki introduce a leading "." period to wikitext that does the same as ";" without the bold. Basically a leading period would wrap the line in 
.This is a line or paragraph

Would render (not insert)
<p>This is a line or paragraph</p>

Where did you seek this support? I think this is a very neat idea! But would you agree it should only be "line break" not actually what is seen here (the result would display the same even if the <p>'s were all in one line next to each others):

Capture.PNG

i.e the desired effect is rather:

foo
bar
baz

...right?

Is this on github so I can give it a thumbs up?

<:-)

coda coder

ungelesen,
18.09.2019, 15:39:2618.09.19
an TiddlyWiki


On Wednesday, September 18, 2019 at 10:28:29 AM UTC-5, Mat wrote:
In another thread, fellow TonyM wrote:

I have tried to seek support to at least in my own wiki introduce a leading "." period to wikitext that does the same as ";" without the bold. Basically a leading period would wrap the line in 
.This is a line or paragraph

Would render (not insert)
<p>This is a line or paragraph</p>

Where did you seek this support?


Mat

ungelesen,
18.09.2019, 16:57:5018.09.19
an TiddlyWiki
coda coder wrote:

Thanks. 
...that turns out to be a frustratingly long thread which I guess indicates a lot of objections... :-/
<:-)

TonyM

ungelesen,
18.09.2019, 17:02:2418.09.19
an TiddlyWiki
Mat,

The are three aspects to using the ".", 

one is during typing. Just start your sentence with a period and it becomes a paragraph. then similar to typing bullets "*" you can type a set of paragraphs and they will all behave like paragraphs and be followed by a blank line.

The second is after pasting text content from elsewhere. Being able to look through the text and add a period to transform a line into a paragraph.

The Third is give a larger body of text pasted into a tiddler, using a proposed EditorToolbar button, to select some or all lines and adding the leading period. Looking at the html P tag I discovered it handles nicely the following situations that occur with texts sourced elsewhere; This is after I have placed period at the beginning of each line
.A sentence with more than one line break following it collapses into a single paragraph break
.
.
.
.A short sentence
.a second short sentence without any additional line break above
.
.Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum 

So the P works well in this situation as well.

You can also see that the above is quite helpful now, if you want to improve the text, its easy to see extra line breaks and remove them, but no need to go inserting double enter/carriage returns to make the text look decent. If you do not get around to removing the periods no harm

<p>A sentence with more than one line break following it collapses into a single paragraph break</p>
<p></p>
<p></p>
<p></p>
<p>A short sentence</p>
<p>a second short sentence without any additional line break above</p>
<p></p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</p>
Paste the above in a tiddler to see the result if it was "rendered" as proposed.

Regards
Tony

@TiddlyTweeter

ungelesen,
19.09.2019, 07:32:5619.09.19
an tiddl...@googlegroups.com
TonyM wrote:
The are three aspects to using the ".", 

It might be interesting to play with the JS based parser system in public to achieve what you want.

I don't think it would be too enormously difficult.

TT 
Allen antworten
Antwort an Autor
Weiterleiten
0 neue Nachrichten