diff --git a/package.json b/package.json index 512f6b4..df8a13d 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "homepage": "https://github.com/mozilla/readability", "devDependencies": { "chai": "^2.1.*", - "html": "0.0.*", + "js-beautify": "^1.5.5", "jsdom": "^3.1.2", "matcha": "^0.6.0", "mocha": "^2.2.*" diff --git a/test/generate-testcase.js b/test/generate-testcase.js index 72f9e87..5dae3d2 100644 --- a/test/generate-testcase.js +++ b/test/generate-testcase.js @@ -3,7 +3,7 @@ var debug = false; var path = require("path"); var fs = require("fs"); var jsdom = require("jsdom").jsdom; -var prettyPrint = require("html").prettyPrint; +var prettyPrint = require("./utils").prettyPrint; var serializeDocument = require("jsdom").serializeDocument; var http = require("http"); diff --git a/test/test-pages/001/expected.html b/test/test-pages/001/expected.html index dc510a8..3465e29 100644 --- a/test/test-pages/001/expected.html +++ b/test/test-pages/001/expected.html @@ -3,46 +3,23 @@

So finally you're testing your frontend JavaScript code? Great! The more you write tests, the more confident you are with your code… but how much precisely? That's where code coverage might -help. - -

-

The idea behind code coverage is to record which parts of your code (functions, - statements, conditionals and so on) have been executed by your test suite, - to compute metrics out of these data and usually to provide tools for navigating - and inspecting them.

-

Not a lot of frontend developers I know actually test their frontend code, - and I can barely imagine how many of them have ever setup code coverage… - Mostly because there are not many frontend-oriented tools in this area - I guess.

-

Actually I've only found one which provides an adapter for Mocha and - actually works…

+help.

+

The idea behind code coverage is to record which parts of your code (functions, statements, conditionals and so on) have been executed by your test suite, to compute metrics out of these data and usually to provide tools for navigating and inspecting them.

+

Not a lot of frontend developers I know actually test their frontend code, and I can barely imagine how many of them have ever setup code coverage… Mostly because there are not many frontend-oriented tools in this area I guess.

+

Actually I've only found one which provides an adapter for Mocha and actually works…

Drinking game for web devs:
(1) Think of a noun
(2) Google "<noun>.js" -
(3) If a library with that name exists - drink

— Shay Friedman (@ironshay) - August 22, 2013 -
+
(3) If a library with that name exists - drink

— Shay Friedman (@ironshay) August 22, 2013

Blanket.js is an easy to install, easy to configure, and easy to use JavaScript code coverage library that works both in-browser and -with nodejs. - -

-

Its use is dead easy, adding Blanket support to your Mocha test suite - is just matter of adding this simple line to your HTML test file:

-
<script src="vendor/blanket.js"
+with nodejs. 

+

Its use is dead easy, adding Blanket support to your Mocha test suite is just matter of adding this simple line to your HTML test file:

<script src="vendor/blanket.js"
         data-cover-adapter="vendor/mocha-blanket.js"></script>
 
- -

Source files: blanket.js, - mocha-blanket.js -

-

As an example, let's reuse the silly Cow example we used - in a previous episode:

-
// cow.js
+        

Source files: blanket.js, mocha-blanket.js

+

As an example, let's reuse the silly Cow example we used in a previous episode:

// cow.js
 (function(exports) {
   "use strict";
 
@@ -60,9 +37,7 @@ with nodejs.
   };
 })(this);
 
- -

And its test suite, powered by Mocha and Chai:

-
var expect = chai.expect;
+        

And its test suite, powered by Mocha and Chai:

var expect = chai.expect;
 
 describe("Cow", function() {
   describe("constructor", function() {
@@ -85,10 +60,7 @@ describe("Cow", function() {
   });
 });
 
- -

Let's create the HTML test file for it, featuring Blanket and its adapter - for Mocha:

-
<!DOCTYPE html>
+        

Let's create the HTML test file for it, featuring Blanket and its adapter for Mocha:

<!DOCTYPE html>
 <html>
 <head>
   <meta charset="utf-8">
@@ -110,31 +82,15 @@ describe("Cow", function() {
 </body>
 </html>
 
-

Notes:

    -
  • Notice the data-cover attribute we added to the script tag - loading the source of our library;
  • -
  • The HTML test file must be served over HTTP for the adapter to - be loaded.
  • +
  • Notice the data-cover attribute we added to the script tag loading the source of our library;
  • +
  • The HTML test file must be served over HTTP for the adapter to be loaded.

Running the tests now gives us something like this:

-

- screenshot -

-

As you can see, the report at the bottom highlights that we haven't actually - tested the case where an error is raised in case a target name is missing. - We've been informed of that, nothing more, nothing less. We simply know - we're missing a test here. Isn't this cool? I think so!

-

Just remember that code coverage will only bring you numbers and - raw information, not actual proofs that the whole of your code logic has - been actually covered. If you ask me, the best inputs you can get about - your code logic and implementation ever are the ones issued out of pair programming -sessions - and code reviews — - but that's another story.

-

So is code coverage silver bullet? No. Is it useful? Definitely. Happy testing! - -

+

screenshot

+

As you can see, the report at the bottom highlights that we haven't actually tested the case where an error is raised in case a target name is missing. We've been informed of that, nothing more, nothing less. We simply know we're missing a test here. Isn't this cool? I think so!

+

Just remember that code coverage will only bring you numbers and raw information, not actual proofs that the whole of your code logic has been actually covered. If you ask me, the best inputs you can get about your code logic and implementation ever are the ones issued out of pair programming sessions and code reviews — but that's another story.

+

So is code coverage silver bullet? No. Is it useful? Definitely. Happy testing!

- + \ No newline at end of file diff --git a/test/test-pages/002/expected.html b/test/test-pages/002/expected.html index b4bf223..a2d689f 100644 --- a/test/test-pages/002/expected.html +++ b/test/test-pages/002/expected.html @@ -1,41 +1,18 @@
-

For more than a decade the Web has used XMLHttpRequest (XHR) to achieve - asynchronous requests in JavaScript. While very useful, XHR is not a very - nice API. It suffers from lack of separation of concerns. The input, output - and state are all managed by interacting with one object, and state is - tracked using events. Also, the event-based model doesn’t play well with - JavaScript’s recent focus on Promise- and generator-based asynchronous - programming.

-

The Fetch API intends - to fix most of these problems. It does this by introducing the same primitives - to JS that are used in the HTTP protocol. In addition, it introduces a - utility function fetch() that succinctly captures the intention - of retrieving a resource from the network.

-

The Fetch specification, which - defines the API, nails down the semantics of a user agent fetching a resource. - This, combined with ServiceWorkers, is an attempt to:

+

For more than a decade the Web has used XMLHttpRequest (XHR) to achieve asynchronous requests in JavaScript. While very useful, XHR is not a very nice API. It suffers from lack of separation of concerns. The input, output and state are all managed by interacting with one object, and state is tracked using events. Also, the event-based model doesn’t play well with JavaScript’s recent focus on Promise- and generator-based asynchronous programming.

+

The Fetch API intends to fix most of these problems. It does this by introducing the same primitives to JS that are used in the HTTP protocol. In addition, it introduces a utility function fetch() that succinctly captures the intention of retrieving a resource from the network.

+

The Fetch specification, which defines the API, nails down the semantics of a user agent fetching a resource. This, combined with ServiceWorkers, is an attempt to:

  1. Improve the offline experience.
  2. -
  3. Expose the building blocks of the Web to the platform as part of the - extensible web movement.
  4. +
  5. Expose the building blocks of the Web to the platform as part of the extensible web movement.
-

As of this writing, the Fetch API is available in Firefox 39 (currently - Nightly) and Chrome 42 (currently dev). Github has a Fetch polyfill.

- -

Feature detection

- -

Fetch API support can be detected by checking for Headers,Request, Response or fetch on - the window or worker scope.

- -

Simple fetching

- -

The most useful, high-level part of the Fetch API is the fetch() function. - In its simplest form it takes a URL and returns a promise that resolves - to the response. The response is captured as a Response object.

-
+

As of this writing, the Fetch API is available in Firefox 39 (currently Nightly) and Chrome 42 (currently dev). Github has a Fetch polyfill.

+

Feature detection

+

Fetch API support can be detected by checking for Headers,Request, Response or fetch on the window or worker scope.

+

Simple fetching

+

The most useful, high-level part of the Fetch API is the fetch() function. In its simplest form it takes a URL and returns a promise that resolves to the response. The response is captured as a Response object.

+
@@ -50,19 +27,17 @@ }},function(e){ console.log("Fetch failed!", e); -}); - - +});
-
-

Submitting some parameters, it would look like this:

-
- - - - + + +
fetch("http://www.example.org/submit.php", {
+        
+        

Submitting some parameters, it would look like this:

+
+ + + + - - -
fetch("http://www.example.org/submit.php", {
   method: "POST",
   headers: {
     "Content-Type": "application/x-www-form-urlencoded"
@@ -76,69 +51,53 @@
   }
 }, function(e) {
   alert("Error submitting form!");
-});
- -
-
-

The fetch() function’s arguments are the same as those passed - to the -
-Request() constructor, so you may directly pass arbitrarily - complex requests to fetch() as discussed below.

- -

Headers

- -

Fetch introduces 3 interfaces. These are Headers, Request and -
-Response. They map directly to the underlying HTTP concepts, - but have -
certain visibility filters in place for privacy and security reasons, - such as -
supporting CORS rules and ensuring cookies aren’t readable by third parties.

-

The Headers interface is - a simple multi-map of names to values:

-
- - - - + + +
var content = "Hello World";
+});
+
+

The fetch() function’s arguments are the same as those passed to the +
Request() constructor, so you may directly pass arbitrarily complex requests to fetch() as discussed below.

+

Headers

+

Fetch introduces 3 interfaces. These are Headers, Request and +
Response. They map directly to the underlying HTTP concepts, but have +
certain visibility filters in place for privacy and security reasons, such as +
supporting CORS rules and ensuring cookies aren’t readable by third parties.

+

The Headers interface is a simple multi-map of names to values:

+
+ + + + - - -
var content = "Hello World";
 var reqHeaders = new Headers();
 reqHeaders.append("Content-Type", "text/plain"
 reqHeaders.append("Content-Length", content.length.toString());
-reqHeaders.append("X-Custom-Header", "ProcessThisImmediately");
- -
-
-

The same can be achieved by passing an array of arrays or a JS object - literal -
to the constructor:

-
- - - - + + +
reqHeaders = new Headers({
+reqHeaders.append("X-Custom-Header", "ProcessThisImmediately");
+
+

The same can be achieved by passing an array of arrays or a JS object literal +
to the constructor:

+
+ + + + - - -
reqHeaders = new Headers({
   "Content-Type": "text/plain",
   "Content-Length": content.length.toString(),
   "X-Custom-Header": "ProcessThisImmediately",
-});
- -
-
-

The contents can be queried and retrieved:

-
- - - - + + +
console.log(reqHeaders.has("Content-Type")); // true
+});
+
+

The contents can be queried and retrieved:

+
+ + + + - - -
console.log(reqHeaders.has("Content-Type")); // true
 console.log(reqHeaders.has("Set-Cookie")); // false
 reqHeaders.set("Content-Type", "text/html");
 reqHeaders.append("X-Custom-Header", "AnotherValue");
@@ -147,125 +106,89 @@ console.log(reqHeaders.get(<
 console.log(reqHeaders.getAll("X-Custom-Header")); // ["ProcessThisImmediately", "AnotherValue"]
  
 reqHeaders.delete("X-Custom-Header");
-console.log(reqHeaders.getAll("X-Custom-Header")); // []
- -
-
-

Some of these operations are only useful in ServiceWorkers, but they provide -
a much nicer API to Headers.

-

Since Headers can be sent in requests, or received in responses, and have - various limitations about what information can and should be mutable, Headers objects - have a guard property. This is not exposed to the Web, but - it affects which mutation operations are allowed on the Headers object. -
Possible values are:

-
    -
  • “none”: default.
  • -
  • “request”: guard for a Headers object obtained from a Request (Request.headers).
  • -
  • “request-no-cors”: guard for a Headers object obtained from a Request - created -
    with mode “no-cors”.
  • -
  • “response”: naturally, for Headers obtained from Response (Response.headers).
  • -
  • “immutable”: Mostly used for ServiceWorkers, renders a Headers object -
    read-only.
  • -
-

The details of how each guard affects the behaviors of the Headers object - are -
in the specification. For example, - you may not append or set a “request” guarded Headers’ “Content-Length” - header. Similarly, inserting “Set-Cookie” into a Response header is not - allowed so that ServiceWorkers may not set cookies via synthesized Responses.

-

All of the Headers methods throw TypeError if name is not a - valid HTTP Header name. The mutation operations will throw TypeError - if there is an immutable guard. Otherwise they fail silently. For example:

-
- - - - + + +
var res = Response.error();
+console.log(reqHeaders.getAll("X-Custom-Header")); // []
+
+

Some of these operations are only useful in ServiceWorkers, but they provide +
a much nicer API to Headers.

+

Since Headers can be sent in requests, or received in responses, and have various limitations about what information can and should be mutable, Headers objects have a guard property. This is not exposed to the Web, but it affects which mutation operations are allowed on the Headers object. +
Possible values are:

+
    +
  • “none”: default.
  • +
  • “request”: guard for a Headers object obtained from a Request (Request.headers).
  • +
  • “request-no-cors”: guard for a Headers object obtained from a Request created +
    with mode “no-cors”.
  • +
  • “response”: naturally, for Headers obtained from Response (Response.headers).
  • +
  • “immutable”: Mostly used for ServiceWorkers, renders a Headers object +
    read-only.
  • +
+

The details of how each guard affects the behaviors of the Headers object are +
in the specification. For example, you may not append or set a “request” guarded Headers’ “Content-Length” header. Similarly, inserting “Set-Cookie” into a Response header is not allowed so that ServiceWorkers may not set cookies via synthesized Responses.

+

All of the Headers methods throw TypeError if name is not a valid HTTP Header name. The mutation operations will throw TypeError if there is an immutable guard. Otherwise they fail silently. For example:

+
+ + + + - - -
var res = Response.error();
 try {
   res.headers.set("Origin", "http://mybank.com");
 } catch(e) {
   console.log("Cannot pretend to be a bank!");
-}
- -
-
- -

Request

- -

The Request interface defines a request to fetch a resource over HTTP. - URL, method and headers are expected, but the Request also allows specifying - a body, a request mode, credentials and cache hints.

-

The simplest Request is of course, just a URL, as you may do to GET a - resource.

-
- - - - + + +
var req = new Request("/index.html");
+}
+
+

Request

+

The Request interface defines a request to fetch a resource over HTTP. URL, method and headers are expected, but the Request also allows specifying a body, a request mode, credentials and cache hints.

+

The simplest Request is of course, just a URL, as you may do to GET a resource.

+
+ + + + - - -
var req = new Request("/index.html");
 console.log(req.method); // "GET"
-console.log(req.url); // "http://example.com/index.html"
- -
-
-

You may also pass a Request to the Request() constructor to - create a copy. -
(This is not the same as calling the clone() method, which - is covered in -
the “Reading bodies” section.).

-
- - - - + + +
var copy = new Request(req);
+console.log(req.url); // "http://example.com/index.html"
+
+

You may also pass a Request to the Request() constructor to create a copy. +
(This is not the same as calling the clone() method, which is covered in +
the “Reading bodies” section.).

+
+ + + + - - -
var copy = new Request(req);
 console.log(copy.method); // "GET"
-console.log(copy.url); // "http://example.com/index.html"
- -
-
-

Again, this form is probably only useful in ServiceWorkers.

-

The non-URL attributes of the Request can only be set by passing - initial -
values as a second argument to the constructor. This argument is a dictionary.

-
- - - - + + +
var uploadReq = new Request("/uploadImage", {
+console.log(copy.url); // "http://example.com/index.html"
+
+

Again, this form is probably only useful in ServiceWorkers.

+

The non-URL attributes of the Request can only be set by passing initial +
values as a second argument to the constructor. This argument is a dictionary.

+
+ + + + - - -
var uploadReq = new Request("/uploadImage", {
   method: "POST",
   headers: {
     "Content-Type": "image/png",
   },
   body: "image data"
-});
- -
+});
-

The Request’s mode is used to determine if cross-origin requests lead - to valid responses, and which properties on the response are readable. - Legal mode values are "same-origin", "no-cors" (default) - and "cors".

-

The "same-origin" mode is simple, if a request is made to another - origin with this mode set, the result is simply an error. You could use - this to ensure that +

The Request’s mode is used to determine if cross-origin requests lead to valid responses, and which properties on the response are readable. Legal mode values are "same-origin", "no-cors" (default) and "cors".

+

The "same-origin" mode is simple, if a request is made to another origin with this mode set, the result is simply an error. You could use this to ensure that
a request is always being made to your origin.

@@ -276,30 +199,14 @@ fetch(arbitraryUrl,{ mode: console.log("Response succeeded?", res.ok);},function(e){ console.log("Please enter a same-origin URL!"); -}); - - +});
-

The "no-cors" mode captures what the web platform does by default - for scripts you import from CDNs, images hosted on other domains, and so - on. First, it prevents the method from being anything other than “HEAD”, - “GET” or “POST”. Second, if any ServiceWorkers intercept these requests, - they may not add or override any headers except for these. - Third, JavaScript may not access any properties of the resulting Response. - This ensures that ServiceWorkers do not affect the semantics of the Web - and prevents security and privacy issues that could arise from leaking - data across domains.

-

"cors" mode is what you’ll usually use to make known cross-origin - requests to access various APIs offered by other vendors. These are expected - to adhere to -
the CORS protocol. - Only a limited set of - headers is exposed in the Response, but the body is readable. For example, - you could get a list of Flickr’s most interesting photos - today like this:

+

The "no-cors" mode captures what the web platform does by default for scripts you import from CDNs, images hosted on other domains, and so on. First, it prevents the method from being anything other than “HEAD”, “GET” or “POST”. Second, if any ServiceWorkers intercept these requests, they may not add or override any headers except for these. Third, JavaScript may not access any properties of the resulting Response. This ensures that ServiceWorkers do not affect the semantics of the Web and prevents security and privacy issues that could arise from leaking data across domains.

+

"cors" mode is what you’ll usually use to make known cross-origin requests to access various APIs offered by other vendors. These are expected to adhere to +
the CORS protocol. Only a limited set of headers is exposed in the Response, but the body is readable. For example, you could get a list of Flickr’s most interesting photos today like this:

@@ -321,85 +228,47 @@ apiCall.then(function(respon photos.forEach(function(photo){ console.log(photo.title);}); -}); - - +});
-

You may not read out the “Date” header since Flickr does not allow it - via -
-Access-Control-Expose-Headers.

+

You may not read out the “Date” header since Flickr does not allow it via +
Access-Control-Expose-Headers.

- +
response.headers.get("Date"); // null
- -
response.headers.get("Date"); // null
-

The credentials enumeration determines if cookies for the other - domain are +

The credentials enumeration determines if cookies for the other domain are
sent to cross-origin requests. This is similar to XHR’s withCredentials -
flag, but tri-valued as "omit" (default), "same-origin" and "include".

-

The Request object will also give the ability to offer caching hints to - the user-agent. This is currently undergoing some security review. - Firefox exposes the attribute, but it has no effect.

+

The Request object will also give the ability to offer caching hints to the user-agent. This is currently undergoing some security review. Firefox exposes the attribute, but it has no effect.

Requests have two read-only attributes that are relevant to ServiceWorkers -
intercepting them. There is the string referrer, which is - set by the UA to be +
intercepting them. There is the string referrer, which is set by the UA to be
the referrer of the Request. This may be an empty string. The other is -
-context which is a rather large enumeration defining - what sort of resource is being fetched. This could be “image” if the request - is from an - tag in the controlled document, “worker” if it is an attempt to load a - worker script, and so on. When used with the fetch() function, - it is “fetch”.

- -

Response

- -

Response instances are returned by calls to fetch(). - They can also be created by JS, but this is only useful in ServiceWorkers.

-

We have already seen some attributes of Response when we looked at fetch(). - The most obvious candidates are status, an integer (default - value 200) and statusText (default value “OK”), which correspond - to the HTTP status code and reason. The ok attribute is just - a shorthand for checking that status is in the range 200-299 - inclusive.

-

headers is the Response’s Headers object, with guard “response”. - The url attribute reflects the URL of the corresponding request.

-

Response also has a type, which is “basic”, “cors”, “default”, - “error” or +
context which is a rather large enumeration defining what sort of resource is being fetched. This could be “image” if the request is from an tag in the controlled document, “worker” if it is an attempt to load a worker script, and so on. When used with the fetch() function, it is “fetch”.

+

Response

+

Response instances are returned by calls to fetch(). They can also be created by JS, but this is only useful in ServiceWorkers.

+

We have already seen some attributes of Response when we looked at fetch(). The most obvious candidates are status, an integer (default value 200) and statusText (default value “OK”), which correspond to the HTTP status code and reason. The ok attribute is just a shorthand for checking that status is in the range 200-299 inclusive.

+

headers is the Response’s Headers object, with guard “response”. The url attribute reflects the URL of the corresponding request.

+

Response also has a type, which is “basic”, “cors”, “default”, “error” or
“opaque”.

    -
  • "basic": normal, same origin response, with all headers exposed - except +
  • "basic": normal, same origin response, with all headers exposed except
    “Set-Cookie” and “Set-Cookie2″.
  • -
  • "cors": response was received from a valid cross-origin request. - Certain headers and the bodymay be accessed.
  • -
  • "error": network error. No useful information describing - the error is available. The Response’s status is 0, headers are empty and - immutable. This is the type for a Response obtained from Response.error().
  • -
  • "opaque": response for “no-cors” request to cross-origin - resource. Severely
    - restricted
    - -
  • +
  • "cors": response was received from a valid cross-origin request. Certain headers and the bodymay be accessed.
  • +
  • "error": network error. No useful information describing the error is available. The Response’s status is 0, headers are empty and immutable. This is the type for a Response obtained from Response.error().
  • +
  • "opaque": response for “no-cors” request to cross-origin resource. Severely
    + restricted
-

The “error” type results in the fetch() Promise rejecting with - TypeError.

-

There are certain attributes that are useful only in a ServiceWorker scope. - The -
idiomatic way to return a Response to an intercepted request in ServiceWorkers - is:

+

The “error” type results in the fetch() Promise rejecting with TypeError.

+

There are certain attributes that are useful only in a ServiceWorker scope. The +
idiomatic way to return a Response to an intercepted request in ServiceWorkers is:

@@ -408,52 +277,28 @@ apiCall.then(function(respon event.respondWith(new Response("Response body",{ headers:{"Content-Type":"text/plain"}}); -}); - - +});
-

As you can see, Response has a two argument constructor, where both arguments - are optional. The first argument is a body initializer, and the second - is a dictionary to set the status, statusText and headers.

-

The static method Response.error() simply returns an error - response. Similarly, Response.redirect(url, status) returns - a Response resulting in +

As you can see, Response has a two argument constructor, where both arguments are optional. The first argument is a body initializer, and the second is a dictionary to set the status, statusText and headers.

+

The static method Response.error() simply returns an error response. Similarly, Response.redirect(url, status) returns a Response resulting in
a redirect to url.

- -

Dealing with bodies

- -

Both Requests and Responses may contain body data. We’ve been glossing - over it because of the various data types body may contain, but we will - cover it in detail now.

+

Dealing with bodies

+

Both Requests and Responses may contain body data. We’ve been glossing over it because of the various data types body may contain, but we will cover it in detail now.

A body is an instance of any of the following types.

-

In addition, Request and Response both offer the following methods to - extract their body. These all return a Promise that is eventually resolved - with the actual content.

+

In addition, Request and Response both offer the following methods to extract their body. These all return a Promise that is eventually resolved with the actual content.

    -
  • arrayBuffer() - -
  • -
  • blob() - -
  • -
  • json() - -
  • -
  • text() - -
  • -
  • formData() - -
  • +
  • arrayBuffer()
  • +
  • blob()
  • +
  • json()
  • +
  • text()
  • +
  • formData()
-

This is a significant improvement over XHR in terms of ease of use of - non-text data!

+

This is a significant improvement over XHR in terms of ease of use of non-text data!

Request bodies can be set by passing body parameters:

-
+
@@ -461,41 +306,30 @@ apiCall.then(function(respon fetch("/login",{ method:"POST", body: form -}) - - +}) + + +
+
+

Responses take the first argument as the body.

+
+ + + +
var res = new Response(new File(["chunk", "chunk"], "archive.zip",
+                       { type: "application/zip" }));
-
-

Responses take the first argument as the body.

-
- - - - - - -
var res = new Response(new File(["chunk", "chunk"], "archive.zip",
-                       { type: "application/zip" }));
- -
-
-

Both Request and Response (and by extension the fetch() function), - will try to intelligently determine the content type. - Request will also automatically set a “Content-Type” header if none is - set in the dictionary.

- -

Streams and cloning

- -

It is important to realise that Request and Response bodies can only be - read once! Both interfaces have a boolean attribute bodyUsed to - determine if it is safe to read or not.

-
- - - - + + +
var res = new Response("one time use");
+        
+        

Both Request and Response (and by extension the fetch() function), will try to intelligently determine the content type. Request will also automatically set a “Content-Type” header if none is set in the dictionary.

+

Streams and cloning

+

It is important to realise that Request and Response bodies can only be read once! Both interfaces have a boolean attribute bodyUsed to determine if it is safe to read or not.

+
+ + + + - - -
var res = new Response("one time use");
 console.log(res.bodyUsed); // false
 res.text().then(function(v) {
   console.log(res.bodyUsed); // true
@@ -504,31 +338,19 @@ console.log(res.bodyUsed)text().catch(function(e) {
   console.log("Tried to read already consumed Response");
-});
- -
-
-

This decision allows easing the transition to an eventual stream-based Fetch - API. The intention is to let applications consume data as it arrives, allowing - for JavaScript to deal with larger files like videos, and perform things - like compression and editing on the fly.

-

Often, you’ll want access to the body multiple times. For example, you - can use the upcoming Cache API to - store Requests and Responses for offline use, and Cache requires bodies - to be available for reading.

-

So how do you read out the body multiple times within such constraints? - The API provides a clone() method on the two interfaces. This - will return a clone of the object, with a ‘new’ body. clone() MUST - be called before the body of the corresponding object has been used. That - is, clone() first, read later.

-
- - - - + + +
addEventListener('fetch', function(evt) {
+});
+
+

This decision allows easing the transition to an eventual stream-based Fetch API. The intention is to let applications consume data as it arrives, allowing for JavaScript to deal with larger files like videos, and perform things like compression and editing on the fly.

+

Often, you’ll want access to the body multiple times. For example, you can use the upcoming Cache API to store Requests and Responses for offline use, and Cache requires bodies to be available for reading.

+

So how do you read out the body multiple times within such constraints? The API provides a clone() method on the two interfaces. This will return a clone of the object, with a ‘new’ body. clone() MUST be called before the body of the corresponding object has been used. That is, clone() first, read later.

+
+ + + + - - -
addEventListener('fetch', function(evt) {
   var sheep = new Response("Dolly");
   console.log(sheep.bodyUsed); // false
   var clone = sheep.clone();
@@ -541,29 +363,16 @@ res.text().catch(respondWith(cache.add(sheep.clone()).then(function(e) {
     return sheep;
   });
-});
- -
-
- -

Future improvements

- -

Along with the transition to streams, Fetch will eventually have the ability - to abort running fetch()es and some way to report the progress - of a fetch. These are provided by XHR, but are a little tricky to fit in - the Promise-based nature of the Fetch API.

-

You can contribute to the evolution of this API by participating in discussions - on the WHATWG mailing list and - in the issues in the Fetch and - ServiceWorkerspecifications.

-

For a better web!

-

The author would like to thank Andrea Marchesini, Anne van Kesteren and Ben
-Kelly for helping with the specification and implementation.
- -

- - \ No newline at end of file +});
+
+

Future improvements

+

Along with the transition to streams, Fetch will eventually have the ability to abort running fetch()es and some way to report the progress of a fetch. These are provided by XHR, but are a little tricky to fit in the Promise-based nature of the Fetch API.

+

You can contribute to the evolution of this API by participating in discussions on the WHATWG mailing list and in the issues in the Fetch and ServiceWorkerspecifications.

+

For a better web!

+

The author would like to thank Andrea Marchesini, Anne van Kesteren and Ben
+Kelly for helping with the specification and implementation.

+
+
\ No newline at end of file diff --git a/test/test-pages/base-url/expected.html b/test/test-pages/base-url/expected.html index c193a05..b3c149c 100644 --- a/test/test-pages/base-url/expected.html +++ b/test/test-pages/base-url/expected.html @@ -1,42 +1,18 @@
-

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Links

-

link -

-

link -

-

link -

-

link -

-

link -

+

link

+

link

+

link

+

link

+

link

Images

-

- -

-

- -

-

- -

-

- -

-

- -

-

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

+

+

+

+

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\ No newline at end of file diff --git a/test/test-pages/basic-tags-cleaning/expected.html b/test/test-pages/basic-tags-cleaning/expected.html index 5fb9089..f731d75 100644 --- a/test/test-pages/basic-tags-cleaning/expected.html +++ b/test/test-pages/basic-tags-cleaning/expected.html @@ -1,19 +1,11 @@
-

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.

-

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum - dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non - proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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.

+

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

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.

-

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum - dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non - proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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.

+

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\ No newline at end of file diff --git a/test/test-pages/clean-links/expected.html b/test/test-pages/clean-links/expected.html index 3f2ce3c..1acdbd2 100644 --- a/test/test-pages/clean-links/expected.html +++ b/test/test-pages/clean-links/expected.html @@ -1,1250 +1,264 @@
-

Study Webtext

- -

Study Webtext

+

"Bartleby the Scrivener: A Story of Wall-Street " (1853) 
Herman Melville

- -

To the story text without notes

- -

Prepared by Ann +

Prepared by Ann Woodlief, Virginia Commonwealth University

- -

Click on text in red for hypertext notes and questions
-I am a rather elderly man. The nature of my avocations for the last thirty - years has brought me into more than ordinary contact with what would seem - an interesting and somewhat singular set of men of whom as yet nothing - that I know of has ever been written:-- I mean the law-copyists or scriveners. - I have known very many of them, professionally and privately, and if I - pleased, could relate divers histories, at which good-natured gentlemen - might smile, and sentimental souls might weep. But I waive the biographies - of all other scriveners for a few passages in the life of Bartleby, who - was a scrivener the strangest I ever saw or heard of. While of other law-copyists - I might write the complete life, of Bartleby nothing of that sort can be - done. I believe that no materials exist for a full and satisfactory biography - of this man. It is an irreparable loss to literature. Bartleby was one - of those beings of whom nothing is ascertainable, except from the original - sources, and in his case those are very small. What my own astonished eyes - saw of Bartleby, that is all I know of him, except, indeed, one vague report - which will appear in the sequel. -

Ere introducing the scrivener, as he first appeared to me, it is fit I - make some mention of myself, my employees, my business, my chambers, and - general surroundings; because some such description is indispensable to - an adequate understanding of the chief character about to be presented.

-

Imprimis: I am a man who, from his youth upwards, has been filled - with a profound conviction that the easiest way of life is the best.. Hence, - though I belong to a profession proverbially energetic and nervous, even - to turbulence, at times, yet nothing of that sort have I ever suffered - to invade my peace. I am one of those unambitious lawyers who never addresses - a jury, or in any way draws down public applause; but in the cool tranquillity - of a snug retreat, do a snug business among rich men's bonds and mortgages - and title-deeds. The late John Jacob Astor, a personage little given to - poetic enthusiasm, had no hesitation in pronouncing my first grand point - to be prudence; my next, method. I do not speak it in vanity, but simply - record the fact, that I was not unemployed in my profession by the last - John Jacob Astor; a name which, I admit, I love to repeat, for it hath - a rounded and orbicular sound to it, and rings like unto bullion. I will - freely add, that I was not insensible to the late John Jacob Astor's good - opinion.

-

Some time prior to the period at which this little history begins, my - avocations had been largely increased. The good old office, now extinct - in the State of New York, of a Master in Chancery, had been conferred upon - me. It was not a very arduous office, but very pleasantly remunerative. - I seldom lose my temper; much more seldom indulge in dangerous indignation - at wrongs and outrages; but I must be permitted to be rash here and declare, - that I consider the sudden and violent abrogation of the office of Master - of Chancery, by the new Constitution, as a----premature act; inasmuch as - I had counted upon a life-lease of the profits, whereas I only received - those of a few short years. But this is by the way.

-

My chambers were up stairs at No.--Wall-street. At one end they looked - upon the white wall of the interior of a spacious sky-light shaft, penetrating - the building from top to bottom. This view might have been considered rather - tame than otherwise, deficient in what landscape painters call "life." - But if so, the view from the other end of my chambers offered, at least, - a contrast, if nothing more. In that direction my windows commanded an - unobstructed view of a lofty brick wall,black by age and everlasting shade; - which wall required no spy-glass to bring out its lurking beauties, but - for the benefit of all near-sighted spectators, was pushed up to within - ten feet of my window panes. Owing to the great height of the surrounding - buildings, and my chambers being on the second floor, the interval between - this wall and mine not a little resembled a huge square cistern.

-

At the period just preceding the advent of Bartleby, I had two persons - as copyists in my employment, and a promising lad as an office-boy. First, - Turkey; second, Nippers; third, Ginger Nut.These may seem names, the like - of which are not usually found in the Directory. In truth they were nicknames, - mutually conferred upon each other by my three clerks, and were deemed - expressive of their respective persons or characters. Turkey was a short, - pursy Englishman of about my own age, that is, somewhere not far from sixty. - In the morning, one might say, his face was of a fine florid hue, but after - twelve o'clock, meridian-- his dinner hour-- it blazed like a grate full - of Christmas coals; and continued blazing--but, as it were, with a gradual - wane--till 6 o'clock, P.M. or thereabouts, after which I saw no more of - the proprietor of the face, which gaining its meridian with the sun, seemed - to set with it, to rise, culminate, and decline the following day, with - the like regularity and undiminished glory. There are many singular coincidences - I have known in the course of my life, not the least among which was the - fact that exactly when Turkey displayed his fullest beams from his red - and radiant countenance, just then, too, at the critical moment, began - the daily period when I considered his business capacities as seriously - disturbed for the remainder of the twenty-four hours. Not that he was absolutely - idle, or averse to business then; far from it. The difficulty was, he was - apt to be altogether too energetic. There was a strange, inflamed, flurried, - flighty recklessness of activity about him. He would be incautious in dipping - his pen into his inkstand. All his blots upon my documents, were dropped - there after twelve o'clock, meridian. Indeed, not only would he be reckless - and sadly given to making blots in the afternoon, but some days he went - further, and was rather noisy. At such times, too, his face flamed with - augmented blazonry, as if cannel coal had been heaped on anthracite. He - made an unpleasant racket with his chair; spilled his sand-box; in mending - his pens, impatiently split them all to pieces, and threw them on the floor - in a sudden passion; stood up and leaned over his table, boxing his papers - about in a most indecorous manner, very sad to behold in an elderly manlike - him. Nevertheless, as he was in many ways a most valuable person to me, - and all the time before twelve o'clock, meridian, was the quickest, steadiest - creature too, accomplishing a great deal of work in a style not easy to - be matched--for these reasons, I was willingto overlook his eccentricities, - though indeed, occasionally, I remonstrated with him. I did this very gently, - however, because, though the civilest, nay, the blandest and most reverential - of men in the morning, yet in the afternoon he was disposed, upon provocation, - to be slightly rash with his tongue, in fact, insolent. Now, valuing his - morning services as I did, and resolved not to lose them; yet, at the same - time made uncomfortable by his inflamed ways after twelve o'clock; and - being a man of peace, unwilling by my admonitions to call forth unseemingly - retorts from him; I took upon me, one Saturday noon (he was always worse - on Saturdays), to hint to him, very kindly, that perhaps now that he was - growing old, it might be well to abridge his labors; in short, he need - not come to my chambers after twelve o'clock, but, dinner over, had best - go home to his lodgings and rest himself till tea-time. But no; he insisted - upon his afternoon devotions. His countenance became intolerably fervid, - as he oratorically assured me--gesticulating with a long ruler at the other - end of the room--that if his services in the morning were useful, how indispensible, - then, in the afternoon?

-

"With submission, sir," said Turkey on this occasion, "I consider myself - your right-hand man. In the morning I but marshal and deploy my columns; - but in the afternoon I put myself at their head, and gallantly charge the - foe, thus!"--and he made a violent thrust with the ruler.

+
Click on text in red for hypertext notes and questions
I am a rather elderly man. The nature of my avocations for the last thirty years has brought me into more than ordinary contact with what would seem an interesting and somewhat singular set of men of whom as yet nothing that I know of has ever been written:-- I mean the law-copyists or scriveners. I have known very many of them, professionally and privately, and if I pleased, could relate divers histories, at which good-natured gentlemen might smile, and sentimental souls might weep. But I waive the biographies of all other scriveners for a few passages in the life of Bartleby, who was a scrivener the strangest I ever saw or heard of. While of other law-copyists I might write the complete life, of Bartleby nothing of that sort can be done. I believe that no materials exist for a full and satisfactory biography of this man. It is an irreparable loss to literature. Bartleby was one of those beings of whom nothing is ascertainable, except from the original sources, and in his case those are very small. What my own astonished eyes saw of Bartleby, that is all I know of him, except, indeed, one vague report which will appear in the sequel. +

Ere introducing the scrivener, as he first appeared to me, it is fit I make some mention of myself, my employees, my business, my chambers, and general surroundings; because some such description is indispensable to an adequate understanding of the chief character about to be presented.

+

Imprimis: I am a man who, from his youth upwards, has been filled with a profound conviction that the easiest way of life is the best.. Hence, though I belong to a profession proverbially energetic and nervous, even to turbulence, at times, yet nothing of that sort have I ever suffered to invade my peace. I am one of those unambitious lawyers who never addresses a jury, or in any way draws down public applause; but in the cool tranquillity of a snug retreat, do a snug business among rich men's bonds and mortgages and title-deeds. The late John Jacob Astor, a personage little given to poetic enthusiasm, had no hesitation in pronouncing my first grand point to be prudence; my next, method. I do not speak it in vanity, but simply record the fact, that I was not unemployed in my profession by the last John Jacob Astor; a name which, I admit, I love to repeat, for it hath a rounded and orbicular sound to it, and rings like unto bullion. I will freely add, that I was not insensible to the late John Jacob Astor's good opinion.

+

Some time prior to the period at which this little history begins, my avocations had been largely increased. The good old office, now extinct in the State of New York, of a Master in Chancery, had been conferred upon me. It was not a very arduous office, but very pleasantly remunerative. I seldom lose my temper; much more seldom indulge in dangerous indignation at wrongs and outrages; but I must be permitted to be rash here and declare, that I consider the sudden and violent abrogation of the office of Master of Chancery, by the new Constitution, as a----premature act; inasmuch as I had counted upon a life-lease of the profits, whereas I only received those of a few short years. But this is by the way.

+

My chambers were up stairs at No.--Wall-street. At one end they looked upon the white wall of the interior of a spacious sky-light shaft, penetrating the building from top to bottom. This view might have been considered rather tame than otherwise, deficient in what landscape painters call "life." But if so, the view from the other end of my chambers offered, at least, a contrast, if nothing more. In that direction my windows commanded an unobstructed view of a lofty brick wall,black by age and everlasting shade; which wall required no spy-glass to bring out its lurking beauties, but for the benefit of all near-sighted spectators, was pushed up to within ten feet of my window panes. Owing to the great height of the surrounding buildings, and my chambers being on the second floor, the interval between this wall and mine not a little resembled a huge square cistern.

+

At the period just preceding the advent of Bartleby, I had two persons as copyists in my employment, and a promising lad as an office-boy. First, Turkey; second, Nippers; third, Ginger Nut.These may seem names, the like of which are not usually found in the Directory. In truth they were nicknames, mutually conferred upon each other by my three clerks, and were deemed expressive of their respective persons or characters. Turkey was a short, pursy Englishman of about my own age, that is, somewhere not far from sixty. In the morning, one might say, his face was of a fine florid hue, but after twelve o'clock, meridian-- his dinner hour-- it blazed like a grate full of Christmas coals; and continued blazing--but, as it were, with a gradual wane--till 6 o'clock, P.M. or thereabouts, after which I saw no more of the proprietor of the face, which gaining its meridian with the sun, seemed to set with it, to rise, culminate, and decline the following day, with the like regularity and undiminished glory. There are many singular coincidences I have known in the course of my life, not the least among which was the fact that exactly when Turkey displayed his fullest beams from his red and radiant countenance, just then, too, at the critical moment, began the daily period when I considered his business capacities as seriously disturbed for the remainder of the twenty-four hours. Not that he was absolutely idle, or averse to business then; far from it. The difficulty was, he was apt to be altogether too energetic. There was a strange, inflamed, flurried, flighty recklessness of activity about him. He would be incautious in dipping his pen into his inkstand. All his blots upon my documents, were dropped there after twelve o'clock, meridian. Indeed, not only would he be reckless and sadly given to making blots in the afternoon, but some days he went further, and was rather noisy. At such times, too, his face flamed with augmented blazonry, as if cannel coal had been heaped on anthracite. He made an unpleasant racket with his chair; spilled his sand-box; in mending his pens, impatiently split them all to pieces, and threw them on the floor in a sudden passion; stood up and leaned over his table, boxing his papers about in a most indecorous manner, very sad to behold in an elderly manlike him. Nevertheless, as he was in many ways a most valuable person to me, and all the time before twelve o'clock, meridian, was the quickest, steadiest creature too, accomplishing a great deal of work in a style not easy to be matched--for these reasons, I was willingto overlook his eccentricities, though indeed, occasionally, I remonstrated with him. I did this very gently, however, because, though the civilest, nay, the blandest and most reverential of men in the morning, yet in the afternoon he was disposed, upon provocation, to be slightly rash with his tongue, in fact, insolent. Now, valuing his morning services as I did, and resolved not to lose them; yet, at the same time made uncomfortable by his inflamed ways after twelve o'clock; and being a man of peace, unwilling by my admonitions to call forth unseemingly retorts from him; I took upon me, one Saturday noon (he was always worse on Saturdays), to hint to him, very kindly, that perhaps now that he was growing old, it might be well to abridge his labors; in short, he need not come to my chambers after twelve o'clock, but, dinner over, had best go home to his lodgings and rest himself till tea-time. But no; he insisted upon his afternoon devotions. His countenance became intolerably fervid, as he oratorically assured me--gesticulating with a long ruler at the other end of the room--that if his services in the morning were useful, how indispensible, then, in the afternoon?

+

"With submission, sir," said Turkey on this occasion, "I consider myself your right-hand man. In the morning I but marshal and deploy my columns; but in the afternoon I put myself at their head, and gallantly charge the foe, thus!"--and he made a violent thrust with the ruler.

"But the blots, Turkey," intimated I.

-

"True,--but, with submission, sir, behold these hairs! I am getting old. - Surely, sir, a blot or two of a warm afternoon is not the page--is honorable. - With submission, sir, we both are getting old."

-

This appeal to my fellow-feeling was hardly to be resisted. At all events, - I saw that go he would not. So I made up my mind to let him stay, resolving, - nevertheless, to see to it, that during the afternoon he had to do with - my less important papers.

-

Nippers, the second on my list, was a whiskered, sallow, and, upon the - whole, rather piratical-looking young man of about five and twenty. I always - deemed him the victim of two evil powers-- ambition and indigestion. The - ambition was evinced by a certain impatience of the duties of a mere copyist, - an unwarrantable usurpation of strictly profession affairs, such as the - original drawing up of legal documents. The indigestion seemed betokened - in an occasional nervous testiness and grinning irritability, causing the - teeth to audibly grind together over mistakes committed in copying; unnecessary - maledictions, hissed, rather than spoken, in the heat of business; and - especially by a continual discontent with the height of the table where - he worked. Though of a very ingenious mechanical turn, Nippers could never - get this table to suit him. He put chips under it, blocks of various sorts, - bits of pasteboard, and at last went so far as to attempt an exquisite - adjustment by final pieces of folded blotting-paper. But no invention would - answer. If, for the sake of easing his back, he brought the table lid at - a sharp angle well up towards his chin, and wrote there like a man using - the steep roof of a Dutch house for his desk:--then he declared that it - stopped the circulation in his arms. If now he lowered the table to his - waistbands, and stooped over it in writing, then there was a sore aching - in his back. In short, the truth of the matter was, Nippers knew not what - he wanted. Or, if he wanted anything, it was to be rid of a scrivener's - table altogether. Among the manifestations of his diseased ambition was - a fondness he had for receiving visits from certain ambiguous-looking fellows - in seedy coats, whom he called his clients. Indeed I was aware that not - only was he, at times, considerable of a ward-politician, but he occasionally - did a little businessat the Justices' courts, and was not unknown on the - steps of the Tombs. I have good reason to believe, however, that one individual - who called upon him at my chambers, and who, with a grand air, he insisted - was his client, was no other than a dun, and the alleged title-deed, a - bill. But with all his failings, and the annoyances he caused me, Nippers, - like his compatriot Turkey, was a very useful man to me; wrote a neat, - swift hand; and, when he chose, was not deficient in a gentlemanly sort - of deportment. Added to this, he always dressedin a gentlemanly sort of - way; and so, incidentally, reflected credit upon my chambers. Whereas with - respect to Turkey, I had much ado to keep him from being a reproach to - me. His clothes were apt to look oily and smell of eating-houses. He wore - his pantaloons very loose and baggy in summer. His coats were execrable; - his hat not to be handled. But while the hat was a thing of indifference - to me, inasmuch as his natural civility and deference, as a dependent Englishman, - always led him to doff it the moment he entered the room, yet his coat - was another matter. Concerning his coats, I reasoned with him; but with - no effect. The truth was, I suppose, that a man with so small an income, - could not afford to sport such a lustrous face and a lustrous coat at one - and the same time. As Nippers once observed, Turkey's money went chiefly - for red ink. One winter day I presented Turkey with a highly-respectable - looking coat of my own, a padded gray coat, of a most comfortable warmth, - and which buttoned straight up from the knee to the neck. I thought Turkey - would appreciate the favor, and abate his rashness and obstreperousness - of afternoons. But no. I verily believe that buttoning himself up in so - downy and blanket-like a coat had a pernicious effect upon him; upon the - same principle that too much oats are bad for horses. In fact, precisely - as a rash, restive horse is said to feel his oats, so Turkey felt his coat. - It made him insolent. He was a man whom prosperity harmed.

-

Though concerning the self-indulgent habits of Turkey I had my own private - surmises, yet touching Nippers I was well persuaded that whatever might - be his faults in other respects, he was, at least, a temperate young man. - But indeed, nature herself seemed to have been his vintner, and at his - birth charged him so thoroughly with an irritable, brandy-like disposition, - that all subsequent potations were needless. When I consider how, amid - the stillness of my chambers, Nippers would sometimes impatiently rise - from his seat, and stooping over his table, spread his arms wide apart, - seize the whole desk, and move it, and jerk it, with a grim, grinding motion - on the floor, as if the table were a perverse voluntary agent, intent on - thwarting and vexing him; I plainly perceive that for Nippers, brandy and - water were altogether superfluous.

-

It was fortunate for me that, owing to its course--indigestion--the irritability - and consequent nervousness of Nippers, were mainly observable in the morning, - while in the afternoon he was comparatively mild. So that Turkey's paroxysms - only coming on about twelve o'clock, I never had to do with their eccentricities - at one time. Their fits relieved each other like guards. When Nippers' - was on, Turkey's was off, and vice versa. This was a good natural arrangement - under the circumstances.

-

Ginger Nut, the third on my list, was a lad some twelve years old. His - father was a carman, ambitious of seeing his son on the bench instead of - a cart, before he died. So he sent him to my office as a student at law, - errand boy, and cleaner and sweeper, at the rate of one dollar a week. - He had a little desk to himself, but he did not use it much. Upon inspection, - the drawer exhibited a great array of the shells of various sorts of nuts. - Indeed, to this quick-witted youth the whole noble science of the law was - contained in a nut-shell. Not the least among the employments of Ginger - Nut, as well as one which he discharged with the most alacrity, was his - duty as cake and apple purveyor for Turkey and Nippers. Copying law papers - being proverbially a dry, husky sort of business, my two scriveners were - fain to moisten their mouths very often with Spitzenbergs to be had at - the numerous stalls nigh the Custom House and Post Office. Also, they sent - Ginger Nut very frequently for that peculiar cake--small, flat, round, - and very spicy--after which he had been named by them. Of a cold morning - when business was but dull, Turkey would gobble up scores of these cakes, - as if they were mere wafers--indeed they sell them at the rate of six or - eight for a penny--the scrape of his pen blending with the crunching of - the crisp particles in his mouth. Of all the fiery afternoon blunders and - flurried rashnesses of Turkey, was his once moistening a ginger-cake between - his lips, and clapping it on to a mortgage for a seal. I came within an - ace of dismissing him then. But he mollified me by making an oriental bow, - and saying--"With submission, sir, it was generous of me to find you in - stationery on my own account."

-

Now my original business--that of a conveyancer and title hunter, and - drawer-up of recondite documents of all sorts--was considerably increased - by receiving the master's office. There was now great work for scriveners. - Not only must I push the clerks already with me, but I must have additional - help. In answer to my advertisement, a motionless young man one morning, - stood upon my office threshold, the door being open, for it was summer. - I can see that figure now--pallidly neat, pitiably respectable, incurably - forlorn! It was Bartleby.

-

After a few words touching his qualifications, I engaged him, glad to - have among my corps of copyists a man of so singularly sedate an aspect, - which I thought might operate beneficially upon the flighty temper of Turkey, - and the fiery one of Nippers.

-

I should have stated before that ground glass folding-doors divided my - premises into two parts, one of which was occupied by my scriveners, the - other by myself. According to my humor I threw open these doors, or closed - them. I resolved to assign Bartleby a corner by the folding-doors, but - on my side of them, so as to have this quiet man within easy call, in case - any trifling thing was to be done. I placed his desk close up to a small - side window in that part of the room, a window which originally had afforded - a lateral view of certain grimy back-yards and bricks, but which, owing - to subsequent erections, commanded at present no view at all, though it - gave some light. Within three feet of the panes was a wall, and the light - came down from far above, between two lofty buildings, as from a very small - opening in a dome. Still further to a satisfactory arrangement, I procured - a high green folding screen, which might entirely isolate Bartleby from - my sight, though not remove him from my voice. And thus, in a manner, privacy - and society were conjoined.

-

At first Bartleby did an extraordinary quantity of writing. As if long - famishingfor something to copy, he seemed to gorge himself on my documents. - There was no pause for digestion. He ran a day and night line, copying - by sun-light and by candle-light. I should have been quite delighted with - his application, had be been cheerfully industrious. But he wrote on silently, - palely, mechanically.

-

It is, of course, an indispensable part of a scrivener's business to verify - the accuracy of his copy, word by word. Where there are two or more scriveners - in an office, they assist each other in this examination, one reading from - the copy, the other holding the original. It is a very dull, wearisome, - and lethargic affair. I can readily imagine that to some sanguine temperaments - it would be altogether intolerable. For example, I cannot credit that the - mettlesome poet Byron would have contentedly sat down with Bartleby to - examine a law document of, say five hundred pages, closely written in a - crimpy hand.

-

Now and then, in the haste of business, it had been my habit to assist - in comparing some brief document myself, calling Turkey or Nippers for - this purpose. One object I had in placing Bartleby so handy to me behind - the screen, was to avail myself of his services on such trivial occasions. - It was on the third day, I think, of his being with me, and before any - necessity had arisen for having his own writing examined, that, being much - hurried to complete a small affair I had in hand, I abruptly called to - Bartleby. In my haste and natural expectancy of instant compliance, I sat - with my head bent over the original on my desk, and my right hand sideways, - and somewhat nervously extended with the copy, so that immediately upon - emerging from his retreat, Bartleby might snatch it and proceed to business - without the least delay.

-

In this very attitude did I sit when I called to him, rapidly stating - what it was I wanted him to do--namely, to examine a small paper with me. - Imagine my surprise, nay, my consternation, when without moving from his - privacy, Bartleby in a singularly mild, firm voice, replied,"I would prefer - not to."

-

I sat awhile in perfect silence, rallying my stunned faculties. Immediately - it occurred to me that my ears had deceived me, or Bartleby had entirely - misunderstood my meaning. I repeated my request in the clearest tone I - could assume. But in quite as clear a one came the previous reply, "I would - prefer not to."

-

"Prefer not to," echoed I, rising in high excitement, and crossing the - room with a stride, "What do you mean? Are you moon-struck? I want you - to help me compare this sheet here--take it," and I thrust it towards him.

+

"True,--but, with submission, sir, behold these hairs! I am getting old. Surely, sir, a blot or two of a warm afternoon is not the page--is honorable. With submission, sir, we both are getting old."

+

This appeal to my fellow-feeling was hardly to be resisted. At all events, I saw that go he would not. So I made up my mind to let him stay, resolving, nevertheless, to see to it, that during the afternoon he had to do with my less important papers.

+

Nippers, the second on my list, was a whiskered, sallow, and, upon the whole, rather piratical-looking young man of about five and twenty. I always deemed him the victim of two evil powers-- ambition and indigestion. The ambition was evinced by a certain impatience of the duties of a mere copyist, an unwarrantable usurpation of strictly profession affairs, such as the original drawing up of legal documents. The indigestion seemed betokened in an occasional nervous testiness and grinning irritability, causing the teeth to audibly grind together over mistakes committed in copying; unnecessary maledictions, hissed, rather than spoken, in the heat of business; and especially by a continual discontent with the height of the table where he worked. Though of a very ingenious mechanical turn, Nippers could never get this table to suit him. He put chips under it, blocks of various sorts, bits of pasteboard, and at last went so far as to attempt an exquisite adjustment by final pieces of folded blotting-paper. But no invention would answer. If, for the sake of easing his back, he brought the table lid at a sharp angle well up towards his chin, and wrote there like a man using the steep roof of a Dutch house for his desk:--then he declared that it stopped the circulation in his arms. If now he lowered the table to his waistbands, and stooped over it in writing, then there was a sore aching in his back. In short, the truth of the matter was, Nippers knew not what he wanted. Or, if he wanted anything, it was to be rid of a scrivener's table altogether. Among the manifestations of his diseased ambition was a fondness he had for receiving visits from certain ambiguous-looking fellows in seedy coats, whom he called his clients. Indeed I was aware that not only was he, at times, considerable of a ward-politician, but he occasionally did a little businessat the Justices' courts, and was not unknown on the steps of the Tombs. I have good reason to believe, however, that one individual who called upon him at my chambers, and who, with a grand air, he insisted was his client, was no other than a dun, and the alleged title-deed, a bill. But with all his failings, and the annoyances he caused me, Nippers, like his compatriot Turkey, was a very useful man to me; wrote a neat, swift hand; and, when he chose, was not deficient in a gentlemanly sort of deportment. Added to this, he always dressedin a gentlemanly sort of way; and so, incidentally, reflected credit upon my chambers. Whereas with respect to Turkey, I had much ado to keep him from being a reproach to me. His clothes were apt to look oily and smell of eating-houses. He wore his pantaloons very loose and baggy in summer. His coats were execrable; his hat not to be handled. But while the hat was a thing of indifference to me, inasmuch as his natural civility and deference, as a dependent Englishman, always led him to doff it the moment he entered the room, yet his coat was another matter. Concerning his coats, I reasoned with him; but with no effect. The truth was, I suppose, that a man with so small an income, could not afford to sport such a lustrous face and a lustrous coat at one and the same time. As Nippers once observed, Turkey's money went chiefly for red ink. One winter day I presented Turkey with a highly-respectable looking coat of my own, a padded gray coat, of a most comfortable warmth, and which buttoned straight up from the knee to the neck. I thought Turkey would appreciate the favor, and abate his rashness and obstreperousness of afternoons. But no. I verily believe that buttoning himself up in so downy and blanket-like a coat had a pernicious effect upon him; upon the same principle that too much oats are bad for horses. In fact, precisely as a rash, restive horse is said to feel his oats, so Turkey felt his coat. It made him insolent. He was a man whom prosperity harmed.

+

Though concerning the self-indulgent habits of Turkey I had my own private surmises, yet touching Nippers I was well persuaded that whatever might be his faults in other respects, he was, at least, a temperate young man. But indeed, nature herself seemed to have been his vintner, and at his birth charged him so thoroughly with an irritable, brandy-like disposition, that all subsequent potations were needless. When I consider how, amid the stillness of my chambers, Nippers would sometimes impatiently rise from his seat, and stooping over his table, spread his arms wide apart, seize the whole desk, and move it, and jerk it, with a grim, grinding motion on the floor, as if the table were a perverse voluntary agent, intent on thwarting and vexing him; I plainly perceive that for Nippers, brandy and water were altogether superfluous.

+

It was fortunate for me that, owing to its course--indigestion--the irritability and consequent nervousness of Nippers, were mainly observable in the morning, while in the afternoon he was comparatively mild. So that Turkey's paroxysms only coming on about twelve o'clock, I never had to do with their eccentricities at one time. Their fits relieved each other like guards. When Nippers' was on, Turkey's was off, and vice versa. This was a good natural arrangement under the circumstances.

+

Ginger Nut, the third on my list, was a lad some twelve years old. His father was a carman, ambitious of seeing his son on the bench instead of a cart, before he died. So he sent him to my office as a student at law, errand boy, and cleaner and sweeper, at the rate of one dollar a week. He had a little desk to himself, but he did not use it much. Upon inspection, the drawer exhibited a great array of the shells of various sorts of nuts. Indeed, to this quick-witted youth the whole noble science of the law was contained in a nut-shell. Not the least among the employments of Ginger Nut, as well as one which he discharged with the most alacrity, was his duty as cake and apple purveyor for Turkey and Nippers. Copying law papers being proverbially a dry, husky sort of business, my two scriveners were fain to moisten their mouths very often with Spitzenbergs to be had at the numerous stalls nigh the Custom House and Post Office. Also, they sent Ginger Nut very frequently for that peculiar cake--small, flat, round, and very spicy--after which he had been named by them. Of a cold morning when business was but dull, Turkey would gobble up scores of these cakes, as if they were mere wafers--indeed they sell them at the rate of six or eight for a penny--the scrape of his pen blending with the crunching of the crisp particles in his mouth. Of all the fiery afternoon blunders and flurried rashnesses of Turkey, was his once moistening a ginger-cake between his lips, and clapping it on to a mortgage for a seal. I came within an ace of dismissing him then. But he mollified me by making an oriental bow, and saying--"With submission, sir, it was generous of me to find you in stationery on my own account."

+

Now my original business--that of a conveyancer and title hunter, and drawer-up of recondite documents of all sorts--was considerably increased by receiving the master's office. There was now great work for scriveners. Not only must I push the clerks already with me, but I must have additional help. In answer to my advertisement, a motionless young man one morning, stood upon my office threshold, the door being open, for it was summer. I can see that figure now--pallidly neat, pitiably respectable, incurably forlorn! It was Bartleby.

+

After a few words touching his qualifications, I engaged him, glad to have among my corps of copyists a man of so singularly sedate an aspect, which I thought might operate beneficially upon the flighty temper of Turkey, and the fiery one of Nippers.

+

I should have stated before that ground glass folding-doors divided my premises into two parts, one of which was occupied by my scriveners, the other by myself. According to my humor I threw open these doors, or closed them. I resolved to assign Bartleby a corner by the folding-doors, but on my side of them, so as to have this quiet man within easy call, in case any trifling thing was to be done. I placed his desk close up to a small side window in that part of the room, a window which originally had afforded a lateral view of certain grimy back-yards and bricks, but which, owing to subsequent erections, commanded at present no view at all, though it gave some light. Within three feet of the panes was a wall, and the light came down from far above, between two lofty buildings, as from a very small opening in a dome. Still further to a satisfactory arrangement, I procured a high green folding screen, which might entirely isolate Bartleby from my sight, though not remove him from my voice. And thus, in a manner, privacy and society were conjoined.

+

At first Bartleby did an extraordinary quantity of writing. As if long famishingfor something to copy, he seemed to gorge himself on my documents. There was no pause for digestion. He ran a day and night line, copying by sun-light and by candle-light. I should have been quite delighted with his application, had be been cheerfully industrious. But he wrote on silently, palely, mechanically.

+

It is, of course, an indispensable part of a scrivener's business to verify the accuracy of his copy, word by word. Where there are two or more scriveners in an office, they assist each other in this examination, one reading from the copy, the other holding the original. It is a very dull, wearisome, and lethargic affair. I can readily imagine that to some sanguine temperaments it would be altogether intolerable. For example, I cannot credit that the mettlesome poet Byron would have contentedly sat down with Bartleby to examine a law document of, say five hundred pages, closely written in a crimpy hand.

+

Now and then, in the haste of business, it had been my habit to assist in comparing some brief document myself, calling Turkey or Nippers for this purpose. One object I had in placing Bartleby so handy to me behind the screen, was to avail myself of his services on such trivial occasions. It was on the third day, I think, of his being with me, and before any necessity had arisen for having his own writing examined, that, being much hurried to complete a small affair I had in hand, I abruptly called to Bartleby. In my haste and natural expectancy of instant compliance, I sat with my head bent over the original on my desk, and my right hand sideways, and somewhat nervously extended with the copy, so that immediately upon emerging from his retreat, Bartleby might snatch it and proceed to business without the least delay.

+

In this very attitude did I sit when I called to him, rapidly stating what it was I wanted him to do--namely, to examine a small paper with me. Imagine my surprise, nay, my consternation, when without moving from his privacy, Bartleby in a singularly mild, firm voice, replied,"I would prefer not to."

+

I sat awhile in perfect silence, rallying my stunned faculties. Immediately it occurred to me that my ears had deceived me, or Bartleby had entirely misunderstood my meaning. I repeated my request in the clearest tone I could assume. But in quite as clear a one came the previous reply, "I would prefer not to."

+

"Prefer not to," echoed I, rising in high excitement, and crossing the room with a stride, "What do you mean? Are you moon-struck? I want you to help me compare this sheet here--take it," and I thrust it towards him.

"I would prefer not to," said he.

-

I looked at him steadfastly. His face was leanly composed; his gray eye - dimly calm. Not a wrinkle of agitation rippled him. Had there been the - least uneasiness, anger, impatience or impertinence in his manner; in other - words, had there been any thing ordinarily human about him, doubtless I - should have violently dismissed him from the premises. But as it was, I - should have as soon thought of turning my pale plaster-of-paris bust of - Cicero out of doors. I stood gazing at him awhile, as he went on with his - own writing, and then reseated myself at my desk. This is very strange, - thought I. What had one best do? But my business hurried me. I concluded - to forget the matter for the present, reserving it for my future leisure. - So calling Nippers from the other room, the paper was speedily examined.

-

A few days after this, Bartleby concluded four lengthy documents, being - quadruplicates of a week's testimony taken before me in my High Court of - Chancery. It became necessary to examine them. It was an important suit, - and great accuracy was imperative. Having all things arranged I called - Turkey, Nippers and Ginger Nut from the next room, meaning to place the - four copies in the hands of my four clerks, while I should read from the - original. Accordingly Turkey, Nippers and Ginger Nut had taken their seats - in a row, each with his document in hand, when I called to Bartleby to - join this interesting group.

+

I looked at him steadfastly. His face was leanly composed; his gray eye dimly calm. Not a wrinkle of agitation rippled him. Had there been the least uneasiness, anger, impatience or impertinence in his manner; in other words, had there been any thing ordinarily human about him, doubtless I should have violently dismissed him from the premises. But as it was, I should have as soon thought of turning my pale plaster-of-paris bust of Cicero out of doors. I stood gazing at him awhile, as he went on with his own writing, and then reseated myself at my desk. This is very strange, thought I. What had one best do? But my business hurried me. I concluded to forget the matter for the present, reserving it for my future leisure. So calling Nippers from the other room, the paper was speedily examined.

+

A few days after this, Bartleby concluded four lengthy documents, being quadruplicates of a week's testimony taken before me in my High Court of Chancery. It became necessary to examine them. It was an important suit, and great accuracy was imperative. Having all things arranged I called Turkey, Nippers and Ginger Nut from the next room, meaning to place the four copies in the hands of my four clerks, while I should read from the original. Accordingly Turkey, Nippers and Ginger Nut had taken their seats in a row, each with his document in hand, when I called to Bartleby to join this interesting group.

"Bartleby! quick, I am waiting."

-

I heard a low scrape of his chair legs on the unscraped floor, and soon - he appeared standing at the entrance of his hermitage.

+

I heard a low scrape of his chair legs on the unscraped floor, and soon he appeared standing at the entrance of his hermitage.

"What is wanted?" said he mildly.

-

"The copies, the copies," said I hurriedly. "We are going to examine them. - There"--and I held towards him the fourth quadruplicate.

+

"The copies, the copies," said I hurriedly. "We are going to examine them. There"--and I held towards him the fourth quadruplicate.

"I would prefer not to," he said, and gently disappeared behind the screen.

-

For a few moments I was turned into a pillar of salt, standing at the - head of my seated column of clerks. Recovering myself, I advanced towards - the screen, and demanded the reason for such extraordinary conduct.

+

For a few moments I was turned into a pillar of salt, standing at the head of my seated column of clerks. Recovering myself, I advanced towards the screen, and demanded the reason for such extraordinary conduct.

"Why do you refuse?"

"I would prefer not to."

-

With any other man I should have flown outright into a dreadful passion, - scorned all further words, and thrust him ignominiously from my presence. - But there was something about Bartleby that not only strangely disarmed - me, but in a wonderful manner touched and disconcerted me. I began to reason - with him.

-

"These are your own copies we are about to examine. It is labor saving - to you, because one examination will answer for your four papers. It is - common usage. Every copyist is bound to help examine his copy. Is it not - so? Will you not speak? Answer!"

-

"I prefer not to," he replied in a flute-like tone. It seemed to me that - while I had been addressing him, he carefully revolved every statement - that I made; fully comprehended the meaning; could not gainsay the irresistible - conclusion; but, at the same time, some paramount consideration prevailed - with him to reply as he did.

-

"You are decided, then, not to comply with my request--a request made - according to common usage and common sense?"

-

He briefly gave me to understand that on that point my judgment was sound. - Yes: his decision was irreversible.

-

It is not seldom the case that when a man is browbeaten in some unprecedented - and violently unreasonable way, he begins to stagger in his own plainest - faith. He begins, as it were, vaguely to surmise that, wonderful as it - may be, all the justice and all the reason is on the other side. Accordingly, - if any disinterested persons are present, he turns to them for some reinforcement - for his own faltering mind.

+

With any other man I should have flown outright into a dreadful passion, scorned all further words, and thrust him ignominiously from my presence. But there was something about Bartleby that not only strangely disarmed me, but in a wonderful manner touched and disconcerted me. I began to reason with him.

+

"These are your own copies we are about to examine. It is labor saving to you, because one examination will answer for your four papers. It is common usage. Every copyist is bound to help examine his copy. Is it not so? Will you not speak? Answer!"

+

"I prefer not to," he replied in a flute-like tone. It seemed to me that while I had been addressing him, he carefully revolved every statement that I made; fully comprehended the meaning; could not gainsay the irresistible conclusion; but, at the same time, some paramount consideration prevailed with him to reply as he did.

+

"You are decided, then, not to comply with my request--a request made according to common usage and common sense?"

+

He briefly gave me to understand that on that point my judgment was sound. Yes: his decision was irreversible.

+

It is not seldom the case that when a man is browbeaten in some unprecedented and violently unreasonable way, he begins to stagger in his own plainest faith. He begins, as it were, vaguely to surmise that, wonderful as it may be, all the justice and all the reason is on the other side. Accordingly, if any disinterested persons are present, he turns to them for some reinforcement for his own faltering mind.

"Turkey," said I, "what do you think of this? Am I not right?"

-

"With submission, sir," said Turkey, with his blandest tone, "I think - that you are."

+

"With submission, sir," said Turkey, with his blandest tone, "I think that you are."

"Nippers," said I, "what do you think of it?"

"I think I should kick him out of the office."

-

(The reader of nice perceptions will here perceive that, it being morning, - Turkey's answer is couched in polite and tranquil terms, but Nippers replies - in ill-tempered ones. Or, to repeat a previous sentence, Nipper's ugly - mood was on duty, and Turkey's off.)

-

"Ginger Nut," said I, willing to enlist the smallest suffrage in my behalf, - "what do you think of it?"

-

"I think, sir, he's a little luny," replied Ginger Nut, with a - grin.

-

"You hear what they say," said I, turning towards the screen, "come forth - and do your duty."

-

But he vouchsafed no reply. I pondered a moment in sore perplexity. But - once more business hurried me. I determined again to postpone the consideration - of this dilemma to my future leisure. With a little trouble we made out - to examine the papers without Bartleby, though at every page or two, Turkey - deferentially dropped his opinion that this proceeding was quite out of - the common; while Nippers, twitching in his chair with a dyspeptic nervousness, - ground out between his set teeth occasional hissing maledictions against - the stubborn oaf behind the screen. And for his (Nipper's) part, this was - the first and the last time he would do another man's business without - pay.

-

Meanwhile Bartleby sat in his hermitage, oblivious to every thing but - his own peculiar business there.

-

Some days passed, the scrivener being employed upon another lengthy work. - His late remarkable conduct led me to regard his way narrowly. I observed - that he never went to dinner; indeed that he never went any where. As yet - I had never of my personal knowledge known him to be outside of my office. - He was a perpetual sentry in the corner. At about eleven o'clock though, - in the morning, I noticed that Ginger Nut would advance toward the opening - in Bartleby's screen, as if silently beckoned thither by a gesture invisible - to me where I sat. That boy would then leave the office jingling a few - pence, and reappear with a handful of ginger-nuts which he delivered in - the hermitage, receiving two of the cakes for his trouble.

-

He lives, then, on ginger-nuts, thought I; never eats a dinner, properly - speaking; he must be a vegetarian then, but no; he never eats even vegetables, - he eats nothing but ginger-nuts. My mind then ran on in reveries concerning - the probable effects upon the human constitution of living entirely on - ginger-nuts. Ginger-nuts are so called because they contain ginger as one - of their peculiar constituents, and the final flavoring one. Now what was - ginger? A hot, spicy thing. Was Bartleby hot and spicy? Not at all. Ginger, - then, had no effect upon Bartleby. Probably he preferred it should have - none.

-

Nothing so aggravates an earnest person as a passive resistance. If the - individual so resisted be of a not inhumane temper, and the resisting one - perfectly harmless in his passivity; then, in the better moods of the former, - he will endeavor charitably to construe to his imagination what proves - impossible to be solved by his judgment. Even so, for the most part, I - regarded Bartleby and his ways. Poor fellow! thought I, he means no mischief; - it is plain he intends no insolence; his aspect sufficiently evinces that - his eccentricities are involuntary. He is useful to me. I can get along - with him. If I turn him away, the chances are he will fall in with some - less indulgent employer, and then he will be rudely treated, and perhaps - driven forth miserably to starve. Yes. Here I can cheaply purchase a delicious - self-approval. To befriend Bartleby; to humor him in his strange willfulness, - will cost me little or nothing, while I lay up in my soul what will eventually - prove a sweet morsel for my conscience. But this mood was not invariable - with me. The passiveness of Bartleby sometimes irritated me. I felt strangely - goaded on to encounter him in new opposition, to elicit some angry spark - from him answerable to my own. But indeed I might as well have essayed - to strike fire with my knuckles against a bit of Windsor soap. But one - afternoon the evil impulse in me mastered me, and the following little - scene ensued:

-

"Bartleby," said I, "when those papers are all copied, I will compare - them with you."

+

(The reader of nice perceptions will here perceive that, it being morning, Turkey's answer is couched in polite and tranquil terms, but Nippers replies in ill-tempered ones. Or, to repeat a previous sentence, Nipper's ugly mood was on duty, and Turkey's off.)

+

"Ginger Nut," said I, willing to enlist the smallest suffrage in my behalf, "what do you think of it?"

+

"I think, sir, he's a little luny," replied Ginger Nut, with a grin.

+

"You hear what they say," said I, turning towards the screen, "come forth and do your duty."

+

But he vouchsafed no reply. I pondered a moment in sore perplexity. But once more business hurried me. I determined again to postpone the consideration of this dilemma to my future leisure. With a little trouble we made out to examine the papers without Bartleby, though at every page or two, Turkey deferentially dropped his opinion that this proceeding was quite out of the common; while Nippers, twitching in his chair with a dyspeptic nervousness, ground out between his set teeth occasional hissing maledictions against the stubborn oaf behind the screen. And for his (Nipper's) part, this was the first and the last time he would do another man's business without pay.

+

Meanwhile Bartleby sat in his hermitage, oblivious to every thing but his own peculiar business there.

+

Some days passed, the scrivener being employed upon another lengthy work. His late remarkable conduct led me to regard his way narrowly. I observed that he never went to dinner; indeed that he never went any where. As yet I had never of my personal knowledge known him to be outside of my office. He was a perpetual sentry in the corner. At about eleven o'clock though, in the morning, I noticed that Ginger Nut would advance toward the opening in Bartleby's screen, as if silently beckoned thither by a gesture invisible to me where I sat. That boy would then leave the office jingling a few pence, and reappear with a handful of ginger-nuts which he delivered in the hermitage, receiving two of the cakes for his trouble.

+

He lives, then, on ginger-nuts, thought I; never eats a dinner, properly speaking; he must be a vegetarian then, but no; he never eats even vegetables, he eats nothing but ginger-nuts. My mind then ran on in reveries concerning the probable effects upon the human constitution of living entirely on ginger-nuts. Ginger-nuts are so called because they contain ginger as one of their peculiar constituents, and the final flavoring one. Now what was ginger? A hot, spicy thing. Was Bartleby hot and spicy? Not at all. Ginger, then, had no effect upon Bartleby. Probably he preferred it should have none.

+

Nothing so aggravates an earnest person as a passive resistance. If the individual so resisted be of a not inhumane temper, and the resisting one perfectly harmless in his passivity; then, in the better moods of the former, he will endeavor charitably to construe to his imagination what proves impossible to be solved by his judgment. Even so, for the most part, I regarded Bartleby and his ways. Poor fellow! thought I, he means no mischief; it is plain he intends no insolence; his aspect sufficiently evinces that his eccentricities are involuntary. He is useful to me. I can get along with him. If I turn him away, the chances are he will fall in with some less indulgent employer, and then he will be rudely treated, and perhaps driven forth miserably to starve. Yes. Here I can cheaply purchase a delicious self-approval. To befriend Bartleby; to humor him in his strange willfulness, will cost me little or nothing, while I lay up in my soul what will eventually prove a sweet morsel for my conscience. But this mood was not invariable with me. The passiveness of Bartleby sometimes irritated me. I felt strangely goaded on to encounter him in new opposition, to elicit some angry spark from him answerable to my own. But indeed I might as well have essayed to strike fire with my knuckles against a bit of Windsor soap. But one afternoon the evil impulse in me mastered me, and the following little scene ensued:

+

"Bartleby," said I, "when those papers are all copied, I will compare them with you."

"I would prefer not to."

"How? Surely you do not mean to persist in that mulish vagary?"

No answer.

-

I threw open the folding-doors near by, and turning upon Turkey and Nippers, - exclaimed in an excited manner--

-

"He says, a second time, he won't examine his papers. What do you think - of it, Turkey?"

-

It was afternoon, be it remembered. Turkey sat glowing like a brass boiler, - his bald head steaming, his hands reeling among his blotted papers.

-

"Think of it?" roared Turkey; "I think I'll just step behind his screen, - and black his eyes for him!"

-

So saying, Turkey rose to his feet and threw his arms into a pugilistic - position. He was hurrying away to make good his promise, when I detained - him, alarmed at the effect of incautiously rousing Turkey's combativeness - after dinner.

-

"Sit down, Turkey," said I, "and hear what Nippers has to say. What do - you think of it, Nippers? Would I not be justified in immediately dismissing - Bartleby?"

-

"Excuse me, that is for you to decide, sir. I think his conduct quite - unusual, and indeed unjust, as regards Turkey and myself. But it may only - be a passing whim."

-

"Ah," exclaimed I, "you have strangely changed your mind then--you speak - very gently of him now."

-

"All beer," cried Turkey; "gentleness is effects of beer--Nippers and - I dined together to-day. You see how gentle I am, sir. Shall I go and black - his eyes?"

-

"You refer to Bartleby, I suppose. No, not to-day, Turkey," I replied; - "pray, put up your fists."

-

I closed the doors, and again advanced towards Bartleby. I felt additional - incentives tempting me to my fate. I burned to be rebelled against again. - I remembered that Bartleby never left the office.

-

"Bartleby," said I, "Ginger Nut is away; just step round to the Post Office, - won't you? (it was but a three minutes walk,) and see if there is any thing - for me."

+

I threw open the folding-doors near by, and turning upon Turkey and Nippers, exclaimed in an excited manner--

+

"He says, a second time, he won't examine his papers. What do you think of it, Turkey?"

+

It was afternoon, be it remembered. Turkey sat glowing like a brass boiler, his bald head steaming, his hands reeling among his blotted papers.

+

"Think of it?" roared Turkey; "I think I'll just step behind his screen, and black his eyes for him!"

+

So saying, Turkey rose to his feet and threw his arms into a pugilistic position. He was hurrying away to make good his promise, when I detained him, alarmed at the effect of incautiously rousing Turkey's combativeness after dinner.

+

"Sit down, Turkey," said I, "and hear what Nippers has to say. What do you think of it, Nippers? Would I not be justified in immediately dismissing Bartleby?"

+

"Excuse me, that is for you to decide, sir. I think his conduct quite unusual, and indeed unjust, as regards Turkey and myself. But it may only be a passing whim."

+

"Ah," exclaimed I, "you have strangely changed your mind then--you speak very gently of him now."

+

"All beer," cried Turkey; "gentleness is effects of beer--Nippers and I dined together to-day. You see how gentle I am, sir. Shall I go and black his eyes?"

+

"You refer to Bartleby, I suppose. No, not to-day, Turkey," I replied; "pray, put up your fists."

+

I closed the doors, and again advanced towards Bartleby. I felt additional incentives tempting me to my fate. I burned to be rebelled against again. I remembered that Bartleby never left the office.

+

"Bartleby," said I, "Ginger Nut is away; just step round to the Post Office, won't you? (it was but a three minutes walk,) and see if there is any thing for me."

"I would prefer not to."

"You will not?"

"I prefer not."

-

I staggered to my desk, and sat there in a deep study. My blind inveteracy - returned. Was there any other thing in which I could procure myself to - be ignominiously repulsed by this lean, penniless with?--my hired clerk? - What added thing is there, perfectly reasonable, that he will be sure to - refuse to do?

+

I staggered to my desk, and sat there in a deep study. My blind inveteracy returned. Was there any other thing in which I could procure myself to be ignominiously repulsed by this lean, penniless with?--my hired clerk? What added thing is there, perfectly reasonable, that he will be sure to refuse to do?

"Bartleby!"

No answer.

"Bartleby," in a louder tone.

No answer.

"Bartleby," I roared.

-

Like a very ghost, agreeably to the laws of magical invocation, at the - third summons, he appeared at the entrance of his hermitage.

+

Like a very ghost, agreeably to the laws of magical invocation, at the third summons, he appeared at the entrance of his hermitage.

"Go to the next room, and tell Nippers to come to me."

"I prefer not to," he respectfully and slowly said, and mildly disappeared.

-

"Very good, Bartleby," said I, in a quiet sort of serenely severe self-possessed - tone, intimating the unalterable purpose of some terrible retribution very - close at hand. At the moment I half intended something of the kind. But - upon the whole, as it was drawing towards my dinner-hour, I thought it - best to put on my hat and walk home for the day, suffering much from perplexity - and distress of mind.

-

Shall I acknowledge it? The conclusion of this whole business was that - it soon became a fixed fact of my chambers, that a pale young scrivener, - by the name of Bartleby, had a desk there; that he copied for me at the - usual rate of four cents a folio (one hundred words); but he was permanently - exempt from examining the work done by him, that duty being transferred - to Turkey and Nippers, one of compliment doubtless to their superior acuteness; - moreover, said Bartleby was never on any account to be dispatched on the - most trivial errand of any sort; and that even if entreated to take upon - him such a matter, it was generally understood that he would prefer not - to--in other words, that he would refuse point-blank.

-

32 As days passed on, I became considerably reconciled to Bartleby. His - steadiness, his freedom from all dissipation, his incessant industry (except - when he chose to throw himself into a standing revery behind his screen), - his great stillness, his unalterableness of demeanor under all circumstances, - made him a valuable acquisition. One prime thing was this,--he was always - there;--first in the morning, continually through the day, and the last - at night. I had a singular confidence in his honesty. I felt my most precious - papers perfectly safe in his hands. Sometimes to be sure I could not, for - the very soul of me, avoid falling into sudden spasmodic passions with - him. For it was exceeding difficult to bear in mind all the time those - strange peculiarities, privileges, and unheard of exemptions, forming the - tacit stipulations on Bartleby's part under which he remained in my office. - Now and then, in the eagerness of dispatching pressing business, I would - inadvertently summon Bartleby, in a short, rapid tone, to put his finger, - say, on the incipient tie of a bit of red tape with which I was about compressing - some papers. Of course, from behind the screen the usual answer, "I prefer - not to," was sure to come; and then, how could a human creature with the - common infirmities of our nature, refrain from bitterly exclaiming upon - such perverseness--such unreasonableness. However, every added repulse - of this sort which I received only tended to lessen the probability of - my repeating the inadvertence.

-

Here is must be said, that according to the custom of most legal gentlemen - occupying chambers in densely-populated law buildings, there were several - keys to my door. One was kept by a woman residing in the attic, which person - weekly scrubbed and daily swept and dusted my apartments. Another was kept - by Turkey for convenience sake. The third I sometimes carried in my own - pocket. The fourth I knew not who had.

-

Now, one Sunday morning I happened to go to Trinity Church, to hear a - celebrated preacher, and finding myself rather early on the ground, I thought - I would walk round to my chambers for a while. Luckily I had my key with - me; but upon applying it to the lock, I found it resisted by something - inserted from the inside. Quite surprised, I called out; when to my consternation - a key was turned from within; and thrusting his lean visage at me, and - holding the door ajar, the apparition of Bartleby appeared, in his shirt - sleeves, and otherwise in a strangely tattered dishabille, saying quietly - that he was sorry, but he was deeply engaged just then, and--preferred - not admitting me at present. In a brief word or two, he moreover added, - that perhaps I had better walk round the block two or three times, and - by that time he would probably have concluded his affairs. Now, the utterly - unsurmised appearance of Bartleby, tenanting my law-chambers of a Sunday - morning, with his cadaverously gentlemanly nonchalance, yet withal firm - and self-possessed, had such a strange effect upon me, that incontinently - I slunk away from my own door, and did as desired. But not without sundry - twinges of impotent rebellion against the mild effrontery of this unaccountable - scrivener. Indeed, it was his wonderful mildness chiefly, which not only - disarmed me, but unmanned me, as it were. For I consider that one, for - the time, is a sort of unmanned when he tranquilly permits his hired clerk - to dictate to him, and order him away from his own premises. Furthermore, - I was full of uneasiness as to what Bartleby could possibly be doing in - my office in his shirt sleeves, and in an otherwise dismantled condition - of a Sunday morning. Was any thing amiss going on? Nay, that was out of - the question. It was not to be thought of for a moment that Bartleby was - an immoral person. But what could he be doing there?--copying? Nay again, - whatever might be his eccentricities, Bartleby was an eminently decorous - person. He would be the last man to sit down to his desk in any state approaching - to nudity. Besides, it was Sunday; and there was something about Bartleby - that forbade the supposition that we would by any secular occupation violate - the proprieties of the day.

-

Nevertheless, my mind was not pacified; and full of a restless curiosity, - at last I returned to the door. Without hindrance I inserted my key, opened - it, and entered. Bartleby was not to be seen. I looked round anxiously, - peeped behind his screen; but it was very plain that he was gone. Upon - more closely examining the place, I surmised that for an indefinite period - Bartleby must have ate, dressed, and slept in my office, and that too without - plate, mirror, or bed. The cushioned seat of a rickety old sofa in one - corner bore t faint impress of a lean, reclining form. Rolled away under - his desk, I found a blanket; under the empty grate, a blacking box and - brush; on a chair, a tin basin, with soap and a ragged towel; in a newspaper - a few crumbs of ginger-nuts and a morsel of cheese. Yet, thought I, it - is evident enough that Bartleby has been making his home here, keeping - bachelor's hallall by himself. Immediately then the thought came sweeping - across me, What miserable friendlessness and loneliness are here revealed! - His poverty is great; but his solitude, how horrible! Think of it. Of a - Sunday, Wall-street is deserted as Petra; and every night of every day - it is an emptiness. This building too, which of week-days hums with industry - and life, at nightfall echoes with sheer vacancy, and all through Sunday - is forlorn. And here Bartleby makes his home; sole spectator of a solitude - which he has seen all populous--a sort of innocent and transformed Marius - brooding among the ruins of Carthage!

-

For the first time in my life a feeling of overpowering stinging melancholy - seized me. Before, I had never experienced aught but a not-unpleasing sadness. - The bond of a common humanity now drew me irresistibly to gloom. A fraternal - melancholy! For both I and Bartleby were sons of Adam. I remembered the - bright silks and sparkling faces I had seen that day in gala trim, swan-like - sailing down the Mississippi of Broadway; and I contrasted them with the - pallid copyist, and thought to myself, Ah, happiness courts the light, - so we deem the world is gay; but misery hides aloof, so we deem that misery - there is none. These sad fancyings-- chimeras, doubtless, of a sick and - silly brain--led on to other and more special thoughts, concerning the - eccentricities of Bartleby. Presentiments of strange discoveries hovered - round me. The scrivener's pale form appeared to me laid out, among uncaring - strangers, in its shivering winding sheet.

-

Suddenly I was attracted by Bartleby's closed desk, the key in open sight - left in the lock.

-

I mean no mischief, seek the gratification of no heartless curiosity, - thought I; besides, the desk is mine, and its contents too, so I will make - bold to look within. Every thing was methodically arranged, the papers - smoothly placed. The pigeon holes were deep, and removing the files of - documents, I groped into their recesses. Presently I felt something there, - and dragged it out. It was an old bandanna handkerchief, heavy and knotted. - I opened it, and saw it was a savings' bank.

-

I now recalled all the quiet mysteries which I had noted in the man. I - remembered that he never spoke but to answer; that though at intervals - he had considerable time to himself, yet I had never seen him reading--no, - not even a newspaper; that for long periods he would stand looking out, - at his pale window behind the screen, upon the dead brick wall; I was quite - sure he never visited any refectory or eating house; while his pale face - clearly indicated that he never drank beer like Turkey, or tea and coffee - even, like other men; that he never went any where in particular that I - could learn; never went out for a walk, unless indeed that was the case - at present; that he had declined telling who he was, or whence he came, - or whether he had any relatives in the world; that though so thin and pale, - he never complained of ill health. And more than all, I remembered a certain - unconscious air of pallid--how shall I call it?--of pallid haughtiness, - say, or rather an austere reserve about him, which had positively awed - me into my tame compliance with his eccentricities, when I had feared to - ask him to do the slightest incidental thing for me, even though I might - know, from his long-continued motionlessness, that behind his screen he - must be standing in one of those dead-wall reveries of his.

-

Revolving all these things, and coupling them with the recently discovered - fact that he made my office his constant abiding place and home, and not - forgetful of his morbid moodiness; revolving all these things, a prudential - feeling began to steal over me. My first emotions had been those of pure - melancholy and sincerest pity; but just in proportion as the forlornness - of Bartleby grew and grew to my imagination, did that same melancholy merge - into fear, that pity into repulsion. So true it is, and so terrible too, - that up to a certain point the thought or sight of misery enlists our best - affections; but, in certain special cases, beyond that point it does not. - They err who would assert that invariably this is owing to the inherent - selfishness of the human heart. It rather proceeds from a certain hopelessness - of remedying excessive and organic ill. To a sensitive being, pity is not - seldom pain. And when at last it is perceived that such pity cannot lead - to effectual succor, common sense bids the soul be rid of it. What I saw - that morning persuaded me that the scrivener was the victim of innate and - incurable disorder. I might give alms to his body; but his body did not - pain him; it was his soul that suffered, and his soul I could not reach.

-

I did not accomplish the purpose of going to Trinity Church that morning. - Somehow, the things I had seen disqualified me for the time from church-going. - I walked homeward, thinking what I would do with Bartleby. Finally, I resolvedupon - this;--I would put certain calm questions to him the next morning, touching - his history, &c., and if he declined to answer then openly and reservedly - (and I supposed he would prefer not), then to give him a twenty dollar - bill over and above whatever I might owe him, and tell him his services - were no longer required; but that if in any other way I could assist him, - I would be happy to do so, especially if he desired to return to his native - place, wherever that might be, I would willingly help to defray the expenses. - Moreover, if after reaching home, he found himself at any time in want - of aid, a letter from him would be sure of a reply.

+

"Very good, Bartleby," said I, in a quiet sort of serenely severe self-possessed tone, intimating the unalterable purpose of some terrible retribution very close at hand. At the moment I half intended something of the kind. But upon the whole, as it was drawing towards my dinner-hour, I thought it best to put on my hat and walk home for the day, suffering much from perplexity and distress of mind.

+

Shall I acknowledge it? The conclusion of this whole business was that it soon became a fixed fact of my chambers, that a pale young scrivener, by the name of Bartleby, had a desk there; that he copied for me at the usual rate of four cents a folio (one hundred words); but he was permanently exempt from examining the work done by him, that duty being transferred to Turkey and Nippers, one of compliment doubtless to their superior acuteness; moreover, said Bartleby was never on any account to be dispatched on the most trivial errand of any sort; and that even if entreated to take upon him such a matter, it was generally understood that he would prefer not to--in other words, that he would refuse point-blank.

+

32 As days passed on, I became considerably reconciled to Bartleby. His steadiness, his freedom from all dissipation, his incessant industry (except when he chose to throw himself into a standing revery behind his screen), his great stillness, his unalterableness of demeanor under all circumstances, made him a valuable acquisition. One prime thing was this,--he was always there;--first in the morning, continually through the day, and the last at night. I had a singular confidence in his honesty. I felt my most precious papers perfectly safe in his hands. Sometimes to be sure I could not, for the very soul of me, avoid falling into sudden spasmodic passions with him. For it was exceeding difficult to bear in mind all the time those strange peculiarities, privileges, and unheard of exemptions, forming the tacit stipulations on Bartleby's part under which he remained in my office. Now and then, in the eagerness of dispatching pressing business, I would inadvertently summon Bartleby, in a short, rapid tone, to put his finger, say, on the incipient tie of a bit of red tape with which I was about compressing some papers. Of course, from behind the screen the usual answer, "I prefer not to," was sure to come; and then, how could a human creature with the common infirmities of our nature, refrain from bitterly exclaiming upon such perverseness--such unreasonableness. However, every added repulse of this sort which I received only tended to lessen the probability of my repeating the inadvertence.

+

Here is must be said, that according to the custom of most legal gentlemen occupying chambers in densely-populated law buildings, there were several keys to my door. One was kept by a woman residing in the attic, which person weekly scrubbed and daily swept and dusted my apartments. Another was kept by Turkey for convenience sake. The third I sometimes carried in my own pocket. The fourth I knew not who had.

+

Now, one Sunday morning I happened to go to Trinity Church, to hear a celebrated preacher, and finding myself rather early on the ground, I thought I would walk round to my chambers for a while. Luckily I had my key with me; but upon applying it to the lock, I found it resisted by something inserted from the inside. Quite surprised, I called out; when to my consternation a key was turned from within; and thrusting his lean visage at me, and holding the door ajar, the apparition of Bartleby appeared, in his shirt sleeves, and otherwise in a strangely tattered dishabille, saying quietly that he was sorry, but he was deeply engaged just then, and--preferred not admitting me at present. In a brief word or two, he moreover added, that perhaps I had better walk round the block two or three times, and by that time he would probably have concluded his affairs. Now, the utterly unsurmised appearance of Bartleby, tenanting my law-chambers of a Sunday morning, with his cadaverously gentlemanly nonchalance, yet withal firm and self-possessed, had such a strange effect upon me, that incontinently I slunk away from my own door, and did as desired. But not without sundry twinges of impotent rebellion against the mild effrontery of this unaccountable scrivener. Indeed, it was his wonderful mildness chiefly, which not only disarmed me, but unmanned me, as it were. For I consider that one, for the time, is a sort of unmanned when he tranquilly permits his hired clerk to dictate to him, and order him away from his own premises. Furthermore, I was full of uneasiness as to what Bartleby could possibly be doing in my office in his shirt sleeves, and in an otherwise dismantled condition of a Sunday morning. Was any thing amiss going on? Nay, that was out of the question. It was not to be thought of for a moment that Bartleby was an immoral person. But what could he be doing there?--copying? Nay again, whatever might be his eccentricities, Bartleby was an eminently decorous person. He would be the last man to sit down to his desk in any state approaching to nudity. Besides, it was Sunday; and there was something about Bartleby that forbade the supposition that we would by any secular occupation violate the proprieties of the day.

+

Nevertheless, my mind was not pacified; and full of a restless curiosity, at last I returned to the door. Without hindrance I inserted my key, opened it, and entered. Bartleby was not to be seen. I looked round anxiously, peeped behind his screen; but it was very plain that he was gone. Upon more closely examining the place, I surmised that for an indefinite period Bartleby must have ate, dressed, and slept in my office, and that too without plate, mirror, or bed. The cushioned seat of a rickety old sofa in one corner bore t faint impress of a lean, reclining form. Rolled away under his desk, I found a blanket; under the empty grate, a blacking box and brush; on a chair, a tin basin, with soap and a ragged towel; in a newspaper a few crumbs of ginger-nuts and a morsel of cheese. Yet, thought I, it is evident enough that Bartleby has been making his home here, keeping bachelor's hallall by himself. Immediately then the thought came sweeping across me, What miserable friendlessness and loneliness are here revealed! His poverty is great; but his solitude, how horrible! Think of it. Of a Sunday, Wall-street is deserted as Petra; and every night of every day it is an emptiness. This building too, which of week-days hums with industry and life, at nightfall echoes with sheer vacancy, and all through Sunday is forlorn. And here Bartleby makes his home; sole spectator of a solitude which he has seen all populous--a sort of innocent and transformed Marius brooding among the ruins of Carthage!

+

For the first time in my life a feeling of overpowering stinging melancholy seized me. Before, I had never experienced aught but a not-unpleasing sadness. The bond of a common humanity now drew me irresistibly to gloom. A fraternal melancholy! For both I and Bartleby were sons of Adam. I remembered the bright silks and sparkling faces I had seen that day in gala trim, swan-like sailing down the Mississippi of Broadway; and I contrasted them with the pallid copyist, and thought to myself, Ah, happiness courts the light, so we deem the world is gay; but misery hides aloof, so we deem that misery there is none. These sad fancyings-- chimeras, doubtless, of a sick and silly brain--led on to other and more special thoughts, concerning the eccentricities of Bartleby. Presentiments of strange discoveries hovered round me. The scrivener's pale form appeared to me laid out, among uncaring strangers, in its shivering winding sheet.

+

Suddenly I was attracted by Bartleby's closed desk, the key in open sight left in the lock.

+

I mean no mischief, seek the gratification of no heartless curiosity, thought I; besides, the desk is mine, and its contents too, so I will make bold to look within. Every thing was methodically arranged, the papers smoothly placed. The pigeon holes were deep, and removing the files of documents, I groped into their recesses. Presently I felt something there, and dragged it out. It was an old bandanna handkerchief, heavy and knotted. I opened it, and saw it was a savings' bank.

+

I now recalled all the quiet mysteries which I had noted in the man. I remembered that he never spoke but to answer; that though at intervals he had considerable time to himself, yet I had never seen him reading--no, not even a newspaper; that for long periods he would stand looking out, at his pale window behind the screen, upon the dead brick wall; I was quite sure he never visited any refectory or eating house; while his pale face clearly indicated that he never drank beer like Turkey, or tea and coffee even, like other men; that he never went any where in particular that I could learn; never went out for a walk, unless indeed that was the case at present; that he had declined telling who he was, or whence he came, or whether he had any relatives in the world; that though so thin and pale, he never complained of ill health. And more than all, I remembered a certain unconscious air of pallid--how shall I call it?--of pallid haughtiness, say, or rather an austere reserve about him, which had positively awed me into my tame compliance with his eccentricities, when I had feared to ask him to do the slightest incidental thing for me, even though I might know, from his long-continued motionlessness, that behind his screen he must be standing in one of those dead-wall reveries of his.

+

Revolving all these things, and coupling them with the recently discovered fact that he made my office his constant abiding place and home, and not forgetful of his morbid moodiness; revolving all these things, a prudential feeling began to steal over me. My first emotions had been those of pure melancholy and sincerest pity; but just in proportion as the forlornness of Bartleby grew and grew to my imagination, did that same melancholy merge into fear, that pity into repulsion. So true it is, and so terrible too, that up to a certain point the thought or sight of misery enlists our best affections; but, in certain special cases, beyond that point it does not. They err who would assert that invariably this is owing to the inherent selfishness of the human heart. It rather proceeds from a certain hopelessness of remedying excessive and organic ill. To a sensitive being, pity is not seldom pain. And when at last it is perceived that such pity cannot lead to effectual succor, common sense bids the soul be rid of it. What I saw that morning persuaded me that the scrivener was the victim of innate and incurable disorder. I might give alms to his body; but his body did not pain him; it was his soul that suffered, and his soul I could not reach.

+

I did not accomplish the purpose of going to Trinity Church that morning. Somehow, the things I had seen disqualified me for the time from church-going. I walked homeward, thinking what I would do with Bartleby. Finally, I resolvedupon this;--I would put certain calm questions to him the next morning, touching his history, &c., and if he declined to answer then openly and reservedly (and I supposed he would prefer not), then to give him a twenty dollar bill over and above whatever I might owe him, and tell him his services were no longer required; but that if in any other way I could assist him, I would be happy to do so, especially if he desired to return to his native place, wherever that might be, I would willingly help to defray the expenses. Moreover, if after reaching home, he found himself at any time in want of aid, a letter from him would be sure of a reply.

The next morning came.

"Bartleby," said I, gently calling to him behind the screen.

No reply.

-

"Bartleby," said I, in a still gentler tone, "come here; I am not going - to ask you to do any thing you would prefer not to do--I simply wish to - speak to you."

+

"Bartleby," said I, in a still gentler tone, "come here; I am not going to ask you to do any thing you would prefer not to do--I simply wish to speak to you."

Upon this he noiselessly slid into view.

-

"Will you tell me, Bartleby, where you were born?"

+

"Will you tell me, Bartleby, where you were born?"

"I would prefer not to."

"Will you tell me anything about yourself?"

"I would prefer not to."

-

"But what reasonable objection can you have to speak to me? I feel friendly - towards you."

-

He did not look at me while I spoke, but kept his glance fixed upon my - bust of Cicero, which as I then sat, was directly behind me, some six inches - above my head. "What is your answer, Bartleby?" said I, after waiting a - considerable time for a reply, during which his countenance remained immovable, - only there was the faintest conceivable tremor of the white attenuated - mouth.

-

"At present I prefer to give no answer," he said, and retired into his - hermitage.

-

It was rather weak in me I confess, but his manner on this occasion nettled - me. Not only did there seem to lurk in it a certain disdain, but his perverseness - seemed ungrateful, considering the undeniable good usage and indulgence - he had received from me.

-

Again I sat ruminating what I should do.Mortified as I was at his behavior, - and resolved as I had been to dismiss him when I entered my office, nevertheless - I strangely felt something superstitious knocking at my heart, and forbidding - me to carry out my purpose, and denouncing me for a villain if I dared - to breathe one bitter word against this forlornest of mankind. At last, - familiarly drawing my chair behind his screen, I sat down and said: "Bartleby, - never mind then about revealing your history; but let me entreat you, as - a friend, to comply as far as may be with the usages of this office. Say - now you will help to examine papers tomorrow or next day: in short, say - now that in a day or two you will begin to be a little reasonable:--say - so, Bartleby."

-

"At present I would prefer not to be a little reasonable was his idly - cadaverous reply.,"

-

Just then the folding-doors opened, and Nippers approached. He seemed - suffering from an unusually bad night's rest, induced by severer indigestion - than common. He overheard those final words of Bartleby.

-

"Prefer not, eh?" gritted Nippers--"I'd prefer him, if I were - you, sir," addressing me--"I'd prefer him; I'd give him preferences, - the stubborn mule! What is it, sir, pray, that he prefers not to do - now?"

+

"But what reasonable objection can you have to speak to me? I feel friendly towards you."

+

He did not look at me while I spoke, but kept his glance fixed upon my bust of Cicero, which as I then sat, was directly behind me, some six inches above my head. "What is your answer, Bartleby?" said I, after waiting a considerable time for a reply, during which his countenance remained immovable, only there was the faintest conceivable tremor of the white attenuated mouth.

+

"At present I prefer to give no answer," he said, and retired into his hermitage.

+

It was rather weak in me I confess, but his manner on this occasion nettled me. Not only did there seem to lurk in it a certain disdain, but his perverseness seemed ungrateful, considering the undeniable good usage and indulgence he had received from me.

+

Again I sat ruminating what I should do.Mortified as I was at his behavior, and resolved as I had been to dismiss him when I entered my office, nevertheless I strangely felt something superstitious knocking at my heart, and forbidding me to carry out my purpose, and denouncing me for a villain if I dared to breathe one bitter word against this forlornest of mankind. At last, familiarly drawing my chair behind his screen, I sat down and said: "Bartleby, never mind then about revealing your history; but let me entreat you, as a friend, to comply as far as may be with the usages of this office. Say now you will help to examine papers tomorrow or next day: in short, say now that in a day or two you will begin to be a little reasonable:--say so, Bartleby."

+

"At present I would prefer not to be a little reasonable was his idly cadaverous reply.,"

+

Just then the folding-doors opened, and Nippers approached. He seemed suffering from an unusually bad night's rest, induced by severer indigestion than common. He overheard those final words of Bartleby.

+

"Prefer not, eh?" gritted Nippers--"I'd prefer him, if I were you, sir," addressing me--"I'd prefer him; I'd give him preferences, the stubborn mule! What is it, sir, pray, that he prefers not to do now?"

Bartleby moved not a limb.

-

"Mr. Nippers," said I, "I'd prefer that you would withdraw for the present."

-

Somehow, of late I had got into the way of involuntary using this word - "prefer" upon all sorts of not exactly suitable occasions. And I trembled - to think that my contact with the scrivener had already and seriously affected - me in a mental way. And what further and deeper aberration might it not - yet produce? This apprehension had not been without efficacy in determining - me to summary means.

-

As Nippers, looking very sour and sulky, was departing, Turkey blandly - and deferentially approached.

-

"With submission, sir," said he, "yesterday I was thinking about Bartleby - here, and I think that if he would but prefer to take a quart of good ale - every day, it would do much towards mending him, and enabling him to assist - in examining his papers."

+

"Mr. Nippers," said I, "I'd prefer that you would withdraw for the present."

+

Somehow, of late I had got into the way of involuntary using this word "prefer" upon all sorts of not exactly suitable occasions. And I trembled to think that my contact with the scrivener had already and seriously affected me in a mental way. And what further and deeper aberration might it not yet produce? This apprehension had not been without efficacy in determining me to summary means.

+

As Nippers, looking very sour and sulky, was departing, Turkey blandly and deferentially approached.

+

"With submission, sir," said he, "yesterday I was thinking about Bartleby here, and I think that if he would but prefer to take a quart of good ale every day, it would do much towards mending him, and enabling him to assist in examining his papers."

"So you have got the word too," said I, slightly excited.

-

"With submission, what word, sir," asked Turkey, respectfully crowding - himself into the contracted space behind the screen, and by so doing, making - me jostle the scrivener. "What word, sir?"

-

"I would prefer to be left alone here," said Bartleby, as if offended - at being mobbed in his privacy.

+

"With submission, what word, sir," asked Turkey, respectfully crowding himself into the contracted space behind the screen, and by so doing, making me jostle the scrivener. "What word, sir?"

+

"I would prefer to be left alone here," said Bartleby, as if offended at being mobbed in his privacy.

"That's the word, Turkey," said I--"that's it."

-

"Oh, prefer oh yes--queer word. I never use it myself. But, sir - as I was saying, if he would but prefer--"

+

"Oh, prefer oh yes--queer word. I never use it myself. But, sir as I was saying, if he would but prefer--"

"Turkey," interrupted I, "you will please withdraw."

"Oh, certainly, sir, if you prefer that I should."

-

As he opened the folding-door to retire, Nippers at his desk caught a - glimpse of me, and asked whether I would prefer to have a certain paper - copied on blue paper or white. He did not in the least roguishly accent - the word prefer. It was plain that it involuntarily rolled from his tongue. - I thought to myself, surely I must get rid of a demented man, who already - has in some degree turned the tongues, if not the heads of myself and clerks. - But I thought it prudent not to break the dismission at once.

-

The next day I noticed that Bartleby did nothing but stand at his window - in his dead-wall revery. Upon asking him why he did not write, he said - that he had decided upon doing no more writing.

+

As he opened the folding-door to retire, Nippers at his desk caught a glimpse of me, and asked whether I would prefer to have a certain paper copied on blue paper or white. He did not in the least roguishly accent the word prefer. It was plain that it involuntarily rolled from his tongue. I thought to myself, surely I must get rid of a demented man, who already has in some degree turned the tongues, if not the heads of myself and clerks. But I thought it prudent not to break the dismission at once.

+

The next day I noticed that Bartleby did nothing but stand at his window in his dead-wall revery. Upon asking him why he did not write, he said that he had decided upon doing no more writing.

"Why, how now? what next?" exclaimed I, "do no more writing?"

"No more."

"And what is the reason?"

"Do you not see the reason for yourself," he indifferently replied.

-

I looked steadfastly at him, and perceived that his eyes looked dull and - glazed. Instantly it occurred to me, that his unexampled diligence in copying - by his dim window for the first few weeks of his stay with me might have - temporarily impaired his vision.

-

I was touched. I said something in condolence with him. I hinted that - of course he did wisely in abstaining from writing for a while; and urged - him to embrace that opportunity of taking wholesome exercise in the open - air. This, however, he did not do. A few days after this, my other clerks - being absent, and being in a great hurry to dispatch certain letters by - the mail, I thought that, having nothing else earthly to do, Bartleby would - surely be less inflexible than usual, and carry these letters to the post-office. - But he blankly declined. So, much to my inconvenience, I went myself.

-

Still added days went by. Whether Bartleby's eyes improved or not, I could - not say. To all appearance, I thought they did. But when I asked him if - they did, he vouchsafed no answer. At all events, he would do no copying. - At last, in reply to my urgings, he informed me that he had permanently - given up copying.

-

"What!" exclaimed I; "suppose your eyes should get entirely well- better - than ever before--would you not copy then?"

-

"I have given up copying," he answered, and slid aside.

-

He remained as ever, a fixture in my chamber. Nay--if that were possible--he - became still more of a fixture than before. What was to be done? He would - do nothing in the office: why should he stay there? In plain fact, he had - now become a millstone to me, not only useless as a necklace, but afflictive - to bear. Yet I was sorry for him. I speak less than truth when I say that, - on his own account, he occasioned me uneasiness. If he would but have named - a single relative or friend, I would instantly have written, and urged - their taking the poor fellow away to some convenient retreat. But he seemed - alone, absolutely alone in the universe. A bit of wreck</font> in - the mid Atlantic. At length, necessities connected with my business tyrannized - over all other considerations. Decently as I could, I told Bartleby that - in six days' time he must unconditionally leave the office. I warned him - to take measures, in the interval, for procuring some other abode. I offered - to assist him in this endeavor, if he himself would but take the first - step towards a removal. "And when you finally quit me, Bartleby," added - I, "I shall see that you go not away entirely unprovided. Six days from - this hour, remember."

-

At the expiration of that period, I peeped behind the screen, and lo! - Bartleby was there.

-

I buttoned up my coat, balanced myself; advanced slowly towards him, touched - his shoulder, and said, "The time has come; you must quit this place; I - am sorry for you; here is money; but you must go."

+

I looked steadfastly at him, and perceived that his eyes looked dull and glazed. Instantly it occurred to me, that his unexampled diligence in copying by his dim window for the first few weeks of his stay with me might have temporarily impaired his vision.

+

I was touched. I said something in condolence with him. I hinted that of course he did wisely in abstaining from writing for a while; and urged him to embrace that opportunity of taking wholesome exercise in the open air. This, however, he did not do. A few days after this, my other clerks being absent, and being in a great hurry to dispatch certain letters by the mail, I thought that, having nothing else earthly to do, Bartleby would surely be less inflexible than usual, and carry these letters to the post-office. But he blankly declined. So, much to my inconvenience, I went myself.

+

Still added days went by. Whether Bartleby's eyes improved or not, I could not say. To all appearance, I thought they did. But when I asked him if they did, he vouchsafed no answer. At all events, he would do no copying. At last, in reply to my urgings, he informed me that he had permanently given up copying.

+

"What!" exclaimed I; "suppose your eyes should get entirely well- better than ever before--would you not copy then?"

+

"I have given up copying," he answered, and slid aside.

+

He remained as ever, a fixture in my chamber. Nay--if that were possible--he became still more of a fixture than before. What was to be done? He would do nothing in the office: why should he stay there? In plain fact, he had now become a millstone to me, not only useless as a necklace, but afflictive to bear. Yet I was sorry for him. I speak less than truth when I say that, on his own account, he occasioned me uneasiness. If he would but have named a single relative or friend, I would instantly have written, and urged their taking the poor fellow away to some convenient retreat. But he seemed alone, absolutely alone in the universe. A bit of wreck</font> in the mid Atlantic. At length, necessities connected with my business tyrannized over all other considerations. Decently as I could, I told Bartleby that in six days' time he must unconditionally leave the office. I warned him to take measures, in the interval, for procuring some other abode. I offered to assist him in this endeavor, if he himself would but take the first step towards a removal. "And when you finally quit me, Bartleby," added I, "I shall see that you go not away entirely unprovided. Six days from this hour, remember."

+

At the expiration of that period, I peeped behind the screen, and lo! Bartleby was there.

+

I buttoned up my coat, balanced myself; advanced slowly towards him, touched his shoulder, and said, "The time has come; you must quit this place; I am sorry for you; here is money; but you must go."

"I would prefer not," he replied, with his back still towards me.

"You must."

He remained silent.

-

Now I had an unbounded confidence in this man's common honesty. He had - frequently restored to me six pences and shillings carelessly dropped upon - the floor, for I am apt to be very reckless in such shirt-button affairs. - The proceeding then which followed will not be deemed extraordinary. "Bartleby," - said I, "I owe you twelve dollars on account; here are thirty-two; the - odd twenty are yours.--Will you take it? and I handed the bills towards - him.

+

Now I had an unbounded confidence in this man's common honesty. He had frequently restored to me six pences and shillings carelessly dropped upon the floor, for I am apt to be very reckless in such shirt-button affairs. The proceeding then which followed will not be deemed extraordinary. "Bartleby," said I, "I owe you twelve dollars on account; here are thirty-two; the odd twenty are yours.--Will you take it? and I handed the bills towards him.

But he made no motion.

-

"I will leave them here then," putting them under a weight on the table. - Then taking my hat and cane and going to the door I tranquilly turned and - added--"After you have removed your things from these offices, Bartleby, - you will of course lock the door--since every one is now gone for the day - but you--and if you please, slip your key underneath the mat, so that I - may have it in the morning. I shall not see you again; so good-bye to you. - If hereafter in your new place of abode I can be of any service to you, - do not fail to advise me by letter. Good-bye, Bartleby, and fare you well."

-

But he answered not a word; like the last column of some ruined temple, - he remained standing mute and solitary in the middle of the otherwise deserted - room.

-

As I walked home in a pensive mood, my vanity got the better of my pity. - I could not but highly plume myself on my masterly management in getting - rid of Bartleby. Masterly I call it, and such it must appear to any dispassionate - thinker. The beauty of my procedure seemed to consist in its perfect quietness. - There was no vulgar bullying, no bravado of any sort, no choleric hectoring - and striding to and fro across the apartment, jerking out vehement commands - for Bartleby to bundle himself off with his beggarly traps. Nothing of - the kind. Without loudly bidding Bartleby depart--as an inferior genius - might have done--I assumed the ground that depart he must; and upon the - assumption built all I had to say. The more I thought over my procedure, - the more I was charmed with it. Nevertheless, next morning, upon awakening, - I had my doubts,--I had somehow slept off the fumes of vanity. One of the - coolest and wisest hours a man has, is just after he awakes in the morning. - My procedure seemed as sagacious as ever,--but only in theory. How it would - prove in practice--there was the rub. It was truly a beautiful thought - to have assumed Bartleby's departure; but, after all, that assumption was - simply my own, and none of Bartleby's. The great point was, not whether - I had assumed that he would quit me, but whether he would prefer so to - do. He was more a man of preferences than assumptions.

-

After breakfast, I walked down town, arguing the probabilities pro and - con. One moment I thought it would prove a miserable failure, and Bartleby - would be found all alive at my office as usual; the next moment it seemed - certain that I should see his chair empty. And so I kept veering about. - At the corner of Broadway and Canal- street, I saw quite an excited group - of people standing in earnest conversation.

+

"I will leave them here then," putting them under a weight on the table. Then taking my hat and cane and going to the door I tranquilly turned and added--"After you have removed your things from these offices, Bartleby, you will of course lock the door--since every one is now gone for the day but you--and if you please, slip your key underneath the mat, so that I may have it in the morning. I shall not see you again; so good-bye to you. If hereafter in your new place of abode I can be of any service to you, do not fail to advise me by letter. Good-bye, Bartleby, and fare you well."

+

But he answered not a word; like the last column of some ruined temple, he remained standing mute and solitary in the middle of the otherwise deserted room.

+

As I walked home in a pensive mood, my vanity got the better of my pity. I could not but highly plume myself on my masterly management in getting rid of Bartleby. Masterly I call it, and such it must appear to any dispassionate thinker. The beauty of my procedure seemed to consist in its perfect quietness. There was no vulgar bullying, no bravado of any sort, no choleric hectoring and striding to and fro across the apartment, jerking out vehement commands for Bartleby to bundle himself off with his beggarly traps. Nothing of the kind. Without loudly bidding Bartleby depart--as an inferior genius might have done--I assumed the ground that depart he must; and upon the assumption built all I had to say. The more I thought over my procedure, the more I was charmed with it. Nevertheless, next morning, upon awakening, I had my doubts,--I had somehow slept off the fumes of vanity. One of the coolest and wisest hours a man has, is just after he awakes in the morning. My procedure seemed as sagacious as ever,--but only in theory. How it would prove in practice--there was the rub. It was truly a beautiful thought to have assumed Bartleby's departure; but, after all, that assumption was simply my own, and none of Bartleby's. The great point was, not whether I had assumed that he would quit me, but whether he would prefer so to do. He was more a man of preferences than assumptions.

+

After breakfast, I walked down town, arguing the probabilities pro and con. One moment I thought it would prove a miserable failure, and Bartleby would be found all alive at my office as usual; the next moment it seemed certain that I should see his chair empty. And so I kept veering about. At the corner of Broadway and Canal- street, I saw quite an excited group of people standing in earnest conversation.

"I'll take odds he doesn't," said a voice as I passed.

"Doesn't go?--done!" said I, "put up your money."

-

I was instinctively putting my hand in my pocket to produce my own, when - I remembered that this was an election day. The words I had overheard bore - no reference to Bartleby, but to the success or non-success of some candidate - for the mayoralty. In my intent frame of mind, I had, as it were, imagined - that all Broadway shared in my excitement, and were debating the same question - with me. I passed on, very thankful that the uproar of the street screened - my momentary absent-mindedness.

-

As I had intended, I was earlier than usual at my office door. I stood - listening for a moment. All was still. He must be gone. I tried the knob. - The door was locked. Yes, my procedure had worked to a charm; he indeed - must be vanished. Yet a certain melancholy mixed with this: I was almost - sorry for my brilliant success. I was fumbling under the door mat for the - key, which Bartleby was to have left there for me, when accidentally my - knee knocked against a panel, producing a summoning sound, and in response - a voice came to me from within--"Not yet; I am occupied."

+

I was instinctively putting my hand in my pocket to produce my own, when I remembered that this was an election day. The words I had overheard bore no reference to Bartleby, but to the success or non-success of some candidate for the mayoralty. In my intent frame of mind, I had, as it were, imagined that all Broadway shared in my excitement, and were debating the same question with me. I passed on, very thankful that the uproar of the street screened my momentary absent-mindedness.

+

As I had intended, I was earlier than usual at my office door. I stood listening for a moment. All was still. He must be gone. I tried the knob. The door was locked. Yes, my procedure had worked to a charm; he indeed must be vanished. Yet a certain melancholy mixed with this: I was almost sorry for my brilliant success. I was fumbling under the door mat for the key, which Bartleby was to have left there for me, when accidentally my knee knocked against a panel, producing a summoning sound, and in response a voice came to me from within--"Not yet; I am occupied."

It was Bartleby.

-

I was thunderstruck. For an instant I stood like the man who, pipe in - mouth, was killed one cloudless afternoon long ago in Virginia, by summer - lightning; at his own warm open window he was killed, and remained leaning - out there upon the dreamy afternoon, till some one touched him, when he - fell. "Not gone!" I murmured at last. But again obeying that wondrous ascendancy - which the inscrutable scrivener had over me, and from which ascendancy, - for all my chafing, I could not completely escape, I slowly went down stairs - and out into the street, and while walking round the block, considered - what I should next do in this unheard-of-perplexity. Turn the man out by - an actual thrusting I could not; to drive him away by calling him hard - names would not do; calling in the police was an unpleasant idea; and yet, - permit him to enjoy his cadaverous triumph over me,--this too I could not - think of. What was to be done? or, if nothing could be done, was there - any thing further that I could assume in the matter? Yes, as before I had - prospectively assumed that Bartleby would depart, so now I might retrospectively - assume that departed he was. In the legitimate carrying out of this assumption, - I might enter my office in a great hurry, and pretending not to see Bartleby - at all, walk straight against him as if he were air. Such a proceeding - would in a singular degree have the appearance of a home-thrust. It was - hardly possible that Bartleby could withstand such an application of the - doctrine of assumptions. But upon second thoughts the success of the plan - seemed rather dubious. I resolved to argue the matter over with him again.

-

Bartleby," said I, entering the office, with a quietly severe expression. - "I am seriously displeased. I am pained, Bartleby. I had thought better - of you. I had imagined you of such a gentlemanly organization, that in - any delicate dilemma a slight hint would suffice--in short, an assumption. - But it appears I am deceived. Why," I added, unaffectedly starting, "you - have not even touched the money yet," pointing to it, just where I had - left it the evening previous.

+

I was thunderstruck. For an instant I stood like the man who, pipe in mouth, was killed one cloudless afternoon long ago in Virginia, by summer lightning; at his own warm open window he was killed, and remained leaning out there upon the dreamy afternoon, till some one touched him, when he fell. "Not gone!" I murmured at last. But again obeying that wondrous ascendancy which the inscrutable scrivener had over me, and from which ascendancy, for all my chafing, I could not completely escape, I slowly went down stairs and out into the street, and while walking round the block, considered what I should next do in this unheard-of-perplexity. Turn the man out by an actual thrusting I could not; to drive him away by calling him hard names would not do; calling in the police was an unpleasant idea; and yet, permit him to enjoy his cadaverous triumph over me,--this too I could not think of. What was to be done? or, if nothing could be done, was there any thing further that I could assume in the matter? Yes, as before I had prospectively assumed that Bartleby would depart, so now I might retrospectively assume that departed he was. In the legitimate carrying out of this assumption, I might enter my office in a great hurry, and pretending not to see Bartleby at all, walk straight against him as if he were air. Such a proceeding would in a singular degree have the appearance of a home-thrust. It was hardly possible that Bartleby could withstand such an application of the doctrine of assumptions. But upon second thoughts the success of the plan seemed rather dubious. I resolved to argue the matter over with him again.

+

Bartleby," said I, entering the office, with a quietly severe expression. "I am seriously displeased. I am pained, Bartleby. I had thought better of you. I had imagined you of such a gentlemanly organization, that in any delicate dilemma a slight hint would suffice--in short, an assumption. But it appears I am deceived. Why," I added, unaffectedly starting, "you have not even touched the money yet," pointing to it, just where I had left it the evening previous.

He answered nothing.

-

"Will you, or will you not, quit me?" I now demanded in a sudden passion, - advancing close to him.

-

"I would prefer not to quit you," he replied, gently emphasizing - the not.

-

"What earthly right have you to stay here? do you pay any rent? Do you - pay my taxes? Or is this property yours?"

+

"Will you, or will you not, quit me?" I now demanded in a sudden passion, advancing close to him.

+

"I would prefer not to quit you," he replied, gently emphasizing the not.

+

"What earthly right have you to stay here? do you pay any rent? Do you pay my taxes? Or is this property yours?"

He answered nothing.

-

"Are you ready to go on and write now? Are your eyes recovered? Could - you copy a small paper for me this morning? or help examine a few lines? - or step round to the post-office? In a word, will you do any thing at all, - to give a coloring to your refusal to depart the premises?"

+

"Are you ready to go on and write now? Are your eyes recovered? Could you copy a small paper for me this morning? or help examine a few lines? or step round to the post-office? In a word, will you do any thing at all, to give a coloring to your refusal to depart the premises?"

He silently retired into his hermitage.

-

I was now in such a state of nervous resentment that I thought it but - prudentto check myself at present from further demonstrations. Bartleby - and I were alone. I remembered the tragedy of the unfortunate Adams and - the still more unfortunate Colt in the solitary office of the latter; and - how poor Colt, being dreadfully incensed by Adams, and imprudently permitting - himself to get wildly excited, was at unawares hurried into his fatal act--an - act which certainly no man could possibly deplore more than the actor himself. - Often it had occurred to me in my ponderings upon the subject, that had - that altercation taken place in the public street, or at a private residence, - it would not have terminated as it did. It was the circumstance of being - alone in a solitary office, up stairs, of a building entirely unhallowed - by humanizing domestic associations--an uncarpeted office, doubtless of - a dusty, haggard sort of appearance;--this it must have been, which greatly - helped to enhance the irritable desperation of the hapless Colt.

-

But when this old Adam of resentment rose in me and tempted me concerning - Bartleby, I grappled him and threw him. How? Why, simply by recalling the - divine injunction: "A new commandment give I unto you, that ye love one - another." Yes, this it was that saved me. Aside from higher considerations, - charity often operates as a vastly wise and prudent principle--a great - safeguard to its possessor. Men have committed murder for jealousy's sake, - and anger's sake, and hatred's sake, and selfishness' sake, and spiritual - pride's sake; but no man that ever I heard of, ever committed a diabolical - murder for sweet charity's sake. Mere self-interest, then, if no better - motive can be enlisted, should, especially with high-tempered men, prompt - all beings to charity and philanthropy. At any rate, upon the occasion - in question, I strove to drown my exasperated feelings towards the scrivener - by benevolently construing his conduct. Poor fellow, poor fellow! thought - I, he don't mean any thing; and besides, he has seen hard times, and ought - to be indulged.

-

I endeavored also immediately to occupy myself, and at the same time to - comfort my despondency.I tried to fancy that in the course of the morning, - at such time as might prove agreeable to him, Bartleby, of his own free - accord, would emerge from his hermitage, and take up some decided line - of march in the direction of the door. But no. Half-past twelve o'clock - came; Turkey began to glow in the face, overturn his inkstand, and become - generally obstreperous; Nippers abated down into quietude and courtesy; - Ginger Nut munched his noon apple; and Bartleby remained standing at his - window in one of his profoundest deadwall reveries. Will it be credited? - Ought I to acknowledge it? That afternoon I left the office without saying - one further word to him.

-

Some days now passed, during which, at leisure intervals I looked a little - into Edwards on the Will," and "Priestly on Necessity." Under the circumstances, - those books induced a salutary feeling. Gradually I slid into the persuasion - that these troubles of mine touching the scrivener, had been all predestinated - from eternity, and Bartleby was billeted upon me for some mysterious purpose - of an all-wise Providence, which it was not for a mere mortal like me to - fathom. Yes, Bartleby, stay there behind your screen, thought I; I shall - persecute you no more; you are harmless and noiseless as any of these old - chairs; in short, I never feel so private as when I know you are here. - At least I see it, I feel it; I penetrate to the predestinated purpose - of my life. I am content. Others may have loftier parts to enact; but my - mission in this world, Bartleby, is to furnish you with office-room for - such period as you may see fit to remain.

-

I believe that this wise and blessed frame of mind would have continued - with me, had it not been for the unsolicited and uncharitable remarks obtruded - upon me by my professional friends who visited the rooms. But thus it often - is, that the constant friction of illiberal minds wears out at last the - best resolves of the more generous. Though to be sure, when I reflected - upon it, it was not strange that people entering my office should be struck - by the peculiar aspect of the unaccountable Bartleby, and so be tempted - to throw out some sinister observations concerning him. Sometimes an attorney - having business with me, and calling at my office, and finding no one but - the scrivener there, would undertake to obtain some sort of precise information - from him touching my whereabouts; but without heeding his idle talk, Bartleby - would remain standing immovable in the middle of the room. So after contemplating - him in that position for a time, the attorney would depart, no wiser than - he came.

-

Also, when a Reference was going on, and the room full of lawyers and - witnesses and business was driving fast; some deeply occupied legal gentleman - present, seeing Bartleby wholly unemployed, would request him to run round - to his (the legal gentleman's) office and fetch some papers for him. Thereupon, - Bartleby would tranquilly decline, and remain idle as before. Then the - lawyer would give a great stare, and turn to me. And what could I say? - At last I was made aware that all through the circle of my professional - acquaintance, a whisper of wonder was running round, having reference to - the strange creature I kept at my office. This worried me very much. And - as the idea came upon me of his possibly turning out a long-lived man, - and keep occupying my chambers, and denying my authority; and perplexing - my visitors; and scandalizing my professional reputation; and casting a - general gloom over the premises; keeping soul and body together to the - last upon his savings (for doubtless he spent but half a dime a day), and - in the end perhaps outlive me, and claim possession of my office by right - of his perpetual occupancy: as all these dark anticipations crowded upon - me more and more, and my friends continually intruded their relentless - remarks upon the apparition in my room; a great change was wrought in me. - I resolved to gather all my faculties together, and for ever rid me of - this intolerable incubus.

-

Ere revolving any complicated project, however, adapted to this end, I - first simply suggested to Bartleby the propriety of his permanent departure. - In a calm and serious tone, I commended the idea to his careful and mature - consideration. But having taken three days to meditate upon it, he apprised - me that his original determination remained the same; in short, that he - still preferred to abide with me.

-

What shall I do? I now said to myself, buttoning up my coat to the last - button. What shall I do? what ought I to do? what does conscience say I - should do with this man, or rather ghost. Rid myself of him, I must; go, - he shall. But how? You will not thrust him, the poor, pale, passive mortal,--you - will not thrust such a helpless creature out of your door? you will not - dishonor yourself by such cruelty? No, I will not, I cannot do that. Rather - would I let him live and die here, and then mason up his remains in the - wall. What then will you do? For all your coaxing, he will not budge. Bribes - he leaves under your own paperweight on your table; in short, it is quite - plain that he prefers to cling to you.

-

Then something severe, something unusual must be done. What! surely you - will not have him collared by a constable, and commit his innocent pallor - to the common jail? And upon what ground could you procure such a thing - to be done?--a vagrant, is he? What! he a vagrant, a wanderer, who refuses - to budge? It is because he will not be a vagrant, then, that you seek to - count him as a vagrant. That is too absurd. No visible means of support: - there I have him. Wrong again: for indubitably he does support himself, - and that is the only unanswerable proof that any man can show of his possessing - the means so to do. No more then. Since he will not quit me, I must quit - him. I will change my offices; I will move elsewhere; and give him fair - notice, that if I find him on my new premises I will then proceed against - him as a common trespasser.

-

Acting accordingly, next day I thus addressed him: "I find these chambers - too far from the City Hall; the air is unwholesome. In a word, I propose - to remove my offices next week, and shall no longer require your services. - I tell you this now, in order that you may seek another place."

+

I was now in such a state of nervous resentment that I thought it but prudentto check myself at present from further demonstrations. Bartleby and I were alone. I remembered the tragedy of the unfortunate Adams and the still more unfortunate Colt in the solitary office of the latter; and how poor Colt, being dreadfully incensed by Adams, and imprudently permitting himself to get wildly excited, was at unawares hurried into his fatal act--an act which certainly no man could possibly deplore more than the actor himself. Often it had occurred to me in my ponderings upon the subject, that had that altercation taken place in the public street, or at a private residence, it would not have terminated as it did. It was the circumstance of being alone in a solitary office, up stairs, of a building entirely unhallowed by humanizing domestic associations--an uncarpeted office, doubtless of a dusty, haggard sort of appearance;--this it must have been, which greatly helped to enhance the irritable desperation of the hapless Colt.

+

But when this old Adam of resentment rose in me and tempted me concerning Bartleby, I grappled him and threw him. How? Why, simply by recalling the divine injunction: "A new commandment give I unto you, that ye love one another." Yes, this it was that saved me. Aside from higher considerations, charity often operates as a vastly wise and prudent principle--a great safeguard to its possessor. Men have committed murder for jealousy's sake, and anger's sake, and hatred's sake, and selfishness' sake, and spiritual pride's sake; but no man that ever I heard of, ever committed a diabolical murder for sweet charity's sake. Mere self-interest, then, if no better motive can be enlisted, should, especially with high-tempered men, prompt all beings to charity and philanthropy. At any rate, upon the occasion in question, I strove to drown my exasperated feelings towards the scrivener by benevolently construing his conduct. Poor fellow, poor fellow! thought I, he don't mean any thing; and besides, he has seen hard times, and ought to be indulged.

+

I endeavored also immediately to occupy myself, and at the same time to comfort my despondency.I tried to fancy that in the course of the morning, at such time as might prove agreeable to him, Bartleby, of his own free accord, would emerge from his hermitage, and take up some decided line of march in the direction of the door. But no. Half-past twelve o'clock came; Turkey began to glow in the face, overturn his inkstand, and become generally obstreperous; Nippers abated down into quietude and courtesy; Ginger Nut munched his noon apple; and Bartleby remained standing at his window in one of his profoundest deadwall reveries. Will it be credited? Ought I to acknowledge it? That afternoon I left the office without saying one further word to him.

+

Some days now passed, during which, at leisure intervals I looked a little into Edwards on the Will," and "Priestly on Necessity." Under the circumstances, those books induced a salutary feeling. Gradually I slid into the persuasion that these troubles of mine touching the scrivener, had been all predestinated from eternity, and Bartleby was billeted upon me for some mysterious purpose of an all-wise Providence, which it was not for a mere mortal like me to fathom. Yes, Bartleby, stay there behind your screen, thought I; I shall persecute you no more; you are harmless and noiseless as any of these old chairs; in short, I never feel so private as when I know you are here. At least I see it, I feel it; I penetrate to the predestinated purpose of my life. I am content. Others may have loftier parts to enact; but my mission in this world, Bartleby, is to furnish you with office-room for such period as you may see fit to remain.

+

I believe that this wise and blessed frame of mind would have continued with me, had it not been for the unsolicited and uncharitable remarks obtruded upon me by my professional friends who visited the rooms. But thus it often is, that the constant friction of illiberal minds wears out at last the best resolves of the more generous. Though to be sure, when I reflected upon it, it was not strange that people entering my office should be struck by the peculiar aspect of the unaccountable Bartleby, and so be tempted to throw out some sinister observations concerning him. Sometimes an attorney having business with me, and calling at my office, and finding no one but the scrivener there, would undertake to obtain some sort of precise information from him touching my whereabouts; but without heeding his idle talk, Bartleby would remain standing immovable in the middle of the room. So after contemplating him in that position for a time, the attorney would depart, no wiser than he came.

+

Also, when a Reference was going on, and the room full of lawyers and witnesses and business was driving fast; some deeply occupied legal gentleman present, seeing Bartleby wholly unemployed, would request him to run round to his (the legal gentleman's) office and fetch some papers for him. Thereupon, Bartleby would tranquilly decline, and remain idle as before. Then the lawyer would give a great stare, and turn to me. And what could I say? At last I was made aware that all through the circle of my professional acquaintance, a whisper of wonder was running round, having reference to the strange creature I kept at my office. This worried me very much. And as the idea came upon me of his possibly turning out a long-lived man, and keep occupying my chambers, and denying my authority; and perplexing my visitors; and scandalizing my professional reputation; and casting a general gloom over the premises; keeping soul and body together to the last upon his savings (for doubtless he spent but half a dime a day), and in the end perhaps outlive me, and claim possession of my office by right of his perpetual occupancy: as all these dark anticipations crowded upon me more and more, and my friends continually intruded their relentless remarks upon the apparition in my room; a great change was wrought in me. I resolved to gather all my faculties together, and for ever rid me of this intolerable incubus.

+

Ere revolving any complicated project, however, adapted to this end, I first simply suggested to Bartleby the propriety of his permanent departure. In a calm and serious tone, I commended the idea to his careful and mature consideration. But having taken three days to meditate upon it, he apprised me that his original determination remained the same; in short, that he still preferred to abide with me.

+

What shall I do? I now said to myself, buttoning up my coat to the last button. What shall I do? what ought I to do? what does conscience say I should do with this man, or rather ghost. Rid myself of him, I must; go, he shall. But how? You will not thrust him, the poor, pale, passive mortal,--you will not thrust such a helpless creature out of your door? you will not dishonor yourself by such cruelty? No, I will not, I cannot do that. Rather would I let him live and die here, and then mason up his remains in the wall. What then will you do? For all your coaxing, he will not budge. Bribes he leaves under your own paperweight on your table; in short, it is quite plain that he prefers to cling to you.

+

Then something severe, something unusual must be done. What! surely you will not have him collared by a constable, and commit his innocent pallor to the common jail? And upon what ground could you procure such a thing to be done?--a vagrant, is he? What! he a vagrant, a wanderer, who refuses to budge? It is because he will not be a vagrant, then, that you seek to count him as a vagrant. That is too absurd. No visible means of support: there I have him. Wrong again: for indubitably he does support himself, and that is the only unanswerable proof that any man can show of his possessing the means so to do. No more then. Since he will not quit me, I must quit him. I will change my offices; I will move elsewhere; and give him fair notice, that if I find him on my new premises I will then proceed against him as a common trespasser.

+

Acting accordingly, next day I thus addressed him: "I find these chambers too far from the City Hall; the air is unwholesome. In a word, I propose to remove my offices next week, and shall no longer require your services. I tell you this now, in order that you may seek another place."

He made no reply, and nothing more was said.

-

On the appointed day I engaged carts and men, proceeded to my chambers, - and having but little furniture, every thing was removed in a few hours. - Throughout, the scrivener remained standing behind the screen, which I - directed to be removed the last thing. It was withdrawn; and being folded - up like a huge folio, left him the motionless occupant of a naked room. - I stood in the entry watching him a moment, while something from within - me upbraided me.

-

I re-entered, with my hand in my pocket--and--and my heart in my mouth.

-

"Good-bye, Bartleby; I am going--good-bye, and God some way bless you; - and take that," slipping something in his hand. But it dropped to the floor, - and then,--strange to say--I tore myself from him whom I had so longed - to be rid of.

-

Established in my new quarters, for a day or two I kept the door locked, - and started at every footfall in the passages. When I returned to my rooms - after any little absence, I would pause at the threshold for an instant, - and attentively listen, ere applying my key. But these fears were needless. - Bartleby never came nigh me.

-

I thought all was going well, when a perturbed looking stranger visited - me, inquiring whether I was the person who had recently occupied rooms - at No.--Wall-street.

+

On the appointed day I engaged carts and men, proceeded to my chambers, and having but little furniture, every thing was removed in a few hours. Throughout, the scrivener remained standing behind the screen, which I directed to be removed the last thing. It was withdrawn; and being folded up like a huge folio, left him the motionless occupant of a naked room. I stood in the entry watching him a moment, while something from within me upbraided me.

+

I re-entered, with my hand in my pocket--and--and my heart in my mouth.

+

"Good-bye, Bartleby; I am going--good-bye, and God some way bless you; and take that," slipping something in his hand. But it dropped to the floor, and then,--strange to say--I tore myself from him whom I had so longed to be rid of.

+

Established in my new quarters, for a day or two I kept the door locked, and started at every footfall in the passages. When I returned to my rooms after any little absence, I would pause at the threshold for an instant, and attentively listen, ere applying my key. But these fears were needless. Bartleby never came nigh me.

+

I thought all was going well, when a perturbed looking stranger visited me, inquiring whether I was the person who had recently occupied rooms at No.--Wall-street.

Full of forebodings, I replied that I was.

-

"Then, sir," said the stranger, who proved a lawyer, "you are responsible - for the man you left there. He refuses to do any copying; he refuses to - do any thing; he says he prefers not to; and he refuses to quit the premises."

-

"I am very sorry, sir," said I, with assumed tranquillity, but an inward - tremor, "but, really, the man you allude to is nothing to me --he is no - relation or apprentice of mine, that you should hold me responsible for - him."

+

"Then, sir," said the stranger, who proved a lawyer, "you are responsible for the man you left there. He refuses to do any copying; he refuses to do any thing; he says he prefers not to; and he refuses to quit the premises."

+

"I am very sorry, sir," said I, with assumed tranquillity, but an inward tremor, "but, really, the man you allude to is nothing to me --he is no relation or apprentice of mine, that you should hold me responsible for him."

"In mercy's name, who is he?"

-

"I certainly cannot inform you. I know nothing about him. Formerly I employed - him as a copyist; but he has done nothing for me now for some time past."

+

"I certainly cannot inform you. I know nothing about him. Formerly I employed him as a copyist; but he has done nothing for me now for some time past."

"I shall settle him then,--good morning, sir."

-

Several days passed, and I heard nothing more; and though I often felt - a charitable prompting to call at the place and see poor Bartleby, yet - a certain squeamishness of I know not what withheld me.

-

All is over with him, by this time, thought I at last, when through another - week no further intelligence reached me. But coming to my room the day - after, I found several persons waiting at my door in a high state of nervous - excitement.

-

"That's the man--here he comes," cried the foremost one, whom recognized - as the lawyer who had previously called upon me alone.

-

"You must take him away, sir, at once," cried a portly person among them, - advancing upon me, and whom I knew to be the landlord of No.--Wall-street. - "These gentlemen, my tenants, cannot stand it any longer; Mr. B--" pointing - to the lawyer, "has turned him out of his room, and he now persists in - haunting the buildinggenerally, sitting upon the banisters of the stairs - by day, and sleeping in the entry by night. Every body is concerned; clients - are leaving the offices; some fears are entertained of a mob; something - you must do, and that without delay."

-

Aghast at this torment, I fell back before it, and would fain have locked - myselfin my new quarters. In vain I persisted that Bartleby was nothing - to me--no more than to any one else. In vain:--I was the last person known - to have any thing to do with him, and they held me to the terrible account. - Fearful then of being exposed in the papers (as one person present obscurely - threatened) I considered the matter, and at length said, that if the lawyer - would give me a confidential interview with the scrivener, in his (the - lawyer's) own room, I would that afternoon strive my best to rid them of - the nuisance they complained of.

-

Going up stairs to my old haunt, there was Bartleby silently sitting upon - the banister at the landing.

+

Several days passed, and I heard nothing more; and though I often felt a charitable prompting to call at the place and see poor Bartleby, yet a certain squeamishness of I know not what withheld me.

+

All is over with him, by this time, thought I at last, when through another week no further intelligence reached me. But coming to my room the day after, I found several persons waiting at my door in a high state of nervous excitement.

+

"That's the man--here he comes," cried the foremost one, whom recognized as the lawyer who had previously called upon me alone.

+

"You must take him away, sir, at once," cried a portly person among them, advancing upon me, and whom I knew to be the landlord of No.--Wall-street. "These gentlemen, my tenants, cannot stand it any longer; Mr. B--" pointing to the lawyer, "has turned him out of his room, and he now persists in haunting the buildinggenerally, sitting upon the banisters of the stairs by day, and sleeping in the entry by night. Every body is concerned; clients are leaving the offices; some fears are entertained of a mob; something you must do, and that without delay."

+

Aghast at this torment, I fell back before it, and would fain have locked myselfin my new quarters. In vain I persisted that Bartleby was nothing to me--no more than to any one else. In vain:--I was the last person known to have any thing to do with him, and they held me to the terrible account. Fearful then of being exposed in the papers (as one person present obscurely threatened) I considered the matter, and at length said, that if the lawyer would give me a confidential interview with the scrivener, in his (the lawyer's) own room, I would that afternoon strive my best to rid them of the nuisance they complained of.

+

Going up stairs to my old haunt, there was Bartleby silently sitting upon the banister at the landing.

"What are you doing here, Bartleby?" said I.

"Sitting upon the banister," he mildly replied.

I motioned him into the lawyer's room, who then left us.

-

"Bartleby," said I, "are you aware that you are the cause of great tribulation - to me, by persisting in occupying the entry after being dismissed from - the office?"

+

"Bartleby," said I, "are you aware that you are the cause of great tribulation to me, by persisting in occupying the entry after being dismissed from the office?"

No answer.

-

"Now one of two things must take place. Either you must do something or - something must be done to you. Now what sort of business would you like - to engage in? Would you like to re-engage in copying for some one?"

+

"Now one of two things must take place. Either you must do something or something must be done to you. Now what sort of business would you like to engage in? Would you like to re-engage in copying for some one?"

"No; I would prefer not to make any change."

"Would you like a clerkship in a dry-goods store?"

-

"There is too much confinement about that. No, I would not like a clerkship; - but I am not particular."

-

"Too much confinement," I cried, "why you keep yourself confined all the - time!"

-

"I would prefer not to take a clerkship," he rejoined, as if to settle - that little item at once.

-

"How would a bar-tender's business suit you? There is no trying of the - eyesight in that."

+

"There is too much confinement about that. No, I would not like a clerkship; but I am not particular."

+

"Too much confinement," I cried, "why you keep yourself confined all the time!"

+

"I would prefer not to take a clerkship," he rejoined, as if to settle that little item at once.

+

"How would a bar-tender's business suit you? There is no trying of the eyesight in that."

"I would not like it at all; though, as I said before, I am not particular."

His unwonted wordiness inspirited me. I returned to the charge.

-

"Well then, would you like to travel through the country collecting bills - for the merchants? That would improve your health."

+

"Well then, would you like to travel through the country collecting bills for the merchants? That would improve your health."

"No, I would prefer to be doing something else."

-

"How then would going as a companion to Europe, to entertain some young - gentleman with your conversation,--how would that suit you?"

-

"Not at all. It does not strike me that there is any thing definite about - that. I like to be stationary. But I am not particular.

-

"Stationary you shall be then," I cried, now losing all patience, and - for the first time in all my exasperating connection with him fairly flying - into a passion. "If you do not go away from these premises before night, - I shall feel bound--indeed I am bound--to-- to--to quit the premises myself!" - I rather absurdly concluded, knowing not with what possible threat to try - to frighten his immobility into compliance. Despairing of all further efforts, - I was precipitately leaving him, when a final thought occurred to me--one - which had not been wholly unindulged before.

-

"Bartleby," said I, in the kindest tone I could assume under such exciting - circumstances, "will you go home with me now--not to my office, but my - dwelling--and remain there till we can conclude upon some convenient arrangement - for you at our leisure? Come, let us start now, right away."

+

"How then would going as a companion to Europe, to entertain some young gentleman with your conversation,--how would that suit you?"

+

"Not at all. It does not strike me that there is any thing definite about that. I like to be stationary. But I am not particular.

+

"Stationary you shall be then," I cried, now losing all patience, and for the first time in all my exasperating connection with him fairly flying into a passion. "If you do not go away from these premises before night, I shall feel bound--indeed I am bound--to-- to--to quit the premises myself!" I rather absurdly concluded, knowing not with what possible threat to try to frighten his immobility into compliance. Despairing of all further efforts, I was precipitately leaving him, when a final thought occurred to me--one which had not been wholly unindulged before.

+

"Bartleby," said I, in the kindest tone I could assume under such exciting circumstances, "will you go home with me now--not to my office, but my dwelling--and remain there till we can conclude upon some convenient arrangement for you at our leisure? Come, let us start now, right away."

"No: at present I would prefer not to make any change at all."

-

I answered nothing; but effectualy dodging every one by the suddenness - and rapidity of my flight, rushed from the building, ran up Wall-street - towards Broadway, and jumping into the first omnibus was soon removed from - pursuit. As soon as tranquility returned I distinctly perceived that I - had now done all that I possibly could, both in respect to the demands - of the landlord and his tenants, and with regard to my own desire and sense - of duty, to benefit Bartleby, and shield him from rude persecution. I now - strove to be entirely care-free and quiescent; and my conscience justified - me in the attempt; though indeed it was not so successful as I could have - wished. So fearful was I of being again hunted out by the incensed landlord - and his exasperated tenants, that, surrendering my business to Nippers, - for a few days I drove about the upper part of the town and through the - suburbs, in my rockaway; crossed over to Jersey City and Hoboken, and paid - fugitive visits to Manhattanville and Astoria. In fact I almost lived in - my rockaway for the time.

-

When again I entered my office, lo, a note from the landlord lay upon - desk. opened it with trembling hands. informed me that writer had sent - to police, and Bartleby removed the Tombs as a vagrant. Moreover, since - I knew more about him than any one else, he wished me to appear at that - place, and make a suitable statement of the facts. These tidings had a - conflicting effect upon me. At first I was indignant; but at last almost - approved. The landlord's energetic, summary disposition, had led him to - adopt a procedure which I do not think I would have decided upon myself; - and yet as a last resort, under such peculiar circumstances, it seemed - the only plan.

-

As I afterwards learned, the poor scrivener, when told that he must be - conducted to the Tombs, offered not the slightest obstacle, but in his - pale unmoving way, silently acquiesced.

-

Some of the compassionate and curious bystanders joined the party; and - headed by one of the constables arm in arm with Bartleby, the silent procession - filed its way through all the noise, and heat, and joy of the roaring thoroughfares - at noon.

-

The same day I received the note I went to the Tombs, or to speak more - properly, the Halls of Justice. Seeking the right officer, I stated the - purpose of my call, and was informed that the individual I described was - indeed within. I then assured the functionary that Bartleby was a perfectly - honest man, and greatly to be compassionated, however unaccountably eccentric. - I narrated all I knew,and closed by suggesting the idea of letting him - remain in as indulgent confinement as possible till something less harsh - might be done--though indeed I hardly knew what. At all events, if nothing - else could be decided upon, the alms-house must receive him. I then begged - to have an interview.

-

Being under no disgraceful charge, and quite serene and harmless in all - his ways, they had permitted him freely to wander about the prison, and - especially in the inclosed grass-platted yards thereof. And so I found - him there, standing all alone in the quietest of the yards, his face towards - a high wall, while all around, from the narrow slits of the jail windows, - I thought I saw peering out upon him the eyes of murderers and thieves.

+

I answered nothing; but effectualy dodging every one by the suddenness and rapidity of my flight, rushed from the building, ran up Wall-street towards Broadway, and jumping into the first omnibus was soon removed from pursuit. As soon as tranquility returned I distinctly perceived that I had now done all that I possibly could, both in respect to the demands of the landlord and his tenants, and with regard to my own desire and sense of duty, to benefit Bartleby, and shield him from rude persecution. I now strove to be entirely care-free and quiescent; and my conscience justified me in the attempt; though indeed it was not so successful as I could have wished. So fearful was I of being again hunted out by the incensed landlord and his exasperated tenants, that, surrendering my business to Nippers, for a few days I drove about the upper part of the town and through the suburbs, in my rockaway; crossed over to Jersey City and Hoboken, and paid fugitive visits to Manhattanville and Astoria. In fact I almost lived in my rockaway for the time.

+

When again I entered my office, lo, a note from the landlord lay upon desk. opened it with trembling hands. informed me that writer had sent to police, and Bartleby removed the Tombs as a vagrant. Moreover, since I knew more about him than any one else, he wished me to appear at that place, and make a suitable statement of the facts. These tidings had a conflicting effect upon me. At first I was indignant; but at last almost approved. The landlord's energetic, summary disposition, had led him to adopt a procedure which I do not think I would have decided upon myself; and yet as a last resort, under such peculiar circumstances, it seemed the only plan.

+

As I afterwards learned, the poor scrivener, when told that he must be conducted to the Tombs, offered not the slightest obstacle, but in his pale unmoving way, silently acquiesced.

+

Some of the compassionate and curious bystanders joined the party; and headed by one of the constables arm in arm with Bartleby, the silent procession filed its way through all the noise, and heat, and joy of the roaring thoroughfares at noon.

+

The same day I received the note I went to the Tombs, or to speak more properly, the Halls of Justice. Seeking the right officer, I stated the purpose of my call, and was informed that the individual I described was indeed within. I then assured the functionary that Bartleby was a perfectly honest man, and greatly to be compassionated, however unaccountably eccentric. I narrated all I knew,and closed by suggesting the idea of letting him remain in as indulgent confinement as possible till something less harsh might be done--though indeed I hardly knew what. At all events, if nothing else could be decided upon, the alms-house must receive him. I then begged to have an interview.

+

Being under no disgraceful charge, and quite serene and harmless in all his ways, they had permitted him freely to wander about the prison, and especially in the inclosed grass-platted yards thereof. And so I found him there, standing all alone in the quietest of the yards, his face towards a high wall, while all around, from the narrow slits of the jail windows, I thought I saw peering out upon him the eyes of murderers and thieves.

"Bartleby!"

-

"I know you," he said, without looking round,--"and I want nothing to - say to you."

-

"It was not I that brought you here, Bartleby," said I, keenly pained - at his implied suspicion. "And to you, this should not be so vile a place. - Nothing reproachful attaches to you by being here. And see, it is not so - sad a place as one might think. Look, there is the sky, and here is the - grass."

-

"I know where I am," he replied, but would say nothing more, and so I - left him.

-

As I entered the corridor again, a broad meat-like man in an apron, accosted - me, and jerking his thumb over his shoulder said--"Is that your friend?"

+

"I know you," he said, without looking round,--"and I want nothing to say to you."

+

"It was not I that brought you here, Bartleby," said I, keenly pained at his implied suspicion. "And to you, this should not be so vile a place. Nothing reproachful attaches to you by being here. And see, it is not so sad a place as one might think. Look, there is the sky, and here is the grass."

+

"I know where I am," he replied, but would say nothing more, and so I left him.

+

As I entered the corridor again, a broad meat-like man in an apron, accosted me, and jerking his thumb over his shoulder said--"Is that your friend?"

"Yes."

-

"Does he want to starve? If he does, let him live on the prison fare, - that's all.

-

"Who are you?" asked I, not knowing what to make of such an unofficially - speaking person in such a place.

-

"I am the grub-man. Such gentlemen as have friends here, hire me to provide - them with something good to eat."

+

"Does he want to starve? If he does, let him live on the prison fare, that's all.

+

"Who are you?" asked I, not knowing what to make of such an unofficially speaking person in such a place.

+

"I am the grub-man. Such gentlemen as have friends here, hire me to provide them with something good to eat."

"Is this so?" said I, turning to the turnkey.

He said it was.

-

"Well then," said I, slipping some silver into the grub-man's hands (for - so they called him). "I want you to give particular attention to my friend - there; let him have the best dinner you can get. And you must be as polite - to him as possible."

-

"Introduce me, will you?" said the grub-man, looking at me with an expression - which seemed to say he was all impatience for an opportunity to give a - specimen of his breeding.

-

Thinking it would prove of benefit to the scrivener, I acquiesced; and - asking the grub-man his name, went up with him to Bartleby.

+

"Well then," said I, slipping some silver into the grub-man's hands (for so they called him). "I want you to give particular attention to my friend there; let him have the best dinner you can get. And you must be as polite to him as possible."

+

"Introduce me, will you?" said the grub-man, looking at me with an expression which seemed to say he was all impatience for an opportunity to give a specimen of his breeding.

+

Thinking it would prove of benefit to the scrivener, I acquiesced; and asking the grub-man his name, went up with him to Bartleby.

"Bartleby, this is a friend; you will find him very useful to you."

-

"Your sarvant, sir, your sarvant," said the grub-man, making a low salutation - behind his apron. "Hope you find it pleasant here, sir;--spacious grounds--cool - apartments, sir--hope you'll stay with us some time--try to make it agreeable. - What will you have for dinner today?"

-

"I prefer not to dine to-day," said Bartleby, turning away. "It would - disagree with me; I am unused to dinners." So saying he slowly moved to - the other side of the inclosure, and took up a position fronting the dead-wall.

-

"How's this?" said the grub-man, addressing me with a stare of astonishment. - "He's odd, aint he?"

+

"Your sarvant, sir, your sarvant," said the grub-man, making a low salutation behind his apron. "Hope you find it pleasant here, sir;--spacious grounds--cool apartments, sir--hope you'll stay with us some time--try to make it agreeable. What will you have for dinner today?"

+

"I prefer not to dine to-day," said Bartleby, turning away. "It would disagree with me; I am unused to dinners." So saying he slowly moved to the other side of the inclosure, and took up a position fronting the dead-wall.

+

"How's this?" said the grub-man, addressing me with a stare of astonishment. "He's odd, aint he?"

"I think he is a little deranged," said I, sadly.

-

"Deranged? deranged is it? Well now, upon my word, I thought that friend - of yourn was a gentleman forger; they are always pale and genteel-like, - them forgers. I can't help pity 'em--can't help it, sir. Did you know Monroe - Edwards?" he added touchingly, and paused. Then, laying his hand pityingly - on my shoulder, sighed, "he died of consumption at Sing-Sing. so you weren't - acquainted with Monroe?"

-

"No, I was never socially acquainted with any forgers. But I cannot stop - longer. Look to my friend yonder. You will not lose by it. I will see you - again."

-

Some few days after this, I again obtained admission to the Tombs, and - went through the corridors in quest of Bartleby; but without finding him.

-

"I saw him coming from his cell not long ago," said a turnkey, "may be - he's gone to loiter in the yards."

+

"Deranged? deranged is it? Well now, upon my word, I thought that friend of yourn was a gentleman forger; they are always pale and genteel-like, them forgers. I can't help pity 'em--can't help it, sir. Did you know Monroe Edwards?" he added touchingly, and paused. Then, laying his hand pityingly on my shoulder, sighed, "he died of consumption at Sing-Sing. so you weren't acquainted with Monroe?"

+

"No, I was never socially acquainted with any forgers. But I cannot stop longer. Look to my friend yonder. You will not lose by it. I will see you again."

+

Some few days after this, I again obtained admission to the Tombs, and went through the corridors in quest of Bartleby; but without finding him.

+

"I saw him coming from his cell not long ago," said a turnkey, "may be he's gone to loiter in the yards."

So I went in that direction.

-

"Are you looking for the silent man?" said another turnkey passing me. - "Yonder he lies--sleeping in the yard there. 'Tis not twenty minutes since - I saw him lie down."

-

The yard was entirely quiet. It was not accessible to the common prisoners. - The surrounding walls, of amazing thickness, kept off all sound behind - them. The Egyptian character of the masonry weighed upon me with its gloom. - But a soft imprisoned turf grew under foot. The heart of the eternal pyramids, - it seemed, wherein, by some strange magic, through the clefts, grass-seed, - dropped by birds, had sprung.

-

Strangely huddled at the base of the wall, his knees drawn up, and lying - on his side, his head touching the cold stones, I saw the wasted Bartleby. - But nothing stirred. I paused; then went close up to him; stooped over, - and saw that his dim eyes were open; otherwise he seemed profoundly sleeping. - Something prompted me to touch him. I felt his hand, when a tingling shiver - ran up my arm and down my spine to my feet.

-

The round face of the grub-man peered upon me now. "His dinner is ready. - Won't he dine to-day, either? Or does he live without dining?"

+

"Are you looking for the silent man?" said another turnkey passing me. "Yonder he lies--sleeping in the yard there. 'Tis not twenty minutes since I saw him lie down."

+

The yard was entirely quiet. It was not accessible to the common prisoners. The surrounding walls, of amazing thickness, kept off all sound behind them. The Egyptian character of the masonry weighed upon me with its gloom. But a soft imprisoned turf grew under foot. The heart of the eternal pyramids, it seemed, wherein, by some strange magic, through the clefts, grass-seed, dropped by birds, had sprung.

+

Strangely huddled at the base of the wall, his knees drawn up, and lying on his side, his head touching the cold stones, I saw the wasted Bartleby. But nothing stirred. I paused; then went close up to him; stooped over, and saw that his dim eyes were open; otherwise he seemed profoundly sleeping. Something prompted me to touch him. I felt his hand, when a tingling shiver ran up my arm and down my spine to my feet.

+

The round face of the grub-man peered upon me now. "His dinner is ready. Won't he dine to-day, either? Or does he live without dining?"

"Lives without dining," said I, and closed the eyes.

"Eh!--He's asleep, aint he?"

"With kings and counsellors," murmured I.

* * * * * * * *

-

There would seem little need for proceeding further in this history. Imagination - will readily supply the meagre recital of poor Bartleby's interment. But - ere parting with the reader, let me say, that if this little narrative - has sufficiently interested him, to awaken curiosity as to who Bartleby - was, and what manner of life he led prior to the present narrator's making - his acquaintance, I can only reply, that in such curiosity I fully share, - but am wholly unable to gratify it. Yet here I hardly know whether I should - divulge one little item of rumor, which came to my ear a few months after - the scrivener's decease. Upon what basis it rested, I could never ascertain; - and hence how true it is I cannot now tell. But inasmuch as this vague - report has not been without a certain strange suggestive interest to me, - however said, it may prove the same with some others; and so I will briefly - mention it. The report was this: that Bartleby had been a subordinate clerk - in the Dead Letter Office at Washington, from which he had been suddenly removed - by a change in the administration. When I think over this rumor, I cannot - adequately express the emotions which seize me. Dead letters! does it not - sound like dead men? Conceive a man by nature and misfortune prone to a - pallid hopelessness, can any business seem more fitted to heighten it than - that of continually handling these dead letters and assorting them for - the flames? For by the cart-load they are annually burned. Sometimes from - out the folded paper the pale clerk takes a ring:--the bank-note sent in - swiftest charity:--he whom it would relieve, nor eats nor hungers any more; - pardon for those who died despairing; hope for those who died unhoping; - good tidings for those who died stifled by unrelieved calamities. On errands - of life, these letters speed to death.

-

Ah Bartleby! Ah humanity!

+

There would seem little need for proceeding further in this history. Imagination will readily supply the meagre recital of poor Bartleby's interment. But ere parting with the reader, let me say, that if this little narrative has sufficiently interested him, to awaken curiosity as to who Bartleby was, and what manner of life he led prior to the present narrator's making his acquaintance, I can only reply, that in such curiosity I fully share, but am wholly unable to gratify it. Yet here I hardly know whether I should divulge one little item of rumor, which came to my ear a few months after the scrivener's decease. Upon what basis it rested, I could never ascertain; and hence how true it is I cannot now tell. But inasmuch as this vague report has not been without a certain strange suggestive interest to me, however said, it may prove the same with some others; and so I will briefly mention it. The report was this: that Bartleby had been a subordinate clerk in the Dead Letter Office at Washington, from which he had been suddenly removed by a change in the administration. When I think over this rumor, I cannot adequately express the emotions which seize me. Dead letters! does it not sound like dead men? Conceive a man by nature and misfortune prone to a pallid hopelessness, can any business seem more fitted to heighten it than that of continually handling these dead letters and assorting them for the flames? For by the cart-load they are annually burned. Sometimes from out the folded paper the pale clerk takes a ring:--the bank-note sent in swiftest charity:--he whom it would relieve, nor eats nor hungers any more; pardon for those who died despairing; hope for those who died unhoping; good tidings for those who died stifled by unrelieved calamities. On errands of life, these letters speed to death.

+

Ah Bartleby! Ah humanity!

\ No newline at end of file diff --git a/test/test-pages/comment-inside-script-parsing/expected.html b/test/test-pages/comment-inside-script-parsing/expected.html index 5fb9089..f731d75 100644 --- a/test/test-pages/comment-inside-script-parsing/expected.html +++ b/test/test-pages/comment-inside-script-parsing/expected.html @@ -1,19 +1,11 @@
-

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.

-

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum - dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non - proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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.

+

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

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.

-

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum - dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non - proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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.

+

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\ No newline at end of file diff --git a/test/test-pages/embedded-videos/expected.html b/test/test-pages/embedded-videos/expected.html index bced20a..96b1094 100644 --- a/test/test-pages/embedded-videos/expected.html +++ b/test/test-pages/embedded-videos/expected.html @@ -1,37 +1,20 @@
-

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

Videos

- +

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

Videos

At root

- - - + + +

In a paragraph

- +

In a div

- +

-

Foo

- -

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

Foo

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-
+ \ No newline at end of file diff --git a/test/test-pages/heise/expected.html b/test/test-pages/heise/expected.html index 747530e..101c54e 100644 --- a/test/test-pages/heise/expected.html +++ b/test/test-pages/heise/expected.html @@ -1,41 +1,16 @@
-
- +

1Password scannt auch QR-Codes.

(Bild: Hersteller)

-

Das in der iOS-Version bereits enthaltene TOTP-Feature ist nun auch für OS X 10.10 verfügbar. Zudem gibt es neue Zusatzfelder in der Datenbank und weitere Verbesserungen. -

-

AgileBits hat Version 5.3 seines bekannten Passwortmanagers 1Password für OS X freigegeben. Mit - dem Update wird eine praktische Funktion nachgereicht, die die iOS-Version der Anwendung bereits seit längerem beherrscht: - Das direkte Erstellen von Einmal-Passwörtern. Unterstützt wird dabei der - TOTP-Standard(Time-Based One-Time Passwords), den unter anderem Firmen - wie Evernote, Dropbox oder Google einsetzen, um ihre Zugänge besser abzusichern. - Neben Account und regulärem Passwort wird dabei dann ein Zusatzcode verlangt, - der nur kurze Zeit gilt.

-

Zur TOTP-Nutzung muss zunächst ein Startwert an 1Password übergeben werden. - Das geht unter anderem per QR-Code, den die App über ein neues Scanfenster - selbst einlesen kann – etwa aus dem Webbrowser. Eine Einführung in die - Technik gibt ein kurzes Video. - Die TOTP-Unterstützung in 1Password erlaubt es, auf ein zusätzliches Gerät - (z.B. ein iPhone) neben dem Mac zu verzichten, das den Code liefert – was - allerdings auch die Sicherheit verringert, weil es keinen "echten" zweiten - Faktor mehr gibt.

-

Update 5.3 des Passwortmanagers liefert auch noch weitere Verbesserungen. - So gibt es die Möglichkeit, FaceTime-Audio- oder Skype-Anrufe aus 1Password - zu starten, die Zahl der Zusatzfelder in der Datenbank wurde erweitert - und der Umgang mit unterschiedlichen Zeitzonen klappt besser. Die Engine - zur Passworteingabe im Browser soll beschleunigt worden sein.

-

1Password kostet aktuell knapp 50 Euro im Mac App Store und setzt in seiner - aktuellen Version mindestens OS X 10.10 voraus. -(bsc) - -
-

+

Das in der iOS-Version bereits enthaltene TOTP-Feature ist nun auch für OS X 10.10 verfügbar. Zudem gibt es neue Zusatzfelder in der Datenbank und weitere Verbesserungen.

+

AgileBits hat Version 5.3 seines bekannten Passwortmanagers 1Password für OS X freigegeben. Mit dem Update wird eine praktische Funktion nachgereicht, die die iOS-Version der Anwendung bereits seit längerem beherrscht: Das direkte Erstellen von Einmal-Passwörtern. Unterstützt wird dabei der TOTP-Standard (Time-Based One-Time Passwords), den unter anderem Firmen wie Evernote, Dropbox oder Google einsetzen, um ihre Zugänge besser abzusichern. Neben Account und regulärem Passwort wird dabei dann ein Zusatzcode verlangt, der nur kurze Zeit gilt.

+

Zur TOTP-Nutzung muss zunächst ein Startwert an 1Password übergeben werden. Das geht unter anderem per QR-Code, den die App über ein neues Scanfenster selbst einlesen kann – etwa aus dem Webbrowser. Eine Einführung in die Technik gibt ein kurzes Video. Die TOTP-Unterstützung in 1Password erlaubt es, auf ein zusätzliches Gerät (z.B. ein iPhone) neben dem Mac zu verzichten, das den Code liefert – was allerdings auch die Sicherheit verringert, weil es keinen "echten" zweiten Faktor mehr gibt.

+

Update 5.3 des Passwortmanagers liefert auch noch weitere Verbesserungen. So gibt es die Möglichkeit, FaceTime-Audio- oder Skype-Anrufe aus 1Password zu starten, die Zahl der Zusatzfelder in der Datenbank wurde erweitert und der Umgang mit unterschiedlichen Zeitzonen klappt besser. Die Engine zur Passworteingabe im Browser soll beschleunigt worden sein.

+

1Password kostet aktuell knapp 50 Euro im Mac App Store und setzt in seiner aktuellen Version mindestens OS X 10.10 voraus. (bsc) +

\ No newline at end of file diff --git a/test/test-pages/herald-sun-1/expected.html b/test/test-pages/herald-sun-1/expected.html index 12618b1..578ca99 100644 --- a/test/test-pages/herald-sun-1/expected.html +++ b/test/test-pages/herald-sun-1/expected.html @@ -2,95 +2,35 @@
-
- A new Bill would require telecommunications service providers to store so-called ‘metadat -
-

A new Bill would require telecommunications service providers to store so-called ‘metadata’ for two years. - - Source: -Supplied -

+
A new Bill would require telecommunications service providers to store so-called ‘metadat
+

A new Bill would require telecommunications service providers to store so-called ‘metadata’ for two years. Source: + Supplied

A HIGH-powered federal government team has been doing the rounds of media organisations in the past few days in an attempt to allay concerns about the impact of new surveillance legislation on press freedom. It failed. - -

-

The roadshow featured the Prime Minister’s national security adviser, - Andrew Shearer, Justin Bassi, who advises Attorney-General George Brandis - on crime and security matters, and Australian Federal Police Commissioner - Andrew Colvin. Staffers from the office of Communications Minister Malcolm - Turnbull also took part.

-

They held meetings with executives from News Corporation and Fairfax, - representatives of the TV networks, the ABC top brass and a group from - the media union and the Walkley journalism foundation. I was involved as - a member of the Walkley board.

-

The initiative, from Tony Abbott’s office, is evidence that the Government - has been alarmed by the strength of criticism from media of the Data Retention - Bill it wants passed before Parliament rises in a fortnight. Bosses, journalists, - even the Press Council, are up in arms, not only over this measure, but - also over aspects of two earlier pieces of national security legislation - that interfere with the ability of the media to hold government to account.

-
+

+

The roadshow featured the Prime Minister’s national security adviser, Andrew Shearer, Justin Bassi, who advises Attorney-General George Brandis on crime and security matters, and Australian Federal Police Commissioner Andrew Colvin. Staffers from the office of Communications Minister Malcolm Turnbull also took part.

+

They held meetings with executives from News Corporation and Fairfax, representatives of the TV networks, the ABC top brass and a group from the media union and the Walkley journalism foundation. I was involved as a member of the Walkley board.

+

The initiative, from Tony Abbott’s office, is evidence that the Government has been alarmed by the strength of criticism from media of the Data Retention Bill it wants passed before Parliament rises in a fortnight. Bosses, journalists, even the Press Council, are up in arms, not only over this measure, but also over aspects of two earlier pieces of national security legislation that interfere with the ability of the media to hold government to account.

+
-

The Bill would require telecommunications service providers to store so-called - “metadata” — the who, where, when and how of a communication, but not its - content — for two years so security and law enforcement agencies can access - it without warrant. Few would argue against the use of such material to - catch criminals or terrorists. But, as Parliament’s Joint Committee on - Intelligence and Security has pointed out, it would also be used “for the - purpose of determining the identity of a journalist’s sources”.

-

And that should ring warning bells for anyone genuinely concerned with - the health of our democracy. Without the ability to protect the identity - of sources, journalists would be greatly handicapped in exposing corruption, - dishonesty, waste, incompetence and misbehaviour by public officials.

+

The Bill would require telecommunications service providers to store so-called “metadata” — the who, where, when and how of a communication, but not its content — for two years so security and law enforcement agencies can access it without warrant. Few would argue against the use of such material to catch criminals or terrorists. But, as Parliament’s Joint Committee on Intelligence and Security has pointed out, it would also be used “for the purpose of determining the identity of a journalist’s sources”.

+

And that should ring warning bells for anyone genuinely concerned with the health of our democracy. Without the ability to protect the identity of sources, journalists would be greatly handicapped in exposing corruption, dishonesty, waste, incompetence and misbehaviour by public officials.

The Press Council is concerned the laws would crush investigative journalism.

-

“These legitimate concerns cannot be addressed effectively short of exempting - journalists and media organisations,” says president David Weisbrot.

-

The media union is adamant journalists’ metadata must be exempted from - the law. That’s what media bosses want, too, though they have a fallback - position based on new safeguards being implemented in Britain.

-

That would prevent access to the metadata of journalists or media organisations - without a judicial warrant. There would be a code including — according - to the explanatory notes of the British Bill — “provision to protect the - public interest in the confidentiality of journalistic sources”.

-

In their meetings this week, the government team boasted of concessions - in the new Data Retention Bill. The number of agencies able to access metadata - will be reduced by excluding such organisations as the RSPCA and local - councils. And whenever an authorisation is issued for access to information - about a journalist’s sources, the Ombudsman (or, where ASIO is involved, - the Inspector-General of Intelligence and Security) will receive a copy.

-

That does nothing to solve the problem. The Government has effectively - admitted as much by agreeing that the parliamentary committee should conduct - a separate review of how to deal with the issue of journalists’ sources.

-

But another inquiry would be a waste of time — the committee has already - received and considered dozens of submissions on the subject. The bottom - line is that the Government does not deny that the legislation is flawed, - but is demanding it be passed anyway with the possibility left open of - a repair job down the track. That is a ridiculous approach.

-

Claims that immediate action is imperative do not stand up. These are - measures that won’t come into full effect for two years. Anyway, amending - the Bill to either exempt journalists or adopt the UK model could be done - quickly, without any risk to national security.

-

AS Opposition Leader Bill Shorten said in a letter to Abbott last month: - “Press freedom concerns about mandatory data retention would ideally be - addressed in this Bill to avoid the need for future additional amendments - or procedures to be put in place in the future.”

-

The Data Retention Bill will be debated in the House of Representatives - this week. Then, on Friday, CEOs from leading media organisations will - front the parliamentary committee to air their concerns before the legislation - goes to the Senate.

-

Those CEOs should make it clear they are just as angry about this as they - were about Stephen Conroy’s attempt to impinge on press freedom through - media regulation under the previous Labor government.

-

Memories of the grief Conroy brought down on his head would undoubtedly - make Abbott sit up and take notice.

-

LAURIE OAKES IS THE NINE NETWORK POLITICAL EDITOR -

+

“These legitimate concerns cannot be addressed effectively short of exempting journalists and media organisations,” says president David Weisbrot.

+

The media union is adamant journalists’ metadata must be exempted from the law. That’s what media bosses want, too, though they have a fallback position based on new safeguards being implemented in Britain.

+

That would prevent access to the metadata of journalists or media organisations without a judicial warrant. There would be a code including — according to the explanatory notes of the British Bill — “provision to protect the public interest in the confidentiality of journalistic sources”.

+

In their meetings this week, the government team boasted of concessions in the new Data Retention Bill. The number of agencies able to access metadata will be reduced by excluding such organisations as the RSPCA and local councils. And whenever an authorisation is issued for access to information about a journalist’s sources, the Ombudsman (or, where ASIO is involved, the Inspector-General of Intelligence and Security) will receive a copy.

+

That does nothing to solve the problem. The Government has effectively admitted as much by agreeing that the parliamentary committee should conduct a separate review of how to deal with the issue of journalists’ sources.

+

But another inquiry would be a waste of time — the committee has already received and considered dozens of submissions on the subject. The bottom line is that the Government does not deny that the legislation is flawed, but is demanding it be passed anyway with the possibility left open of a repair job down the track. That is a ridiculous approach.

+

Claims that immediate action is imperative do not stand up. These are measures that won’t come into full effect for two years. Anyway, amending the Bill to either exempt journalists or adopt the UK model could be done quickly, without any risk to national security.

+

AS Opposition Leader Bill Shorten said in a letter to Abbott last month: “Press freedom concerns about mandatory data retention would ideally be addressed in this Bill to avoid the need for future additional amendments or procedures to be put in place in the future.”

+

The Data Retention Bill will be debated in the House of Representatives this week. Then, on Friday, CEOs from leading media organisations will front the parliamentary committee to air their concerns before the legislation goes to the Senate.

+

Those CEOs should make it clear they are just as angry about this as they were about Stephen Conroy’s attempt to impinge on press freedom through media regulation under the previous Labor government.

+

Memories of the grief Conroy brought down on his head would undoubtedly make Abbott sit up and take notice.

+

LAURIE OAKES IS THE NINE NETWORK POLITICAL EDITOR

+
-
\ No newline at end of file diff --git a/test/test-pages/keep-images/expected.html b/test/test-pages/keep-images/expected.html index af74767..5929d7a 100644 --- a/test/test-pages/keep-images/expected.html +++ b/test/test-pages/keep-images/expected.html @@ -2,479 +2,155 @@
-
- -
+

Welcome to DoctorX’s Barcelona lab, where the drugs you bought online are tested for safety and purity. No questions asked.

-
- -
+
-

Standing at a table in a chemistry lab in Barcelona, Cristina Gil Lladanosa - tears open a silver, smell-proof protective envelope. She slides out a - transparent bag full of crystals. Around her, machines whir and hum, and - other researchers mill around in long, white coats.

-

She is holding the lab’s latest delivery of a drug bought from the “deep - web,” the clandestine corner of the internet that isn’t reachable by normal - search engines, and is home to some sites that require special software - to access. Labeled as MDMA (the street - term is ecstasy), this sample has been shipped from Canada. Lladanosa and - her colleague Iván Fornís Espinosa have also received drugs, anonymously, - from people in China, Australia, Europe and the United States.

-

“Here we have speed, MDMA, cocaine, pills,” Lladanosa says, pointing to - vials full of red, green, blue and clear solutions sitting in labeled boxes.

+

Standing at a table in a chemistry lab in Barcelona, Cristina Gil Lladanosa tears open a silver, smell-proof protective envelope. She slides out a transparent bag full of crystals. Around her, machines whir and hum, and other researchers mill around in long, white coats.

+

She is holding the lab’s latest delivery of a drug bought from the “deep web,” the clandestine corner of the internet that isn’t reachable by normal search engines, and is home to some sites that require special software to access. Labeled as MDMA (the street term is ecstasy), this sample has been shipped from Canada. Lladanosa and her colleague Iván Fornís Espinosa have also received drugs, anonymously, from people in China, Australia, Europe and the United States.

+

“Here we have speed, MDMA, cocaine, pills,” Lladanosa says, pointing to vials full of red, green, blue and clear solutions sitting in labeled boxes.

-
- -
+
Cristina Gil Lladanosa, at the Barcelona testing lab | photo by Joan Bardeletti
-

Since 2011, with the launch of Silk Road, anybody has been able to safely buy illegal - drugs from the deep web and have them delivered to their door. Though the - FBI shut down that black market in October 2013, other outlets have emerged - to fill its role. For the last 10 months the lab at which Lladanosa and - Espinosa work has offered a paid testing service of those drugs. By sending - in samples for analysis, users can know exactly what it is they are buying, - and make a more informed decision about whether to ingest the substance. - The group, called Energy Control, - which has being running “harm reduction” programs since 1999, is the first - to run a testing service explicitly geared towards verifying those purchases - from the deep web.

-

Before joining Energy Control, Lladanosa briefly worked at a pharmacy, - whereas Espinosa spent 14 years doing drug analysis. Working at Energy - Control is “more gratifying,” and “rewarding” than her previous jobs, Lladanosa - told me. They also receive help from a group of volunteers, made up of - a mixture of “squatters,” as Espinosa put it, and medical students, who - prepare the samples for testing.

-

After weighing out the crystals, aggressively mixing it with methanol - until dissolved, and delicately pouring the liquid into a tiny brown bottle, - Lladanosa, a petite woman who is nearly engulfed by her lab coat, is now - ready to test the sample. She loads a series of three trays on top of a - large white appliance sitting on a table, called a gas chromatograph (GC). - A jungle of thick pipes hang from the lab’s ceiling behind it.

+

Since 2011, with the launch of Silk Road, anybody has been able to safely buy illegal drugs from the deep web and have them delivered to their door. Though the FBI shut down that black market in October 2013, other outlets have emerged to fill its role. For the last 10 months the lab at which Lladanosa and Espinosa work has offered a paid testing service of those drugs. By sending in samples for analysis, users can know exactly what it is they are buying, and make a more informed decision about whether to ingest the substance. The group, called Energy Control, which has being running “harm reduction” programs since 1999, is the first to run a testing service explicitly geared towards verifying those purchases from the deep web.

+

Before joining Energy Control, Lladanosa briefly worked at a pharmacy, whereas Espinosa spent 14 years doing drug analysis. Working at Energy Control is “more gratifying,” and “rewarding” than her previous jobs, Lladanosa told me. They also receive help from a group of volunteers, made up of a mixture of “squatters,” as Espinosa put it, and medical students, who prepare the samples for testing.

+

After weighing out the crystals, aggressively mixing it with methanol until dissolved, and delicately pouring the liquid into a tiny brown bottle, Lladanosa, a petite woman who is nearly engulfed by her lab coat, is now ready to test the sample. She loads a series of three trays on top of a large white appliance sitting on a table, called a gas chromatograph (GC). A jungle of thick pipes hang from the lab’s ceiling behind it.

-
- -
+
Photo by Joan Bardeletti
-

“Chromatography separates all the substances,” Lladanosa says as she loads - the machine with an array of drugs sent from the deep web and local Spanish - users. It can tell whether a sample is pure or contaminated, and if the - latter, with what.

-

Rushes of hot air blow across the desk as the gas chromatograph blasts - the sample at 280 degrees Celsius. Thirty minutes later the machine’s robotic - arm automatically moves over to grip another bottle. The machine will continue - cranking through the 150 samples in the trays for most of the work week.

+

“Chromatography separates all the substances,” Lladanosa says as she loads the machine with an array of drugs sent from the deep web and local Spanish users. It can tell whether a sample is pure or contaminated, and if the latter, with what.

+

Rushes of hot air blow across the desk as the gas chromatograph blasts the sample at 280 degrees Celsius. Thirty minutes later the machine’s robotic arm automatically moves over to grip another bottle. The machine will continue cranking through the 150 samples in the trays for most of the work week.

-
- -
+
Photo by Joan Bardeletti
-

To get the drugs to Barcelona, a user mails at least 10 milligrams of - a substance to the offices of the Asociación Bienestar y Desarrollo, the - non-government organization that oversees Energy Control. The sample then - gets delivered to the testing service’s laboratory, at the Barcelona Biomedical - Research Park, a futuristic, seven story building sitting metres away from - the beach. Energy Control borrows its lab space from a biomedical research - group for free.

-

The tests cost 50 Euro per sample. Users pay, not surprisingly, with Bitcoin. - In the post announcing Energy Control’s service on the deep web, the group - promised that “All profits of this service are set aside of maintenance - of this project.”

-

About a week after testing, those results are sent in a PDF to an email - address provided by the anonymous client.

-

“The process is quite boring, because you are in a routine,” Lladanosa - says. But one part of the process is consistently surprising: that moment - when the results pop up on the screen. “Every time it’s something different.” - For instance, one cocaine sample she had tested also contained phenacetin, - a painkiller added to increase the product’s weight; lidocaine, an anesthetic - that numbs the gums, giving the impression that the user is taking higher - quality cocaine; and common caffeine.

-
-
- -
+

To get the drugs to Barcelona, a user mails at least 10 milligrams of a substance to the offices of the Asociación Bienestar y Desarrollo, the non-government organization that oversees Energy Control. The sample then gets delivered to the testing service’s laboratory, at the Barcelona Biomedical Research Park, a futuristic, seven story building sitting metres away from the beach. Energy Control borrows its lab space from a biomedical research group for free.

+

The tests cost 50 Euro per sample. Users pay, not surprisingly, with Bitcoin. In the post announcing Energy Control’s service on the deep web, the group promised that “All profits of this service are set aside of maintenance of this project.”

+

About a week after testing, those results are sent in a PDF to an email address provided by the anonymous client.

+

“The process is quite boring, because you are in a routine,” Lladanosa says. But one part of the process is consistently surprising: that moment when the results pop up on the screen. “Every time it’s something different.” For instance, one cocaine sample she had tested also contained phenacetin, a painkiller added to increase the product’s weight; lidocaine, an anesthetic that numbs the gums, giving the impression that the user is taking higher quality cocaine; and common caffeine.

+
+
-

The deep web drug lab is the brainchild of Fernando Caudevilla, a Spanish - physician who is better known as “DoctorX” on the deep web, a nickname - given to him by his Energy Control co-workers because of his earlier writing - about the history, risks and recreational culture of MDMA. In the physical - world, Caudevilla has worked for over a decade with Energy Control on various - harm reduction focused projects, most of which have involved giving Spanish - illegal drug users medical guidance, and often writing leaflets about the - harms of certain substances.

+

The deep web drug lab is the brainchild of Fernando Caudevilla, a Spanish physician who is better known as “DoctorX” on the deep web, a nickname given to him by his Energy Control co-workers because of his earlier writing about the history, risks and recreational culture of MDMA. In the physical world, Caudevilla has worked for over a decade with Energy Control on various harm reduction focused projects, most of which have involved giving Spanish illegal drug users medical guidance, and often writing leaflets about the harms of certain substances.

-
- -
+
Fernando Caudevilla, AKA DoctorX. Photo: Joseph Cox
-

Caudevilla first ventured into Silk Road forums in April 2013. “I would - like to contribute to this forum offering professional advice in topics - related to drug use and health,” he wrote in an introductory post, - using his DoctorX alias. Caudevilla offered to provide answers to questions - that a typical doctor is not prepared, or willing, to respond to, at least - not without a lecture or a judgment. “This advice cannot replace a complete - face-to-face medical evaluation,” he wrote, “but I know how difficult it - can be to talk frankly about these things.”

-

The requests flooded in. A diabetic asked what effect MDMA has on blood - sugar; another what the risks of frequent psychedelic use were for a young - person. Someone wanted to know whether amphetamine use should be avoided - during lactation. In all, Fernando’s thread received over 50,000 visits - and 300 questions before the FBI shut down Silk Road.

-

“He’s amazing. A gift to this community,” one user wrote on the Silk Road - 2.0 forum, a site that sprang up after the original. “His knowledge is - invaluable, and never comes with any judgment.” Up until recently, Caudevilla - answered questions on the marketplace “Evolution.” Last week, however, - the administrators of that site pulled a scam, - shutting the market down and escaping with an estimated $12 million worth - of Bitcoin.

-

Caudevilla’s transition from dispensing advice to starting up a no-questions-asked - drug testing service came as a consequence of his experience on the deep - web. He’d wondered whether he could help bring more harm reduction services - to a marketplace without controls. The Energy Control project, as part - of its mandate of educating drug users and preventing harm, had already - been carrying out drug testing for local Spanish users since 2001, at music - festivals, night clubs, or through a drop-in service at a lab in Madrid.

-

“I thought, we are doing this in Spain, why don’t we do an international - drug testing service?” Caudevilla told me when I visited the other Energy - Control lab, in Madrid. Caudevilla, a stocky character with ear piercings - and short, shaved hair, has eyes that light up whenever he discusses the - world of the deep web. Later, via email, he elaborated that it was not - a hard sell. “It was not too hard to convince them,” he wrote me. Clearly, - Energy Control believed that the reputation he had earned as an unbiased - medical professional on the deep web might carry over to the drug analysis - service, where one needs to establish “credibility, trustworthiness, [and] - transparency,” Caudevilla said. “We could not make mistakes,” he added.

+

Caudevilla first ventured into Silk Road forums in April 2013. “I would like to contribute to this forum offering professional advice in topics related to drug use and health,” he wrote in an introductory post, using his DoctorX alias. Caudevilla offered to provide answers to questions that a typical doctor is not prepared, or willing, to respond to, at least not without a lecture or a judgment. “This advice cannot replace a complete face-to-face medical evaluation,” he wrote, “but I know how difficult it can be to talk frankly about these things.”

+

The requests flooded in. A diabetic asked what effect MDMA has on blood sugar; another what the risks of frequent psychedelic use were for a young person. Someone wanted to know whether amphetamine use should be avoided during lactation. In all, Fernando’s thread received over 50,000 visits and 300 questions before the FBI shut down Silk Road.

+

“He’s amazing. A gift to this community,” one user wrote on the Silk Road 2.0 forum, a site that sprang up after the original. “His knowledge is invaluable, and never comes with any judgment.” Up until recently, Caudevilla answered questions on the marketplace “Evolution.” Last week, however, the administrators of that site pulled a scam, shutting the market down and escaping with an estimated $12 million worth of Bitcoin.

+

Caudevilla’s transition from dispensing advice to starting up a no-questions-asked drug testing service came as a consequence of his experience on the deep web. He’d wondered whether he could help bring more harm reduction services to a marketplace without controls. The Energy Control project, as part of its mandate of educating drug users and preventing harm, had already been carrying out drug testing for local Spanish users since 2001, at music festivals, night clubs, or through a drop-in service at a lab in Madrid.

+

“I thought, we are doing this in Spain, why don’t we do an international drug testing service?” Caudevilla told me when I visited the other Energy Control lab, in Madrid. Caudevilla, a stocky character with ear piercings and short, shaved hair, has eyes that light up whenever he discusses the world of the deep web. Later, via email, he elaborated that it was not a hard sell. “It was not too hard to convince them,” he wrote me. Clearly, Energy Control believed that the reputation he had earned as an unbiased medical professional on the deep web might carry over to the drug analysis service, where one needs to establish “credibility, trustworthiness, [and] transparency,” Caudevilla said. “We could not make mistakes,” he added.

-
- -
+
Photo: Joseph Cox
-
- -
+
-

While the Energy Control lab in Madrid lab only tests Spanish drugs from - various sources, it is the Barcelona location which vets the substances - bought in the shadowy recesses of of the deep web. Caudevilla no longer - runs it, having handed it over to his colleague Ana Muñoz. She maintains - a presence on the deep web forums, answers questions from potential users, - and sends back reports when they are ready.

-

The testing program exists in a legal grey area. The people who own the - Barcelona lab are accredited to experiment with and handle drugs, but Energy - Control doesn’t have this permission itself, at least not in writing.

-

“We have a verbal agreement with the police and other authorities. They - already know what we are doing,” Lladanosa tells me. It is a pact of mutual - benefit. Energy Control provides the police with information on batches - of drugs in Spain, whether they’re from the deep web or not, Espinosa says. - They also contribute to the European Monitoring Centre for Drugs and Drug - Addiction’s early warning system, a collaboration that attempts to spread - information about dangerous drugs as quickly as possible.

-

By the time of my visit in February, Energy Control had received over - 150 samples from the deep web and have been receiving more at a rate of - between 4 and 8 a week. Traditional drugs, such as cocaine and MDMA, make - up about 70 percent of the samples tested, but the Barcelona lab has also - received samples of the prescription pill codeine, research chemicals and - synthetic cannabinoids, and even pills of Viagra.

+

While the Energy Control lab in Madrid lab only tests Spanish drugs from various sources, it is the Barcelona location which vets the substances bought in the shadowy recesses of of the deep web. Caudevilla no longer runs it, having handed it over to his colleague Ana Muñoz. She maintains a presence on the deep web forums, answers questions from potential users, and sends back reports when they are ready.

+

The testing program exists in a legal grey area. The people who own the Barcelona lab are accredited to experiment with and handle drugs, but Energy Control doesn’t have this permission itself, at least not in writing.

+

“We have a verbal agreement with the police and other authorities. They already know what we are doing,” Lladanosa tells me. It is a pact of mutual benefit. Energy Control provides the police with information on batches of drugs in Spain, whether they’re from the deep web or not, Espinosa says. They also contribute to the European Monitoring Centre for Drugs and Drug Addiction’s early warning system, a collaboration that attempts to spread information about dangerous drugs as quickly as possible.

+

By the time of my visit in February, Energy Control had received over 150 samples from the deep web and have been receiving more at a rate of between 4 and 8 a week. Traditional drugs, such as cocaine and MDMA, make up about 70 percent of the samples tested, but the Barcelona lab has also received samples of the prescription pill codeine, research chemicals and synthetic cannabinoids, and even pills of Viagra.

-
- -
+
Photo by Joan Bardeletti
-

So it’s fair to make a tentative judgement on what people are paying for - on the deep web. The verdict thus far? Overall, drugs on the deep web appear - to be of much higher quality than those found on the street.

-

“In general, the cocaine is amazing,” says Caudevilla, saying that the - samples they’ve seen have purities climbing towards 80 or 90 percent, and - some even higher. To get an idea of how unusual this is, take a look at - the United Nations Office on Drugs and Crime World Drug Report 2014, - which reports that the average quality of street cocaine in Spain is just - over 40 percent, while in the United Kingdom it is closer to 30 percent.“We - have found 100 percent [pure] cocaine,” he adds. “That’s really, really - strange. That means that, technically, this cocaine has been purified, - with clandestine methods.”

-

Naturally, identifying vendors who sell this top-of-the-range stuff is - one of the reasons that people have sent samples to Energy Control. Caudevilla - was keen to stress that, officially, Energy Control’s service “is not intended - to be a control of drug quality,” meaning a vetting process for identifying - the best sellers, but that is exactly how some people have been using it.

-

As one buyer on the Evolution market, elmo666, wrote to me over the site’s - messaging system, “My initial motivations were selfish. My primary motivation - was to ensure that I was receiving and continue to receive a high quality - product, essentially to keep the vendor honest as far as my interactions - with them went.”

-

Vendors on deep web markets advertise their product just like any other - outlet does, using flash sales, gimmicky giveaways and promises of drugs - that are superior to those of their competitors. The claims, however, can - turn out to be empty: despite the test results that show that deep web - cocaine vendors typically sell product that is of a better quality than - that found on the street, in plenty of cases, the drugs are nowhere near - as pure as advertised.

-

“You won’t be getting anything CLOSE to what you paid for,” one user complained - about the cocaine from ‘Mirkov’, a vendor on Evolution. “He sells 65% not - 95%.”

+

So it’s fair to make a tentative judgement on what people are paying for on the deep web. The verdict thus far? Overall, drugs on the deep web appear to be of much higher quality than those found on the street.

+

“In general, the cocaine is amazing,” says Caudevilla, saying that the samples they’ve seen have purities climbing towards 80 or 90 percent, and some even higher. To get an idea of how unusual this is, take a look at the United Nations Office on Drugs and Crime World Drug Report 2014, which reports that the average quality of street cocaine in Spain is just over 40 percent, while in the United Kingdom it is closer to 30 percent.“We have found 100 percent [pure] cocaine,” he adds. “That’s really, really strange. That means that, technically, this cocaine has been purified, with clandestine methods.”

+

Naturally, identifying vendors who sell this top-of-the-range stuff is one of the reasons that people have sent samples to Energy Control. Caudevilla was keen to stress that, officially, Energy Control’s service “is not intended to be a control of drug quality,” meaning a vetting process for identifying the best sellers, but that is exactly how some people have been using it.

+

As one buyer on the Evolution market, elmo666, wrote to me over the site’s messaging system, “My initial motivations were selfish. My primary motivation was to ensure that I was receiving and continue to receive a high quality product, essentially to keep the vendor honest as far as my interactions with them went.”

+

Vendors on deep web markets advertise their product just like any other outlet does, using flash sales, gimmicky giveaways and promises of drugs that are superior to those of their competitors. The claims, however, can turn out to be empty: despite the test results that show that deep web cocaine vendors typically sell product that is of a better quality than that found on the street, in plenty of cases, the drugs are nowhere near as pure as advertised.

+

“You won’t be getting anything CLOSE to what you paid for,” one user complained about the cocaine from ‘Mirkov’, a vendor on Evolution. “He sells 65% not 95%.”

-
- -
+
Photo by Joan Bardeletti
-
- -
+
-

Despite the prevalence of people using the service to gauge the quality - of what goes up their nose, many users send samples to Energy Control in - the spirit of its original mission: keeping themselves alive and healthy. - The worst case scenario from drugs purchased on the deep web is, well the - worst case. That was the outcome when Patrick McMullen, a - 17-year-old Scottish student, ingested half a gram of MDMA and three tabs - of LSD, reportedly purchased from the Silk Road. While talking to his friends - on Skype, his words became slurred and he passed out. Paramedics could - not revive him. The coroner for that case, Sherrif Payne, who deemed the - cause of death ecstasy toxicity, told The Independent “You - never know the purity of what you are taking and you can easily come unstuck.”

-

ScreamMyName, a deep web user who has been active since the original Silk - Road, wants to alert users to the dangerous chemicals that are often mixed - with drugs, and is using Energy Control as a means to do so.

-

“We’re at a time where some vendors are outright sending people poison. - Some do it unknowingly,” ScreamMyName told me in an encrypted message. - “Cocaine production in South America is often tainted with either levamisole - or phenacetine. Both poison to humans and both with severe side effects.”

-

In the case of Levamisole, those prescribing it are often not doctors - but veterinarians, as Levamisole is commonly used on animals, primarily - for the treatment of worms. If ingested by humans it can lead to cases - of extreme eruptions of the skin, as documented in a study from researchers at the University - of California, San Francisco. But Lladanosa has found Levamisole in cocaine - samples; dealers use it to increase the product weight, allowing them to - stretch their batch further for greater profit — and also, she says, because - Levamisole has a strong stimulant effect.

-

“It got me sick as fuck,” Dr. Feel, an Evolution user, wrote on the site’s - forums after consuming cocaine that had been cut with 23 percent Levamisole, - and later tested by Energy Control. “I was laid up in bed for several days - because of that shit. The first night I did it, I thought I was going to - die. I nearly drove myself to the ER.”

-

“More people die because of tainted drugs than the drugs themselves,” - Dr. Feel added. “It’s the cuts and adulterants that are making people sick - and killing them.”

+

Despite the prevalence of people using the service to gauge the quality of what goes up their nose, many users send samples to Energy Control in the spirit of its original mission: keeping themselves alive and healthy. The worst case scenario from drugs purchased on the deep web is, well the worst case. That was the outcome when Patrick McMullen, a 17-year-old Scottish student, ingested half a gram of MDMA and three tabs of LSD, reportedly purchased from the Silk Road. While talking to his friends on Skype, his words became slurred and he passed out. Paramedics could not revive him. The coroner for that case, Sherrif Payne, who deemed the cause of death ecstasy toxicity, told The Independent “You never know the purity of what you are taking and you can easily come unstuck.”

+

ScreamMyName, a deep web user who has been active since the original Silk Road, wants to alert users to the dangerous chemicals that are often mixed with drugs, and is using Energy Control as a means to do so.

+

“We’re at a time where some vendors are outright sending people poison. Some do it unknowingly,” ScreamMyName told me in an encrypted message. “Cocaine production in South America is often tainted with either levamisole or phenacetine. Both poison to humans and both with severe side effects.”

+

In the case of Levamisole, those prescribing it are often not doctors but veterinarians, as Levamisole is commonly used on animals, primarily for the treatment of worms. If ingested by humans it can lead to cases of extreme eruptions of the skin, as documented in a study from researchers at the University of California, San Francisco. But Lladanosa has found Levamisole in cocaine samples; dealers use it to increase the product weight, allowing them to stretch their batch further for greater profit — and also, she says, because Levamisole has a strong stimulant effect.

+

“It got me sick as fuck,” Dr. Feel, an Evolution user, wrote on the site’s forums after consuming cocaine that had been cut with 23 percent Levamisole, and later tested by Energy Control. “I was laid up in bed for several days because of that shit. The first night I did it, I thought I was going to die. I nearly drove myself to the ER.”

+

“More people die because of tainted drugs than the drugs themselves,” Dr. Feel added. “It’s the cuts and adulterants that are making people sick and killing them.”

-
- -
+
Photo by Joan Bardeletti
-

The particular case of cocaine cut with Levamisole is one of the reasons - that ScreamMyName has been pushing for more drug testing on the deep web - markets. “I recognize that drug use isn’t exactly healthy, but why exacerbate - the problem?” he told me when I contacted him after his post. “[Energy - Control] provides a way for users to test the drugs they’ll use and for - these very users to know what it is they’re putting in their bodies. Such - services are in very short supply.”

-

After sending a number of Energy Control tests himself, ScreamMyName started - a de facto crowd-sourcing campaign to get more drugs sent to the lab, and - then shared the results, after throwing in some cash to get the ball rolling. - He set up a Bitcoin wallet, with the hope that users might chip in - to fund further tests. At the time of writing, the wallet has received - a total of 1.81 bitcoins; around $430 at today’s exchange rates.

-

In posts to the Evolution community, ScreamMyName pitched this project - as something that will benefit users and keep drug dealer honest. “When - the funds build up to a point where we can purchase an [Energy Control] - test fee, we’ll do a US thread poll for a few days and try to cohesively - decide on what vendor to test,” he continued.

+

The particular case of cocaine cut with Levamisole is one of the reasons that ScreamMyName has been pushing for more drug testing on the deep web markets. “I recognize that drug use isn’t exactly healthy, but why exacerbate the problem?” he told me when I contacted him after his post. “[Energy Control] provides a way for users to test the drugs they’ll use and for these very users to know what it is they’re putting in their bodies. Such services are in very short supply.”

+

After sending a number of Energy Control tests himself, ScreamMyName started a de facto crowd-sourcing campaign to get more drugs sent to the lab, and then shared the results, after throwing in some cash to get the ball rolling. He set up a Bitcoin wallet, with the hope that users might chip in to fund further tests. At the time of writing, the wallet has received a total of 1.81 bitcoins; around $430 at today’s exchange rates.

+

In posts to the Evolution community, ScreamMyName pitched this project as something that will benefit users and keep drug dealer honest. “When the funds build up to a point where we can purchase an [Energy Control] test fee, we’ll do a US thread poll for a few days and try to cohesively decide on what vendor to test,” he continued.

-
- -
+
Photo by Joan Bardeletti
-

Other members of the community have been helping out, too. PlutoPete, - a vendor from the original Silk Road who sold cannabis seeds and other - legal items, has provided ScreamMyName with packaging to safely send the - samples to Barcelona. “A box of baggies, and a load of different moisture - barrier bags,” PlutoPete told me over the phone. “That’s what all the vendors - use.”

-

It’s a modest program so far. ScreamMyName told me that so far he had - gotten enough public funding to purchase five different Energy Control - tests, in addition to the ten or so he’s sent himself so far. “The program - created is still in its infancy and it is growing and changing as we go - along but I have a lot of faith in what we’re doing,” he says.

-

But the spirit is contagious: elmo666, the other deep web user testing - cocaine, originally kept the results of the drug tests to himself, but - he, too, saw a benefit to distributing the data. “It is clear that it is - a useful service to other users, keeping vendors honest and drugs (and - their users) safe,” he told me. He started to report his findings to others - on the forums, and then created a thread with summaries of the test results, - as well as comments from the vendors if they provided it. Other users were - soon basing their decisions on what to buy on elmo666‘s tests.

-

“I’m defo trying the cola based on the incredibly helpful elmo and his - energy control results and recommendations,” wrote user jayk1984. On top - of this, elmo666 plans to launch an independent site on the deep web that - will collate all of these results, which should act as a resource for users - of all the marketplaces.

-

As word of elmo666's efforts spread, he began getting requests from drug - dealers who wanted him to use their wares for testing. Clearly, they figured - that a positive result from Energy Control would be a fantastic marketing - tool to draw more customers. They even offered elmo666 free samples. (He - passed.)

-

Meanwhile, some in the purchasing community are arguing that those running - markets on the deep web should be providing quality control themselves. - PlutoPete told me over the phone that he had been in discussions about - this with Dread Pirate Roberts, the pseudonymous owner of the original - Silk Road site. “We [had been] talking about that on a more organized basis - on Silk Road 1, doing lots of anonymous buys to police each category. But - of course they took the thing [Silk Road] down before we got it properly - off the ground,” he lamented.

-

But perhaps it is best that the users, those who are actually consuming - the drugs, remain in charge of shaming dealers and warning each other. - “It’s our responsibility to police the market based on reviews and feedback,” - elmo666 wrote in an Evolution forum post. It seems that in the lawless - space of the deep web, where everything from child porn to weapons are - sold openly, users have cooperated in an organic display of self-regulation - to stamp out those particular batches of drugs that are more likely to - harm users.

-

“That’s always been the case with the deep web,” PlutoPete told me. Indeed, - ever since Silk Road, a stable of the drug markets has been the review - system, where buyers can leave a rating and feedback for vendors, letting - others know about the reliability of the seller. But DoctorX’s lab, rigorously - testing the products with scientific instruments, takes it a step further.

+

Other members of the community have been helping out, too. PlutoPete, a vendor from the original Silk Road who sold cannabis seeds and other legal items, has provided ScreamMyName with packaging to safely send the samples to Barcelona. “A box of baggies, and a load of different moisture barrier bags,” PlutoPete told me over the phone. “That’s what all the vendors use.”

+

It’s a modest program so far. ScreamMyName told me that so far he had gotten enough public funding to purchase five different Energy Control tests, in addition to the ten or so he’s sent himself so far. “The program created is still in its infancy and it is growing and changing as we go along but I have a lot of faith in what we’re doing,” he says.

+

But the spirit is contagious: elmo666, the other deep web user testing cocaine, originally kept the results of the drug tests to himself, but he, too, saw a benefit to distributing the data. “It is clear that it is a useful service to other users, keeping vendors honest and drugs (and their users) safe,” he told me. He started to report his findings to others on the forums, and then created a thread with summaries of the test results, as well as comments from the vendors if they provided it. Other users were soon basing their decisions on what to buy on elmo666‘s tests.

+

“I’m defo trying the cola based on the incredibly helpful elmo and his energy control results and recommendations,” wrote user jayk1984. On top of this, elmo666 plans to launch an independent site on the deep web that will collate all of these results, which should act as a resource for users of all the marketplaces.

+

As word of elmo666's efforts spread, he began getting requests from drug dealers who wanted him to use their wares for testing. Clearly, they figured that a positive result from Energy Control would be a fantastic marketing tool to draw more customers. They even offered elmo666 free samples. (He passed.)

+

Meanwhile, some in the purchasing community are arguing that those running markets on the deep web should be providing quality control themselves. PlutoPete told me over the phone that he had been in discussions about this with Dread Pirate Roberts, the pseudonymous owner of the original Silk Road site. “We [had been] talking about that on a more organized basis on Silk Road 1, doing lots of anonymous buys to police each category. But of course they took the thing [Silk Road] down before we got it properly off the ground,” he lamented.

+

But perhaps it is best that the users, those who are actually consuming the drugs, remain in charge of shaming dealers and warning each other. “It’s our responsibility to police the market based on reviews and feedback,” elmo666 wrote in an Evolution forum post. It seems that in the lawless space of the deep web, where everything from child porn to weapons are sold openly, users have cooperated in an organic display of self-regulation to stamp out those particular batches of drugs that are more likely to harm users.

+

“That’s always been the case with the deep web,” PlutoPete told me. Indeed, ever since Silk Road, a stable of the drug markets has been the review system, where buyers can leave a rating and feedback for vendors, letting others know about the reliability of the seller. But DoctorX’s lab, rigorously testing the products with scientific instruments, takes it a step further.

-
- -
+
Photo by Joan Bardeletti
-

“In the white market, they have quality control. In the dark market, it - should be the same,” Cristina Gil Lladanosa says to me before I leave the - Barcelona lab.

-

A week after I visit the lab, the results of the MDMA arrive in my inbox: - it is 85 percent pure, with no indications of other active ingredients. - Whoever ordered that sample from the digital shelves of the deep web, and - had it shipped to their doorstep in Canada, got hold of some seriously - good, and relatively safe drugs. And now they know it.

-
-
- -
+

“In the white market, they have quality control. In the dark market, it should be the same,” Cristina Gil Lladanosa says to me before I leave the Barcelona lab.

+

A week after I visit the lab, the results of the MDMA arrive in my inbox: it is 85 percent pure, with no indications of other active ingredients. Whoever ordered that sample from the digital shelves of the deep web, and had it shipped to their doorstep in Canada, got hold of some seriously good, and relatively safe drugs. And now they know it.

+
+
-

Top photo by Joan Bardeletti - -

-

Follow Backchannel: Twitter - - |Facebook - -

+

Top photo by Joan Bardeletti

+

Follow Backchannel: Twitter |Facebook

\ No newline at end of file diff --git a/test/test-pages/lifehacker-post-comment-load/expected.html b/test/test-pages/lifehacker-post-comment-load/expected.html index 4a644c4..480c898 100644 --- a/test/test-pages/lifehacker-post-comment-load/expected.html +++ b/test/test-pages/lifehacker-post-comment-load/expected.html @@ -1,278 +1,79 @@
-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

We all buy things from time to time that we don't really need. It's okay to appeal to your wants every once in a while, as long as you're in control. If you struggle with clutter, impulse buys, and buyer's remorse, here's how to put your mind in the right place before you even set foot in a store. -

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

We all buy things from time to time that we don't really need. It's okay to appeal to your wants every once in a while, as long as you're in control. If you struggle with clutter, impulse buys, and buyer's remorse, here's how to put your mind in the right place before you even set foot in a store.

Understand How Your Own Brain Works Against You

-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

It may come as no surprise to learn that stores employ all kinds of tricks - to get you to part ways with your cash, and your brain plays right along. - Through psychological tricks, product placement, and even color, stores - are designed from the ground up to increase spending. We've talked about - the biggest things stores do to manipulate your senses, but here are some - of the biggest things to look out for:

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

It may come as no surprise to learn that stores employ all kinds of tricks to get you to part ways with your cash, and your brain plays right along. Through psychological tricks, product placement, and even color, stores are designed from the ground up to increase spending. We've talked about the biggest things stores do to manipulate your senses, but here are some of the biggest things to look out for:

    -
  • Color: Stores use color to make products attractive and - eye-catching, but they also use color on price labels. Red stands out and - can encourage taking action, that's why it's commonly associated with sale - signage and advertising. When you see red, remember what they're trying - to do to your brain with that color. You don't to buy something just because - it's on sale.
  • -
  • Navigation Roadblocks: Stores force you to walk around - stuff you don't need to find the stuff you are really after. Have a list - of what you need before you go in, go straight to it, and imagine it's - the only item in the store.
  • -
  • The Touch Factor: Stores place items they want to sell - in easy to reach locations and encourage you to touch them. Don't do it! - As soon as you pick something up, you're more likely to buy it because - your mind suddenly takes ownership of the object. Don't pick anything up - and don't play with display items.
  • -
  • Scents and Sounds: You'll probably hear classic, upbeat - tunes when you walk into a store. The upbeat music makes you happy and - excited, while playing familiar songs makes you feel comfortable. They - also use pleasant smells to put your mind at ease. A happy, comfortable - mind at ease is a dangerous combination for your brain when shopping. There's - not much you can do to avoid this unless you shop online, but it's good - to be aware of it.
  • +
  • Color: Stores use color to make products attractive and eye-catching, but they also use color on price labels. Red stands out and can encourage taking action, that's why it's commonly associated with sale signage and advertising. When you see red, remember what they're trying to do to your brain with that color. You don't to buy something just because it's on sale.
  • +
  • Navigation Roadblocks: Stores force you to walk around stuff you don't need to find the stuff you are really after. Have a list of what you need before you go in, go straight to it, and imagine it's the only item in the store.
  • +
  • The Touch Factor: Stores place items they want to sell in easy to reach locations and encourage you to touch them. Don't do it! As soon as you pick something up, you're more likely to buy it because your mind suddenly takes ownership of the object. Don't pick anything up and don't play with display items.
  • +
  • Scents and Sounds: You'll probably hear classic, upbeat tunes when you walk into a store. The upbeat music makes you happy and excited, while playing familiar songs makes you feel comfortable. They also use pleasant smells to put your mind at ease. A happy, comfortable mind at ease is a dangerous combination for your brain when shopping. There's not much you can do to avoid this unless you shop online, but it's good to be aware of it.
-

And sure, we can blame the stores all we want, but you won't change how - they operate—you can only be aware of how your brain is falling for their tricks. Even without the stores, - your brain is working against you on its own, thanks to some simple - cognitive biases.

- -

For example, confirmation bias makes you only believe the information - that conforms to your prior beliefs, while you discount everything else. - Advertisers appeal to this bias directly by convincing you one item is - better than another with imagery and other tricks, regardless of what hard - facts might say. Keep your mind open, do your own research, and accept - when you're wrong about a product. The Decoy effect is also a commonly - used tactic. You think one product is a deal because it's next to a similar - product that's priced way higher. Even if it's a product you need, it's - probably not as good of a deal as it looks right then and there. Again, - always research beforehand and be on the lookout for this common trick - to avoid impulse buys.

+

And sure, we can blame the stores all we want, but you won't change how they operate—you can only be aware of how your brain is falling for their tricks. Even without the stores, your brain is working against you on its own, thanks to some simple cognitive biases.

+ +

For example, confirmation bias makes you only believe the information that conforms to your prior beliefs, while you discount everything else. Advertisers appeal to this bias directly by convincing you one item is better than another with imagery and other tricks, regardless of what hard facts might say. Keep your mind open, do your own research, and accept when you're wrong about a product. The Decoy effect is also a commonly used tactic. You think one product is a deal because it's next to a similar product that's priced way higher. Even if it's a product you need, it's probably not as good of a deal as it looks right then and there. Again, always research beforehand and be on the lookout for this common trick to avoid impulse buys.

Make a List of Everything You Own and Do Some Decluttering

-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

Now that you know what you're up against, it's time to start changing - the way you think. Before you can stop buying crap you don't need, you - need to identify what that crap is. The first step is to make a list of - every single thing you own. Every. Single. Thing. - This might sound extreme, but you need to gather your data so you can start - reprogramming your mind.

- -

The purpose of this exercise is twofold: you see what you already have - and don't need to ever buy again, and you get to see what you shouldn't - have bought in the first place. As you list everything out, separate items - into categories. It's extremely important that you are as honest with yourself - as possible while you do this. It's also important you actually write this - all down or type it all out. Here is the first set of categories to separate - everything into:

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

Now that you know what you're up against, it's time to start changing the way you think. Before you can stop buying crap you don't need, you need to identify what that crap is. The first step is to make a list of every single thing you own. Every. Single. Thing. This might sound extreme, but you need to gather your data so you can start reprogramming your mind.

+ +

The purpose of this exercise is twofold: you see what you already have and don't need to ever buy again, and you get to see what you shouldn't have bought in the first place. As you list everything out, separate items into categories. It's extremely important that you are as honest with yourself as possible while you do this. It's also important you actually write this all down or type it all out. Here is the first set of categories to separate everything into:

    -
  • Need: You absolutely need this item to get by on a day - to day basis.
  • -
  • Sometimes Need: You don't need this item every day, but - you use it on a somewhat regular basis.
  • -
  • Want: You bought this item because you wanted it, not - because you needed it.
  • -
  • Crap: You don't have a good reason why you have it and - you already know it needs to go (there's probably a few of these items, - at least).
  • +
  • Need: You absolutely need this item to get by on a day to day basis.
  • +
  • Sometimes Need: You don't need this item every day, but you use it on a somewhat regular basis.
  • +
  • Want: You bought this item because you wanted it, not because you needed it.
  • +
  • Crap: You don't have a good reason why you have it and you already know it needs to go (there's probably a few of these items, at least).
-

Leave the things you listed as "needs" alone, put your stuff listed as - "crap" in a pile or box to go bye-bye, and move your attention back to - your "sometimes need" and "want" lists. You need to go back over both of - those lists because you probably fudged some of the listings, either subconsciously - or intentionally. Now ask yourself these three questions as you go through - both the "sometimes need" and "want" lists:

+

Leave the things you listed as "needs" alone, put your stuff listed as "crap" in a pile or box to go bye-bye, and move your attention back to your "sometimes need" and "want" lists. You need to go back over both of those lists because you probably fudged some of the listings, either subconsciously or intentionally. Now ask yourself these three questions as you go through both the "sometimes need" and "want" lists:

  • When was the last time I used this?
  • When will I use this again?
  • Does this item bring you joy?
-

Remember to be honest and adjust your lists accordingly. There's nothing - wrong with keeping things you wanted. Material items can bring happiness to many people, - but make sure the items on your "want" list actively provide you joy and - are being used. If an item doesn't get much use or doesn't make you happy, - add it to the "crap" list.

-

Once you have everything organized, it's time to do some serious decluttering. - This listing exercise should get you started, but there are a lot of other great ideas when - it comes to ditching the junk you don't need. Regardless, everything on - your "crap" list needs to go. You can donate it, sell it at a yard sale, - give it away to people know, whatever you like. Before you get rid of everything, - though, take a picture of all your stuff together. Print out or save the - picture somewhere. Some of it was probably gifts, but in general, this - is all the crap you bought that you don't need. Take a good look and remember - it.

+

Remember to be honest and adjust your lists accordingly. There's nothing wrong with keeping things you wanted. Material items can bring happiness to many people, but make sure the items on your "want" list actively provide you joy and are being used. If an item doesn't get much use or doesn't make you happy, add it to the "crap" list.

+

Once you have everything organized, it's time to do some serious decluttering. This listing exercise should get you started, but there are a lot of other great ideas when it comes to ditching the junk you don't need. Regardless, everything on your "crap" list needs to go. You can donate it, sell it at a yard sale, give it away to people know, whatever you like. Before you get rid of everything, though, take a picture of all your stuff together. Print out or save the picture somewhere. Some of it was probably gifts, but in general, this is all the crap you bought that you don't need. Take a good look and remember it.

See How Much Money and Time You Spent on the Stuff You Threw Out

-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

Now take a look at your "crap" list again and start calculating how much - you spent on all of it. If it was a gift, mark it as $0. Otherwise, figure - out the price of the item at the time you bought it. If you got a deal - or bought it on sale it's okay to factor that in, but try to be as accurate - as possible. Once you have the price for each item, add it all together. - Depending on your spending habits this could possibly be in the hundreds - to thousands of dollars. Remember the picture you took of all this stuff? - Attach the total cost to the picture so you can see both at the same time.

-

With the money cost figured out, you should take a look at the other costs - too. Time is a resource just like any other, and it's a finite one. What - kind of time did you pour into these things? Consider the time you spent - acquiring and using these items, then write it all down. These can be rough - estimations, but go ahead and add it all up when you think you've got it. - Now attach the total time to same picture as before and think of the other - ways you could have spent all that time. This isn't to make you feel bad - about yourself, just to deliver information to your brain in an easy-to-understand - form. When you look at it all like this, it can open your eyes a little - more, and help you think about purchases in the future. You'll look at - an item and ask yourself, "Will this just end up in the picture?"

-

List Every Non-Material Thing In Your Life that Makes You Happy -

-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

Now it's time to make a different list. While material items may bring - plenty of joy, the things in your life that make you happiest probably - can't be bought. Get a separate piece of paper or create a new document - and list out everything in your life that makes you happy. If you can't - buy it, it's eligible for the list. It doesn't matter if it only makes - you crack a smile or makes you jump for joy, list it out.

-

These are probably the things that actually make you want to get out of bed in the morning and keep on keepin' on. Once you have it all down, put it in your purse or wallet. The next time you feel the urge to buy something, whip this list out first and remind yourself why you probably don't need it. -

-

Spend Some Time Away from Material Things to Gain Perspective

-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

If you're having a really hard time with your spending, it can help to - get away from material objects completely. When you're constantly surrounded - by stuff and have access to buying things at all times, it can be really - tough to break the habit. Spend a day in the park enjoying the sights and - sounds of the outdoors, go camping with some friends, or hike a trail you - haven't been on before.

-

Essentially, you want to show yourself that you don't need your "things" - to have a good time. When you realize how much fun you can have without - all the trinkets and trivets, you'll start to shut down your desire to - buy them. If you can't get really get away right now, just go for a walk - without your purse or wallet (but carry your ID). If you can't buy anything, - you'll be forced to experience things a different way.

-

Develop a Personal "Should I Buy This?" Test

-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

If you don't have a personal "should I buy this?" test, now's the perfect - time to make one. When you find an item you think you need or want, it - has to pass all of the questions you have on your test before you can buy - it. Here's where you can use all of the data you've gathered so far and - put it to really good use. The test should be personalized to your own - buying habits, but here are some example questions:

-
    -
  • Is this a planned purchase?
  • -
  • Will it end up in the "crap" list picture one day?
  • -
  • Where am I going to put it?
  • -
  • Have I included this in my budget?
  • -
  • Why do I want/need it?
  • -
-

Custom build your test to hit all of your weaknesses. If you make a lot - of impulse buys, include questions that address that. If you experience - a lot of buyer's remorse, include a lot of questions that make you think - about the use of item after you buy it. If buying the latest and greatest - technology is your weakness, Joshua Becker at Becoming Minimalist suggests - you ask yourself what problem the piece of tech solves. - If you can't think of anything it solves or if you already have something - that solves it, you don't need it. Be thorough and build a test that you - can run through your mind every time you consider buying something.

-

Learn to Delay Gratification and Destroy the Urge to Impulse Buy -

-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

When it comes to the unnecessary crap we buy, impulse purchases probably - make up a good deal of them. We love to feel gratification instantly and - impulse buys appeal to that with a rush of excitement with each new purchase. - We like to believe that we have control over our impulses all the time, - but we really don't, and that's a major problem for the ol' wallet.

-

The key is teaching your brain that it's okay to wait for gratification. - You can do this with a simple time out every time you want something. Look - at whatever you're thinking of buying, go through your personal "should - I buy this?" test, and then walk away for a little while. Planning your - purchases ahead is ideal, so the longer you can hold off, the better. Set - yourself a reminder to check on the item a week or month down the line. - When you come back to it, you may find that you don't even want it, just - the gratification that would come with it. If you're shopping online, you - can do the same thing. Walk away from your desk or put your phone in your - pocket and do something else for a little while.

-

You can also avoid online impulse purchases by making it harder to do. Block shopping web sites during - time periods you know you're at your weakest, or remove all of your saved - credit card or Paypal information. You can also practice the "HALT" method when you're shopping online or - in a store. Try not to buy things when you're Hungry, Angry, Lonely, or - Tired because you're at your weakest state mentally. Last, but not least, - the "stranger test" can help you weed out bad purchases too.

- -

The last thing you should consider when it comes to impulse buys is "artificial - replacement." As Trent Hamm at The Simple Dollar explains, artificial replacement - can happen when you start to reduce the time you - get with your main interests:

-
-

Whenever I consistently cut quality time for my main interests out of - my life, I start to long for them. As you saw in that "typical" day, I - do make room for spending time with my family, but my other two main interests - are absent. If that happens too many days in a row, I start to really miss - reading. I start to really miss playing thoughtful board games with friends. - What happens after that? I start to substitute. When I don't - have the opportunity to sit down for an hour or even for half an hour and - really get lost in a book, I start looking for an alternative way to fill - in the tiny slices of time that I do have. I'll spend money.

-
-

You probably have things in your life that provide plenty of gratification, - so don't get caught substituting it with impulse buys. Always make sure - you keep yourself happy with plenty of time doing the things you like to - do and you won't be subconsciously trying to fill that void with useless - crap.

-

Turn the Money You Save Into More Money

-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

Once you've programmed your mind to stop buying crap you don't need, you'll - have some extra cash to play with. Take all that money and start putting - it toward your future and things you will need further down the - road. You might need a home, - a vehicle, or a way to retire, but none of that can happen until you start - planning for it.

-

Start by paying off any debts you already have. Credit cards, student - loans, and even car payments can force you to live paycheck to paycheck. - Use the snowball method and - pay off some small balances to make you feel motivated, then start taking - out your debt in full force with the stacking method: - stop creating new debt, determine which balances have the highest interest - rates, and create a payment schedule to pay them off efficiently.

-

With your debts whittled down, you should start an emergency fund. No - matter how well you plan things, accidents and health emergencies can still - happen. An emergency fund is designed to make those kinds of events more - manageable. This type of savings account is strictly for when life throws - you a curveball, but you can grow one pretty easily with only modest savings.

-

When you've paid off your debt and prepared yourself for troubled times, - you can start saving for the big stuff. All that money you're not spending - on crap anymore can be saved, invested, and compounded to let you buy comfort - and security. If you don't know where to start, talk to a financial planner. - Or create a simple, yet effective "set and forget" investment portfolio. You've worked hard - to reprogram your mind, so make sure you reap the benefits for many years - to come.

- -

Photos by cmgirl (Shutterstock), Macrovector (Shutterstock), J E Theriot, davidd, George Redgrave, David Amsler, Arup Malakar, J B, jakerome, 401(K) 2012. -

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

Now take a look at your "crap" list again and start calculating how much you spent on all of it. If it was a gift, mark it as $0. Otherwise, figure out the price of the item at the time you bought it. If you got a deal or bought it on sale it's okay to factor that in, but try to be as accurate as possible. Once you have the price for each item, add it all together. Depending on your spending habits this could possibly be in the hundreds to thousands of dollars. Remember the picture you took of all this stuff? Attach the total cost to the picture so you can see both at the same time.

+

With the money cost figured out, you should take a look at the other costs too. Time is a resource just like any other, and it's a finite one. What kind of time did you pour into these things? Consider the time you spent acquiring and using these items, then write it all down. These can be rough estimations, but go ahead and add it all up when you think you've got it. Now attach the total time to same picture as before and think of the other ways you could have spent all that time. This isn't to make you feel bad about yourself, just to deliver information to your brain in an easy-to-understand form. When you look at it all like this, it can open your eyes a little more, and help you think about purchases in the future. You'll look at an item and ask yourself, "Will this just end up in the picture?"

+

List Every Non-Material Thing In Your Life that Makes You Happy

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

Now it's time to make a different list. While material items may bring plenty of joy, the things in your life that make you happiest probably can't be bought. Get a separate piece of paper or create a new document and list out everything in your life that makes you happy. If you can't buy it, it's eligible for the list. It doesn't matter if it only makes you crack a smile or makes you jump for joy, list it out.

+

These are probably the things that actually make you want to get out of bed in the morning and keep on keepin' on. Once you have it all down, put it in your purse or wallet. The next time you feel the urge to buy something, whip this list out first and remind yourself why you probably don't need it.

+

Spend Some Time Away from Material Things to Gain Perspective

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

If you're having a really hard time with your spending, it can help to get away from material objects completely. When you're constantly surrounded by stuff and have access to buying things at all times, it can be really tough to break the habit. Spend a day in the park enjoying the sights and sounds of the outdoors, go camping with some friends, or hike a trail you haven't been on before.

+

Essentially, you want to show yourself that you don't need your "things" to have a good time. When you realize how much fun you can have without all the trinkets and trivets, you'll start to shut down your desire to buy them. If you can't get really get away right now, just go for a walk without your purse or wallet (but carry your ID). If you can't buy anything, you'll be forced to experience things a different way.

+

Develop a Personal "Should I Buy This?" Test

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

If you don't have a personal "should I buy this?" test, now's the perfect time to make one. When you find an item you think you need or want, it has to pass all of the questions you have on your test before you can buy it. Here's where you can use all of the data you've gathered so far and put it to really good use. The test should be personalized to your own buying habits, but here are some example questions:

+
    +
  • Is this a planned purchase?
  • +
  • Will it end up in the "crap" list picture one day?
  • +
  • Where am I going to put it?
  • +
  • Have I included this in my budget?
  • +
  • Why do I want/need it?
  • +
+

Custom build your test to hit all of your weaknesses. If you make a lot of impulse buys, include questions that address that. If you experience a lot of buyer's remorse, include a lot of questions that make you think about the use of item after you buy it. If buying the latest and greatest technology is your weakness, Joshua Becker at Becoming Minimalist suggests you ask yourself what problem the piece of tech solves. If you can't think of anything it solves or if you already have something that solves it, you don't need it. Be thorough and build a test that you can run through your mind every time you consider buying something.

+

Learn to Delay Gratification and Destroy the Urge to Impulse Buy

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

When it comes to the unnecessary crap we buy, impulse purchases probably make up a good deal of them. We love to feel gratification instantly and impulse buys appeal to that with a rush of excitement with each new purchase. We like to believe that we have control over our impulses all the time, but we really don't, and that's a major problem for the ol' wallet.

+

The key is teaching your brain that it's okay to wait for gratification. You can do this with a simple time out every time you want something. Look at whatever you're thinking of buying, go through your personal "should I buy this?" test, and then walk away for a little while. Planning your purchases ahead is ideal, so the longer you can hold off, the better. Set yourself a reminder to check on the item a week or month down the line. When you come back to it, you may find that you don't even want it, just the gratification that would come with it. If you're shopping online, you can do the same thing. Walk away from your desk or put your phone in your pocket and do something else for a little while.

+

You can also avoid online impulse purchases by making it harder to do. Block shopping web sites during time periods you know you're at your weakest, or remove all of your saved credit card or Paypal information. You can also practice the "HALT" method when you're shopping online or in a store. Try not to buy things when you're Hungry, Angry, Lonely, or Tired because you're at your weakest state mentally. Last, but not least, the "stranger test" can help you weed out bad purchases too.

+ +

The last thing you should consider when it comes to impulse buys is "artificial replacement." As Trent Hamm at The Simple Dollar explains, artificial replacement can happen when you start to reduce the time you get with your main interests:

+
+

Whenever I consistently cut quality time for my main interests out of my life, I start to long for them. As you saw in that "typical" day, I do make room for spending time with my family, but my other two main interests are absent. If that happens too many days in a row, I start to really miss reading. I start to really miss playing thoughtful board games with friends. What happens after that? I start to substitute. When I don't have the opportunity to sit down for an hour or even for half an hour and really get lost in a book, I start looking for an alternative way to fill in the tiny slices of time that I do have. I'll spend money.

+
+

You probably have things in your life that provide plenty of gratification, so don't get caught substituting it with impulse buys. Always make sure you keep yourself happy with plenty of time doing the things you like to do and you won't be subconsciously trying to fill that void with useless crap.

+

Turn the Money You Save Into More Money

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

Once you've programmed your mind to stop buying crap you don't need, you'll have some extra cash to play with. Take all that money and start putting it toward your future and things you will need further down the road. You might need a home, a vehicle, or a way to retire, but none of that can happen until you start planning for it.

+

Start by paying off any debts you already have. Credit cards, student loans, and even car payments can force you to live paycheck to paycheck. Use the snowball method and pay off some small balances to make you feel motivated, then start taking out your debt in full force with the stacking method: stop creating new debt, determine which balances have the highest interest rates, and create a payment schedule to pay them off efficiently.

+

With your debts whittled down, you should start an emergency fund. No matter how well you plan things, accidents and health emergencies can still happen. An emergency fund is designed to make those kinds of events more manageable. This type of savings account is strictly for when life throws you a curveball, but you can grow one pretty easily with only modest savings.

+

When you've paid off your debt and prepared yourself for troubled times, you can start saving for the big stuff. All that money you're not spending on crap anymore can be saved, invested, and compounded to let you buy comfort and security. If you don't know where to start, talk to a financial planner. Or create a simple, yet effective "set and forget" investment portfolio. You've worked hard to reprogram your mind, so make sure you reap the benefits for many years to come.

+ +

Photos by cmgirl (Shutterstock), Macrovector (Shutterstock), J E Theriot, davidd, George Redgrave, David Amsler, Arup Malakar, J B, jakerome, 401(K) 2012.

-
+ \ No newline at end of file diff --git a/test/test-pages/lifehacker-working/expected.html b/test/test-pages/lifehacker-working/expected.html index 15fa3c5..caba3e0 100644 --- a/test/test-pages/lifehacker-working/expected.html +++ b/test/test-pages/lifehacker-working/expected.html @@ -1,278 +1,79 @@
-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

We all buy things from time to time that we don't really need. It's okay to appeal to your wants every once in a while, as long as you're in control. If you struggle with clutter, impulse buys, and buyer's remorse, here's how to put your mind in the right place before you even set foot in a store. -

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

We all buy things from time to time that we don't really need. It's okay to appeal to your wants every once in a while, as long as you're in control. If you struggle with clutter, impulse buys, and buyer's remorse, here's how to put your mind in the right place before you even set foot in a store.

Understand How Your Own Brain Works Against You

-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

It may come as no surprise to learn that stores employ all kinds of tricks - to get you to part ways with your cash, and your brain plays right along. - Through psychological tricks, product placement, and even color, stores - are designed from the ground up to increase spending. We've talked about - the biggest things stores do to manipulate your senses, but here are some - of the biggest things to look out for:

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

It may come as no surprise to learn that stores employ all kinds of tricks to get you to part ways with your cash, and your brain plays right along. Through psychological tricks, product placement, and even color, stores are designed from the ground up to increase spending. We've talked about the biggest things stores do to manipulate your senses, but here are some of the biggest things to look out for:

    -
  • Color: Stores use color to make products attractive and - eye-catching, but they also use color on price labels. Red stands out and - can encourage taking action, that's why it's commonly associated with sale - signage and advertising. When you see red, remember what they're trying - to do to your brain with that color. You don't to buy something just because - it's on sale.
  • -
  • Navigation Roadblocks: Stores force you to walk around - stuff you don't need to find the stuff you are really after. Have a list - of what you need before you go in, go straight to it, and imagine it's - the only item in the store.
  • -
  • The Touch Factor: Stores place items they want to sell - in easy to reach locations and encourage you to touch them. Don't do it! - As soon as you pick something up, you're more likely to buy it because - your mind suddenly takes ownership of the object. Don't pick anything up - and don't play with display items.
  • -
  • Scents and Sounds: You'll probably hear classic, upbeat - tunes when you walk into a store. The upbeat music makes you happy and - excited, while playing familiar songs makes you feel comfortable. They - also use pleasant smells to put your mind at ease. A happy, comfortable - mind at ease is a dangerous combination for your brain when shopping. There's - not much you can do to avoid this unless you shop online, but it's good - to be aware of it.
  • +
  • Color: Stores use color to make products attractive and eye-catching, but they also use color on price labels. Red stands out and can encourage taking action, that's why it's commonly associated with sale signage and advertising. When you see red, remember what they're trying to do to your brain with that color. You don't to buy something just because it's on sale.
  • +
  • Navigation Roadblocks: Stores force you to walk around stuff you don't need to find the stuff you are really after. Have a list of what you need before you go in, go straight to it, and imagine it's the only item in the store.
  • +
  • The Touch Factor: Stores place items they want to sell in easy to reach locations and encourage you to touch them. Don't do it! As soon as you pick something up, you're more likely to buy it because your mind suddenly takes ownership of the object. Don't pick anything up and don't play with display items.
  • +
  • Scents and Sounds: You'll probably hear classic, upbeat tunes when you walk into a store. The upbeat music makes you happy and excited, while playing familiar songs makes you feel comfortable. They also use pleasant smells to put your mind at ease. A happy, comfortable mind at ease is a dangerous combination for your brain when shopping. There's not much you can do to avoid this unless you shop online, but it's good to be aware of it.
-

And sure, we can blame the stores all we want, but you won't change how - they operate—you can only be aware of how your brain is falling for their tricks. Even without the stores, - your brain is working against you on its own, thanks to some simple - cognitive biases.

- -

For example, confirmation bias makes you only believe the information - that conforms to your prior beliefs, while you discount everything else. - Advertisers appeal to this bias directly by convincing you one item is - better than another with imagery and other tricks, regardless of what hard - facts might say. Keep your mind open, do your own research, and accept - when you're wrong about a product. The Decoy effect is also a commonly - used tactic. You think one product is a deal because it's next to a similar - product that's priced way higher. Even if it's a product you need, it's - probably not as good of a deal as it looks right then and there. Again, - always research beforehand and be on the lookout for this common trick - to avoid impulse buys.

+

And sure, we can blame the stores all we want, but you won't change how they operate—you can only be aware of how your brain is falling for their tricks. Even without the stores, your brain is working against you on its own, thanks to some simple cognitive biases.

+ +

For example, confirmation bias makes you only believe the information that conforms to your prior beliefs, while you discount everything else. Advertisers appeal to this bias directly by convincing you one item is better than another with imagery and other tricks, regardless of what hard facts might say. Keep your mind open, do your own research, and accept when you're wrong about a product. The Decoy effect is also a commonly used tactic. You think one product is a deal because it's next to a similar product that's priced way higher. Even if it's a product you need, it's probably not as good of a deal as it looks right then and there. Again, always research beforehand and be on the lookout for this common trick to avoid impulse buys.

Make a List of Everything You Own and Do Some Decluttering

-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

Now that you know what you're up against, it's time to start changing - the way you think. Before you can stop buying crap you don't need, you - need to identify what that crap is. The first step is to make a list of - every single thing you own. Every. Single. Thing. - This might sound extreme, but you need to gather your data so you can start - reprogramming your mind.

- -

The purpose of this exercise is twofold: you see what you already have - and don't need to ever buy again, and you get to see what you shouldn't - have bought in the first place. As you list everything out, separate items - into categories. It's extremely important that you are as honest with yourself - as possible while you do this. It's also important you actually write this - all down or type it all out. Here is the first set of categories to separate - everything into:

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

Now that you know what you're up against, it's time to start changing the way you think. Before you can stop buying crap you don't need, you need to identify what that crap is. The first step is to make a list of every single thing you own. Every. Single. Thing. This might sound extreme, but you need to gather your data so you can start reprogramming your mind.

+ +

The purpose of this exercise is twofold: you see what you already have and don't need to ever buy again, and you get to see what you shouldn't have bought in the first place. As you list everything out, separate items into categories. It's extremely important that you are as honest with yourself as possible while you do this. It's also important you actually write this all down or type it all out. Here is the first set of categories to separate everything into:

    -
  • Need: You absolutely need this item to get by on a day - to day basis.
  • -
  • Sometimes Need: You don't need this item every day, but - you use it on a somewhat regular basis.
  • -
  • Want: You bought this item because you wanted it, not - because you needed it.
  • -
  • Crap: You don't have a good reason why you have it and - you already know it needs to go (there's probably a few of these items, - at least).
  • +
  • Need: You absolutely need this item to get by on a day to day basis.
  • +
  • Sometimes Need: You don't need this item every day, but you use it on a somewhat regular basis.
  • +
  • Want: You bought this item because you wanted it, not because you needed it.
  • +
  • Crap: You don't have a good reason why you have it and you already know it needs to go (there's probably a few of these items, at least).
-

Leave the things you listed as "needs" alone, put your stuff listed as - "crap" in a pile or box to go bye-bye, and move your attention back to - your "sometimes need" and "want" lists. You need to go back over both of - those lists because you probably fudged some of the listings, either subconsciously - or intentionally. Now ask yourself these three questions as you go through - both the "sometimes need" and "want" lists:

+

Leave the things you listed as "needs" alone, put your stuff listed as "crap" in a pile or box to go bye-bye, and move your attention back to your "sometimes need" and "want" lists. You need to go back over both of those lists because you probably fudged some of the listings, either subconsciously or intentionally. Now ask yourself these three questions as you go through both the "sometimes need" and "want" lists:

  • When was the last time I used this?
  • When will I use this again?
  • Does this item bring you joy?
-

Remember to be honest and adjust your lists accordingly. There's nothing - wrong with keeping things you wanted. Material items can bring happiness to many people, - but make sure the items on your "want" list actively provide you joy and - are being used. If an item doesn't get much use or doesn't make you happy, - add it to the "crap" list.

-

Once you have everything organized, it's time to do some serious decluttering. - This listing exercise should get you started, but there are a lot of other great ideas when - it comes to ditching the junk you don't need. Regardless, everything on - your "crap" list needs to go. You can donate it, sell it at a yard sale, - give it away to people know, whatever you like. Before you get rid of everything, - though, take a picture of all your stuff together. Print out or save the - picture somewhere. Some of it was probably gifts, but in general, this - is all the crap you bought that you don't need. Take a good look and remember - it.

+

Remember to be honest and adjust your lists accordingly. There's nothing wrong with keeping things you wanted. Material items can bring happiness to many people, but make sure the items on your "want" list actively provide you joy and are being used. If an item doesn't get much use or doesn't make you happy, add it to the "crap" list.

+

Once you have everything organized, it's time to do some serious decluttering. This listing exercise should get you started, but there are a lot of other great ideas when it comes to ditching the junk you don't need. Regardless, everything on your "crap" list needs to go. You can donate it, sell it at a yard sale, give it away to people know, whatever you like. Before you get rid of everything, though, take a picture of all your stuff together. Print out or save the picture somewhere. Some of it was probably gifts, but in general, this is all the crap you bought that you don't need. Take a good look and remember it.

See How Much Money and Time You Spent on the Stuff You Threw Out

-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

Now take a look at your "crap" list again and start calculating how much - you spent on all of it. If it was a gift, mark it as $0. Otherwise, figure - out the price of the item at the time you bought it. If you got a deal - or bought it on sale it's okay to factor that in, but try to be as accurate - as possible. Once you have the price for each item, add it all together. - Depending on your spending habits this could possibly be in the hundreds - to thousands of dollars. Remember the picture you took of all this stuff? - Attach the total cost to the picture so you can see both at the same time.

-

With the money cost figured out, you should take a look at the other costs - too. Time is a resource just like any other, and it's a finite one. What - kind of time did you pour into these things? Consider the time you spent - acquiring and using these items, then write it all down. These can be rough - estimations, but go ahead and add it all up when you think you've got it. - Now attach the total time to same picture as before and think of the other - ways you could have spent all that time. This isn't to make you feel bad - about yourself, just to deliver information to your brain in an easy-to-understand - form. When you look at it all like this, it can open your eyes a little - more, and help you think about purchases in the future. You'll look at - an item and ask yourself, "Will this just end up in the picture?"

-

List Every Non-Material Thing In Your Life that Makes You Happy -

-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

Now it's time to make a different list. While material items may bring - plenty of joy, the things in your life that make you happiest probably - can't be bought. Get a separate piece of paper or create a new document - and list out everything in your life that makes you happy. If you can't - buy it, it's eligible for the list. It doesn't matter if it only makes - you crack a smile or makes you jump for joy, list it out.

-

These are probably the things that actually make you want to get out of bed in the morning and keep on keepin' on. Once you have it all down, put it in your purse or wallet. The next time you feel the urge to buy something, whip this list out first and remind yourself why you probably don't need it. -

-

Spend Some Time Away from Material Things to Gain Perspective

-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

If you're having a really hard time with your spending, it can help to - get away from material objects completely. When you're constantly surrounded - by stuff and have access to buying things at all times, it can be really - tough to break the habit. Spend a day in the park enjoying the sights and - sounds of the outdoors, go camping with some friends, or hike a trail you - haven't been on before.

-

Essentially, you want to show yourself that you don't need your "things" - to have a good time. When you realize how much fun you can have without - all the trinkets and trivets, you'll start to shut down your desire to - buy them. If you can't get really get away right now, just go for a walk - without your purse or wallet (but carry your ID). If you can't buy anything, - you'll be forced to experience things a different way.

-

Develop a Personal "Should I Buy This?" Test

-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

If you don't have a personal "should I buy this?" test, now's the perfect - time to make one. When you find an item you think you need or want, it - has to pass all of the questions you have on your test before you can buy - it. Here's where you can use all of the data you've gathered so far and - put it to really good use. The test should be personalized to your own - buying habits, but here are some example questions:

-
    -
  • Is this a planned purchase?
  • -
  • Will it end up in the "crap" list picture one day?
  • -
  • Where am I going to put it?
  • -
  • Have I included this in my budget?
  • -
  • Why do I want/need it?
  • -
-

Custom build your test to hit all of your weaknesses. If you make a lot - of impulse buys, include questions that address that. If you experience - a lot of buyer's remorse, include a lot of questions that make you think - about the use of item after you buy it. If buying the latest and greatest - technology is your weakness, Joshua Becker at Becoming Minimalist suggests - you ask yourself what problem the piece of tech solves. - If you can't think of anything it solves or if you already have something - that solves it, you don't need it. Be thorough and build a test that you - can run through your mind every time you consider buying something.

-

Learn to Delay Gratification and Destroy the Urge to Impulse Buy -

-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

When it comes to the unnecessary crap we buy, impulse purchases probably - make up a good deal of them. We love to feel gratification instantly and - impulse buys appeal to that with a rush of excitement with each new purchase. - We like to believe that we have control over our impulses all the time, - but we really don't, and that's a major problem for the ol' wallet.

-

The key is teaching your brain that it's okay to wait for gratification. - You can do this with a simple time out every time you want something. Look - at whatever you're thinking of buying, go through your personal "should - I buy this?" test, and then walk away for a little while. Planning your - purchases ahead is ideal, so the longer you can hold off, the better. Set - yourself a reminder to check on the item a week or month down the line. - When you come back to it, you may find that you don't even want it, just - the gratification that would come with it. If you're shopping online, you - can do the same thing. Walk away from your desk or put your phone in your - pocket and do something else for a little while.

-

You can also avoid online impulse purchases by making it harder to do. Block shopping web sites during - time periods you know you're at your weakest, or remove all of your saved - credit card or Paypal information. You can also practice the "HALT" method when you're shopping online or - in a store. Try not to buy things when you're Hungry, Angry, Lonely, or - Tired because you're at your weakest state mentally. Last, but not least, - the "stranger test" can help you weed out bad purchases too.

- -

The last thing you should consider when it comes to impulse buys is "artificial - replacement." As Trent Hamm at The Simple Dollar explains, artificial replacement - can happen when you start to reduce the time you - get with your main interests:

-
-

Whenever I consistently cut quality time for my main interests out of - my life, I start to long for them. As you saw in that "typical" day, I - do make room for spending time with my family, but my other two main interests - are absent. If that happens too many days in a row, I start to really miss - reading. I start to really miss playing thoughtful board games with friends. - What happens after that? I start to substitute. When I don't - have the opportunity to sit down for an hour or even for half an hour and - really get lost in a book, I start looking for an alternative way to fill - in the tiny slices of time that I do have. I'll spend money.

-
-

You probably have things in your life that provide plenty of gratification, - so don't get caught substituting it with impulse buys. Always make sure - you keep yourself happy with plenty of time doing the things you like to - do and you won't be subconsciously trying to fill that void with useless - crap.

-

Turn the Money You Save Into More Money

-

How to Program Your Mind to Stop Buying Crap You Don’t Need -

-

Once you've programmed your mind to stop buying crap you don't need, you'll - have some extra cash to play with. Take all that money and start putting - it toward your future and things you will need further down the - road. You might need a home, - a vehicle, or a way to retire, but none of that can happen until you start - planning for it.

-

Start by paying off any debts you already have. Credit cards, student - loans, and even car payments can force you to live paycheck to paycheck. - Use the snowball method and - pay off some small balances to make you feel motivated, then start taking - out your debt in full force with the stacking method: - stop creating new debt, determine which balances have the highest interest - rates, and create a payment schedule to pay them off efficiently.

-

With your debts whittled down, you should start an emergency fund. No - matter how well you plan things, accidents and health emergencies can still - happen. An emergency fund is designed to make those kinds of events more - manageable. This type of savings account is strictly for when life throws - you a curveball, but you can grow one pretty easily with only modest savings.

-

When you've paid off your debt and prepared yourself for troubled times, - you can start saving for the big stuff. All that money you're not spending - on crap anymore can be saved, invested, and compounded to let you buy comfort - and security. If you don't know where to start, talk to a financial planner. - Or create a simple, yet effective "set and forget" investment portfolio. You've worked hard - to reprogram your mind, so make sure you reap the benefits for many years - to come.

- -

Photos by cmgirl (Shutterstock), Macrovector (Shutterstock), J E Theriot, davidd, George Redgrave, David Amsler, Arup Malakar, J B, jakerome, 401(K) 2012. -

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

Now take a look at your "crap" list again and start calculating how much you spent on all of it. If it was a gift, mark it as $0. Otherwise, figure out the price of the item at the time you bought it. If you got a deal or bought it on sale it's okay to factor that in, but try to be as accurate as possible. Once you have the price for each item, add it all together. Depending on your spending habits this could possibly be in the hundreds to thousands of dollars. Remember the picture you took of all this stuff? Attach the total cost to the picture so you can see both at the same time.

+

With the money cost figured out, you should take a look at the other costs too. Time is a resource just like any other, and it's a finite one. What kind of time did you pour into these things? Consider the time you spent acquiring and using these items, then write it all down. These can be rough estimations, but go ahead and add it all up when you think you've got it. Now attach the total time to same picture as before and think of the other ways you could have spent all that time. This isn't to make you feel bad about yourself, just to deliver information to your brain in an easy-to-understand form. When you look at it all like this, it can open your eyes a little more, and help you think about purchases in the future. You'll look at an item and ask yourself, "Will this just end up in the picture?"

+

List Every Non-Material Thing In Your Life that Makes You Happy

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

Now it's time to make a different list. While material items may bring plenty of joy, the things in your life that make you happiest probably can't be bought. Get a separate piece of paper or create a new document and list out everything in your life that makes you happy. If you can't buy it, it's eligible for the list. It doesn't matter if it only makes you crack a smile or makes you jump for joy, list it out.

+

These are probably the things that actually make you want to get out of bed in the morning and keep on keepin' on. Once you have it all down, put it in your purse or wallet. The next time you feel the urge to buy something, whip this list out first and remind yourself why you probably don't need it.

+

Spend Some Time Away from Material Things to Gain Perspective

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

If you're having a really hard time with your spending, it can help to get away from material objects completely. When you're constantly surrounded by stuff and have access to buying things at all times, it can be really tough to break the habit. Spend a day in the park enjoying the sights and sounds of the outdoors, go camping with some friends, or hike a trail you haven't been on before.

+

Essentially, you want to show yourself that you don't need your "things" to have a good time. When you realize how much fun you can have without all the trinkets and trivets, you'll start to shut down your desire to buy them. If you can't get really get away right now, just go for a walk without your purse or wallet (but carry your ID). If you can't buy anything, you'll be forced to experience things a different way.

+

Develop a Personal "Should I Buy This?" Test

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

If you don't have a personal "should I buy this?" test, now's the perfect time to make one. When you find an item you think you need or want, it has to pass all of the questions you have on your test before you can buy it. Here's where you can use all of the data you've gathered so far and put it to really good use. The test should be personalized to your own buying habits, but here are some example questions:

+
    +
  • Is this a planned purchase?
  • +
  • Will it end up in the "crap" list picture one day?
  • +
  • Where am I going to put it?
  • +
  • Have I included this in my budget?
  • +
  • Why do I want/need it?
  • +
+

Custom build your test to hit all of your weaknesses. If you make a lot of impulse buys, include questions that address that. If you experience a lot of buyer's remorse, include a lot of questions that make you think about the use of item after you buy it. If buying the latest and greatest technology is your weakness, Joshua Becker at Becoming Minimalist suggests you ask yourself what problem the piece of tech solves. If you can't think of anything it solves or if you already have something that solves it, you don't need it. Be thorough and build a test that you can run through your mind every time you consider buying something.

+

Learn to Delay Gratification and Destroy the Urge to Impulse Buy

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

When it comes to the unnecessary crap we buy, impulse purchases probably make up a good deal of them. We love to feel gratification instantly and impulse buys appeal to that with a rush of excitement with each new purchase. We like to believe that we have control over our impulses all the time, but we really don't, and that's a major problem for the ol' wallet.

+

The key is teaching your brain that it's okay to wait for gratification. You can do this with a simple time out every time you want something. Look at whatever you're thinking of buying, go through your personal "should I buy this?" test, and then walk away for a little while. Planning your purchases ahead is ideal, so the longer you can hold off, the better. Set yourself a reminder to check on the item a week or month down the line. When you come back to it, you may find that you don't even want it, just the gratification that would come with it. If you're shopping online, you can do the same thing. Walk away from your desk or put your phone in your pocket and do something else for a little while.

+

You can also avoid online impulse purchases by making it harder to do. Block shopping web sites during time periods you know you're at your weakest, or remove all of your saved credit card or Paypal information. You can also practice the "HALT" method when you're shopping online or in a store. Try not to buy things when you're Hungry, Angry, Lonely, or Tired because you're at your weakest state mentally. Last, but not least, the "stranger test" can help you weed out bad purchases too.

+ +

The last thing you should consider when it comes to impulse buys is "artificial replacement." As Trent Hamm at The Simple Dollar explains, artificial replacement can happen when you start to reduce the time you get with your main interests:

+
+

Whenever I consistently cut quality time for my main interests out of my life, I start to long for them. As you saw in that "typical" day, I do make room for spending time with my family, but my other two main interests are absent. If that happens too many days in a row, I start to really miss reading. I start to really miss playing thoughtful board games with friends. What happens after that? I start to substitute. When I don't have the opportunity to sit down for an hour or even for half an hour and really get lost in a book, I start looking for an alternative way to fill in the tiny slices of time that I do have. I'll spend money.

+
+

You probably have things in your life that provide plenty of gratification, so don't get caught substituting it with impulse buys. Always make sure you keep yourself happy with plenty of time doing the things you like to do and you won't be subconsciously trying to fill that void with useless crap.

+

Turn the Money You Save Into More Money

+

How to Program Your Mind to Stop Buying Crap You Don’t Need

+

Once you've programmed your mind to stop buying crap you don't need, you'll have some extra cash to play with. Take all that money and start putting it toward your future and things you will need further down the road. You might need a home, a vehicle, or a way to retire, but none of that can happen until you start planning for it.

+

Start by paying off any debts you already have. Credit cards, student loans, and even car payments can force you to live paycheck to paycheck. Use the snowball method and pay off some small balances to make you feel motivated, then start taking out your debt in full force with the stacking method: stop creating new debt, determine which balances have the highest interest rates, and create a payment schedule to pay them off efficiently.

+

With your debts whittled down, you should start an emergency fund. No matter how well you plan things, accidents and health emergencies can still happen. An emergency fund is designed to make those kinds of events more manageable. This type of savings account is strictly for when life throws you a curveball, but you can grow one pretty easily with only modest savings.

+

When you've paid off your debt and prepared yourself for troubled times, you can start saving for the big stuff. All that money you're not spending on crap anymore can be saved, invested, and compounded to let you buy comfort and security. If you don't know where to start, talk to a financial planner. Or create a simple, yet effective "set and forget" investment portfolio. You've worked hard to reprogram your mind, so make sure you reap the benefits for many years to come.

+ +

Photos by cmgirl (Shutterstock), Macrovector (Shutterstock), J E Theriot, davidd, George Redgrave, David Amsler, Arup Malakar, J B, jakerome, 401(K) 2012.

-
+ \ No newline at end of file diff --git a/test/test-pages/medium-1/expected.html b/test/test-pages/medium-1/expected.html index ae12b48..acae906 100644 --- a/test/test-pages/medium-1/expected.html +++ b/test/test-pages/medium-1/expected.html @@ -2,376 +2,121 @@

Better Student Journalism


-

We pushed out the first version of the Open Journalism site in January. Our goal is for the - site to be a place to teach students what they should know about journalism - on the web. It should be fun too.

-

Topics like mapping, security, command - line tools, and open source are - all concepts that should be made more accessible, and should be easily - understood at a basic level by all journalists. We’re focusing on students - because we know student journalism well, and we believe that teaching maturing - journalists about the web will provide them with an important lens to view - the world with. This is how we got to where we are now.

-

Circa 2011

-

In late 2011 I sat in the design room of our university’s student newsroom - with some of the other editors: Kate Hudson, Brent Rose, and Nicholas Maronese. - I was working as the photo editor then—something I loved doing. I was very - happy travelling and photographing people while listening to their stories.

-

Photography was my lucky way of experiencing the many types of people - my generation seemed to avoid, as well as many the public spends too much - time discussing. One of my habits as a photographer was scouring sites - like Flickr to see how others could frame the world in ways I hadn’t previously - considered.

-
-
- -
-
topleftpixel.com
-
-

I started discovering beautiful things the web could do with images: - things not possible with print. Just as every generation revolts against - walking in the previous generations shoes, I found myself questioning the - expectations that I came up against as a photo editor. In our newsroom - the expectations were built from an outdated information world. We were - expected to fill old shoes.

-

So we sat in our student newsroom—not very happy with what we were doing. - Our weekly newspaper had remained essentially unchanged for 40+ years. - Each editorial position had the same requirement every year. The big change - happened in the 80s when the paper started using colour. We’d also stumbled - into having a website, but it was updated just once a week with the release - of the newspaper.

-

Information had changed form, but the student newsroom hadn’t, and it - was becoming harder to romanticize the dusty newsprint smell coming from - the shoes we were handed down from previous generations of editors. It - was, we were told, all part of “becoming a journalist.”

-
-
- -
-
-

We don’t know what we don’t know

-

We spent much of the rest of the school year asking “what should we be - doing in the newsroom?”, which mainly led us to ask “how do we use the - web to tell stories?” It was a straightforward question that led to many - more questions about the web: something we knew little about. Out in the - real world, traditional journalists were struggling to keep their jobs - in a dying print world. They wore the same design of shoes that we were - supposed to fill. Being pushed to repeat old, failing strategies and blocked - from trying something new scared us.

-

We had questions, so we started doing some research. We talked with student - newsrooms in Canada and the United States, and filled too many Google Doc - files with notes. Looking at the notes now, they scream of fear. We annotated - our notes with naive solutions, often involving scrambled and immature - odysseys into the future of online journalism.

-

There was a lot we didn’t know. We didn’t know how to build a mobile app. - We didn’t know if we should build a mobile app. - We didn’t know how to run a server. - We didn’t know where to go to find a server. - We didn’t know how the web worked. - We didn’t know how people used the web to read news. - We didn’t know what news should be on the web. - If news is just information, what does that even look like?

-

We asked these questions to many students at other papers to get a consensus - of what had worked and what hadn’t. They reported similar questions and - fears about the web but followed with “print advertising is keeping us - afloat so we can’t abandon it”.

-

In other words, we knew that we should be building a newer pair of shoes, - but we didn’t know what the function of the shoes should be.

-

Common problems in student newsrooms (2011)

-

Our questioning of other student journalists in 15 student newsrooms brought - up a few repeating issues.

-
    -
  • Lack of mentorship
  • -
  • A news process that lacked consideration of the web
  • -
  • No editor/position specific to the web
  • -
  • Little exposure to many of the cool projects being put together by professional - newsrooms
  • -
  • Lack of diverse skills within the newsroom. Writers made up 95% of the - personnel. Students with other skills were not sought because journalism - was seen as “a career with words.” The other 5% were designers, designing - words on computers, for print.
  • -
  • Not enough discussion between the business side and web efforts
  • -
-
-
- -
-
From our 2011 research
-
-

Common problems in student newsrooms (2013)

-

Two years later, we went back and looked at what had changed. We talked - to a dozen more newsrooms and weren’t surprised by our findings.

-
    -
  • Still no mentorship or link to professional newsrooms building stories - for the web
  • -
  • Very little control of website and technology
  • -
  • The lack of exposure that student journalists have to interactive storytelling. - While some newsrooms are in touch with what’s happening with the web and - journalism, there still exists a huge gap between the student newsroom - and its professional counterpart
  • -
  • No time in the current news development cycle for student newsrooms to - experiment with the web
  • -
  • Lack of skill diversity (specifically coding, interaction design, and - statistics)
  • -
  • Overly restricted access to student website technology. Changes are primarily - visual rather than functional.
  • -
  • Significantly reduced print production of many papers
  • -
  • Computers aren’t set up for experimenting with software and code, and - often locked down
  • -
-

Newsrooms have traditionally been covered in copies of The New York Times - or Globe and Mail. Instead newsrooms should try spend at 20 minutes each - week going over the coolest/weirdest online storytelling in an effort to - expose each other to what is possible. “Hey, what has the New York Times R&D lab been up to this week?

-

Instead of having computers that are locked down, try setting aside a - few office computers that allow students to play and “break”, or encourage - editors to buy their own Macbooks so they’re always able to practice with - code and new tools on their own.

-

From all this we realized that changing a student newsroom is difficult. - It takes patience. It requires that the business and editorial departments - of the student newsroom be on the same (web)page. The shoes of the future - must be different from the shoes we were given.

-

We need to rethink how long the new shoe design will be valid. It’s more - important that we focus on the process behind making footwear than on actually - creating a specific shoe. We shouldn’t be building a shoe to last 40 years. - Our footwear design process will allow us to change and adapt as technology - evolves. The media landscape will change, so having a newsroom that can - change with it will be critical.

-

We are building a shoe machine, not a shoe. - -

-

A train or light at the end of the tunnel: are student newsrooms changing for the better?

-

In our 2013 research we found that almost 50% of student newsrooms had - created roles specifically for the web. This sounds great, but is still problematic in its current state. - -

-
-
- -
-
We designed many of these slides to help explain to ourselves what we were doing - -
-
-

When a newsroom decides to create a position for the web, it’s often with - the intent of having content flow steadily from writers onto the web. This - is a big improvement from just uploading stories to the web whenever there - is a print issue. However… - -

-
    -
  1. The handoff - -
    Problems arise because web editors are given roles that absolve the rest - of the editors from thinking about the web. All editors should be involved - in the process of story development for the web. While it’s a good idea - to have one specific editor manage the website, contributors and editors - should all play with and learn about the web. Instead of “can you make - a computer do XYZ for me?”, we should be saying “can you show me how to - make a computer do XYZ?”
  2. -
  3. Not just social media
    A - web editor could do much more than simply being in charge of the social - media accounts for the student paper. Their responsibility could include - teaching all other editors to be listening to what’s happening online. - The web editor can take advantage of live information to change how the - student newsroom reports news in real time.
  4. -
  5. Web (interactive) editor
    The - goal of having a web editor should be for someone to build and tell stories - that take full advantage of the web as their medium. Too often the web’s - interactivity is not considered when developing the story. The web then - ends up as a resting place for print words.
  6. -
-

Editors at newsrooms are still figuring out how to convince writers of - the benefit to having their content online. There’s still a stronger draw - to writers seeing their name in print than on the web. Showing writers - that their stories can be told in new ways to larger audiences is a convincing - argument that the web is a starting point for telling a story, not its - graveyard.

-

When everyone in the newsroom approaches their website with the intention - of using it to explore the web as a medium, they all start to ask “what - is possible?” and “what can be done?” You can’t expect students to think - in terms of the web if it’s treated as a place for print words to hang - out on a web page.

-

We’re OK with this problem, if we see newsrooms continue to take small - steps towards having all their editors involved in the stories for the - web.

-
-
- -
-
The current Open Journalism site was a few years in the making. This was - an original launch page we use in 2012
-
-

What we know

-
    -
  • New process - -
    Our rough research has told us newsrooms need to be reorganized. This - includes every part of the newsroom’s workflow: from where a story and - its information comes from, to thinking of every word, pixel, and interaction - the reader will have with your stories. If I was a photo editor that wanted - to re-think my process with digital tools in mind, I’d start by asking - “how are photo assignments processed and sent out?”, “how do we receive - images?”, “what formats do images need to be exported in?”, “what type - of screens will the images be viewed on?”, and “how are the designers getting - these images?” Making a student newsroom digital isn’t about producing - “digital manifestos”, it’s about being curious enough that you’ll want - to to continue experimenting with your process until you’ve found one that - fits your newsroom’s needs.
  • -
  • More (remote) mentorship - -
    Lack of mentorship is still a big problem. Google’s fellowship program is great. The fact that it - only caters to United States students isn’t. There are only a handful of - internships in Canada where students interested in journalism can get experience - writing code and building interactive stories. We’re OK with this for now, - as we expect internships and mentorship over the next 5 years between professional - newsrooms and student newsrooms will only increase. It’s worth noting that - some of that mentorship will likely be done remotely.
  • -
  • Changing a newsroom culture - -
    Skill diversity needs to change. We encourage every student newsroom we - talk to, to start building a partnership with their school’s Computer Science - department. It will take some work, but you’ll find there are many CS undergrads - that love playing with web technologies, and using data to tell stories. - Changing who is in the newsroom should be one of the first steps newsrooms - take to changing how they tell stories. The same goes with getting designers - who understand the wonderful interactive elements of the web and students - who love statistics and exploring data. Getting students who are amazing - at design, data, code, words, and images into one room is one of the coolest - experience I’ve had. Everyone benefits from a more diverse newsroom.
  • -
-

What we don’t know

-
    -
  • Sharing curiosity for the web - -
    We don’t know how to best teach students about the web. It’s not efficient - for us to teach coding classes. We do go into newsrooms and get them running - their first code exercises, but if someone wants to learn to program, we - can only provide the initial push and curiosity. We will be trying out - “labs” with a few schools next school year to hopefully get a better idea - of how to teach students about the web.
  • -
  • Business - -
    We don’t know how to convince the business side of student papers that - they should invest in the web. At the very least we’re able to explain - that having students graduate with their current skill set is painful in - the current job market.
  • -
  • The future - -
    We don’t know what journalism or the web will be like in 10 years, but - we can start encouraging students to keep an open mind about the skills - they’ll need. We’re less interested in preparing students for the current - newsroom climate, than we are in teaching students to have the ability - to learn new tools quickly as they come and go.
  • -
+

We pushed out the first version of the Open Journalism site in January. Our goal is for the site to be a place to teach students what they should know about journalism on the web. It should be fun too.

+

Topics like mapping, security, command line tools, and open source are all concepts that should be made more accessible, and should be easily understood at a basic level by all journalists. We’re focusing on students because we know student journalism well, and we believe that teaching maturing journalists about the web will provide them with an important lens to view the world with. This is how we got to where we are now.

+

Circa 2011

+

In late 2011 I sat in the design room of our university’s student newsroom with some of the other editors: Kate Hudson, Brent Rose, and Nicholas Maronese. I was working as the photo editor then—something I loved doing. I was very happy travelling and photographing people while listening to their stories.

+

Photography was my lucky way of experiencing the many types of people my generation seemed to avoid, as well as many the public spends too much time discussing. One of my habits as a photographer was scouring sites like Flickr to see how others could frame the world in ways I hadn’t previously considered.

+
+
+
topleftpixel.com
+
+

I started discovering beautiful things the web could do with images: things not possible with print. Just as every generation revolts against walking in the previous generations shoes, I found myself questioning the expectations that I came up against as a photo editor. In our newsroom the expectations were built from an outdated information world. We were expected to fill old shoes.

+

So we sat in our student newsroom—not very happy with what we were doing. Our weekly newspaper had remained essentially unchanged for 40+ years. Each editorial position had the same requirement every year. The big change happened in the 80s when the paper started using colour. We’d also stumbled into having a website, but it was updated just once a week with the release of the newspaper.

+

Information had changed form, but the student newsroom hadn’t, and it was becoming harder to romanticize the dusty newsprint smell coming from the shoes we were handed down from previous generations of editors. It was, we were told, all part of “becoming a journalist.”

+
+
+
+

We don’t know what we don’t know

+

We spent much of the rest of the school year asking “what should we be doing in the newsroom?”, which mainly led us to ask “how do we use the web to tell stories?” It was a straightforward question that led to many more questions about the web: something we knew little about. Out in the real world, traditional journalists were struggling to keep their jobs in a dying print world. They wore the same design of shoes that we were supposed to fill. Being pushed to repeat old, failing strategies and blocked from trying something new scared us.

+

We had questions, so we started doing some research. We talked with student newsrooms in Canada and the United States, and filled too many Google Doc files with notes. Looking at the notes now, they scream of fear. We annotated our notes with naive solutions, often involving scrambled and immature odysseys into the future of online journalism.

+

There was a lot we didn’t know. We didn’t know how to build a mobile app. We didn’t know if we should build a mobile app. We didn’t know how to run a server. We didn’t know where to go to find a server. We didn’t know how the web worked. We didn’t know how people used the web to read news. We didn’t know what news should be on the web. If news is just information, what does that even look like?

+

We asked these questions to many students at other papers to get a consensus of what had worked and what hadn’t. They reported similar questions and fears about the web but followed with “print advertising is keeping us afloat so we can’t abandon it”.

+

In other words, we knew that we should be building a newer pair of shoes, but we didn’t know what the function of the shoes should be.

+

Common problems in student newsrooms (2011)

+

Our questioning of other student journalists in 15 student newsrooms brought up a few repeating issues.

+
    +
  • Lack of mentorship
  • +
  • A news process that lacked consideration of the web
  • +
  • No editor/position specific to the web
  • +
  • Little exposure to many of the cool projects being put together by professional newsrooms
  • +
  • Lack of diverse skills within the newsroom. Writers made up 95% of the personnel. Students with other skills were not sought because journalism was seen as “a career with words.” The other 5% were designers, designing words on computers, for print.
  • +
  • Not enough discussion between the business side and web efforts
  • +
+
+
+
From our 2011 research
+
+

Common problems in student newsrooms (2013)

+

Two years later, we went back and looked at what had changed. We talked to a dozen more newsrooms and weren’t surprised by our findings.

+
    +
  • Still no mentorship or link to professional newsrooms building stories for the web
  • +
  • Very little control of website and technology
  • +
  • The lack of exposure that student journalists have to interactive storytelling. While some newsrooms are in touch with what’s happening with the web and journalism, there still exists a huge gap between the student newsroom and its professional counterpart
  • +
  • No time in the current news development cycle for student newsrooms to experiment with the web
  • +
  • Lack of skill diversity (specifically coding, interaction design, and statistics)
  • +
  • Overly restricted access to student website technology. Changes are primarily visual rather than functional.
  • +
  • Significantly reduced print production of many papers
  • +
  • Computers aren’t set up for experimenting with software and code, and often locked down
  • +
+

Newsrooms have traditionally been covered in copies of The New York Times or Globe and Mail. Instead newsrooms should try spend at 20 minutes each week going over the coolest/weirdest online storytelling in an effort to expose each other to what is possible. “Hey, what has the New York Times R&D lab been up to this week?

+

Instead of having computers that are locked down, try setting aside a few office computers that allow students to play and “break”, or encourage editors to buy their own Macbooks so they’re always able to practice with code and new tools on their own.

+

From all this we realized that changing a student newsroom is difficult. It takes patience. It requires that the business and editorial departments of the student newsroom be on the same (web)page. The shoes of the future must be different from the shoes we were given.

+

We need to rethink how long the new shoe design will be valid. It’s more important that we focus on the process behind making footwear than on actually creating a specific shoe. We shouldn’t be building a shoe to last 40 years. Our footwear design process will allow us to change and adapt as technology evolves. The media landscape will change, so having a newsroom that can change with it will be critical.

+

We are building a shoe machine, not a shoe.

+

A train or light at the end of the tunnel: are student newsrooms changing for the better?

+

In our 2013 research we found that almost 50% of student newsrooms had created roles specifically for the web. This sounds great, but is still problematic in its current state.

+
+
+
We designed many of these slides to help explain to ourselves what we were doing
+
+

When a newsroom decides to create a position for the web, it’s often with the intent of having content flow steadily from writers onto the web. This is a big improvement from just uploading stories to the web whenever there is a print issue. However…

+
    +
  1. The handoff +
    Problems arise because web editors are given roles that absolve the rest of the editors from thinking about the web. All editors should be involved in the process of story development for the web. While it’s a good idea to have one specific editor manage the website, contributors and editors should all play with and learn about the web. Instead of “can you make a computer do XYZ for me?”, we should be saying “can you show me how to make a computer do XYZ?”
  2. +
  3. Not just social media
    A web editor could do much more than simply being in charge of the social media accounts for the student paper. Their responsibility could include teaching all other editors to be listening to what’s happening online. The web editor can take advantage of live information to change how the student newsroom reports news in real time.
  4. +
  5. Web (interactive) editor
    The goal of having a web editor should be for someone to build and tell stories that take full advantage of the web as their medium. Too often the web’s interactivity is not considered when developing the story. The web then ends up as a resting place for print words.
  6. +
+

Editors at newsrooms are still figuring out how to convince writers of the benefit to having their content online. There’s still a stronger draw to writers seeing their name in print than on the web. Showing writers that their stories can be told in new ways to larger audiences is a convincing argument that the web is a starting point for telling a story, not its graveyard.

+

When everyone in the newsroom approaches their website with the intention of using it to explore the web as a medium, they all start to ask “what is possible?” and “what can be done?” You can’t expect students to think in terms of the web if it’s treated as a place for print words to hang out on a web page.

+

We’re OK with this problem, if we see newsrooms continue to take small steps towards having all their editors involved in the stories for the web.

+
+
+
The current Open Journalism site was a few years in the making. This was an original launch page we use in 2012
+
+

What we know

+
    +
  • New process +
    Our rough research has told us newsrooms need to be reorganized. This includes every part of the newsroom’s workflow: from where a story and its information comes from, to thinking of every word, pixel, and interaction the reader will have with your stories. If I was a photo editor that wanted to re-think my process with digital tools in mind, I’d start by asking “how are photo assignments processed and sent out?”, “how do we receive images?”, “what formats do images need to be exported in?”, “what type of screens will the images be viewed on?”, and “how are the designers getting these images?” Making a student newsroom digital isn’t about producing “digital manifestos”, it’s about being curious enough that you’ll want to to continue experimenting with your process until you’ve found one that fits your newsroom’s needs.
  • +
  • More (remote) mentorship +
    Lack of mentorship is still a big problem. Google’s fellowship program is great. The fact that it only caters to United States students isn’t. There are only a handful of internships in Canada where students interested in journalism can get experience writing code and building interactive stories. We’re OK with this for now, as we expect internships and mentorship over the next 5 years between professional newsrooms and student newsrooms will only increase. It’s worth noting that some of that mentorship will likely be done remotely.
  • +
  • Changing a newsroom culture +
    Skill diversity needs to change. We encourage every student newsroom we talk to, to start building a partnership with their school’s Computer Science department. It will take some work, but you’ll find there are many CS undergrads that love playing with web technologies, and using data to tell stories. Changing who is in the newsroom should be one of the first steps newsrooms take to changing how they tell stories. The same goes with getting designers who understand the wonderful interactive elements of the web and students who love statistics and exploring data. Getting students who are amazing at design, data, code, words, and images into one room is one of the coolest experience I’ve had. Everyone benefits from a more diverse newsroom.
  • +
+

What we don’t know

+
    +
  • Sharing curiosity for the web +
    We don’t know how to best teach students about the web. It’s not efficient for us to teach coding classes. We do go into newsrooms and get them running their first code exercises, but if someone wants to learn to program, we can only provide the initial push and curiosity. We will be trying out “labs” with a few schools next school year to hopefully get a better idea of how to teach students about the web.
  • +
  • Business +
    We don’t know how to convince the business side of student papers that they should invest in the web. At the very least we’re able to explain that having students graduate with their current skill set is painful in the current job market.
  • +
  • The future +
    We don’t know what journalism or the web will be like in 10 years, but we can start encouraging students to keep an open mind about the skills they’ll need. We’re less interested in preparing students for the current newsroom climate, than we are in teaching students to have the ability to learn new tools quickly as they come and go.
  • +

What we’re trying to share with others

  • A concise guide to building stories for the web - -
    There are too many options to get started. We hope to provide an opinionated - guide that follows both our experiences, research, and observations from - trying to teach our peers.
  • +
    There are too many options to get started. We hope to provide an opinionated guide that follows both our experiences, research, and observations from trying to teach our peers.
-

Student newsrooms don’t have investors to please. Student newsrooms can - change their website every week if they want to try a new design or interaction. - As long as students start treating the web as a different medium, and start - building stories around that idea, then we’ll know we’re moving forward.

-

A note to professional news orgs

-

We’re also asking professional newsrooms to be more open about their process - of developing stories for the web. You play a big part in this. This means - writing about it, and sharing code. We need to start building a bridge - between student journalism and professional newsrooms.

-
-
- -
-
2012
-
-

This is a start

-

We going to continue slowly growing the content on Open Journalism. We still consider this the beta version, - but expect to polish it, and beef up the content for a real launch at the - beginning of the summer.

-

We expect to have more original tutorials as well as the beginnings of - what a curriculum may look like that a student newsroom can adopt to start - guiding their transition to become a web first newsroom. We’re also going - to be working with the Queen’s Journal and - The Ubysseynext school year to better understand how to make the student - newsroom a place for experimenting with telling stories on the web. If - this sound like a good idea in your newsroom, we’re still looking to add - 1 more school.

-

We’re trying out some new shoes. And while they’re not self-lacing, and - smell a bit different, we feel lacing up a new pair of kicks can change - a lot.

-
-
- -
-
-

Let’s talk. Let’s listen. - -

-

We’re still in the early stages of what this project will look like, so if you want to help or have thoughts, let’s talk. - -

-

pippin@pippinlee.com - -

-

This isn’t supposed to be a - - manifesto™© - - we just think it’s pretty cool to share what we’ve learned so far, and hope you’ll do the same. We’re all in this together. - -

+

Student newsrooms don’t have investors to please. Student newsrooms can change their website every week if they want to try a new design or interaction. As long as students start treating the web as a different medium, and start building stories around that idea, then we’ll know we’re moving forward.

+

A note to professional news orgs

+

We’re also asking professional newsrooms to be more open about their process of developing stories for the web. You play a big part in this. This means writing about it, and sharing code. We need to start building a bridge between student journalism and professional newsrooms.

+
+
+
2012
+
+

This is a start

+

We going to continue slowly growing the content on Open Journalism. We still consider this the beta version, but expect to polish it, and beef up the content for a real launch at the beginning of the summer.

+

We expect to have more original tutorials as well as the beginnings of what a curriculum may look like that a student newsroom can adopt to start guiding their transition to become a web first newsroom. We’re also going to be working with the Queen’s Journal and The Ubysseynext school year to better understand how to make the student newsroom a place for experimenting with telling stories on the web. If this sound like a good idea in your newsroom, we’re still looking to add 1 more school.

+

We’re trying out some new shoes. And while they’re not self-lacing, and smell a bit different, we feel lacing up a new pair of kicks can change a lot.

+
+
+
+

Let’s talk. Let’s listen.

+

We’re still in the early stages of what this project will look like, so if you want to help or have thoughts, let’s talk.

+

pippin@pippinlee.com

+

This isn’t supposed to be a manifesto™© + we just think it’s pretty cool to share what we’ve learned so far, and hope you’ll do the same. We’re all in this together.

\ No newline at end of file diff --git a/test/test-pages/medium-2/expected.html b/test/test-pages/medium-2/expected.html index a85e33d..dd525fb 100644 --- a/test/test-pages/medium-2/expected.html +++ b/test/test-pages/medium-2/expected.html @@ -1,97 +1,30 @@
-
- -
+
Words need defenders.

On Behalf of “Literally”

-

You either are a “literally” abuser or know of one. If you’re anything - like me, hearing the word “literally” used incorrectly causes a little - piece of your soul to whither and die. Of course I do not mean that literally, - I mean that figuratively. An abuser would have said: “Every time a person - uses that word, a piece of my soul literally withers and dies.” Which is - terribly, horribly wrong.

-

For whatever bizarre reason, people feel the need to use literally as - a sort of verbal crutch. They use it to emphasize a point, which is silly - because they’re already using an analogy or a metaphor to illustrate said - point. For example: “Ugh, I literally tore the house apart looking for - my remote control!” No, you literally did not tear apart your house, because - it’s still standing. If you’d just told me you “tore your house apart” - searching for your remote, I would’ve understood what you meant. No need - to add “literally” to the sentence.

+

You either are a “literally” abuser or know of one. If you’re anything like me, hearing the word “literally” used incorrectly causes a little piece of your soul to whither and die. Of course I do not mean that literally, I mean that figuratively. An abuser would have said: “Every time a person uses that word, a piece of my soul literally withers and dies.” Which is terribly, horribly wrong.

+

For whatever bizarre reason, people feel the need to use literally as a sort of verbal crutch. They use it to emphasize a point, which is silly because they’re already using an analogy or a metaphor to illustrate said point. For example: “Ugh, I literally tore the house apart looking for my remote control!” No, you literally did not tear apart your house, because it’s still standing. If you’d just told me you “tore your house apart” searching for your remote, I would’ve understood what you meant. No need to add “literally” to the sentence.

Maybe I should define literally.

-
Literally means actually. When you say something literally happened, you’re - describing the scene or situation as it actually happened.
-

So you should only use literally when you mean it. It should not be used - in hyperbole. Example: “That was so funny I literally cried.” Which is - possible. Some things are funny enough to elicit tears. Note the example - stops with “literally cried.” You cannot literally cry your eyes out. - The joke wasn’t so funny your eyes popped out of their sockets.

-

When in Doubt, Leave it Out

-

“I’m so hungry I could eat a horse,” means you’re hungry. You don’t need - to say “I’m so hungry I could literally eat a horse.” Because you can’t - do that in one sitting, I don’t care how big your stomach is.

-

“That play was so funny I laughed my head off,” illustrates the play was - amusing. You don’t need to say you literally laughed your head off, because - then your head would be on the ground and you wouldn’t be able to speak, - much less laugh.

-

“I drove so fast my car was flying,” we get your point: you were speeding. - But your car is never going fast enough to fly, so don’t say your car was - literally flying.

-

Insecurities?

-

Maybe no one believed a story you told as a child, and you felt the need - to prove that it actually happened. No really, mom, I literally climbed the tree. In - efforts to prove truth, you used literally to describe something real, - however outlandish it seemed. Whatever the reason, now your overuse of - literally has become a habit.

-

Hard Habit to Break?

-

Abusing literally isn’t as bad a smoking, but it’s still an unhealthy - habit (I mean that figuratively). Help is required in order to break it.

-

This is my version of an intervention for literally abusers. I’m not sure - how else to do it other than in writing. I know this makes me sound like - a know-it-all, and I accept that. But there’s no excuse other than blatant - ignorance to misuse the word “literally.” So just stop it.

-

Don’t say “Courtney, this post is so snobbish it literally burned up my - computer.” Because nothing is that snobbish that it causes computers to - combust. Or: “Courtney, your head is so big it literally cannot get through - the door.” Because it can, unless it’s one of those tiny doors from - Alice in Wonderlandand I need to eat a mushroom to make my whole - body smaller.

-

No One’s Perfect

-

And I’m not saying I am. I’m trying to restore meaning to a word that’s - lost meaning. I’m standing up for literally. It’s a good word when used - correctly. People are butchering it and destroying it every day (figuratively - speaking) and the massacre needs to stop. Just as there’s a coalition of - people against the use of certain fonts (like Comic Sans and Papyrus), so should there be a coalition of people against - the abuse of literally.

-

Saying it to Irritate?

-

Do you misuse the word “literally” just to annoy your know-it-all or grammar - police friends/acquaintances/total strangers? If so, why? Doing so would - be like me going outside when it’s freezing, wearing nothing but a pair - of shorts and t-shirt in hopes of making you cold by just looking at me. - Who suffers more?

-

Graphical Representation

-

Matthew Inman of “The Oatmeal” wrote a comic about literally. Abusers - and defenders alike should check it out. - It’s clear this whole craze about literally is driving a lot of us nuts. - You literally abusers are killing off pieces of our souls. You must be - stopped, or the world will be lost to meaninglessness forever. Figuratively - speaking.

+
Literally means actually. When you say something literally happened, you’re describing the scene or situation as it actually happened.
+

So you should only use literally when you mean it. It should not be used in hyperbole. Example: “That was so funny I literally cried.” Which is possible. Some things are funny enough to elicit tears. Note the example stops with “literally cried.” You cannot literally cry your eyes out. The joke wasn’t so funny your eyes popped out of their sockets.

+

When in Doubt, Leave it Out

+

“I’m so hungry I could eat a horse,” means you’re hungry. You don’t need to say “I’m so hungry I could literally eat a horse.” Because you can’t do that in one sitting, I don’t care how big your stomach is.

+

“That play was so funny I laughed my head off,” illustrates the play was amusing. You don’t need to say you literally laughed your head off, because then your head would be on the ground and you wouldn’t be able to speak, much less laugh.

+

“I drove so fast my car was flying,” we get your point: you were speeding. But your car is never going fast enough to fly, so don’t say your car was literally flying.

+

Insecurities?

+

Maybe no one believed a story you told as a child, and you felt the need to prove that it actually happened. No really, mom, I literally climbed the tree. In efforts to prove truth, you used literally to describe something real, however outlandish it seemed. Whatever the reason, now your overuse of literally has become a habit.

+

Hard Habit to Break?

+

Abusing literally isn’t as bad a smoking, but it’s still an unhealthy habit (I mean that figuratively). Help is required in order to break it.

+

This is my version of an intervention for literally abusers. I’m not sure how else to do it other than in writing. I know this makes me sound like a know-it-all, and I accept that. But there’s no excuse other than blatant ignorance to misuse the word “literally.” So just stop it.

+

Don’t say “Courtney, this post is so snobbish it literally burned up my computer.” Because nothing is that snobbish that it causes computers to combust. Or: “Courtney, your head is so big it literally cannot get through the door.” Because it can, unless it’s one of those tiny doors from Alice in Wonderland and I need to eat a mushroom to make my whole body smaller.

+

No One’s Perfect

+

And I’m not saying I am. I’m trying to restore meaning to a word that’s lost meaning. I’m standing up for literally. It’s a good word when used correctly. People are butchering it and destroying it every day (figuratively speaking) and the massacre needs to stop. Just as there’s a coalition of people against the use of certain fonts (like Comic Sans and Papyrus), so should there be a coalition of people against the abuse of literally.

+

Saying it to Irritate?

+

Do you misuse the word “literally” just to annoy your know-it-all or grammar police friends/acquaintances/total strangers? If so, why? Doing so would be like me going outside when it’s freezing, wearing nothing but a pair of shorts and t-shirt in hopes of making you cold by just looking at me. Who suffers more?

+

Graphical Representation

+

Matthew Inman of “The Oatmeal” wrote a comic about literally. Abusers and defenders alike should check it out. It’s clear this whole craze about literally is driving a lot of us nuts. You literally abusers are killing off pieces of our souls. You must be stopped, or the world will be lost to meaninglessness forever. Figuratively speaking.

\ No newline at end of file diff --git a/test/test-pages/missing-paragraphs/expected.html b/test/test-pages/missing-paragraphs/expected.html index ab38a12..a9152da 100644 --- a/test/test-pages/missing-paragraphs/expected.html +++ b/test/test-pages/missing-paragraphs/expected.html @@ -1,47 +1,7 @@
-

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy - eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam - voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet - clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit - amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam - nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, - sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. - Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor - sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed - diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, - sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. - Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor - sit amet.

- -

Secondary header

- -

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy - eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam - voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet - clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit - amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam - nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, - sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. - Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor - sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed - diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, - sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. - Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor - sit amet.

- -

Secondary header

- -

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy - eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam - voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet - clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit - amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam - nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, - sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. - Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor - sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed - diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, - sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. - Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor - sit amet.

+

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

+

Secondary header

+

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

+

Secondary header

+

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

\ No newline at end of file diff --git a/test/test-pages/normalize-spaces/expected.html b/test/test-pages/normalize-spaces/expected.html index 55e5350..66175cf 100644 --- a/test/test-pages/normalize-spaces/expected.html +++ b/test/test-pages/normalize-spaces/expected.html @@ -1,16 +1,6 @@
-

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod - tab here incididunt ut labore et dolore magna aliqua. Ut enim ad minim - veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea - commodo consequat. Duis aute irure dolor in reprehenderit in voluptate - velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat - cupidatat non proident, sunt in culpa qui officia deserunt mollit anim - id est laborum.

-

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tab here incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\ No newline at end of file diff --git a/test/test-pages/remove-extra-brs/expected.html b/test/test-pages/remove-extra-brs/expected.html index 652531d..05afcfc 100644 --- a/test/test-pages/remove-extra-brs/expected.html +++ b/test/test-pages/remove-extra-brs/expected.html @@ -1,21 +1,13 @@
-

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod - tempor incididunt ut labore et dolore magna aliqua.

+

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.

+

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

-

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum - dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non - proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

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.

-

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum - dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non - proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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.

+

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\ No newline at end of file diff --git a/test/test-pages/remove-extra-paragraphs/expected.html b/test/test-pages/remove-extra-paragraphs/expected.html index 5fb9089..f731d75 100644 --- a/test/test-pages/remove-extra-paragraphs/expected.html +++ b/test/test-pages/remove-extra-paragraphs/expected.html @@ -1,19 +1,11 @@
-

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.

-

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum - dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non - proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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.

+

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

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.

-

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum - dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non - proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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.

+

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\ No newline at end of file diff --git a/test/test-pages/remove-script-tags/expected.html b/test/test-pages/remove-script-tags/expected.html index 5fb9089..f731d75 100644 --- a/test/test-pages/remove-script-tags/expected.html +++ b/test/test-pages/remove-script-tags/expected.html @@ -1,19 +1,11 @@
-

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.

-

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum - dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non - proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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.

+

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

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.

-

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum - dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non - proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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.

+

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\ No newline at end of file diff --git a/test/test-pages/reordering-paragraphs/expected.html b/test/test-pages/reordering-paragraphs/expected.html index bc68b69..2222f2e 100644 --- a/test/test-pages/reordering-paragraphs/expected.html +++ b/test/test-pages/reordering-paragraphs/expected.html @@ -1,27 +1,5 @@
-

Regarding item# 11111, under sufficiently extreme conditions, quarks may - become deconfined and exist as free particles. In the course of asymptotic - freedom, the strong interaction becomes weaker at higher temperatures. - Eventually, color confinement would be lost and an extremely hot plasma - of freely moving quarks and gluons would be formed. This theoretical phase - of matter is called quark-gluon plasma.[81] The exact conditions needed - to give rise to this state are unknown and have been the subject of a great - deal of speculation and experimentation.

-

Regarding item# 22222, under sufficiently extreme conditions, quarks may - become deconfined and exist as free particles. In the course of asymptotic - freedom, the strong interaction becomes weaker at higher temperatures. - Eventually, color confinement would be lost and an extremely hot plasma - of freely moving quarks and gluons would be formed. This theoretical phase - of matter is called quark-gluon plasma.[81] The exact conditions needed - to give rise to this state are unknown and have been the subject of a great - deal of speculation and experimentation.

-

Regarding item# 33333, under sufficiently extreme conditions, quarks may - become deconfined and exist as free particles. In the course of asymptotic - freedom, the strong interaction becomes weaker at higher temperatures. - Eventually, color confinement would be lost and an extremely hot plasma - of freely moving quarks and gluons would be formed. This theoretical phase - of matter is called quark-gluon plasma.[81] The exact conditions needed - to give rise to this state are unknown and have been the subject of a great - deal of speculation and experimentation.

-
-
+

Regarding item# 11111, under sufficiently extreme conditions, quarks may become deconfined and exist as free particles. In the course of asymptotic freedom, the strong interaction becomes weaker at higher temperatures. Eventually, color confinement would be lost and an extremely hot plasma of freely moving quarks and gluons would be formed. This theoretical phase of matter is called quark-gluon plasma.[81] The exact conditions needed to give rise to this state are unknown and have been the subject of a great deal of speculation and experimentation.

+

Regarding item# 22222, under sufficiently extreme conditions, quarks may become deconfined and exist as free particles. In the course of asymptotic freedom, the strong interaction becomes weaker at higher temperatures. Eventually, color confinement would be lost and an extremely hot plasma of freely moving quarks and gluons would be formed. This theoretical phase of matter is called quark-gluon plasma.[81] The exact conditions needed to give rise to this state are unknown and have been the subject of a great deal of speculation and experimentation.

+

Regarding item# 33333, under sufficiently extreme conditions, quarks may become deconfined and exist as free particles. In the course of asymptotic freedom, the strong interaction becomes weaker at higher temperatures. Eventually, color confinement would be lost and an extremely hot plasma of freely moving quarks and gluons would be formed. This theoretical phase of matter is called quark-gluon plasma.[81] The exact conditions needed to give rise to this state are unknown and have been the subject of a great deal of speculation and experimentation.

+
\ No newline at end of file diff --git a/test/test-pages/replace-brs/expected.html b/test/test-pages/replace-brs/expected.html index d3fd73b..89bdf3f 100644 --- a/test/test-pages/replace-brs/expected.html +++ b/test/test-pages/replace-brs/expected.html @@ -1,20 +1,11 @@
-

Lorem ipsum

+

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. Duis aute irure - dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat - nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in - culpa qui officia deserunt mollit anim id est laborum.

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\ No newline at end of file diff --git a/test/test-pages/replace-font-tags/expected.html b/test/test-pages/replace-font-tags/expected.html index a27d741..565a446 100644 --- a/test/test-pages/replace-font-tags/expected.html +++ b/test/test-pages/replace-font-tags/expected.html @@ -1,17 +1,6 @@
-

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. Duis aute - irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat - nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in - culpa qui officia deserunt mollit anim id est laborum.

-

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. Duis aute irure dolor in reprehenderit - in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in - culpa qui officia deserunt mollit anim id est laborum.

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\ No newline at end of file diff --git a/test/test-pages/salon-1/expected.html b/test/test-pages/salon-1/expected.html index 1c47ce8..6f4e7fa 100644 --- a/test/test-pages/salon-1/expected.html +++ b/test/test-pages/salon-1/expected.html @@ -1,251 +1,42 @@
-

Horror stories about the increasingly unpopular taxi service Uber have - been commonplace in recent months, but there is still much to be learned - from its handling of the recent hostage drama in downtown Sydney, Australia. - We’re told that we reveal our true character in moments of crisis, and - apparently that’s as true for companies as it is for individuals.

-

A number of experts have challenged the idea that the horrific explosion - of violence in a Sydney café was “terrorism,” since the attacker was mentally - unbalanced and acted alone. But, terror or not, the ordeal was certainly - terrifying. Amid the chaos and uncertainty, the city believed itself to - be under a coordinated and deadly attack.

-

Uber had an interesting, if predictable, response to the panic and mayhem: - It raised prices. A lot.

-

In case you missed the story, the facts are these: Someone named Man Haron - Monis, who was considered mentally unstable and had been investigated for - murdering his ex-wife, seized hostages in a café that was located in Sydney’s - Central Business District or “CBD.” In the process he put up an Islamic - flag – “igniting,” as Reuters reported, - “fears of a jihadist attack in the heart of the country’s biggest city.”

+

Horror stories about the increasingly unpopular taxi service Uber have been commonplace in recent months, but there is still much to be learned from its handling of the recent hostage drama in downtown Sydney, Australia. We’re told that we reveal our true character in moments of crisis, and apparently that’s as true for companies as it is for individuals.

+

A number of experts have challenged the idea that the horrific explosion of violence in a Sydney café was “terrorism,” since the attacker was mentally unbalanced and acted alone. But, terror or not, the ordeal was certainly terrifying. Amid the chaos and uncertainty, the city believed itself to be under a coordinated and deadly attack.

+

Uber had an interesting, if predictable, response to the panic and mayhem: It raised prices. A lot.

+

In case you missed the story, the facts are these: Someone named Man Haron Monis, who was considered mentally unstable and had been investigated for murdering his ex-wife, seized hostages in a café that was located in Sydney’s Central Business District or “CBD.” In the process he put up an Islamic flag – “igniting,” as Reuters reported, “fears of a jihadist attack in the heart of the country’s biggest city.”

In the midst of the fear, Uber stepped in and tweeted this announcement:  “We are all concerned with events in CBD. Fares have increased to encourage - more drivers to come online & pick up passengers in the area.” - -

-

As Mashable reports, - the company announced that it would charge a minimum of $100 Australian - to take passengers from the area immediately surrounding the ongoing crisis, - and prices increased by as much as four times the standard amount. A firestorm - of criticism quickly erupted – “@Uber_Sydney stop - being assholes,” one Twitter response began – and Uber soon found itself - offering free rides out of the troubled area instead.

-

That opener suggests that Uber, as part of a community under siege, is - preparing to respond in a civic manner. - -

-

“… Fares have increased to encourage more drivers to come online & pick up passengers in the area.” - -

+ more drivers to come online & pick up passengers in the area.”

+

As Mashable reports, the company announced that it would charge a minimum of $100 Australian to take passengers from the area immediately surrounding the ongoing crisis, and prices increased by as much as four times the standard amount. A firestorm of criticism quickly erupted – “@Uber_Sydney stop being assholes,” one Twitter response began – and Uber soon found itself offering free rides out of the troubled area instead.

+

That opener suggests that Uber, as part of a community under siege, is preparing to respond in a civic manner.

+

“… Fares have increased to encourage more drivers to come online & pick up passengers in the area.”

-

But, despite the expression of shared concern, there is no sense of civitas to - be found in the statement that follows. There is only a transaction, executed - at what the corporation believes to be market value. Lesson #1 about Uber - is, therefore, that in its view there is no heroism, only self-interest. - This is Ayn Rand’s brutal, irrational and primitive philosophy in its purest - form: altruism is evil, and self-interest is the only true heroism. - -

-

There was once a time when we might have read of “hero cabdrivers” or - “hero bus drivers” placing themselves in harm’s way to rescue their fellow - citizens. For its part, Uber might have suggested that it would use its - network of drivers and its scheduling software to recruit volunteer drivers - for a rescue mission. - -

-

Instead, we are told that Uber’s pricing surge was its expression - of concern. Uber’s way to address a human crisis is apparently by letting - the market govern human behavior, as if there were (in libertarian economist - Tyler Cowen’s phrase) “markets in everything” – including the lives of - a city’s beleaguered citizens (and its Uber drivers). - -

-

Where would this kind of market-driven practice leave poor or middle-income - citizens in a time of crisis? If they can’t afford the “surged” price, - apparently it would leave them squarely in the line of fire. And come to - think of it, why would Uber drivers value their lives so cheaply, unless - they’re underpaid? - -

-

One of the lessons of Sydney is this: Uber’s philosophy, whether consciously - expressed or not, is that life belongs to the highest bidder – and therefore, - by implication, the highest bidder’s life has the greatest value. Society, - on the other hand, may choose to believe that every life has equal value - – or that lifesaving services should be available at affordable prices. - -

-

If nothing else, the Sydney experience should prove once and for all that - there is no such thing as “the sharing economy.” Uber is a taxi company, - albeit an under-regulated one, and nothing more. It’s certainly not a “ride - sharing” service, where someone who happens to be going in the same direction - is willing to take along an extra passenger and split gas costs. A ride-sharing - service wouldn’t find itself “increasing fares to encourage more drivers” - to come into Sydney’s terrorized Central Business District. - -

-

A “sharing economy,” by definition, is lateral in structure. It is a peer-to-peer - economy. But Uber, as its name suggests, is hierarchical in structure. - It monitors and controls its drivers, demanding that they purchase services - from it while guiding their movements and determining their level of earnings. - And its pricing mechanisms impose unpredictable costs on its customers, - extracting greater amounts whenever the data suggests customers can be - compelled to pay them. - -

-

This is a top-down economy, not a “shared” one. - -

-

A number of Uber’s fans and supporters defended the company on the grounds - that its “surge prices,” including those seen during the Sydney crisis, - are determined by an algorithm. But an algorithm can be an ideological - statement, and is always a cultural artifact. As human creations, algorithms - reflect their creators. - -

-

Uber’s tweet during the Sydney crisis made it sound as if human intervention, - rather than algorithmic processes, caused prices to soar that day. But - it doesn’t really matter if that surge was manually or algorithmically - driven. Either way the prices were Uber’s doing – and its moral choice. - -

-

Uber has been strenuously defending its surge pricing in the wake of accusations - (apparently justified) - that the company enjoyed windfall profits during Hurricane Sandy. It has - now promised the state of New York that it will cap its surge prices (at - three times the highest rate on two non-emergency days). But if Uber has - its way, it will soon enjoy a monopolistic stranglehold on car service - rates in most major markets. And it has demonstrated its willingness to - ignore rules and regulations. That means predictable and affordable - taxi fares could become a thing of the past. - -

-

In practice, surge pricing could become a new, privatized form of taxation - on middle-class taxi customers. - -

-

Even without surge pricing, Uber and its supporters are hiding its full - costs. When middle-class workers are underpaid or deprived of benefits - and full working rights, as Uber’s reportedly are, - the entire middle-class economy suffers. Overall wages and benefits are - suppressed for the majority, while the wealthy few are made even richer. - The invisible costs of ventures like Uber are extracted over time, far - surpassing whatever short-term savings they may occasionally offer. - -

-

Like Walmart, Uber underpays its employees – many of its drivers are employees, - in everything but name – and then drains the social safety net to make - up the difference. While Uber preaches libertarianism, it practices a form - of corporate welfare. It’s reportedly celebrating Obamacare, - for example, since the Affordable Care Act allows it to avoid providing - health insurance to its workforce. But the ACA’s subsidies, together with - Uber’s often woefully insufficient wages, mean that the rest of us are - paying its tab instead. And the lack of income security among Uber’s drivers - creates another social cost for Americans – in lost tax revenue, and possibly - in increased use of social services. - -

-

The company’s war on regulation will also carry a social price. Uber and - its supporters don’t seem to understand that regulations exist - for a reason. It’s true that nobody likes excessive bureaucracy, but not - all regulations are excessive or onerous. And when they are, it’s a flaw - in execution rather than principle. - -

-

Regulations were created because they serve a social purpose, ensuring - the free and fair exchange of services and resources among all segments - of society. Some services, such as transportation, are of such importance - that the public has a vested interest in ensuring they will be readily - available at reasonably affordable prices. That’s not unreasonable for - taxi services, especially given the fact that they profit from publicly - maintained roads and bridges. - -

-

Uber has presented itself as a modernized, efficient alternative to government - oversight. But it’s an evasion of regulation, not its replacement. As - Alexis Madrigalreports, Uber has deliberately ignored city regulators - and used customer demand to force its model of inadequate self-governance - (my conclusion, not his) onto one city after another. - -

-

Uber presented itself as a refreshing alternative to the over-bureaucratized - world of urban transportation. But that’s a false choice. We can streamline - sclerotic city regulators, upgrade taxi fleets and even provide users with - fancy apps that make it easier to call a cab. The company’s binary presentation - – us, or City Hall – frames the debate in artificial terms. - -

-

Uber claims that its driver rating system is a more efficient way to monitor - drivers, but that’s an entirely unproven assumption. While taxi drivers - have been known to misbehave, the worldwide litany of complaints against - Uber drivers – for everything from dirty cars and spider bites to - assault with a hammer, fondling and - rape– suggest that Uber’s system may not work as well as old-fashioned - regulation. It’s certainly not noticeably superior. - -

-

In fact, prosecutors in San Francisco and Los Angeles say - Uber has been lying to its customers about the level and quality of its - background checks. The company now promises it will do a better job at - screening drivers. But it won’t tell us what - measures its taking to improve its safety record, and it’s fighting the kind of driver scrutiny that - taxicab companies have been required to enforce for many decades. - -

-

Many reports suggest that beleaguered drivers don’t feel much better about - the company than victimized passengers do. They tell horror stories about - the company’s hiring and management practices. Uber unilaterally slashes drivers’ rates, - while claiming they don’t need to unionize. (The Teamsters disagree.) - -

-

The company also pushes sketchy, substandard loans onto - its drivers – but hey, what could go wrong? - -

-

Uber has many libertarian defenders. And yet, it deceives the press and - threatens to spy on journalists, lies to its own employees, - keeps its practices a secret and routinely invades the privacy of civilians - – sometimes merely for entertainment. (It has a tool, with the Orwellian - name the “God View,” - that it can use for monitoring customers’ personal movements.) - -

-

Aren’t those the kinds of things libertarians say they hate about government? - -

-

This isn’t a “gotcha” exercise. It matters. Uber is the poster child for - the pro-privatization, anti-regulatory ideology that ascribes magical powers - to technology and the private sector. It is deeply a political entity, - from its Nietzschean name to its recent hiring of White House veteran David - Plouffe. Uber is built around a relatively simple app (which relies on - government-created technology), but it’s not really a tech company. Above - all else Uber is an ideological campaign, a neoliberal project whose real - products are deregulation and the dismantling of the social contract. - -

-

Or maybe, as that tweeter in Sydney suggested, they’re just assholes. - -

-

Either way, it’s important that Uber’s worldview and business practices - not be allowed to “disrupt” our economy or our social fabric. People who - work hard deserve to make a decent living. Society at large deserves access - to safe and affordable transportation. And government, as the collective - expression of a democratic society, has a role to play in protecting its - citizens. - -

-

And then there’s the matter of our collective psyche. In her book “A Paradise - Built in Hell: The Extraordinary Communities that Arise in Disaster,” Rebecca - Solnit wrote of the purpose, meaning and deep satisfaction people find - when they pull together to help one another in the face of adversity.  - But in the world Uber seeks to create, those surges of the spirit would - be replaced by surge pricing. - -

-

You don’t need a “God view” to see what happens next. When heroism is - reduced to a transaction, the soul of a society is sold cheap. - -

+

But, despite the expression of shared concern, there is no sense of civitas to be found in the statement that follows. There is only a transaction, executed at what the corporation believes to be market value. Lesson #1 about Uber is, therefore, that in its view there is no heroism, only self-interest. This is Ayn Rand’s brutal, irrational and primitive philosophy in its purest form: altruism is evil, and self-interest is the only true heroism.

+

There was once a time when we might have read of “hero cabdrivers” or “hero bus drivers” placing themselves in harm’s way to rescue their fellow citizens. For its part, Uber might have suggested that it would use its network of drivers and its scheduling software to recruit volunteer drivers for a rescue mission.

+

Instead, we are told that Uber’s pricing surge was its expression of concern. Uber’s way to address a human crisis is apparently by letting the market govern human behavior, as if there were (in libertarian economist Tyler Cowen’s phrase) “markets in everything” – including the lives of a city’s beleaguered citizens (and its Uber drivers).

+

Where would this kind of market-driven practice leave poor or middle-income citizens in a time of crisis? If they can’t afford the “surged” price, apparently it would leave them squarely in the line of fire. And come to think of it, why would Uber drivers value their lives so cheaply, unless they’re underpaid?

+

One of the lessons of Sydney is this: Uber’s philosophy, whether consciously expressed or not, is that life belongs to the highest bidder – and therefore, by implication, the highest bidder’s life has the greatest value. Society, on the other hand, may choose to believe that every life has equal value – or that lifesaving services should be available at affordable prices.

+

If nothing else, the Sydney experience should prove once and for all that there is no such thing as “the sharing economy.” Uber is a taxi company, albeit an under-regulated one, and nothing more. It’s certainly not a “ride sharing” service, where someone who happens to be going in the same direction is willing to take along an extra passenger and split gas costs. A ride-sharing service wouldn’t find itself “increasing fares to encourage more drivers” to come into Sydney’s terrorized Central Business District.

+

A “sharing economy,” by definition, is lateral in structure. It is a peer-to-peer economy. But Uber, as its name suggests, is hierarchical in structure. It monitors and controls its drivers, demanding that they purchase services from it while guiding their movements and determining their level of earnings. And its pricing mechanisms impose unpredictable costs on its customers, extracting greater amounts whenever the data suggests customers can be compelled to pay them.

+

This is a top-down economy, not a “shared” one.

+

A number of Uber’s fans and supporters defended the company on the grounds that its “surge prices,” including those seen during the Sydney crisis, are determined by an algorithm. But an algorithm can be an ideological statement, and is always a cultural artifact. As human creations, algorithms reflect their creators.

+

Uber’s tweet during the Sydney crisis made it sound as if human intervention, rather than algorithmic processes, caused prices to soar that day. But it doesn’t really matter if that surge was manually or algorithmically driven. Either way the prices were Uber’s doing – and its moral choice.

+

Uber has been strenuously defending its surge pricing in the wake of accusations (apparently justified) that the company enjoyed windfall profits during Hurricane Sandy. It has now promised the state of New York that it will cap its surge prices (at three times the highest rate on two non-emergency days). But if Uber has its way, it will soon enjoy a monopolistic stranglehold on car service rates in most major markets. And it has demonstrated its willingness to ignore rules and regulations. That means predictable and affordable taxi fares could become a thing of the past.

+

In practice, surge pricing could become a new, privatized form of taxation on middle-class taxi customers.

+

Even without surge pricing, Uber and its supporters are hiding its full costs. When middle-class workers are underpaid or deprived of benefits and full working rights, as Uber’s reportedly are, the entire middle-class economy suffers. Overall wages and benefits are suppressed for the majority, while the wealthy few are made even richer. The invisible costs of ventures like Uber are extracted over time, far surpassing whatever short-term savings they may occasionally offer.

+

Like Walmart, Uber underpays its employees – many of its drivers are employees, in everything but name – and then drains the social safety net to make up the difference. While Uber preaches libertarianism, it practices a form of corporate welfare. It’s reportedly celebrating Obamacare, for example, since the Affordable Care Act allows it to avoid providing health insurance to its workforce. But the ACA’s subsidies, together with Uber’s often woefully insufficient wages, mean that the rest of us are paying its tab instead. And the lack of income security among Uber’s drivers creates another social cost for Americans – in lost tax revenue, and possibly in increased use of social services.

+

The company’s war on regulation will also carry a social price. Uber and its supporters don’t seem to understand that regulations exist for a reason. It’s true that nobody likes excessive bureaucracy, but not all regulations are excessive or onerous. And when they are, it’s a flaw in execution rather than principle.

+

Regulations were created because they serve a social purpose, ensuring the free and fair exchange of services and resources among all segments of society. Some services, such as transportation, are of such importance that the public has a vested interest in ensuring they will be readily available at reasonably affordable prices. That’s not unreasonable for taxi services, especially given the fact that they profit from publicly maintained roads and bridges.

+

Uber has presented itself as a modernized, efficient alternative to government oversight. But it’s an evasion of regulation, not its replacement. As Alexis Madrigalreports, Uber has deliberately ignored city regulators and used customer demand to force its model of inadequate self-governance (my conclusion, not his) onto one city after another.

+

Uber presented itself as a refreshing alternative to the over-bureaucratized world of urban transportation. But that’s a false choice. We can streamline sclerotic city regulators, upgrade taxi fleets and even provide users with fancy apps that make it easier to call a cab. The company’s binary presentation – us, or City Hall – frames the debate in artificial terms.

+

Uber claims that its driver rating system is a more efficient way to monitor drivers, but that’s an entirely unproven assumption. While taxi drivers have been known to misbehave, the worldwide litany of complaints against Uber drivers – for everything from dirty cars and spider bites to assault with a hammer, fondling and rape– suggest that Uber’s system may not work as well as old-fashioned regulation. It’s certainly not noticeably superior.

+

In fact, prosecutors in San Francisco and Los Angeles say Uber has been lying to its customers about the level and quality of its background checks. The company now promises it will do a better job at screening drivers. But it won’t tell us what measures its taking to improve its safety record, and it’s fighting the kind of driver scrutiny that taxicab companies have been required to enforce for many decades.

+

Many reports suggest that beleaguered drivers don’t feel much better about the company than victimized passengers do. They tell horror stories about the company’s hiring and management practices. Uber unilaterally slashes drivers’ rates, while claiming they don’t need to unionize. (The Teamsters disagree.)

+

The company also pushes sketchy, substandard loans onto its drivers – but hey, what could go wrong?

+

Uber has many libertarian defenders. And yet, it deceives the press and threatens to spy on journalists, lies to its own employees, keeps its practices a secret and routinely invades the privacy of civilians – sometimes merely for entertainment. (It has a tool, with the Orwellian name the “God View,” that it can use for monitoring customers’ personal movements.)

+

Aren’t those the kinds of things libertarians say they hate about government?

+

This isn’t a “gotcha” exercise. It matters. Uber is the poster child for the pro-privatization, anti-regulatory ideology that ascribes magical powers to technology and the private sector. It is deeply a political entity, from its Nietzschean name to its recent hiring of White House veteran David Plouffe. Uber is built around a relatively simple app (which relies on government-created technology), but it’s not really a tech company. Above all else Uber is an ideological campaign, a neoliberal project whose real products are deregulation and the dismantling of the social contract.

+

Or maybe, as that tweeter in Sydney suggested, they’re just assholes.

+

Either way, it’s important that Uber’s worldview and business practices not be allowed to “disrupt” our economy or our social fabric. People who work hard deserve to make a decent living. Society at large deserves access to safe and affordable transportation. And government, as the collective expression of a democratic society, has a role to play in protecting its citizens.

+

And then there’s the matter of our collective psyche. In her book “A Paradise Built in Hell: The Extraordinary Communities that Arise in Disaster,” Rebecca Solnit wrote of the purpose, meaning and deep satisfaction people find when they pull together to help one another in the face of adversity.  But in the world Uber seeks to create, those surges of the spirit would be replaced by surge pricing.

+

You don’t need a “God view” to see what happens next. When heroism is reduced to a transaction, the soul of a society is sold cheap.

\ No newline at end of file diff --git a/test/test-pages/social-buttons/expected.html b/test/test-pages/social-buttons/expected.html index 2846511..763c6bf 100644 --- a/test/test-pages/social-buttons/expected.html +++ b/test/test-pages/social-buttons/expected.html @@ -1,34 +1,9 @@
-

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\ No newline at end of file diff --git a/test/test-pages/style-tags-removal/expected.html b/test/test-pages/style-tags-removal/expected.html index 1c2a88e..6335f30 100644 --- a/test/test-pages/style-tags-removal/expected.html +++ b/test/test-pages/style-tags-removal/expected.html @@ -1,15 +1,6 @@
-

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\ No newline at end of file diff --git a/test/test-pages/svg-parsing/expected.html b/test/test-pages/svg-parsing/expected.html index 3a05981..69deb01 100644 --- a/test/test-pages/svg-parsing/expected.html +++ b/test/test-pages/svg-parsing/expected.html @@ -1,19 +1,7 @@
-

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

- +

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+ @@ -22,23 +10,8 @@ - -

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

-

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. Duis aute irure dolor in reprehenderit in voluptate velit esse - cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat - non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+ +

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

+

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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

\ No newline at end of file diff --git a/test/test-pages/tmz-1/expected.html b/test/test-pages/tmz-1/expected.html index 8eb764b..d032352 100644 --- a/test/test-pages/tmz-1/expected.html +++ b/test/test-pages/tmz-1/expected.html @@ -1,34 +1,19 @@

-

$150K Pearl Oscar Dress ... STOLEN!!!!

- -

+

$150K Pearl Oscar Dress ... STOLEN!!!!

2/26/2015 7:11 AM PST BY TMZ STAFF
-

EXCLUSIVE - -

-

- 0225-lupita-nyongo-getty-01Lupita Nyong'o's now-famous Oscar dress - -- adorned in pearls -- was stolen right out of her hotel room ... TMZ - has learned.

-

Law enforcement sources tell TMZ ... the dress was taken out of Lupita's - room at The London West Hollywood. The dress is made of pearls ... 6,000 - white Akoya pearls. It's valued at $150,000.

-

Our sources say Lupita told cops it was taken from her room sometime between - 8 AM and 9 PM Wednesday ... while she was gone.  

-

We're told there is security footage that cops are looking at that could - catch the culprit right in the act. 

-

- update_graphic_red_bar12:00 PM PT -- Sheriff's deputies were at The London Thursday - morning.  We know they were in the manager's office and we're told - they have looked at security footage to determine if they can ID the culprit.

-

- 0226-SUB-london-hotel-swipe-tmz-02 -

+

EXCLUSIVE

+

0225-lupita-nyongo-getty-01Lupita Nyong'o's now-famous Oscar dress -- adorned in pearls -- was stolen right out of her hotel room ... TMZ has learned.

+

Law enforcement sources tell TMZ ... the dress was taken out of Lupita's room at The London West Hollywood. The dress is made of pearls ... 6,000 white Akoya pearls. It's valued at $150,000.

+

Our sources say Lupita told cops it was taken from her room sometime between 8 AM and 9 PM Wednesday ... while she was gone.  

+

We're told there is security footage that cops are looking at that could catch the culprit right in the act. 

+

update_graphic_red_bar12:00 PM PT -- Sheriff's deputies were at The London Thursday morning.  We know they were in the manager's office and we're told they have looked at security footage to determine if they can ID the culprit.

+

0226-SUB-london-hotel-swipe-tmz-02

+
\ No newline at end of file diff --git a/test/test-pages/wapo-1/expected.html b/test/test-pages/wapo-1/expected.html index cce10d7..959e189 100644 --- a/test/test-pages/wapo-1/expected.html +++ b/test/test-pages/wapo-1/expected.html @@ -1,145 +1,48 @@
-

Gunmen opened fire on visitors at - Tunisia’s most renowned museum on Wednesday, killing at least 19 people, - including 17 foreigners, in an assault that threatened to upset the fragile - stability of a country seen as the lone success of the Arab Spring.

-

It was the most deadly terrorist attack in the North African nation in - more than a decade. Although no group claimed responsibility, the bloodshed - raised fears that militants linked to the Islamic State were expanding - their operations.

-

The attackers, clad in military uniforms, stormed the Bardo National Museum on - Wednesday afternoon, seizing and gunning down foreign tourists before security - forces raided the building to end the siege. The museum is a major tourist - draw and is near the heavily guarded national parliament in downtown Tunis.

-

Tunisian Prime Minister Habib Essid said that in addition to the slain - foreigners — from Italy, Poland, Germany and Spain — a local museum worker - and a security official were killed. Two gunmen died, and three others - may have escaped, officials said. About 50 other people were wounded, according - to local news reports.

-

“Our nation is in danger,” Essid declared in a televised address Wednesday - evening. He vowed that the country would be “merciless” in defending itself.

- -

Tunisia, a mostly Muslim nation of about 11 million people, was governed - for decades by autocrats who imposed secularism. Its sun-drenched Mediterranean - beaches drew thousands of bikini-clad tourists, and its governments promoted - education and other rights for women. But the country has grappled with - rising Islamist militancy since a popular uprising overthrew its dictator - four years ago, setting the stage for the Arab Spring revolts across the - region.

-

Thousands of Tunisians have flocked to join jihadist groups in Syria, - including the Islamic State, making the country one of the major sources - of foreign fighters in the conflict. Tunisian security forces have also - fought increasing gunbattles with jihadists at home.

-

Despite this, the country has been hailed as a model of democratic transition - as other governments that came to power after the Arab Spring collapsed, - often in bloody confrontations. But the attack Wednesday — on a national - landmark that showcases Tunisia’s rich heritage — could heighten tensions - in a nation that has become deeply divided between pro- and anti-Islamist - political factions.

-

Many Tunisians accuse the country’s political Islamists, who held power - from 2011 to 2013, of having been slow to respond to the growing danger - of terrorism. Islamist politicians have acknowledged that they did not - realize the threat that would develop when radical Muslims, who had been - repressed under authoritarian regimes, won the freedom to preach freely - in mosques.

-

In Washington, White House press secretary Josh Earnest condemned the attack and - said the U.S. government was willing to assist Tunisian authorities in - the investigation.

-
-

Gunmen in military uniforms stormed Tunisia's national museum, killing at least 19 people, most of them foreign tourists. (Reuters) -

-
-

“This attack today is meant to threaten authorities, to frighten tourists - and to negatively affect the economy,” said Lotfi Azzouz, Tunisia country - director for Amnesty International, a London-based rights group.

-

Tourism is critical to Tunisia’s economy, accounting for 15 percent of - its gross domestic product in 2013, according to the World Travel and Tourism - Council, an industry body. The Bardo museum hosts one of the world’s most - outstanding collections of Roman mosaics and is popular with tourists and - Tunisians alike.

- -

The attack is “also aimed at the country’s security and stability during - the transition period,” Azzouz said. “And it could have political repercussions - — like the curtailing of human rights, or even less government transparency - if there’s fear of further attacks.”

-

The attack raised concerns that the government, led by secularists, would - be pressured to stage a wider crackdown on Islamists of all stripes. Lawmakers - are drafting an anti-terrorism bill to give security forces additional - tools to fight militants.

- -

“We must pay attention to what is written” in that law, Azzouz said. “There - is worry the government will use the attack to justify some draconian measures.”

-

Tunisian Islamists and secular forces have worked together — often reluctantly - — to defuse the country’s political crises in the years since the revolt.

-

Last fall, Tunisians elected a secular-minded president and parliament - dominated by liberal forces after souring on Islamist-led rule. - In 2011, voters had elected a government led by the Ennahda party — a movement - similar to Egypt’s Islamist Muslim Brotherhood. But a political stalemate - developed as the party and others tried to draft the country’s new constitution. - The Islamists failed to improve a slumping economy. And Ennahda came under - fire for what many Tunisians saw as a failure to crack down on Islamist - extremists.

-
Map: Flow of foreign fighters to Syria -
-

After the collapse of the authoritarian system in 2011, hard-line Muslims - known as Salafists attacked bars and art galleries. Then, in 2012, hundreds - of Islamists assaulted the U.S. Embassy in - Tunis, shattering windows and hurling gasoline bombs, after the release - of a crude online video about the prophet Muhammad. The - government outlawed the group behind the attack — Ansar al-Sharia, an al-Qaeda-linked - organization — and began a crackdown. But the killing of two leftist politicians in - 2013 prompted a fresh political crisis, and Ennahda stepped down, replaced - by a technocratic government.

-

Tunisia’s current coalition government includes - an Ennahda minister in the cabinet. Still, many leftist figures openly - oppose collaboration with the movement’s leaders.

-

“Ennahda is responsible for the current deterioration of the situation, - because they were careless with the extremists” while they were in power, - Azzouz said.

-

The leader of Ennahda, Rachid Ghannouchi, condemned Wednesday’s attack, - saying in a statement that it “will not break our people’s will and will - not undermine our revolution and our democracy.”

-

Security officials are particularly concerned by the collapse of Libya, - where various armed groups are vying for influence and jihadist militants - have entrenched themselves in major cities. Tunisians worry that extremists - can easily get arms and training in the neighboring country.

-

In January, Libyan militants loyal to the Islamic State beheaded 21 Christians — - 20 of them Egyptian Copts — along the country’s coast. They later seized - the Libyan city of Sirte.

-
- -
-
-

Officials are worried about the number of Tunisian militants who may have - joined the jihadists in Libya — with the goal of returning home to fight - the Tunis government.

-

Ajmi Lourimi, a member of Ennahda’s general secretariat, said he believed - the attack would unite Tunisians in the face of terrorism.

-

“There is a consensus here that this [attack] is alien to our culture, - to our way of life. We want to unify against this danger,” Lourimi said. - He said he did not expect a wider government campaign against Islamists.

-

“We have nothing to fear,” he said of himself and fellow Ennahda members. - “We believe the Interior Ministry should be trained and equipped to fight - and counter this militancy.”

-

The last major attack on a civilian target in Tunisia was in 2002, when - al-Qaeda militants killed more than 20 people in a car bombing outside - a synagogue in the city of Djerba.

-

Heba Habib contributed to this report.

-

Read more: -

-

Tunisia’s Islamists get a sobering lesson in governing -

-

Tunisia sends most foreign fighters to Islamic State in Syria -

-

Tunisia’s Bardo museum is home to amazing Roman treasures -

+

Gunmen opened fire on visitors at Tunisia’s most renowned museum on Wednesday, killing at least 19 people, including 17 foreigners, in an assault that threatened to upset the fragile stability of a country seen as the lone success of the Arab Spring.

+

It was the most deadly terrorist attack in the North African nation in more than a decade. Although no group claimed responsibility, the bloodshed raised fears that militants linked to the Islamic State were expanding their operations.

+

The attackers, clad in military uniforms, stormed the Bardo National Museum on Wednesday afternoon, seizing and gunning down foreign tourists before security forces raided the building to end the siege. The museum is a major tourist draw and is near the heavily guarded national parliament in downtown Tunis.

+

Tunisian Prime Minister Habib Essid said that in addition to the slain foreigners — from Italy, Poland, Germany and Spain — a local museum worker and a security official were killed. Two gunmen died, and three others may have escaped, officials said. About 50 other people were wounded, according to local news reports.

+

“Our nation is in danger,” Essid declared in a televised address Wednesday evening. He vowed that the country would be “merciless” in defending itself.

+ +

Tunisia, a mostly Muslim nation of about 11 million people, was governed for decades by autocrats who imposed secularism. Its sun-drenched Mediterranean beaches drew thousands of bikini-clad tourists, and its governments promoted education and other rights for women. But the country has grappled with rising Islamist militancy since a popular uprising overthrew its dictator four years ago, setting the stage for the Arab Spring revolts across the region.

+

Thousands of Tunisians have flocked to join jihadist groups in Syria, including the Islamic State, making the country one of the major sources of foreign fighters in the conflict. Tunisian security forces have also fought increasing gunbattles with jihadists at home.

+

Despite this, the country has been hailed as a model of democratic transition as other governments that came to power after the Arab Spring collapsed, often in bloody confrontations. But the attack Wednesday — on a national landmark that showcases Tunisia’s rich heritage — could heighten tensions in a nation that has become deeply divided between pro- and anti-Islamist political factions.

+

Many Tunisians accuse the country’s political Islamists, who held power from 2011 to 2013, of having been slow to respond to the growing danger of terrorism. Islamist politicians have acknowledged that they did not realize the threat that would develop when radical Muslims, who had been repressed under authoritarian regimes, won the freedom to preach freely in mosques.

+

In Washington, White House press secretary Josh Earnest condemned the attack and said the U.S. government was willing to assist Tunisian authorities in the investigation.

+
+

Gunmen in military uniforms stormed Tunisia's national museum, killing at least 19 people, most of them foreign tourists. (Reuters)

+
+

“This attack today is meant to threaten authorities, to frighten tourists and to negatively affect the economy,” said Lotfi Azzouz, Tunisia country director for Amnesty International, a London-based rights group.

+

Tourism is critical to Tunisia’s economy, accounting for 15 percent of its gross domestic product in 2013, according to the World Travel and Tourism Council, an industry body. The Bardo museum hosts one of the world’s most outstanding collections of Roman mosaics and is popular with tourists and Tunisians alike.

+ +

The attack is “also aimed at the country’s security and stability during the transition period,” Azzouz said. “And it could have political repercussions — like the curtailing of human rights, or even less government transparency if there’s fear of further attacks.”

+

The attack raised concerns that the government, led by secularists, would be pressured to stage a wider crackdown on Islamists of all stripes. Lawmakers are drafting an anti-terrorism bill to give security forces additional tools to fight militants.

+ +

“We must pay attention to what is written” in that law, Azzouz said. “There is worry the government will use the attack to justify some draconian measures.”

+

Tunisian Islamists and secular forces have worked together — often reluctantly — to defuse the country’s political crises in the years since the revolt.

+

Last fall, Tunisians elected a secular-minded president and parliament dominated by liberal forces after souring on Islamist-led rule. In 2011, voters had elected a government led by the Ennahda party — a movement similar to Egypt’s Islamist Muslim Brotherhood. But a political stalemate developed as the party and others tried to draft the country’s new constitution. The Islamists failed to improve a slumping economy. And Ennahda came under fire for what many Tunisians saw as a failure to crack down on Islamist extremists.

+
Map: Flow of foreign fighters to Syria
+

After the collapse of the authoritarian system in 2011, hard-line Muslims known as Salafists attacked bars and art galleries. Then, in 2012, hundreds of Islamists assaulted the U.S. Embassy in Tunis, shattering windows and hurling gasoline bombs, after the release of a crude online video about the prophet Muhammad. + The government outlawed the group behind the attack — Ansar al-Sharia, an al-Qaeda-linked organization — and began a crackdown. But the killing of two leftist politicians in 2013 prompted a fresh political crisis, and Ennahda stepped down, replaced by a technocratic government.

+

Tunisia’s current coalition government includes an Ennahda minister in the cabinet. Still, many leftist figures openly oppose collaboration with the movement’s leaders.

+

“Ennahda is responsible for the current deterioration of the situation, because they were careless with the extremists” while they were in power, Azzouz said.

+

The leader of Ennahda, Rachid Ghannouchi, condemned Wednesday’s attack, saying in a statement that it “will not break our people’s will and will not undermine our revolution and our democracy.”

+

Security officials are particularly concerned by the collapse of Libya, where various armed groups are vying for influence and jihadist militants have entrenched themselves in major cities. Tunisians worry that extremists can easily get arms and training in the neighboring country.

+

In January, Libyan militants loyal to the Islamic State beheaded 21 Christians — 20 of them Egyptian Copts — along the country’s coast. They later seized the Libyan city of Sirte.

+
+
+
+

Officials are worried about the number of Tunisian militants who may have joined the jihadists in Libya — with the goal of returning home to fight the Tunis government.

+

Ajmi Lourimi, a member of Ennahda’s general secretariat, said he believed the attack would unite Tunisians in the face of terrorism.

+

“There is a consensus here that this [attack] is alien to our culture, to our way of life. We want to unify against this danger,” Lourimi said. He said he did not expect a wider government campaign against Islamists.

+

“We have nothing to fear,” he said of himself and fellow Ennahda members. “We believe the Interior Ministry should be trained and equipped to fight and counter this militancy.”

+

The last major attack on a civilian target in Tunisia was in 2002, when al-Qaeda militants killed more than 20 people in a car bombing outside a synagogue in the city of Djerba.

+

Heba Habib contributed to this report.

+

Read more:

+

Tunisia’s Islamists get a sobering lesson in governing

+

Tunisia sends most foreign fighters to Islamic State in Syria

+

Tunisia’s Bardo museum is home to amazing Roman treasures

-
+ \ No newline at end of file diff --git a/test/test-pages/wapo-2/expected.html b/test/test-pages/wapo-2/expected.html index 3b0c6f4..ed49689 100644 --- a/test/test-pages/wapo-2/expected.html +++ b/test/test-pages/wapo-2/expected.html @@ -1,104 +1,35 @@
-

President Obama told the U.N. General Assembly 18 months ago that he would - seek “real breakthroughs on these two issues — Iran’s nuclear program and - ­Israeli-Palestinian peace.”

-

But Benjamin Netanyahu’s triumph in Tuesday’s - parliamentary elections keeps in place an Israeli prime minister who has - declared his intention to resist Obama on both of these fronts, guaranteeing - two more years of difficult diplomacy between leaders who barely conceal - their personal distaste for each other.

-

The Israeli election results also suggest that most voters there support - Netanyahu’s tough stance on U.S.-led negotiations to limit Iran’s nuclear - program and his vow on Monday that there would be no independent Palestinian state as long - as he is prime minister.

-

“On the way to his election victory, Netanyahu broke a lot of crockery - in the relationship,” said Martin Indyk, executive vice president of the - Brookings Institution and a former U.S. ambassador to Israel. “It can’t - be repaired unless both sides have an interest and desire to do so.”

-

Aside from Russian President Vladi­mir Putin, few foreign leaders so brazenly - stand up to Obama and even fewer among longtime allies.

+

President Obama told the U.N. General Assembly 18 months ago that he would seek “real breakthroughs on these two issues — Iran’s nuclear program and ­Israeli-Palestinian peace.”

+

But Benjamin Netanyahu’s triumph in Tuesday’s parliamentary elections keeps in place an Israeli prime minister who has declared his intention to resist Obama on both of these fronts, guaranteeing two more years of difficult diplomacy between leaders who barely conceal their personal distaste for each other.

+

The Israeli election results also suggest that most voters there support Netanyahu’s tough stance on U.S.-led negotiations to limit Iran’s nuclear program and his vow on Monday that there would be no independent Palestinian state as long as he is prime minister.

+

“On the way to his election victory, Netanyahu broke a lot of crockery in the relationship,” said Martin Indyk, executive vice president of the Brookings Institution and a former U.S. ambassador to Israel. “It can’t be repaired unless both sides have an interest and desire to do so.”

+

Aside from Russian President Vladi­mir Putin, few foreign leaders so brazenly stand up to Obama and even fewer among longtime allies.

-

Israeli Prime Minister Benjamin Netanyahu pledged to form a new governing coalition quickly after an upset election victory that was built on a shift to the right. (Reuters) -

+

Israeli Prime Minister Benjamin Netanyahu pledged to form a new governing coalition quickly after an upset election victory that was built on a shift to the right. (Reuters)

-

In the past, Israeli leaders who risked damaging the country’s most important - relationship, that with Washington, tended to pay a price. In 1991, when - Prime Minister Yitzhak Shamir opposed the Madrid peace talks, President - George H.W. Bush held back loan guarantees to help absorb immigrants from - the former Soviet Union. Shamir gave in, but his government soon collapsed.

-

But this time, Netanyahu was not hurt by his personal and substantive - conflicts with the U.S. president.

-

“While the United States is loved and beloved in Israel, President Obama - is not,” said Robert M. Danin, a senior fellow at the Council on Foreign - Relations. “So the perceived enmity didn’t hurt the way it did with Shamir - when he ran afoul of Bush in ’91.”

+

In the past, Israeli leaders who risked damaging the country’s most important relationship, that with Washington, tended to pay a price. In 1991, when Prime Minister Yitzhak Shamir opposed the Madrid peace talks, President George H.W. Bush held back loan guarantees to help absorb immigrants from the former Soviet Union. Shamir gave in, but his government soon collapsed.

+

But this time, Netanyahu was not hurt by his personal and substantive conflicts with the U.S. president.

+

“While the United States is loved and beloved in Israel, President Obama is not,” said Robert M. Danin, a senior fellow at the Council on Foreign Relations. “So the perceived enmity didn’t hurt the way it did with Shamir when he ran afoul of Bush in ’91.”

Where do U.S.-Israeli relations go from here?

-

In the immediate aftermath of Tuesday’s elections, tensions between the - two sides continued to run hot. The Obama administration’s first comments - on the Israeli election came with a tough warning about some of the pre-election - rhetoric from Netanyahu’s Likud party, which tried to rally right-wing - support by saying that Arab Israeli voters were “coming out in droves.”

-

“The United States and this administration is deeply concerned about rhetoric - that seeks to marginalize Arab Israeli citizens,” White House press secretary - Josh Earnest told reporters aboard Air Force One. “It undermines the values - and democratic ideals that have been important to our democracy and an - important part of what binds the United States and Israel together.”

-

Earnest added that Netan­yahu’s election-eve disavowal of a two-state - solution for Israelis and Palestinians would force the administration to - reconsider its approach to peace in the region.

-

Over the longer term, a number of analysts say that Obama and Netan­yahu - will seek to play down the friction between them and point to areas of - continuing cooperation on military and economic issues.

-

“Both sides are going to want to turn down the rhetoric,” Danin said. - “But it is also a structural problem. They have six years of accumulated - history. That’s going to put limits on how far they can go together.”

-

The first substantive test could come as early as this month, when the - United States hopes that it can finish hammering out the framework of an - agreement with Iran.

-

Netanyahu strongly warned against making a “bad deal” during his March - 3 address to a joint meeting of Congress, an appearance arranged by Republican - congressional leaders and criticized by the Obama administration for making - U.S.-Israeli relations partisan on both sides so close to the Israeli election.

-

If a deal is reached and does not pass muster with Netanyahu, he is likely - to work with congressional Republicans to try to scuttle the accord.

-

“The Republicans have said they will do what they can to block a deal, - and the prime minister has already made clear that he will work with the - Republicans against the president,” Indyk said. “That’s where a clash could - come, and it’s coming very quickly.”

-

The second test — talks with Palestinians — could be even more difficult. - In his September 2013 address to the United Nations, Obama hailed signs - of hope.

-

“Already, Israeli and Palestinian leaders have demonstrated a willingness - to take significant political risks,” Obama said in his speech. Palestinian - Authority President Mahmoud Abbas “has put aside efforts to shortcut the - pursuit of peace and come to the negotiating table. Prime Minister Netanyahu - has released Palestinian prisoners and reaffirmed his commitment to a Palestinian - state.”

-

Today, the signals could not differ more. The - Palestinian Authority has said that after it joins the International Criminal - Court at The Hague on April 1, it will press war crimes charges against - Israel for the bloody Gaza conflict during the summer. Israel, which controls - tax receipts, has pledged to punish the Palestinian Authority by freezing - its tax revenue.

-

The United States, which gives hundreds of millions of dollars of economic - aid to the Palestinian Authority, would be caught in the middle. It has - been trying to persuade both sides to stand down, but Netanyahu’s declaration - that there would be no Palestinian state on his watch makes that more difficult.

-

“Now it’s hard to see what could persuade the Palestinians” to hold up - on their ICC plans, Indyk said. “That has nothing to do with negotiations, - but if both sides can’t be persuaded to back down, then they will be on - a trajectory that could lead to the collapse of the Palestinian Authority - because it can’t pay wages anymore.

-

“That could be an issue forced onto the agenda about the same time as - a potential nuclear deal.”

+

In the immediate aftermath of Tuesday’s elections, tensions between the two sides continued to run hot. The Obama administration’s first comments on the Israeli election came with a tough warning about some of the pre-election rhetoric from Netanyahu’s Likud party, which tried to rally right-wing support by saying that Arab Israeli voters were “coming out in droves.”

+

“The United States and this administration is deeply concerned about rhetoric that seeks to marginalize Arab Israeli citizens,” White House press secretary Josh Earnest told reporters aboard Air Force One. “It undermines the values and democratic ideals that have been important to our democracy and an important part of what binds the United States and Israel together.”

+

Earnest added that Netan­yahu’s election-eve disavowal of a two-state solution for Israelis and Palestinians would force the administration to reconsider its approach to peace in the region.

+

Over the longer term, a number of analysts say that Obama and Netan­yahu will seek to play down the friction between them and point to areas of continuing cooperation on military and economic issues.

+

“Both sides are going to want to turn down the rhetoric,” Danin said. “But it is also a structural problem. They have six years of accumulated history. That’s going to put limits on how far they can go together.”

+

The first substantive test could come as early as this month, when the United States hopes that it can finish hammering out the framework of an agreement with Iran.

+

Netanyahu strongly warned against making a “bad deal” during his March 3 address to a joint meeting of Congress, an appearance arranged by Republican congressional leaders and criticized by the Obama administration for making U.S.-Israeli relations partisan on both sides so close to the Israeli election.

+

If a deal is reached and does not pass muster with Netanyahu, he is likely to work with congressional Republicans to try to scuttle the accord.

+

“The Republicans have said they will do what they can to block a deal, and the prime minister has already made clear that he will work with the Republicans against the president,” Indyk said. “That’s where a clash could come, and it’s coming very quickly.”

+

The second test — talks with Palestinians — could be even more difficult. In his September 2013 address to the United Nations, Obama hailed signs of hope.

+

“Already, Israeli and Palestinian leaders have demonstrated a willingness to take significant political risks,” Obama said in his speech. Palestinian Authority President Mahmoud Abbas “has put aside efforts to shortcut the pursuit of peace and come to the negotiating table. Prime Minister Netanyahu has released Palestinian prisoners and reaffirmed his commitment to a Palestinian state.”

+

Today, the signals could not differ more. The Palestinian Authority has said that after it joins the International Criminal Court at The Hague on April 1, it will press war crimes charges against Israel for the bloody Gaza conflict during the summer. Israel, which controls tax receipts, has pledged to punish the Palestinian Authority by freezing its tax revenue.

+

The United States, which gives hundreds of millions of dollars of economic aid to the Palestinian Authority, would be caught in the middle. It has been trying to persuade both sides to stand down, but Netanyahu’s declaration that there would be no Palestinian state on his watch makes that more difficult.

+

“Now it’s hard to see what could persuade the Palestinians” to hold up on their ICC plans, Indyk said. “That has nothing to do with negotiations, but if both sides can’t be persuaded to back down, then they will be on a trajectory that could lead to the collapse of the Palestinian Authority because it can’t pay wages anymore.

+

“That could be an issue forced onto the agenda about the same time as a potential nuclear deal.”

-
-

Steven Mufson covers the White House. Since joining The Post, he has covered - economics, China, foreign policy and energy.

+
+ +

Steven Mufson covers the White House. Since joining The Post, he has covered economics, China, foreign policy and energy.

-
+
\ No newline at end of file diff --git a/test/test-pages/webmd-1/expected.html b/test/test-pages/webmd-1/expected.html index fa84738..ec97d64 100644 --- a/test/test-pages/webmd-1/expected.html +++ b/test/test-pages/webmd-1/expected.html @@ -1,46 +1,17 @@

-

Feb. 23, 2015 -- Life-threatening peanut allergies have mysteriously been - on the rise in the past decade, with little hope for a cure.

-

But a groundbreaking new study may offer a way to stem that rise, while - another may offer some hope for those who are already allergic.

-

Parents have been told for years to avoid giving foods containing peanuts - to babies for fear of triggering an allergy. Now research shows the opposite - is true: Feeding babies snacks made with peanuts before their first birthday - appears to prevent that from happening.

-

The study is published in the New England Journal of Medicine, and - it was presented at the annual meeting of the American Academy of Allergy, - Asthma and Immunology in Houston. It found that among children at high - risk for getting peanut allergies, eating peanut snacks by 11 months of - age and continuing to eat them at least three times a week until age 5 - cut their chances of becoming allergic by more than 80% compared to kids - who avoided peanuts. Those at high risk were already allergic to egg, they - had the skin condition eczema, or - both.

-

Overall, about 3% of kids who ate peanut butter or peanut snacks before - their first birthday got an allergy, compared to about 17% of kids who - didn’t eat them.

-

“I think this study is an astounding and groundbreaking study, really,” - says Katie Allen, MD, PhD. She's the director of the Center for Food and - Allergy Research at the Murdoch Children’s Research Institute in Melbourne, - Australia. Allen was not involved in the research.

-

Experts say the research should shift thinking about how kids develop - food allergies, and it should change the guidance doctors give to - parents.

-

Meanwhile, for children and adults who are already allergic to peanuts, - another study presented at the same meeting held out hope of a treatment.

-

A new skin patch called Viaskin allowed people with peanut allergies to - eat tiny amounts of peanuts after they wore it for a year.

+

Feb. 23, 2015 -- Life-threatening peanut allergies have mysteriously been on the rise in the past decade, with little hope for a cure.

+

But a groundbreaking new study may offer a way to stem that rise, while another may offer some hope for those who are already allergic.

+

Parents have been told for years to avoid giving foods containing peanuts to babies for fear of triggering an allergy. Now research shows the opposite is true: Feeding babies snacks made with peanuts before their first birthday appears to prevent that from happening.

+

The study is published in the New England Journal of Medicine, and it was presented at the annual meeting of the American Academy of Allergy, Asthma and Immunology in Houston. It found that among children at high risk for getting peanut allergies, eating peanut snacks by 11 months of age and continuing to eat them at least three times a week until age 5 cut their chances of becoming allergic by more than 80% compared to kids who avoided peanuts. Those at high risk were already allergic to egg, they had the skin condition eczema, or both.

+

Overall, about 3% of kids who ate peanut butter or peanut snacks before their first birthday got an allergy, compared to about 17% of kids who didn’t eat them.

+

“I think this study is an astounding and groundbreaking study, really,” says Katie Allen, MD, PhD. She's the director of the Center for Food and Allergy Research at the Murdoch Children’s Research Institute in Melbourne, Australia. Allen was not involved in the research.

+

Experts say the research should shift thinking about how kids develop food allergies, and it should change the guidance doctors give to parents.

+

Meanwhile, for children and adults who are already allergic to peanuts, another study presented at the same meeting held out hope of a treatment.

+

A new skin patch called Viaskin allowed people with peanut allergies to eat tiny amounts of peanuts after they wore it for a year.

+

A Change in Guidelines?

-

Allergies to peanuts and other foods are on the rise. In the U.S., more - than 2% of people react to peanuts, a 400% increase since 1997. And reactions - to peanuts and other tree nuts can be especially severe. Nuts are the main - reason people get a life-threatening problem called anaphylaxis.

+

Allergies to peanuts and other foods are on the rise. In the U.S., more than 2% of people react to peanuts, a 400% increase since 1997. And reactions to peanuts and other tree nuts can be especially severe. Nuts are the main reason people get a life-threatening problem called anaphylaxis.

\ No newline at end of file diff --git a/test/test-readability.js b/test/test-readability.js index f12c4da..37b8409 100644 --- a/test/test-readability.js +++ b/test/test-readability.js @@ -1,4 +1,4 @@ -var prettyPrint = require("html").prettyPrint; +var prettyPrint = require("./utils").prettyPrint; var jsdom = require("jsdom").jsdom; var chai = require("chai"); chai.config.includeStack = true; @@ -8,11 +8,14 @@ var readability = require("../index"); var Readability = readability.Readability; var JSDOMParser = readability.JSDOMParser; -var testPages = require("./bootstrap").getTestPages(); +var testPages = require("./utils").getTestPages(); function runTestsWithItems(label, beforeFn, expectedContent, expectedMetadata) { describe(label, function() { + this.timeout(5000); + var result; + before(function() { result = beforeFn(); }); diff --git a/test/bootstrap.js b/test/utils.js similarity index 59% rename from test/bootstrap.js rename to test/utils.js index baa45c1..5a9dfa4 100644 --- a/test/bootstrap.js +++ b/test/utils.js @@ -1,6 +1,6 @@ var path = require("path"); var fs = require("fs"); -var prettyPrint = require("html").prettyPrint; +var prettyPrint = require("js-beautify").html; function readFile(path) { return fs.readFileSync(path, {encoding: "utf-8"}).trim(); @@ -22,3 +22,19 @@ exports.getTestPages = function() { }; }); }; + +exports.prettyPrint = function(html) { + return prettyPrint(html, { + "indent_size": 4, + "indent_char": " ", + "indent_level": 0, + "indent_with_tabs": false, + "preserve_newlines": false, + "break_chained_methods": false, + "eval_code": false, + "unescape_strings": false, + "wrap_line_length": 0, + "wrap_attributes": "auto", + "wrap_attributes_indent_size": 4 + }); +}