Show last authors
1 This is about integrating RedPen into XWiki.
3 ==== Introduction ====
5 RedPen is a proofreading tool that ensures a particular body of text is of a professional quality.
8 ==== Approach ====
10 Phase 1:
12 * --Figure out how to export RedPen as a JAR library instead of having to operate it as a RedPen server. (Currently asking on redpen's Gitter: --[[--redpen-cc-gitter-->>url:]]--) --
13 * --Create main RedPen component within separate api folder--
14 ** --XWiki extension primarily contains a Java component that will execute command line onto a RedPen server, or use the RedPen library, depending on how RedPen is implemented.--
16 * --Create XAR ui within an XWiki instance, then export into Maven with XAR Maven plugin--
17 * RedPen to be executed as a job on pages in the wiki. (Another component to be created)
18 * --Within the XWiki extension, write an EventListener component that allows RedPen to be executed when a WikiPage is saved. Most likely the onEvent function in the EventListener will return a boolean to the main Java component executing RedPen (Another component)--
20 Phase 2:
22 * Clean up UI on XWiki extension **(In progress)**
23 * Allow user to change proofreading rules in the wiki pages, regarding how the document will be checked. Most proofreading settings will be available under the global administration wiki. Corrections on language expressions and spellings would be housed under the main page.
24 * Create a dictionary based on the entries the user creates in the application home page.
25 * Create a script service that calls the Java component in the extension to execute RedPen on any XWiki Page.
27 Phase 3:
29 * Debugging
30 * Contribute support for the XWiki Syntax 2.1 markup text format in RedPen
32 ==== RedPen ====
34 * Redpen provides a library, redpen-core, on the Maven central repository. The library allows a person to build a RedPen object that can validate and export errors in the form of a JSON object. It also provides Parser classes to be parse in text inputs of many formats.
35 * Validation: The redpen object must be instantiated with a XML file containing its configuration setting. The XML contains nodes called Validators, which just references existing implementations of the validators in the RedPen Core library. To edit the configuration, one just needs to edit the XML file itself. This can be done in Java issues.
37 ==== About the UI: ====
39 * --Consists of the application home page, where users can key in potential wrong expressions and spellings, and the recommended correction. --
40 * Contains a configurable class that provides basic settings that users can toggle.
41 * Also contains a dictionary section where user can review dictionary of expressions that affect expression validations
43 (((
44 [[image:updated_admin_ui_2.PNG]]
45 )))
47 * [[image:updated_admin_ui.PNG]]

Get Connected