diff options
author | Jovansonlee Cesar <ivanceras@gmail.com> | 2018-10-02 00:36:02 +0800 |
---|---|---|
committer | Jovansonlee Cesar <ivanceras@gmail.com> | 2018-10-02 00:36:02 +0800 |
commit | 20f269be0a614ca5f35957ce9e9fb27b44c43fb3 (patch) | |
tree | 8d2d485d083c9eb2eda39ef6a50ca16d89e0be7c /svgbob_cli | |
parent | b2abf03b90040da61d585df61986fd391cb456ec (diff) |
Remove cluttered files
Diffstat (limited to 'svgbob_cli')
-rw-r--r-- | svgbob_cli/Cargo.lock | 13 | ||||
-rw-r--r-- | svgbob_cli/Cargo.toml | 6 | ||||
-rw-r--r-- | svgbob_cli/ascii_art.html | 320 | ||||
-rw-r--r-- | svgbob_cli/comic.html | 86 | ||||
-rw-r--r-- | svgbob_cli/index.html | 525 | ||||
-rw-r--r-- | svgbob_cli/memes.html | 489 | ||||
-rw-r--r-- | svgbob_cli/memes2.html | 503 | ||||
-rw-r--r-- | svgbob_cli/memes3.html | 489 | ||||
-rw-r--r-- | svgbob_cli/test.html | 25 |
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 | - |-------------->| - | | - | Is it ok? | - |<- - - - - - - | - ,-+-. 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 - - ┌─┐ - ║"│ - └┬┘ - ┌┼┐ - ┌───┐ │ - │Bob│ ┌┴┐ - └─┬─┘ Alice - │ hello │ - │──────────────>│ - │ │ - │ Is it ok? │ - │<─ ─ ─ ─ ─ ─ ─ │ - ┌─┴─┐ Alice - │Bob│ ┌─┐ - └───┘ ║"│ - └┬┘ - ┌┼┐ - │ - ┌┴┐ - -``` - -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 "Bob on\nseveral lines" as Bob -actor Alice - -Bob -> Alice : hello -note right of Alice - this is a note -end note - -Alice -> 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 -> Last : Yes it works! -Last -> Last : working in progress -note left : this is\nanother note - -Last --> Last : working in progress - -Last --> Bob : done - -opt dummy comment - Bob -> Last : Error\nOn\nSeveral\nLine - Last --> Bob : None -else - Last --> Bob : None - Last -> Bob : None -else other - Last -> Bob : None - note over Alice, Last - This is a long note - over Alice and Last - end note - Last -> Bob : None - Last -> Bob : None -end - - -@enduml - - -Example - -```bob - - ,-. - `-' - ,-------------. /|\ - |Bob on | | ,----. - |several lines| / \ |Last| - `------+------' Alice `-+--' - | hello | | - |---------------------->| | - | | | - | | ,--------------!. - | | |this is a note|_\ - | | `----------------' - |Is it ok | ,----------------!. - |with a message that is | |This other note |_\ - |on several lines? | |should work | - |<----------------------| |on several lines | - | | `------------------' - | | | - | ======================== | -====================================== This is a separation ======================================= - | ======================== | - | | | - | Yes it works! | - |-------------------------------------->| - | | | - | ,------------!. |----. - | |this is |_\| | working in progress - | |another note ||<---' - | `--------------'| - | | |- - . - | | | | working in progress - | | |< - ' - | | | - | done | | - |<- - - - - - - - - - - - - - - - - - - | - | | | - ______________________________________________________________________ - ! OPT / dummy comment | | ! - !_____/ | | | ! - ! | | | ! - ! | Error | | ! - ! | On | | ! - ! | Several | | ! - ! | Line | | ! - ! |-------------------------------------->| ! - ! | | | ! - ! | None | | ! - ! |<- - - - - - - - - - - - - - - - - - - | ! - !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~! - ! | | | ! - ! | None | | ! - ! |<- - - - - - - - - - - - - - - - - - - | ! - ! | | | ! - ! | None | | ! - ! |<--------------------------------------| ! - !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~! - ! [other] | | | ! - ! | None | | ! - ! |<--------------------------------------| ! - ! | | | ! - ! | ,-------------------!. ! - ! | |This is a long note|_\ ! - ! | |over Alice and Last | ! - ! | `---------------------' ! - ! | None | | ! - ! |<--------------------------------------| ! - ! | | | ! - ! | None | | ! - ! |<--------------------------------------| ! - !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~! - ,------+------. Alice ,-+--. - |Bob on | ,-. |Last| - |several lines| `-' `----' - `-------------' /|\ - | - / \ -``` - -Same example using Unicode - -```bob` - ┌─┐ - ║"│ - └┬┘ - ┌─────────────┐ ┌┼┐ - │Bob on │ │ ┌────┐ - │several lines│ ┌┴┐ │Last│ - └──────┬──────┘ Alice └─┬──┘ - │ hello │ │ - │──────────────────────>│ │ - │ │ │ - │ │ ╔═════════════╧══╗ - │ │ ║this is a note ░║ - │ │ ╚═════════════╤══╝ - │Is it ok │ ╔═════════════╧════╗ - │with a message that is │ ║This other note ░║ - │on several lines? │ ║should work ║ - │<──────────────────────│ ║on several lines ║ - │ │ ╚═════════════╤════╝ - │ │ │ - │ ╔════════╧═════════════╗ │ -══════════════════════╪══════════════╣ This is a separation ╠═╪════════════════════════════════════ - │ ╚════════╤═════════════╝ │ - │ │ │ - │ Yes it works! │ - │──────────────────────────────────────>│ - │ │ │ - │ ╔══════════════╗│────┐ - │ ║this is ░║│ │ working in progress - │ ║another note ║│<───┘ - │ ╚══════════════╝│ - │ │ │─ ─ ┐ - │ │ │ | working in progress - │ │ │< ─ ┘ - │ │ │ - │ done │ │ - │<─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ │ - │ │ │ - ╔══════╤═════════╪═══════════════════════╪═══════════════╪════════════╗ - ║ OPT │ dummy comment │ │ ║ - ╟──────┘ │ │ │ ║ - ║ │ │ │ ║ - ║ │ Error │ │ ║ - ║ │ On │ │ ║ - ║ │ Several │ │ ║ - ║ │ Line │ │ ║ - ║ │──────────────────────────────────────>│ ║ - ║ │ │ │ ║ - ║ │ None │ │ ║ - ║ │<─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ │ ║ - ╠════════════════╪═══════════════════════╪═══════════════╪════════════╣ - ║ │ │ │ ║ - ║ │ None │ │ ║ - ║ │<─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ │ ║ - ║ │ │ │ ║ - ║ │ None │ │ ║ - ║ │<──────────────────────────────────────│ ║ - ╠════════════════╪═══════════════════════╪═══════════════╪════════════╣ - ║ [other] │ │ │ ║ - ║ │ None │ │ ║ - ║ │<──────────────────────────────────────│ ║ - ║ │ │ │ ║ - ║ │ ╔══╧═══════════════╧══╗ ║ - ║ │ ║This is a long note ░║ ║ - ║ │ ║over Alice and Last ║ ║ - ║ │ ╚══╤═══════════════╤══╝ ║ - ║ │ None │ │ ║ - ║ │<──────────────────────────────────────│ ║ - ║ │ │ │ ║ - ║ │ None │ │ ║ - ║ │<──────────────────────────────────────│ ║ - ╚════════════════╪═══════════════════════╪═══════════════╪════════════╝ - ┌──────┴──────┐ Alice ┌─┴──┐ - │Bob on │ ┌─┐ │Last│ - │several lines│ ║"│ └────┘ - └─────────────┘ └┬┘ - ┌┼┐ - │ - ┌┴┐ - - </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 > ┬──┬ ノ( ゜-゜ノ) < 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 +-->| Bar +---+ Baz |<--+ Moo | -| | | | | | | | -+------+ +-----+ +--+--+ +-----+ - ^ | - | V -.-------------+-----------------------. -| Hello here and there and everywhere | -'-------------------------------------' - - - ____________ - .--------------. \ \ - / a == b \ \ \ __________ - ( && ) ) process ) \ \ - \ 'string' ne '' / / / / process / - '--------------' /___________/ /_________/ - - - __________________ - \_________________\ - \ \ - . another process . - /_________________/ - /_________________/ - - User code ^ ^ OS code - \ / - \ .--' - \ / - User code <--- Mode ----> OS code - / \ - .--' \___ - / \ - v v - User code OS code - - .---. .---. .---. .---. .---. .---. - OS API '---' '---' '---' '---' '---' '---' - | | | | | | - v v | v | v - .------------. | .-----------. | .-----. - | Filesystem | | | Scheduler | | | MMU | - '------------' | '-----------' | '-----' - | | | | - v | | v - .----. | | .---------. - | IO |<----' | | Network | - '----' | '---------' - | | | - v v v - .---------------------------------------. - | HAL | - '---------------------------------------' - - - ____|| - | ___ | - || || device - ||___|| loads - | ooo |----------------------------------------------------------. - | ooo | | | | - | ooo | | | | - '-----' | | | - | | | - v v v - .-------------------. .---------------------------. .-------------------. - | Loadable module C | | Loadable module A | | Loadable module B | - '-------------------' |---------------------------| | (instrumented) | - | | .-----. | '-------------------' - '------------+-------->| A.o | | | - calls | '-----' | | - | .------------------. | | - | / A.instrumented.o /<---+-------------' - | '------------------' | calls - '---------------------------' - - .--------------. - \ x--x----x \ - '--------------' - - .--> Base::Class::Derived_A - / - .----> Base::Class::Derived_B - Something -------. / \ - \ / .---> Base::Class::Derived - Something::else \ / \ - \ \ / '--> Base::Class::Derived - \ \ / - \ \ .-----------> 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++ - +-----------------------------> Control - -$ $ $$$$ - - ^ - : - : - : - : -<===+==============================> - : - : - V - - .............................. - - ... - .. - - this is a sentence - separated words of nill - - TODO: - - ^ ^ ^ - \|/ - . - /|\ - v V v - - ^ ^ ^ - \|/ - <-+-> - /|\ - v V v - - \|/ - -.- - /|\ - - | \/ - -+- /\ - | - - | | | | - +-- --+ +-- --+ +-- --+ - | | | | - - | | | | - .- -. .- -. '- -' - | | - - .- -. .-. - '- -' | | | | - '-' - - \ | / | - . ' ' . - | / | \ - - \ / - . . - / \ - - . . . . - /| |\ |\ /| - | \/ | - | /\ | - \| |/ |/ \| - ' ' ' ' - - \ - / - - / - \ - - - / \ - '-- --' - / \ - - / \ - --' '-- - / \ - - \ / - --.-- --.-- --.-- --.-- - / \ - - - | | - . . - /| |\ - - | \ / - . . - / \ | - - \|/ - . - /|\ - - - \|/ - --.-- - /|\ - - \|/ - --+-- - /|\ - - |/ \| - . . - | | - - - -. -. - / \ - - .- .- - / \ - - - / / \ \ - '- '-------' -' - - - .-. - ( ) - '-' - - - .------. - ( ) - '------' - - ________ - / / - / / - /_______/ - - - ________ - \ \ - \ \ - \_______\ - - ________ - |________| - - - ________ - | | - |________| - - .-. - '-' - - ________ - \_______\ - - /\ - / \ - /____\ - - /\ - / \ - / \ - '------' - - . - / \ - / \ - / \ - '-------' - - ___ - / \ - \___/ - - ______ - / \ - / \ - \ / - \______/ - - - +---------+ - | | +--------------+ - | NFS |--+ | | - | | | +-->| CacheFS | - +---------+ |