Rename scratchblocks2 -> scratchblocks

because numbers in project names is very, very silly
This commit is contained in:
tjvr 2016-02-22 13:33:17 +00:00
parent d724dd781f
commit 5f06e5b873
9 changed files with 26 additions and 32 deletions

View file

@ -1,4 +1,4 @@
scratchblocks2 is Copyright 2013, Tim Radvan
scratchblocks is Copyright © 20132016, Tim Radvan
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in

View file

@ -6,7 +6,7 @@ Render Scratch blocks code to HTML.
---
**scratchblocks2** is used to write Scratch scripts:
**scratchblocks** is used to write Scratch scripts:
- in [Scratch Forum](http://scratch.mit.edu/discuss/topic/14772/) posts
- in [Scratch Wiki](http://wiki.scratch.mit.edu/wiki/Block_Plugin) articles
@ -31,7 +31,7 @@ wiki](http://wiki.scratch.mit.edu/wiki/Block_Plugin/Syntax).
## Languages
The version of [`translations.js`](https://github.com/blob8108/scratchblocks2/blob/master/src/translations.js) in this repo is designed for the Scratch Forums, so it supports [all the languages there](http://scratch.mit.edu/discuss/#category_head_6).
The version of [`translations.js`](https://github.com/tjvr/scratchblocks/blob/master/src/translations.js) in this repo is designed for the Scratch Forums, so it supports [all the languages there](http://scratch.mit.edu/discuss/#category_head_6).
However, the plugin _can_ be made to accept any of the languages that Scratch supports. You just need to run:
@ -41,13 +41,13 @@ python build_translations.py all
…which will fetch language files from the [Scratch translation server](http://translate.scratch.mit.edu).
scratchblocks2 also requires some [additional words](https://github.com/blob8108/scratchblocks2/blob/master/src/extra_strings.py) which aren't in Scratch itself (mainly the words used for the flag and arrow images). I'd be happy to accept pull requests for those!
scratchblocks also requires some [additional words](https://github.com/tjvr/scratchblocks/blob/master/src/extra_strings.py) which aren't in Scratch itself (mainly the words used for the flag and arrow images). I'd be happy to accept pull requests for those!
# Usage
## MediaWiki
Use [the MediaWiki plugin](https://github.com/blob8108/mw-ScratchBlocks2). This is what the [Scratch Wiki](http://wiki.scratch.mit.edu/wiki/Block_Plugin) uses.
Use [the MediaWiki plugin](https://github.com/tjvr/wiki-scratchblocks). This is what the [Scratch Wiki](http://wiki.scratch.mit.edu/wiki/Block_Plugin) uses.
It doesn't support other languages yet. Sorry about that.
@ -78,7 +78,7 @@ The markdown builds to HTML and PDF.
### A simple example
Have a look at the [example HTML
file](http://github.com/blob8108/scratchblocks2/blob/master/example.html),
file](http://github.com/tjvr/scratchblocks/blob/master/example.html),
which includes scratchblocks from GitHub Pages and jQuery from Google's CDN.
If you want to host the files yourself, read on.
@ -91,14 +91,14 @@ You need to include jQuery (in the `<head>` of your page):
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"></script>
```
Then include the scratchblocks2 CSS and JS:
Then include the scratchblocks CSS and JS:
```html
<link rel="stylesheet" href="scratchblocks2.css">
<script src="scratchblocks2.js"></script>
```
Then just call `scratchblocks2.parse` after the page has loaded, which will
Then just call `ncratchblocks2.parse` after the page has loaded, which will
render matching page elements to shiny scratch blocks. Its sole argument is the
CSS-style selector for the elements that contain the scratchblocks code. It
uses `pre.blocks` by default.
@ -135,12 +135,15 @@ scratchblocks2.parse("code.b", {inline: true});
# Development
See [`src/Dev-Readme.md`](https://github.com/blob8108/scratchblocks2/blob/master/src/Dev-Readme.md).
See [`src/Dev-Readme.md`](https://github.com/tjvr/scratchblocks/blob/master/src/Dev-Readme.md).
# Credits
* Plugin by blob8108
Many, many thanks to the [contributors](https://github.com/tjvr/scratchblocks/graphs/contributors)!
* Authored by [tjvr](https://github.com/tjvr)
* Inspired by JSO's [Block Plugin](http://wiki.scratch.mit.edu/wiki/Block_Plugin_\(1.4\))
* Help with translation code from [joooni](http://scratch.mit.edu/users/joooni/)
* Block translations from the [Scratch translation server](http://translate.scratch.mit.edu/)

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
/*
* scratchblocks2
* http://github.com/blob8108/scratchblocks2
* scratchblocks
* http://scratchblocks.github.io/
*
* Copyright 2013, Tim Radvan
* MIT Licensed

View file

@ -1,6 +1,6 @@
/*
* scratchblocks2
* http://github.com/blob8108/scratchblocks2
* scratchblocks
* http://scratchblocks.github.io/
*
* Copyright 2013, Tim Radvan
* @license MIT

View file

@ -80,7 +80,7 @@ label {
<h1>[scratchblocks]: test</h1>
<p>Test page for the compiled version of scratchblocks2.</p>
<p>Test page for the compiled version of scratchblocks.</p>
<div>
<select id="choose-lang">

View file

@ -2,12 +2,12 @@
<html>
<head>
<meta charset="utf8">
<title>example scratchblocks2 page</title>
<title>example scratchblocks page</title>
<!-- Include jQuery -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<!-- Include scratchblocks2 files -->
<!-- Include scratchblocks files -->
<link rel="stylesheet" href="//scratchblocks.github.io/scratchblocks2.css">
<script src="//scratchblocks.github.io/scratchblocks2.js"></script>
@ -20,9 +20,9 @@
</head>
<body>
<h1>scratchblocks2 example</h1>
<h1>scratchblocks example</h1>
<p>Example static usage of <a href="http://github.com/blob8108/scratchblocks2">scratchblocks2</a>.</p>
<p>Example static usage of <a href="http://github.com/tjvr/scratchblocks">scratchblocks</a>.</p>
<!-- Example script -->
<pre class="blocks">

View file

@ -1,6 +1,6 @@
/*
* scratchblocks2
* http://github.com/blob8108/scratchblocks2
* scratchblocks
* http://scratchblocks.github.io/
*
* Copyright 2013, Tim Radvan
* @license MIT

View file

@ -1,6 +1,6 @@
/*
* scratchblocks2
* http://github.com/blob8108/scratchblocks2
* scratchblocks
* http://scratchblocks.github.io/
*
* Copyright 2013, Tim Radvan
* MIT Licensed