Please read. Significant change on the site that will affect compatibility [ Dismiss ]
Home ยป Forum ยป Author Hangout

Forum: Author Hangout

Mark-up centering

Vincent Berg ๐Ÿšซ
Updated:

I was formatting some chapters for eventually posting of an as-yet unfinished story, and ran across the following problem. I want to center a quote at the start of certain chapters (on the section breaks in the published books).

Can I format that:

{c}line 1< br >line 2< br >line 3< /p >?

Ernest Bywater ๐Ÿšซ

@Vincent Berg

I finally took your advice and started using Style sheets, and now submit to SoL in HTML with these style sheet codes (excess spaces added):

< style type = " text/css " >
. center{ text-align : center}
. red { color : red }
. blue { color : navy }
. green { color : green }
.i { font-style :italic }
.b { font-weight : bold }
< / style >

and used the following code to centre the quote at the start of Life is Changes

< p class = "center" >< b >As You Like It: Act 2, Scene 7< / b >< br >
< span class = "blue" > "All the world's a stage,< br >
And all the men and women merely players.< br >
They have their exits and their entrances,< br >
And one man in his time plays many parts,< br >
His acts being seven ages. ..."< / i >< / span >< br >
William Shakespeare, 1599< / p >

The span is for the coloured text, to see how it comes out, go to:

https://storiesonline.net/s/14135:179268

Vincent Berg ๐Ÿšซ

Ernest, I'm glad you're using CSS style sheets, but just be aware that SOL ignores any CSS or Style format commands, reducing all < p > commands to a simple text input. So you're correct to hardcode the html commands.

But I was specifically asking about the SOL specific mark-up commands, since Lazeez has stressed it's easier for him to process < p align=center > commands using the {c} markup command. However, I'm unsure how to use it for multiple line centering.

Replies:   Ernest Bywater
Ernest Bywater ๐Ÿšซ
Updated:

@Vincent Berg

Here's a sample of when i did it with the tagged text - but, {br}{br} doesn't work in too well:

{c}{green}Flames of Desire{/green}{br}
{red} First Flame{/red}{br}
{blue}Another First{/blue}{br}
{blue}Interlude{/blue}{br}
{red} Fire-storm{/red}{br}
{blue}Fierce Fight{/blue}{br}
{blue}Singed Survivors{/blue}{br}
{red} Life Moves On{/red}{br}
{blue}A New Life/blue}{br}

The html code I gave you before has worked in Life is Change, where I actually had it in there - I didn't code it all right but will be fixing it soon

Replies:   Vincent Berg
Vincent Berg ๐Ÿšซ
Updated:

@Ernest Bywater

Here's a sample of when i did it with the tagged text - but, {br}{br} doesn't work in too well:

According to Lazeez, a single {br} is ignored (i.e. it's cosmetic for the author only), while using two results in only a single linebreak. But, your example answers my question: I can use multiple lines with a {c} command as opposed to requiring multiple {c} commands.

By the way, if you ever want to discuss the specifics of CSS Style commands in either html or ebooks (where it's easier to specify character widths "em;" rather than distances "0.3in;", contact me and we'll work through what we know.

Ernest Bywater ๐Ÿšซ

@Vincent Berg

The last three or four stories were all lodged with html code using the and < br > codes in the same way as above. So I know they work. Life is Change is the first story where I've tried with the style sheets, and had an error to start, but the next chapter going up sometime today (it's in the wizard) has the proper code.

In a way, it's funny, you convince to use html and style sheets, and are now using the tagged text code I'm moving away from.

Two things I did notice with the style sheets are:

1. Nesting must be prefect and in exact order, under the original html it could be mixed and still work so if you open bold then italic you must close italic then bold, etc.

2. a style sheet span will override a normal html command for the same type of code. I do notes in blue italics, and would normally close the italics for something requiring special text, then re-open the italics, to make that work with the style sheet I have to close the span and open a new span - too much hard work.

Replies:   Vincent Berg
Vincent Berg ๐Ÿšซ

@Ernest Bywater

2. a style sheet span will override a normal html command for the same type of code. I do notes in blue italics, and would normally close the italics for something requiring special text, then re-open the italics, to make that work with the style sheet I have to close the span and open a new span - too much hard work.

I always start with a clean slate in my Style Sheet/CSS commands by executing the following command:

Ernest Bywater ๐Ÿšซ
Updated:

@Vincent Berg

a single {br} is ignored (i.e. it's cosmetic for the author only), while using two results in only a single linebreak.

I don't know exactly what the tagged text code reason is, but I found out, by experience, if I tried to insert a space by using 2 x br command the paragraph closed and the second half started out as a new paragraph aligned left. While a single br command works as a line-break.

the other thing is with the tagged text you don't need to close the paragraph, and blank line will do that for you.

If you want larger examples say so and I'll send you the full file of some of my stories that are tagged text coded - if you state which story has the examples you want, I'll send that story in the tagged text.

Lazeez Jiddan (Webmaster)
Updated:

@Vincent Berg

Yes, that would work. You don't need the < /p> tag to close. It's closed automatically.

Again {c}Line 1< br>Line 2< br>Line 3 would indeed result in three centred lines with a line break between. Any 2 consecutive < br> breaks would be replaced with a < /p>\n\n< p> (paragraph break) and you would lose the centring. (\n is a new line character - one tap on your return key).

Replies:   Vincent Berg
Vincent Berg ๐Ÿšซ

@Lazeez Jiddan (Webmaster)

Any 2 consecutive < br> breaks would be replaced with a < /p>nn< p> (paragraph break) and you would lose the centring.

Ah, I didn't see the connection to my own work when Ernest said it, but I try to set off the source from the quoted text, so in that case, I would need another {c> line.

Ernest, one reason why I moved away from the < p align="center"> command is because I've been playing around with removing all my < p class=MsoNormal> commands, replacing them with a redefined < p >, but alas, that screws up the centering. That's not a problem in my books/website, because I use a "Centered" Style, but that doesn't work when I submit the file to SOL.

Ernest Bywater ๐Ÿšซ

CW, you can see on my first post how extensive my style sheet is, six styles and I don't use the .b much. I do include the standard html commands for headings and some extra < i> < b > < blockquote > and < font > commands in some special situations, but that's all I use, now.

KinkyWinks ๐Ÿšซ

Crumbly, Ernest, and Lazeez

I like you guys but I never understand what the hell you are talking about. I just copy and paste my stories in the submit box and it works. Am I doing it wrong?

Dennis aka Catman

Replies:   Ernest Bywater
Ernest Bywater ๐Ÿšซ

@KinkyWinks

Am I doing it wrong?

No, that's perfectly OK. the issue for CW and me is we prefer a little tighter control on how the finished product displays, so we try to have it all very finally coded and tuned for the SoL wizard to manage that. Then, when you add in we also prepare our stories to be available as e-books and on other sites we often talk about how to prepare the code so it needs the minimal change for the other sites.

The standard SoL wizard process will give a good display, but I'm a bit picky about how I want some parts to show, so is CW, so we work at having them show that way.

Vincent Berg ๐Ÿšซ

More specifically, Kinky, Ernest likes displaying section head (groups of multiple chapters) and section breaks (sub-chapters) titles in color, while I am a big stickler for publishing marks, foreign accent marks and style definitions (i.e. indented text rather than < blockquote> commands, which Amazon ignores completely).

Since we're both posting to the web and using the same html commands in our epub files, we like to compare notes.

Ernest, I'm still not clear on your style definition point. You're claiming that you get SOL to accept your Style definitions (for < b> and < blockquote>), whereas I've always found that SOL overrides my own style definitions.

Have you established what the difference is? Is it redefining the common SOL elements (since I either introduce new elements ("Indent" or "Centered") or name specific styles), or am I missing something else.

For instance, in my books, I have the first line of each new section (new chapters or new sections) begin with the first line non-indented. I can see how redefining the < blockquote> could produce the properly indented text, but I don't suppose there's anyway to achieve my first-line non-indent?

Replies:   Ernest Bywater
Ernest Bywater ๐Ÿšซ

@Vincent Berg

to accept your Style definitions (for < b> and < blockquote>),

I no longer use blockquote on SoL because it has a specific layout for it I don't like, so I gave up on that - and now concentrate on using the colour to differentiate for it. I've not yet worked out a way to do the indentation on SoL, but the style sheet code in my first response is the full style sheet listing. Initially I use .c not .center, but that had issues. I also sometimes use the < b > command still, too, although I shouldn't. I'm still learning this by trial and error.

I am aware that you can include a lot more in the style sheet than I do, but what can work at SoL is still limited to the same options as show in the tagged text, just the style sheet is an easier way of marking it, is all. Thus the options for blue, red, green work, but yellow and purple wouldn't work at SoL while they'd work on a normal web page.

Lazeez Jiddan (Webmaster)

@Ernest Bywater

I've not yet worked out a way to do the indentation on SoL

If something isn't specifically listed in the site's tagging guide, and there is nothing similar in the stories' stylesheet, then there is no way to do it. There is no text indent in the stories stylesheet except for blockquote. So, you can't do it.

Replies:   Ernest Bywater
Ernest Bywater ๐Ÿšซ

@Lazeez Jiddan (Webmaster)

If something isn't specifically listed in the site's tagging guide, and there is nothing similar in the stories' stylesheet, then there is no way to do it. There is no text indent in the stories stylesheet except for blockquote. So, you can't do it.

I kind of figure that was the case. It's because I couldn't see anything on the guides you have that I've not tried any code , because I couldn't see how to do it.

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.


Log In