diff --git a/src/same.xhtml b/src/same.xhtml deleted file mode 100644 index 99d86bd..0000000 --- a/src/same.xhtml +++ /dev/null @@ -1,125 +0,0 @@ -

This chapter is designed to test the capabilities of various ePub extraction tools against each BBCode tag supported by FIMFiction.net. First of all, note that this paragraph begins with a tab indent—many tools will remove this. Next, here is the set of non-ANSI characters that I frequently use in my stories: “” ‘’ — … (smart double quotes, smart single quotes, em-dash, and ellipses).

-

Next are the tags that should work in-line: [b] - bold[/b], [i] - italics[/i], [u] - underline[/u], [s] - strikethrough[/s], [smcaps] - small caps[/smcaps], [spoiler] - spoiler text[/spoiler], [url] - hyperlink[/url], [email] - user@server.com[/email], and finally an in-line image: [img] - Image[/img]. -

-

- There's a known bug in translating FIMFiction stories where consecutive italicized paragraphs lose the italics after the first paragraph. Well, this paragraph is supposed to be italicized. -

-

- And so is this one. -

-

- And ending with this one. -

-

Let’s quickly step through all of the named color tags: - red, - silver, - orange, - yellow, - brown, - green, - olive, - cornflowerblue, - cyan, - purple, - pink, - hotpink, - lime, - white (white), - lightgrey, - indigo, - darkblue, - lightblue, - blue, - gold, - navy, - chartreuse, and - teal. Here are some of the colors I use to code character's thoughts in my “Thought Experiments” series: - #0077D0 for Vinyl Scratch, - #60BB50 for Spike, - purple for Twilight Sparkle, - hotpink for Pinkie Pie, and - darkblue for Rainbow Dash. -

-

Size can be indicated by either an absolute number, or in "ems", which is a percentage scaling:

-

[size=24] - Size 24, which should be normal-size text for default settings[/size] -

-

[size=12] - Size 12, which should be half-size text for default settings[/size] -

-

[size=48] - Size 48, which should be double-size text for default settings[/size] -

-

[size=1em] - 1 em text[/size] -

-

[size=.5em] - 0.5 em text[/size] -

-

[size=2em] - 2 em text[/size] -

-

-
-

Just above this paragraph should be a horizontal rule, or [hr] tag.

-

-

[center]Centered text[/center]

-

-
-[right]Right-aligned text[/right] -
-

-
-[quote] This is a quote. - - -

One big problem I've found with ePub extractors is handling multiple-paragraph quotes. This paragraph should still be inside the above quote tag.

-

-

[center]Centered in the quote.[/center]

-

[/quote]

-
-

-
-

Here's an image all by itself:

-

- Image -

-

Here's a YouTube video:

-

-
- - d.notive - Vicious Lies (Depeche Mode Imitation) - -
- d.notive - Vicious Lies (Depeche Mode Imitation) on YouTube -
-
-

-
-

-
-[left_insert]This creates left-aligned text that wraps at the center of the screen. Here's some - lorum ipsum to demonstrate line-wrapping: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - - -

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.[/left_insert]

-
-

-
-[right_insert]This creates left-aligned text starting at the center of the screen. Here's some - lorum ipsum to demonstrate line-wrapping: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - - -

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.[/right_insert]

-
-

-
diff --git a/src/test.xhtml b/src/test.xhtml deleted file mode 100644 index 572110a..0000000 --- a/src/test.xhtml +++ /dev/null @@ -1,125 +0,0 @@ -

This chapter is designed to test the capabilities of various ePub extraction tools against each BBCode tag supported by FIMFiction.net. First of all, note that this paragraph begins with a tab indent—many tools will remove this. Next, here is the set of non-ANSI characters that I frequently use in my stories: “” ‘’ — … (smart double quotes, smart single quotes, em-dash, and ellipses).

-

Next are the tags that should work in-line: [b] - bold[/b], [i] - italics[/i], [u] - underline[/u], [s] - strikethrough[/s], [smcaps] - small caps[/smcaps], [spoiler] - spoiler text[/spoiler], [url] - hyperlink[/url], [email] - user@server.com[/email], and finally an in-line image: [img] - Image[/img]. -

-

- There's a known bug in translating FIMFiction stories where consecutive italicized paragraphs lose the italics after the first paragraph. Well, this paragraph is supposed to be italicized. -

-

- And so is this one. -

-

- And ending with this one. -

-

Let’s quickly step through all of the named color tags: - red, - silver, - orange, - yellow, - brown, - green, - olive, - cornflowerblue, - cyan, - purple, - pink, - hotpink, - lime, - white (white), - lightgrey, - indigo, - darkblue, - lightblue, - blue, - gold, - navy, - chartreuse, and - teal. Here are some of the colors I use to code character's thoughts in my “Thought Experiments” series: - #0077D0 for Vinyl Scratch, - #60BB50 for Spike, - purple for Twilight Sparkle, - hotpink for Pinkie Pie, and - darkblue for Rainbow Dash. -

-

Size can be indicated by either an absolute number, or in "ems", which is a percentage scaling:

-

[size=24] - Size 24, which should be normal-size text for default settings[/size] -

-

[size=12] - Size 12, which should be half-size text for default settings[/size] -

-

[size=48] - Size 48, which should be double-size text for default settings[/size] -

-

[size=1em] - 1 em text[/size] -

-

[size=.5em] - 0.5 em text[/size] -

-

[size=2em] - 2 em text[/size] -

-

-
-

Just above this paragraph should be a horizontal rule, or [hr] tag.

-

-

[center]Centered text[/center]

-

-
-[right]Right-aligned text[/right] -
-

-
-[quote] This is a quote. - - -

One big problem I've found with ePub extractors is handling multiple-paragraph quotes. This paragraph should still be inside the above quote tag.

-

-

[center]Centered in the quote.[/center]

-

[/quote]

-
-

-
-

Here's an image all by itself:

-

- Image -

-

Here's a YouTube video:

-

-
- - d.notive - Vicious Lies (Depeche Mode Imitation) - -
- d.notive - Vicious Lies (Depeche Mode Imitation) on YouTube -
-
-

-
-

-
-[left_insert]This creates left-aligned text that wraps at the center of the screen. Here's some - lorum ipsum to demonstrate line-wrapping: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - - -

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.[/left_insert]

-
-

-
-[right_insert]This creates left-aligned text starting at the center of the screen. Here's some - lorum ipsum to demonstrate line-wrapping: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. - - -

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.[/right_insert]

-
-

-
\ No newline at end of file diff --git a/src/testkepub.js b/src/testkepub.js deleted file mode 100644 index 7d4214b..0000000 --- a/src/testkepub.js +++ /dev/null @@ -1,18 +0,0 @@ -const cheerio = require('cheerio') -const fs = require('fs') - -let content = fs.readFileSync('test.xhtml', 'utf8') - -let $ = cheerio.load(content, {xmlMode: true}) - -let elements = $('p, h1, h2, h3, h4, h5, h6') - -elements.each((i, element) => { - let el = $(element) - let newTag = $('') - newTag.attr('id', 'kobo.' + i + '.1') - newTag.append(el.contents()) - el.append(newTag) -}) - -console.log($.xml())