Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    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.
    Please let us know when you have any problem integrating RedPen to XWiki.
    Vincent Massol
    @vmassol
    @laskjk is in charge of the dev, he'll probably drop by later on with some questions if he doesn't succeed but at this stage it's good to know that it can be done. We'll keep you aware of our progress . I hope you can help us if we need it :)
    thanks!
    Takahiko Ito
    @takahi-i
    Great!
    I will do any support for the integration. Please don't hesitate to ask any questions :smiley:
    Vincent Massol
    @vmassol
    great
    Chuan De Sheng
    @laskjk

    @takahi-i Good day again. As earlier stated by @vmassol , I am currently trying to integrate redpen-cc with our XWiki open source project. Currently I am facing an exception error while using redpen in an instance of XWiki from the redpen library i am using. The following is the error:

    java.lang.NoClassDefFoundError: org/pegdown/ParsingTimeoutException at cc.redpen.parser.DocumentParser.<clinit>(DocumentParser.java:75)

    From what I have seen the timeout exception occurs when I try to run this code:

    DocumentParser parser = DocumentParser.of(inputFormat);

    May i know what are the possible causes of this error?
    Thank you for your time
    Vincent Massol
    @vmassol
    @laskjk This means you're missing a dependency on pegdown for the markdown parsing done by redpen-cc. Since we're not going to use that maybe you're having a dependency that's not required?
    @takahi-i FYI, the xwiki project was also using pegdown in the past but it was quite buggy and we've moved since then to https://github.com/vsch/flexmark-java which is awesome.
    Chuan De Sheng
    @laskjk
    Hi @vmassol :). That is most likely the case since i am running my code as a local jar, which does not take external dependencies into account. I guess we will see how it really works in the future when my project officially runs as an extension on XWiki. Sorry for any inconvenience caused to you and @takahi-i
    Also, from what I see on the javadoc of redpen-core (correct me if I am wrong), RedPen's document parser is required to return a RedPen Document object, which can then be validated by a RedPen instance's validate method. In this case, we will be indirectly using pegdown for markdown parsing.
    Takahiko Ito
    @takahi-i
    Hi @laskjk, it looks like the exception occurs the any jar files in your class pass do contains org/pegdown/ParsingTimeoutException.
    I think pegdown-1.6.0.jar (this jar contains ParsingTimeoutException class) are not in your class pass.
    @vmassol thanks a lot for the information! flexmark-java looks better than pegdown. I will try it or rewrite the markdown parser without any dependencies.
    Takahiko Ito
    @takahi-i
    RedPen's document parser is required to return a RedPen Document object, which can then be validated by a RedPen instance's validate method.
    This is correct. RedPen first creates Documents with parse method and then validates with validate method.
    Chuan De Sheng
    @laskjk
    @takahi-i Good day. I have a question regarding changing the configuration of the RedPen document checker. Right now, I have to edit the configuration file object within Java to update configuration settings. Is there a way where I can set up the configuration with an in-memory data structure?
    Takahiko Ito
    @takahi-i
    Hi @laskjk , ConfigurationBuilder can be applied for the purpose.
    You can setup the configuration with the builder without files.
    You can see the usage of the builder from the test cases.
    Chuan De Sheng
    @laskjk
    @takahi-i alright thank you for you help :smile:
    Chuan De Sheng
    @laskjk
    Hi, good day to you @takahi-i . Presently I am in the process of trying to build a ValidatorConfiguration for SuggestExpression validator, is there a way to create the ValidatorConfiguration with the dictionary being a Map<String, String> object instead of a File?
    Takahiko Ito
    @takahi-i
    Hi @laskjk. Currently there is no way to create ValidatorConfiguration with the dictionary for the SuggestExpression without dictionary file.
    I found I already implemented the feature ...
    redpen-cc/redpen#698
    We can build the Vallidatorconfiguration with the dictionary being map as follows.
    Takahiko Ito
    @takahi-i
    Deeply sorry for forgetting to add the feature in the document..
    Chuan De Sheng
    @laskjk
    @takahi-i No problem! Thank you very much for responding promptly :smile:
    Takahiko Ito
    @takahi-i
    I added the descritption to the manual redpen-cc/redpen-doc#92
    Raniere Silva
    @rgaiacs
    Sorry to ask, but does redpen have a Google Doc plugin?
    Takahiko Ito
    @takahi-i
    Hi @rgaiacs, currently redpen does not provide Google Doc plugin.
    NARASIMHA RAO
    @_sunkara_twitter
    Hi
    NARASIMHA RAO
    @_sunkara_twitter
    Looking for markdown sheet evaluation end end process, appreciate if any example code base to refer
    Takahiko Ito
    @takahi-i
    Hello @rgaiacs
    Currently RedPen does not provide Google Doc plugin though we think Google Doc has a lot of users.
    Hello @_sunkara_twitter.
    I am sorry that I do not understand markdown sheet evaluation end ...
    NARASIMHA RAO
    @_sunkara_twitter
    i have a requirement like the answers will be at Optical mark recognition, need to evaluate the answers for almost 50k users each time. Appreciate if any model project on this context
    edwardwoodward
    @edwardwoodward
    Hello,
    I have been using RedPen without problem for about 2 years. I have to switch to a new work computer. But when I set up RedPen as before I get "Could not find or load main class cc.redpen.Main"