summaryrefslogtreecommitdiffstats
path: root/svgbob_cli
diff options
context:
space:
mode:
authorJovansonlee Cesar <ivanceras@gmail.com>2018-10-02 00:36:02 +0800
committerJovansonlee Cesar <ivanceras@gmail.com>2018-10-02 00:36:02 +0800
commit20f269be0a614ca5f35957ce9e9fb27b44c43fb3 (patch)
tree8d2d485d083c9eb2eda39ef6a50ca16d89e0be7c /svgbob_cli
parentb2abf03b90040da61d585df61986fd391cb456ec (diff)
Remove cluttered files
Diffstat (limited to 'svgbob_cli')
-rw-r--r--svgbob_cli/Cargo.lock13
-rw-r--r--svgbob_cli/Cargo.toml6
-rw-r--r--svgbob_cli/ascii_art.html320
-rw-r--r--svgbob_cli/comic.html86
-rw-r--r--svgbob_cli/index.html525
-rw-r--r--svgbob_cli/memes.html489
-rw-r--r--svgbob_cli/memes2.html503
-rw-r--r--svgbob_cli/memes3.html489
-rw-r--r--svgbob_cli/test.html25
9 files changed, 12 insertions, 2444 deletions
diff --git a/svgbob_cli/Cargo.lock b/svgbob_cli/Cargo.lock
index b088f74..4f90bf0 100644
--- a/svgbob_cli/Cargo.lock
+++ b/svgbob_cli/Cargo.lock
@@ -117,8 +117,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "svgbob"
-version = "0.3.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
+version = "0.3.2"
dependencies = [
"pom 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"svg 0.5.11 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -126,13 +125,19 @@ dependencies = [
]
[[package]]
+name = "svgbob"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+replace = "svgbob 0.3.2"
+
+[[package]]
name = "svgbob_cli"
version = "0.3.1"
dependencies = [
"clap 2.32.0 (registry+https://github.com/rust-lang/crates.io-index)",
"handlebars 0.21.1 (registry+https://github.com/rust-lang/crates.io-index)",
"svg 0.5.11 (registry+https://github.com/rust-lang/crates.io-index)",
- "svgbob 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
+ "svgbob 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
@@ -200,7 +205,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum rustc-serialize 0.3.24 (registry+https://github.com/rust-lang/crates.io-index)" = "dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda"
"checksum strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bb4f380125926a99e52bc279241539c018323fab05ad6368b56f93d9369ff550"
"checksum svg 0.5.11 (registry+https://github.com/rust-lang/crates.io-index)" = "7518a18ac78da03c41ca0611128c6d8adf1efae0773c337d6c19793dce860c9b"
-"checksum svgbob 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "15426af43e0c5db6502cbfbcc3089d1d7e452f43dc24bc48525915cfcfec4096"
+"checksum svgbob 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c9e17b7b792998e8c1b41fc5ffd38a1b8b809976d6be664cfe9172bba436c397"
"checksum termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "689a3bdfaab439fd92bc87df5c4c78417d3cbe537487274e9b0b2dce76e92096"
"checksum textwrap 0.10.0 (registry+https://github.com/rust-lang/crates.io-index)" = "307686869c93e71f94da64286f9a9524c0f308a9e1c87a583de8e9c9039ad3f6"
"checksum unicode-width 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "882386231c45df4700b275c7ff55b6f3698780a650026380e72dabe76fa46526"
diff --git a/svgbob_cli/Cargo.toml b/svgbob_cli/Cargo.toml
index bb5b592..9d462f8 100644
--- a/svgbob_cli/Cargo.toml
+++ b/svgbob_cli/Cargo.toml
@@ -10,7 +10,7 @@ keywords = ["ascii", "svg", "convert", "bob"]
license = "Apache-2.0"
[dependencies]
-svgbob = "0.3"
+svgbob = "0.3.2"
clap = "2.16"
svg = "0.5"
@@ -21,6 +21,6 @@ path = "src/main.rs"
[dev-dependencies]
handlebars = "0.21"
-#[replace]
-#"svgbob:0.3.1" = {path ="../svgbob"}
+[replace]
+"svgbob:0.3.2" = {path ="../svgbob"}
diff --git a/svgbob_cli/ascii_art.html b/svgbob_cli/ascii_art.html
deleted file mode 100644
index a243029..0000000
--- a/svgbob_cli/ascii_art.html
+++ /dev/null
@@ -1,320 +0,0 @@
-<html>
-<head>
-<meta charset="utf-8" />
-<title>SvgBobRus(Ascii to svg converter)</title>
-
-<style>
-table{
- border-collapse: collapse;
- border-spacing: 0;
-}
-th, td{
- border:1px solid #ccc;
- padding: 5px;
-}
-pre {
- font-family:monospace;
- overflow:auto;
-}
-</style>
-
-</head>
-<body>
- <div style="display:flex">
- <pre>
- <code>
- ,-.
- `-'
- /|\
- ,---. |
- |Bob| / \
- `-+-' Alice
- | hello |
- |--------------&gt;|
- | |
- | Is it ok? |
- |&lt;- - - - - - - |
- ,-+-. Alice
- |Bob| ,-.
- `---' `-'
- /|\
- |
- / \
-
-```
-
-Unicode
-The default txt format uses only plain ASCII characters. It is possible to use few extended Unicode characters to have a slightly better result. You should use the -utxt flag in the command line, or the utxt format in the ANT task.
-
-```bob
-
- ┌─┐
- ║&quot;│
- └┬┘
- ┌┼┐
- ┌───┐ │
- │Bob│ ┌┴┐
- └─┬─┘ Alice
- │ hello │
- │──────────────&gt;│
- │ │
- │ Is it ok? │
- │&lt;─ ─ ─ ─ ─ ─ ─ │
- ┌─┴─┐ Alice
- │Bob│ ┌─┐
- └───┘ ║&quot;│
- └┬┘
- ┌┼┐
- │
- ┌┴┐
-
-```
-
-They are two drawbacks of using utxt:
-
- The result is UTF-8 encoded, and sometimes this is an issue (mail gateway, editors...)
- The used font must have the used extended characters (like Courier, Courier New...)
-
-Complexe Diagram
-You can even try complex example if you wish.
-
-@startuml
-'hide footbox
-
-participant &quot;Bob on\nseveral lines&quot; as Bob
-actor Alice
-
-Bob -&gt; Alice : hello
-note right of Alice
- this is a note
-end note
-
-Alice -&gt; Bob : Is it ok\nwith a message that is\non several lines?
-
-note right
- This other note
- should work
- on several lines
-end note
-
-== This is a separation ==
-
-Bob -&gt; Last : Yes it works!
-Last -&gt; Last : working in progress
-note left : this is\nanother note
-
-Last --&gt; Last : working in progress
-
-Last --&gt; Bob : done
-
-opt dummy comment
- Bob -&gt; Last : Error\nOn\nSeveral\nLine
- Last --&gt; Bob : None
-else
- Last --&gt; Bob : None
- Last -&gt; Bob : None
-else other
- Last -&gt; Bob : None
- note over Alice, Last
- This is a long note
- over Alice and Last
- end note
- Last -&gt; Bob : None
- Last -&gt; Bob : None
-end
-
-
-@enduml
-
-
-Example
-
-```bob
-
- ,-.
- `-'
- ,-------------. /|\
- |Bob on | | ,----.
- |several lines| / \ |Last|
- `------+------' Alice `-+--'
- | hello | |
- |----------------------&gt;| |
- | | |
- | | ,--------------!.
- | | |this is a note|_\
- | | `----------------'
- |Is it ok | ,----------------!.
- |with a message that is | |This other note |_\
- |on several lines? | |should work |
- |&lt;----------------------| |on several lines |
- | | `------------------'
- | | |
- | ======================== |
-====================================== This is a separation =======================================
- | ======================== |
- | | |
- | Yes it works! |
- |--------------------------------------&gt;|
- | | |
- | ,------------!. |----.
- | |this is |_\| | working in progress
- | |another note ||&lt;---'
- | `--------------'|
- | | |- - .
- | | | | working in progress
- | | |&lt; - '
- | | |
- | done | |
- |&lt;- - - - - - - - - - - - - - - - - - - |
- | | |
- ______________________________________________________________________
- ! OPT / dummy comment | | !
- !_____/ | | | !
- ! | | | !
- ! | Error | | !
- ! | On | | !
- ! | Several | | !
- ! | Line | | !
- ! |--------------------------------------&gt;| !
- ! | | | !
- ! | None | | !
- ! |&lt;- - - - - - - - - - - - - - - - - - - | !
- !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
- ! | | | !
- ! | None | | !
- ! |&lt;- - - - - - - - - - - - - - - - - - - | !
- ! | | | !
- ! | None | | !
- ! |&lt;--------------------------------------| !
- !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
- ! [other] | | | !
- ! | None | | !
- ! |&lt;--------------------------------------| !
- ! | | | !
- ! | ,-------------------!. !
- ! | |This is a long note|_\ !
- ! | |over Alice and Last | !
- ! | `---------------------' !
- ! | None | | !
- ! |&lt;--------------------------------------| !
- ! | | | !
- ! | None | | !
- ! |&lt;--------------------------------------| !
- !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
- ,------+------. Alice ,-+--.
- |Bob on | ,-. |Last|
- |several lines| `-' `----'
- `-------------' /|\
- |
- / \
-```
-
-Same example using Unicode
-
-```bob`
- ┌─┐
- ║&quot;│
- └┬┘
- ┌─────────────┐ ┌┼┐
- │Bob on │ │ ┌────┐
- │several lines│ ┌┴┐ │Last│
- └──────┬──────┘ Alice └─┬──┘
- │ hello │ │
- │──────────────────────&gt;│ │
- │ │ │
- │ │ ╔═════════════╧══╗
- │ │ ║this is a note ░║
- │ │ ╚═════════════╤══╝
- │Is it ok │ ╔═════════════╧════╗
- │with a message that is │ ║This other note ░║
- │on several lines? │ ║should work ║
- │&lt;──────────────────────│ ║on several lines ║
- │ │ ╚═════════════╤════╝
- │ │ │
- │ ╔════════╧═════════════╗ │
-══════════════════════╪══════════════╣ This is a separation ╠═╪════════════════════════════════════
- │ ╚════════╤═════════════╝ │
- │ │ │
- │ Yes it works! │
- │──────────────────────────────────────&gt;│
- │ │ │
- │ ╔══════════════╗│────┐
- │ ║this is ░║│ │ working in progress
- │ ║another note ║│&lt;───┘
- │ ╚══════════════╝│
- │ │ │─ ─ ┐
- │ │ │ | working in progress
- │ │ │&lt; ─ ┘
- │ │ │
- │ done │ │
- │&lt;─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ │
- │ │ │
- ╔══════╤═════════╪═══════════════════════╪═══════════════╪════════════╗
- ║ OPT │ dummy comment │ │ ║
- ╟──────┘ │ │ │ ║
- ║ │ │ │ ║
- ║ │ Error │ │ ║
- ║ │ On │ │ ║
- ║ │ Several │ │ ║
- ║ │ Line │ │ ║
- ║ │──────────────────────────────────────&gt;│ ║
- ║ │ │ │ ║
- ║ │ None │ │ ║
- ║ │&lt;─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ │ ║
- ╠════════════════╪═══════════════════════╪═══════════════╪════════════╣
- ║ │ │ │ ║
- ║ │ None │ │ ║
- ║ │&lt;─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ │ ║
- ║ │ │ │ ║
- ║ │ None │ │ ║
- ║ │&lt;──────────────────────────────────────│ ║
- ╠════════════════╪═══════════════════════╪═══════════════╪════════════╣
- ║ [other] │ │ │ ║
- ║ │ None │ │ ║
- ║ │&lt;──────────────────────────────────────│ ║
- ║ │ │ │ ║
- ║ │ ╔══╧═══════════════╧══╗ ║
- ║ │ ║This is a long note ░║ ║
- ║ │ ║over Alice and Last ║ ║
- ║ │ ╚══╤═══════════════╤══╝ ║
- ║ │ None │ │ ║
- ║ │&lt;──────────────────────────────────────│ ║
- ║ │ │ │ ║
- ║ │ None │ │ ║
- ║ │&lt;──────────────────────────────────────│ ║
- ╚════════════════╪═══════════════════════╪═══════════════╪════════════╝
- ┌──────┴──────┐ Alice ┌─┴──┐
- │Bob on │ ┌─┐ │Last│
- │several lines│ ║&quot;│ └────┘
- └─────────────┘ └┬┘
- ┌┼┐
- │
- ┌┴┐
-
- </code>
- </pre>
- <div style="overflow:auto;">
- <img src="screenshots/ascii_art.svg"/>
- </div>
- </div>
-
-Support this project:
-<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
-<input type="hidden" name="cmd" value="_s-xclick">
-<input type="hidden" name="hosted_button_id" value="5QZ5LDXWVS4RU">
-<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
-<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
-</form>
-
-<script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
-
- ga('create', 'UA-8925673-11', 'auto');
- ga('send', 'pageview');
-
-</script>
-</body>
-</html>
diff --git a/svgbob_cli/comic.html b/svgbob_cli/comic.html
deleted file mode 100644
index 91d0cbe..0000000
--- a/svgbob_cli/comic.html
+++ /dev/null
@@ -1,86 +0,0 @@
-<html>
-<head>
-<meta charset="utf-8" />
-<title>SvgBobRus(Ascii to svg converter)</title>
-
-<style>
-table{
- border-collapse: collapse;
- border-spacing: 0;
-}
-th, td{
- border:1px solid #ccc;
- padding: 5px;
-}
-pre {
- font-family:monospace;
- overflow:auto;
-}
-</style>
-
-</head>
-<body>
- <div style="display:flex">
- <pre>
- <code>
-
- .-------------.
- | Hey there! |
- | I haz skillz|
- '___ ________'
- /,'
- /'
- ( ͡° ͜ʖ ͡°)
-
- --|--
- |
- |
- |
- / \
-
-
-Table Flip (╯°□°)╯︵┻━┻
-
-.-------------------.
-|What have you done?|
-|Put it back! |
-'___ ______________' .------------.
- |/ | Y u do diz?|
- . '___ ________'
- `\
-乁(ಥ౪ಥ;)ㄏ
- ლ(ಠ益ಠლ)
-
-
-.--------------------. .--------------.
-|Ok. I Put Table Back &gt; ┬──┬ ノ( ゜-゜ノ) &lt; Here you go |
-'--------------------' '--------------'
-
-
- </code>
- </pre>
- <div style="overflow:auto;">
- <img src="screenshots/comic.svg"/>
- </div>
- </div>
-
-Support this project:
-<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
-<input type="hidden" name="cmd" value="_s-xclick">
-<input type="hidden" name="hosted_button_id" value="5QZ5LDXWVS4RU">
-<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
-<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
-</form>
-
-<script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
-
- ga('create', 'UA-8925673-11', 'auto');
- ga('send', 'pageview');
-
-</script>
-</body>
-</html>
diff --git a/svgbob_cli/index.html b/svgbob_cli/index.html
deleted file mode 100644
index dcf71cf..0000000
--- a/svgbob_cli/index.html
+++ /dev/null
@@ -1,525 +0,0 @@
-<html>
-<head>
-<meta charset="utf-8" />
-<title>SvgBobRus(Ascii to svg converter)</title>
-
-<style>
-table{
- border-collapse: collapse;
- border-spacing: 0;
-}
-th, td{
- border:1px solid #ccc;
- padding: 5px;
-}
-pre {
- font-family:monospace;
- overflow:auto;
-}
-</style>
-
-</head>
-<body>
- <div style="display:flex">
- <pre>
- <code>
-+------+ +-----+ +-----+ +-----+
-| | | | | | | |
-| Foo +--&gt;| Bar +---+ Baz |&lt;--+ Moo |
-| | | | | | | |
-+------+ +-----+ +--+--+ +-----+
- ^ |
- | V
-.-------------+-----------------------.
-| Hello here and there and everywhere |
-'-------------------------------------'
-
-
- ____________
- .--------------. \ \
- / a == b \ \ \ __________
- ( &amp;&amp; ) ) process ) \ \
- \ 'string' ne '' / / / / process /
- '--------------' /___________/ /_________/
-
-
- __________________
- \_________________\
- \ \
- . another process .
- /_________________/
- /_________________/
-
- User code ^ ^ OS code
- \ /
- \ .--'
- \ /
- User code &lt;--- Mode ----&gt; OS code
- / \
- .--' \___
- / \
- v v
- User code OS code
-
- .---. .---. .---. .---. .---. .---.
- OS API '---' '---' '---' '---' '---' '---'
- | | | | | |
- v v | v | v
- .------------. | .-----------. | .-----.
- | Filesystem | | | Scheduler | | | MMU |
- '------------' | '-----------' | '-----'
- | | | |
- v | | v
- .----. | | .---------.
- | IO |&lt;----' | | Network |
- '----' | '---------'
- | | |
- v v v
- .---------------------------------------.
- | HAL |
- '---------------------------------------'
-
-
- ____||
- | ___ |
- || || device
- ||___|| loads
- | ooo |----------------------------------------------------------.
- | ooo | | | |
- | ooo | | | |
- '-----' | | |
- | | |
- v v v
- .-------------------. .---------------------------. .-------------------.
- | Loadable module C | | Loadable module A | | Loadable module B |
- '-------------------' |---------------------------| | (instrumented) |
- | | .-----. | '-------------------'
- '------------+--------&gt;| A.o | | |
- calls | '-----' | |
- | .------------------. | |
- | / A.instrumented.o /&lt;---+-------------'
- | '------------------' | calls
- '---------------------------'
-
- .--------------.
- \ x--x----x \
- '--------------'
-
- .--&gt; Base::Class::Derived_A
- /
- .----&gt; Base::Class::Derived_B
- Something -------. / \
- \ / .---&gt; Base::Class::Derived
- Something::else \ / \
- \ \ / '--&gt; Base::Class::Derived
- \ \ /
- \ \ .-----------&gt; Base::Class::Derived_C
- \ \ /
- '------ Base::Class
- / \ \ \
- ' \ \ \
- | \ \ \
- . \ \ '--- The::Latest
- /| \ \ \
- With::Some::fantasy ' \ \ '---- The::Latest::Greatest
- /| \ \
- More::Stuff ' \ '- I::Am::Running::Out::Of::Ideas
- /| \
- More::Stuff ' \
- / '--- Last::One
- More::Stuff V
-
- / \
- / \
- / \
- / \
- Safety
- ^
- | *Rust
- | *Java
- | *Python
- | *C++
- +-----------------------------&gt; Control
-
-$ $ $$$$
-
- ^
- :
- :
- :
- :
-&lt;===+==============================&gt;
- :
- :
- V
-
- ..............................
-
- ...
- ..
-
- this is a sentence
- separated words of nill
-
- TODO:
-
- ^ ^ ^
- \|/
- .
- /|\
- v V v
-
- ^ ^ ^
- \|/
- &lt;-+-&gt;
- /|\
- v V v
-
- \|/
- -.-
- /|\
-
- | \/
- -+- /\
- |
-
- | | | |
- +-- --+ +-- --+ +-- --+
- | | | |
-
- | | | |
- .- -. .- -. '- -'
- | |
-
- .- -. .-.
- '- -' | | | |
- '-'
-
- \ | / |
- . ' ' .
- | / | \
-
- \ /
- . .
- / \
-
- . . . .
- /| |\ |\ /|
- | \/ |
- | /\ |
- \| |/ |/ \|
- ' ' ' '
-
- \
- /
-
- /
- \
-
-
- / \
- '-- --'
- / \
-
- / \
- --' '--
- / \
-
- \ /
- --.-- --.-- --.-- --.--
- / \
-
-
- | |
- . .
- /| |\
-
- | \ /
- . .
- / \ |
-
- \|/
- .
- /|\
-
-
- \|/
- --.--
- /|\
-
- \|/
- --+--
- /|\
-
- |/ \|
- . .
- | |
-
-
- -. -.
- / \
-
- .- .-
- / \
-
-
- / / \ \
- '- '-------' -'
-
-
- .-.
- ( )
- '-'
-
-
- .------.
- ( )
- '------'
-
- ________
- / /
- / /
- /_______/
-
-
- ________
- \ \
- \ \
- \_______\
-
- ________
- |________|
-
-
- ________
- | |
- |________|
-
- .-.
- '-'
-
- ________
- \_______\
-
- /\
- / \
- /____\
-
- /\
- / \
- / \
- '------'
-
- .
- / \
- / \
- / \
- '-------'
-
- ___
- / \
- \___/
-
- ______
- / \
- / \
- \ /
- \______/
-
-
- +---------+
- | | +--------------+
- | NFS |--+ | |
- | | | +--&gt;| CacheFS |
- +---------+