Title: WP ragadjust
Author: James Koster
Published: <strong>जनवरी 3, 2014</strong>
Last modified: सेप्टेम्बर 4, 2014

---

प्लगिनहरू खोज्नुहोस्

![](https://ps.w.org/wp-ragadjust/assets/banner-772x250.jpg?rev=832463)

यो प्लगिन **वर्डप्रेसका ३ प्रमुख नवीनतम रिलीजहरूसँग परीक्षण गरिएको छैन**। यो अब 
सम्भवतः व्यवस्थित वा समर्थन नभएको हुन सक्छ र वर्डप्रेसका नयाँ संस्करणहरूमा प्रयोग
गर्दा अनुकूलता सम्बन्धी समस्या हुन सक्छ।

![](https://s.w.org/plugins/geopattern-icon/wp-ragadjust_5f5f5f.svg)

# WP ragadjust

 [James Koster](https://profiles.wordpress.org/jameskoster/) द्वारा

[डाउनलोड गर्नुहोस्](https://downloads.wordpress.org/plugin/wp-ragadjust.1.0.0.zip)

 * [विवरण](https://ne.wordpress.org/plugins/wp-ragadjust/#description)
 * [समीक्षाहरू](https://ne.wordpress.org/plugins/wp-ragadjust/#reviews)
 *  [स्थापना](https://ne.wordpress.org/plugins/wp-ragadjust/#installation)
 * [विकास](https://ne.wordpress.org/plugins/wp-ragadjust/#developers)

 [सहायता](https://wordpress.org/support/plugin/wp-ragadjust/)

## विवरण

WP ragadjust is an extremely simple plugin that includes ragadjust.js on your web
pages. Ragadjust.js is a script written by @nathanford and envisaged by @markboulton
which resolves several typographical violations relating to the rag that are common
on the web:

 * Line breaks immediately following a preposition
 * Line breaks immediately following a dash
 * Small words at the end of a line
 * Consecutive hyphenation
 * (Line) broken, short emphasised phrases

Solving these issues improves the overall readability of your content.

[Read the article behind the idea](http://24ways.org/2013/run-ragged/).

## स्क्रिनसटहरू

 * [[
 * Before / After ragadjust.

## स्थापना

 1. Upload `wp-ragadjust` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Done!

## प्रश्नोत्तर

  Which elements are _ragadjust_ed by default?

By default ragajust is applied to `p` tags.

  Can I change which elemnts are adjusted?

Yes, you can use the `wpr_elements` filter to make adjustments to the selectors.

To add a new selector:

    ```
    add_filter( 'wpr_elements', 'wpr_new_selectors' );
    function wpr_new_selectors( $elements ) {
        $elements[] .= '.textwidget'; // Adjust text widgets in addition to p
        return $elements;
    }
    ```

To remove a current selector:

    ```
    add_filter( 'wpr_elements', 'wpr_remove_elements' );
    function wpr_remove_elements( $elements ) {
        unset( $elements['0'] ); // Unset 'p'.
        return $elements;
    }
    ```

To use your own, entirely unique selectors:

    ```
    add_filter( 'wpr_elements', 'wpr_custom_elements' );
    function wpr_custom_elements( $elements ) {
        $elements = array(
                'article',
                'footer',
            );
        return $elements;
    }
    ```

These snippets should go in your [child themes](https://codex.wordpress.org/Child_Themes)
functions.php file.

  Can I change the method used?

Yes. By default all methods will be used to fix all violations. If however you only
want to fix prepositions and ignore everything else you can do so via the `wpr_method`
filter like so:

    ```
    add_filter( 'wpr_method', 'wpr_custom_method' );
    function wpr_custom_method( $method ) {
        $method = 'prepositions';
        return $method;
    }
    ```

The method options are:

 * _emphasis_ – Text of three or less words in bold or italics does not break across
   lines.
 * _small-words_ – Breaks lines before words of three or less characters.
 * _prepositions_ – Breaks lines before prepositions.
 * _dashes_ – Breaks lines before hyphens and dashes.
 * _all_ (default) – All of the above.

## समीक्षाहरू

![](https://secure.gravatar.com/avatar/fd1d58ce44ef22dd5be33ba7dff3235101a6ab0102776b77dda7ccbd30c23405?
s=60&d=retro&r=g)

### 󠀁[It works](https://wordpress.org/support/topic/it-works-881/)󠁿

 [Curtis](https://profiles.wordpress.org/salsafire/) सेप्टेम्बर 3, 2016

Makes pages more readable. 🙂

![](https://secure.gravatar.com/avatar/a7cfba33f660ae0c73c8cdc63b7e3e3e70f503f33e32cc1dc100394b161a08da?
s=60&d=retro&r=g)

### 󠀁[Usefull](https://wordpress.org/support/topic/usefull-66/)󠁿

 [Mahesh Ruparel](https://profiles.wordpress.org/maheshruparel/) फेब्रुअरी 8, 2017

Simple but really usefull

 [ सबै 5 समीक्षाहरू पढ्नुहोस् ](https://wordpress.org/support/plugin/wp-ragadjust/reviews/)

## योगदानकर्ता र डेभलपरहरू

“WP ragadjust” खुला स्रोत सफ्टवेयर हो। निम्न व्यक्तिहरूले यो प्लगिनमा योगदान गरेका
छन्।

योगदानकर्ताहरू

 *   [ James Koster ](https://profiles.wordpress.org/jameskoster/)

[“WP ragadjust” लाई आफ्नो भाषामा अनुवाद गर्नुहोस्](https://translate.wordpress.org/projects/wp-plugins/wp-ragadjust)

### विकासमा रुचि छ?

[आरएसएस](https://plugins.trac.wordpress.org/log/wp-ragadjust/?limit=100&mode=stop_on_copy&format=rss)
द्वारा [कोड ब्राउज गर्नुहोस्](https://plugins.trac.wordpress.org/browser/wp-ragadjust/),
[एसभीएन रिपजिटरी](https://plugins.svn.wordpress.org/wp-ragadjust/) हेर्नुहोस्, वा
[विकास लग](https://plugins.trac.wordpress.org/log/wp-ragadjust/) को सदस्यता लिनुहोस्।

## चेन्जलग

#### 1.0.0

Initial release.

## मेटा

 *  संस्करण **1.0.0**
 *  पछिल्लो अपडेट **12 वर्ष अघि**
 *  सक्रिय स्थापना **20+**
 *  वर्डप्रेस संस्करण ** 3.3 वा उच्च **
 *  जाँच गरिएको **4.0.38**
 *  भाषा
 * [English (US)](https://wordpress.org/plugins/wp-ragadjust/)
 * ट्यागहरू
 * [hyphenation](https://ne.wordpress.org/plugins/tags/hyphenation/)[rag](https://ne.wordpress.org/plugins/tags/rag/)
   [typography](https://ne.wordpress.org/plugins/tags/typography/)
 *  [उन्नत दृश्य](https://ne.wordpress.org/plugins/wp-ragadjust/advanced/)

## रेटिङ्गहरू

 ५ मा 5 तारा।

 *  [  5 5-तारा समीक्षाहरू     ](https://wordpress.org/support/plugin/wp-ragadjust/reviews/?filter=5)
 *  [  0 4-तारा समीक्षाहरू     ](https://wordpress.org/support/plugin/wp-ragadjust/reviews/?filter=4)
 *  [  0 3-तारा समीक्षाहरू     ](https://wordpress.org/support/plugin/wp-ragadjust/reviews/?filter=3)
 *  [  0 2-तारा समीक्षाहरू     ](https://wordpress.org/support/plugin/wp-ragadjust/reviews/?filter=2)
 *  [  0 1-तारा समीक्षाहरू     ](https://wordpress.org/support/plugin/wp-ragadjust/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-ragadjust/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-ragadjust/reviews/)

## योगदानकर्ताहरू

 *   [ James Koster ](https://profiles.wordpress.org/jameskoster/)

## सहायता

केही भन्नु छ? सहयोग चाहियो?

 [सहायता फोरम हेर्नुहोस्](https://wordpress.org/support/plugin/wp-ragadjust/)