File last modified on August 18, 2022

XHTML General

Include all content documents in a directory named text. Each XHTML file should be named following the expressing order:

bash
1
FB01 # frontmatter
2
FB02 # bodymatter
3
FB03 # backmatter

Front Matter

Example of XHTML front matter:

It is allowed to append what the type is after the front matter:

Main Content

Any chapter content should be built into a chapter XHTML file:

default
1
FB02_chapter01.xhtml
2
FB02_chapter02.xhtml
3
FB02_chapter03.xhtml

Back Matter

All content that comes after the last chapter such as Conclusions, Acknowledgements (which can be sometimes placed in the frontmatter), Indecies, etc. etc. should be placed in a backmatter XHTML file:

default
1
FB03_backmatter01.xhtml
2
FB03_backmatter02.xhtml
3
FB03_backmatter03.xhtml

and like frontmatter the name type can be appended:

bash
1
FB03_backmatter01_index.xhtml # could be for name index
2
FB03_backmatter02_index.xhtml # could be for subject index

Markup

Only two types of markup will be allowed:

Line Break

Do not use:

html
1
<p><br /></p>

If found replace with CSS. <br /> tags should be replaced with a CSS declaration accounting for the space in em or px.

Empty Span

Empty span tags should be removed, use the following to find them:

html
1
<span class="[A-Za-z0-9_-]*"></span>

Span tags with a space should be removed, use the following to find them:

bash
1
## Find:
2
<span class="[A-Za-z0-9_-]*">( )</span>
3
## Replace:
4
\1

Finding empty and spaced span tags can be consolidated to one find and replace pattern using BBEdit's Find Panel:

bash
1
## Find:
2
`<span class="[A-Za-z0-9_-]*">( |)</span>`
3
## Replace:
4
`\1`

Multiple Span

Multiple span tags should be consolidated, example:

HTML

:::warning Bad

html
1
<span class="bold"><span class="italic">Foo Bar</span></span>

:::

:::tip Good

html
1
<span class="boldItalic">Foo Bar</span>

:::

CSS

CSS can also be consolidated:

Self Closing Tags

Self closing tags are not allowed except for images. For example: <p class=”foobar” /> should be replaced with <p class=”foobar”></p>. Good references:

Attributes

The attribute selectors’ value should not use dashes (example: <p class=”foo-bar”>foobar</p>) but should be either:

Camel case:

html
1
<p class="”fooBar”">foobar</p>

Underscore:

html
1
<p class="”foo_bar”">foobar</p>

Symbols

Symbols should be coded as numerical entities, example: ® should be &#174; and the clean_entity.scpt will replace the most common rendered symbols and named entities to their numerical value.

HR Tags

If you’re needing a line do not use <hr /> tag use a <div /> with css, example:

Last build: Thursday, 08/18/2022, 01:01:08 AM