Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Takahiko Ito
    @takahi-i
    Added hotchemi
    Shintaro Katafuchi
    @hotchemi
    Thanks!
    Yusuke Yamamoto
    @yusuke
    👍
    kongou-ae
    @kongou-ae
    :+1:
    Raniere Silva
    @rgaiacs

    Hi. I'm trying to use redpen and I probably doing something wrong with Spelling validator. My redpen-conf-en.xml is

    <redpen-conf lang="en">
        <validators>
            <!--Rules on expressions-->
            <validator name="SymbolWithSpace"/>
            <validator name="SuccessiveWord" />
            <validator name="FrequentSentenceStart"/>
            <validator name="UnexpandedAcronym"/>
            <validator name="WeakExpression"/>
        <validator name="Spelling">
                <property name="dict" value="redpen-spelling-dict"/>
            </validator>
    
            <!--Rules on sections and paragraphs-->
            <validator name="SpaceBeginningOfSentence" />
            <validator name="ParenthesizedSentence"/>
            <validator name="DuplicatedSection" />
            <validator name="DoubleNegative" />
            <validator name="SuccessiveSentence" />
    
            <!--Rules on symbols and terminologies-->
            <validator name="InvalidSymbol"/>
            <validator name="Spelling"/>
            <validator name="Hyphenation"/>
            <validator name="NumberFormat"/>
    
            <!--Load JavaScript validators-->
            <validator name="JavaScript" />
        </validators>
        <symbols>
            <symbol name="LEFT_SINGLE_QUOTATION_MARK" value="'" invalid-chars="‘" before-space="false" after-space="false" />
            <symbol name="RIGHT_SINGLE_QUOTATION_MARK" value="'" invalid-chars="’" before-space="false" after-space="false" />
        </symbols>
    </redpen-conf>

    and my redpen-spelling-dict is

    RStudio
    gapminder
    summative

    but when I run redpen -f markdown _episodes/01-design.md | grep RStudio I got

    01-design.md:26: ValidationError[Spelling], Found possibly misspelled word "page-long". at line:      For example,     the lesson might be for people who have taught themselves     how to write page-long statistical analyses in R using RStudio,     but have never written functions or run programs from the Unix shell prompt.
    01-design.md:26: ValidationError[Spelling], Found possibly misspelled word "page-long". at line:      For example,     the lesson might be for people who have taught themselves     how to write page-long statistical analyses in R using RStudio,     but have never written functions or run programs from the Unix shell prompt.
    01-design.md:26: ValidationError[Spelling], Found possibly misspelled word "RStudio". at line:      For example,     the lesson might be for people who have taught themselves     how to write page-long statistical analyses in R using RStudio,     but have never written functions or run programs from the Unix shell prompt.
    01-design.md:26: ValidationError[Hyphenation], This phrase should be hyphenated (ie: "how-to"). at line:      For example,     the lesson might be for people who have taught themselves     how to write page-long statistical analyses in R using RStudio,     but have never written functions or run programs from the Unix shell prompt.
    Thanks for the help.
    Raniere Silva
    @rgaiacs
    I solved my problem. redpen-cc/redpen#777 Thanks for the help.
    Takahiko Ito
    @takahi-i
    :thumbsup:
    Thank you very much for the report @rgaiacs!
    Chuan De Sheng
    @laskjk
    Hi all, I am interested in using redpen as a proof reading tool for a project I have. However, is it possible to use it without having to use a redpen server (i.e. use redpen as a JAR dependency)
    Chuan De Sheng
    @laskjk
    @takahi-i
    Vincent Massol
    @vmassol
    Hi guys. I'm vincent from the XWiki open source project (http://xwiki.org)
    We're trying to integrate redpen-cc with XWiki. One idea we had is to have redpen-cc validate the content of wiki pages
    We're wondering if it's possible to embed redpen-cc or its validators inside XWiki (XWiki is a webapp, i.e. a WAR running in a servlet container), ideally by dropping some redpen-cc JARS in WEB-INF/lib
    Takahiko Ito
    @takahi-i
    Hello @vmassol @laskjk. Thank you very much for the interest on RedPen!
    Vincent Massol
    @vmassol
    hey hi @takahi-i
    :)
    Takahiko Ito
    @takahi-i
    RedPen jar files are available from Maven central repository
    Vincent Massol
    @vmassol
    @takahi-i that's cool but do we have to run a redpen server outside of the XWiki webapp or could be embed it somehow?
    I tried to look in the manual and couldn't find a place where integration documentation is explaiend
    s/could be/could we
    Takahiko Ito
    @takahi-i
    RedPen can be run without server just using redpen-core.jar. I think the cli Main method is an good example.
    Vincent Massol
    @vmassol
    ok that's awesome, thanks! :)
    The above is the code.
    Vincent Massol
    @vmassol
    thanks
    Takahiko Ito
    @takahi-i
    Creating RedPen object is quite simple. Just adding configuartion file.