Our Halloween Writing Contest is coming up soon. Start Writing! [ Dismiss ]
Home ยป Forum ยป Author Hangout

Forum: Author Hangout

Can formatting be turned off?

Zen Master ๐Ÿšซ

Maybe there's a way to have my cake and eat it too! Can the SOL internal formatting processor be turned off at times? As blogged, I forgot that asterisk-text-asterisk would set the text as bold, and put a mathematical formula "50*50*3.14" in one of my stories. Naturally, that was posted as 50503.14 with the 3rd and 4th digits in bold. I fixed it by reposting with "50x50x3.14", but maybe simply turning formatting codes off would have been better.
-ZM

Keet ๐Ÿšซ

@Zen Master

with turning off all formatting you would loose a lot more. I'm sure Lazeez has a fix for this. You could try the html code for an asterix: "& ast ;" (without the quotes and spaces) and see if that works.

Replies:   psnz
psnz ๐Ÿšซ

@Keet

You could try the html code for an asterix: "& ast ;" (without the quotes and spaces) and see if that works.

For some strange reason, I've always thought that Asterix was a Gaul who went around drinking potions and beating up Romans with his friend Obelix.

Perhaps you mean asterisk for the name of that character? Anyhow, I think "& times ;" without spaces and quotations is probably a better way to go for multiplication.

Replies:   Keet
Keet ๐Ÿšซ

@psnz

For some strange reason, I've always thought that Asterix was a Gaul who went around drinking potions and beating up Romans with his friend Obelix.

But he was a real star, that looks close enough to an asterisk ;)

awnlee jawking ๐Ÿšซ

@Zen Master

I hit one of those 'gotchas' a while back and had to circumvent and resubmit. I'd like the option to turn off formatting too. It seems counter-intuitive to have to take evasive action when all you want is straight textual reproduction.

AJ

Lazeez Jiddan (Webmaster)

@Zen Master

This happens so rarely that in 20 years of the system being what it is two or three people have ever bumped into this problem.

It's not exactly worth fixing.

By the way, only programmers know that the asterisk is a multiply sign. To everybody else, it's 'x'. So using x for multiplication in fiction is more logical.

psnz ๐Ÿšซ

@Lazeez Jiddan (Webmaster)

So using x for multiplication in fiction is more logical.

Or, perhaps even the HTML entity & times ; (without the spaces).

Michael Loucks ๐Ÿšซ

@Lazeez Jiddan (Webmaster)

By the way, only programmers know that the asterisk is a multiply sign. To everybody else, it's 'x'. So using x for multiplication in fiction is more logical.

I ran into this issue trying to use the correct title for M*A*S*H. I just left out the asterisks, but it bugged the heck out of me (though not enough to ask for a change to the formatting codes).

Lazeez Jiddan (Webmaster)

@Michael Loucks

When absolutely needed, I can fix it manually on the site after posting.

Replies:   Gauthier
Gauthier ๐Ÿšซ
Updated:

@Lazeez Jiddan (Webmaster)

Since, among the formats, you support markdown, won't renaming the file to .md.txt allow to escape * with \ ?

Lazeez Jiddan (Webmaster)

@Gauthier

Since, among the formats, you support markdown, won't renaming the file to .md.txt allow to escape * with ?

The script that handles the conversion of * and _ is the same script that does everything from clean up, conversion and format checking for errors.

It's run right before the formatting/uploading. So it would affect even markdown files.

I would need to add escaping support to my own formatting script for this to work.

samuelmichaels ๐Ÿšซ

@Michael Loucks

I ran into this issue trying to use the correct title for M*A*S*H. I just left out the asterisks, but it bugged the heck out of me (though not enough to ask for a change to the formatting codes).

How about using one of the many Unicode stars instead? E.g. Mโˆ—Aโˆ—Sโˆ—H.

Switch Blayde ๐Ÿšซ

@Lazeez Jiddan (Webmaster)

In Excel, if I type into a cell

=5*5

it shows up as 25 because the = tells Excel it's a formula.
But if I want to actually display =5*5 in the cell, I put a ' before the = as in:

'=5*5

Could something like that help? Or is it really not a problem worth spending time on?

Replies:   Ernest Bywater  Gauthier
Ernest Bywater ๐Ÿšซ

@Switch Blayde

Could something like that help? Or is it really not a problem worth spending time on?

I doubt it's worth the effort to adjust the code because not everyone would recognise the * as a multiplication sign due to the standard symbol used in writing for multiplication is x while the other is used in computer coding to differentiate it from the alphabetical character. Thus many readers won't see * as a multiplication sign.

Gauthier ๐Ÿšซ

@Switch Blayde

Could something like that help?

There are standard for markdown, should Lazeez have time to loose, it would be best to stick to them.

It's standard in PhP
https://spec.commonmark.org/0.28/
http://php.net/manual/en/intro.cmark.php

There are also lots of alternative implementations like:
https://commonmark.thephpleague.com/configuration/
which has a fine grained features control support.

These day, most of the text I read and write is done in markdown.

Lazeez Jiddan (Webmaster)

@Zen Master

but maybe simply turning formatting codes off would have been better

I added escaping specifically to the underscore and asterisk if ever they need to be ignored.

So now, in text if you use * or _ (backslash+asterisk) or (backslash+underscore) the result would be the removal of the backslash leaving the asterisk or underscore untouched.

So you would need to write the formula like so: 50*50*3.14

Replies:   awnlee jawking  Gauthier
awnlee jawking ๐Ÿšซ

@Lazeez Jiddan (Webmaster)

Thank you.

AJ

Gauthier ๐Ÿšซ

@Lazeez Jiddan (Webmaster)

so: 50*50*3.14

more like so:
50\*50\*3.14
forum already escape the escape so your sample escape was nixed.

Back to Top

Close
 

WARNING! ADULT CONTENT...

Storiesonline is for adult entertainment only. By accessing this site you declare that you are of legal age and that you agree with our Terms of Service and Privacy Policy.