MediaWiki到纯文本转换

时间:2014-02-08 11:28:02

标签: java type-conversion converter mediawiki wiki

我有一个Text如下所示。我很困惑它是一个媒体维基文本或维基文本或任何其他。我想将其转换为简单的纯文本而不会丢失任何数据。可以有人建议任何网站, API或与转换类似的任何内容:

        "<div id="yellowbox">
    '''[[ANG TP|Title Page]]''' 

    '''[[ANG CP|Confidentiality Page]]''' 

    '''[[ANG DRN|Document Release Notice]]''' 

    '''[[ANG RH|Document Revision List]]''' 

    '''[[ANG ABT|About This Manual]]''' 

    '''[[GL_Abbreviation|List of Abbreviations]]'''

    '''[[ANG 1|SECTION 1]]''' '''REQUIREMENTS ANALYSIS PHASE''' 

    :1.1 The Activities

    :1.2 Deciding Areas of Automation

    :1.3 General Tips

    '''SECTION 2 ANALYSIS ACTIVITIES''' 

    :[[ANG 2.1|2.1]] Defining User Requirements

    :[[ANG 2.2|2.2]] Performing Problem Diagnosis

    :[[ANG 2.3|2.3]] Generating Alternative Solutions

    :[[ANG 2.4|2.4]] Performing Impact Analysis

    :[[ANG 2.5|2.5]] Selection of Solution

    :[[ANG 2.6|2.6]] Defining Software Requirements

    '''[[ANG 3|SECTION 3]]''' '''MODELING''' 

    :3.1 Types of Models

    ::3.1.1 Process Modeling

    ::3.1.2 Data Modeling

    ::3.1.3 Object Modeling

    ::3.1.4 A Word of Caution

    :3.2 Techniques and Tools

    ::3.2.1 Process Modeling

    ::3.2.2 Data Modeling

    ::3.2.3 Object Modeling

    :3.3 Conventions

    ::3.3.1 Process Modeling

    ::3.3.2 Data Modeling

    ::3.3.3 Object Modeling

    '''[[ANG 4|SECTION 4]]''' '''DOCUMENTATION FRAMEWORK''' 

    :4.1 The User Requirements Specification

    ::[[ANG 4.1.1|4.1.1]] Format of URS

    ::[[ANG 4.1.2|4.1.2]] Contents of URS

    :[[ANG 4.2|4.2]] The Alternatives and Impacts Document

    ::[[ANG 4.2.1|4.2.1]] Format of AID

    ::[[ANG 4.2.2|4.2.2]] Contents of AID

    :[[ANG 4.3|4.3]] The Software Requirements Specifications

    ::[[ANG 4.3.1|4.3.1]] Format of SRS

    ::[[ANG 4.3.2|4.3.2]] Contents of SRS

    :::SRS Section 1 Introduction

    ::::1.1 Purpose

    ::::1.2 Scope

    ::::1.3 Definitions, acronyms and abbreviations

    ::::1.4 References

    ::::1.5 Overview

    :::SRS Section 2 General Requirements

    ::::2.1 Product perspective

    :::::2.1.1 System interfaces

    :::::2.1.2 User interfaces

    :::::2.1.3 Hardware interfaces

    :::::2.1.4 Software interfaces

    :::::2.1.5 Communications interfaces

    :::::2.1.6 Memory constraints

    :::::2.1.7 Operations

    :::::2.1.8 Site adaptation requirements

    ::::2.2 Product functions

    ::::2.3 User characteristics

    ::::2.4 Constraints

    ::::2.5 Assumptions and dependencies

    ::::2.6 Apportioning of the requirements

    :::SRS Section 3 Specific requirements

    ::::3.1 External interfaces

    ::::3.2 Functions

    ::::3.3 Performance requirements

    ::::3.4 Logical database requirements

    ::::3.5 Design constraints

    ::::3.6 Standards compliance

    ::::3.7 Software system attributes

    :::::3.7.1 Reliability

    :::::3.7.2 Availability

    :::::3.7.3 Security

    :::::3.7.4 Maintainability

    :::::3.7.5 Portability

    ::::3.8 Organizing the specific requirements

    :::::3.8.1 System mode

    :::::3.8.2 User class

    :::::3.8.3 Objects

    :::::3.8.4 Feature

    :::::3.8.5 Stimulus

    :::::3.8.6 Response

    :::::3.8.7 Functional hierarchy

    ::::3.9 Additional comments

    '''[[ANG 5|SECTION 5]]''' '''PROTOTYPING''' 

    :5.1 Throwaway Prototyping

    :5.2 Evolutionary Prototyping

    :5.3 Comparison

    :5.4 Tools

    '''[[ANG 6|SECTION 6]]''' '''INFORMATION GATHERING''' 

    :6.1 Initial Information

    :6.2 Workshops and Interviews

    :6.3 Verification and Validation

    :6.4 What to ask

    '''[[ANG A|APPENDIX A]] EXAMPLE DOCUMENTATION''' 

    '''[[ANG B|APPENDIX B]]''' '''SRS TEMPLATES''' 

    '''[[ANG C|APPENDIX C]]''' '''LIST OF PROBLEMS''' 

    '''[[ANG D|APPENDIX D]]''' '''REQUIREMENTS ENGINEERING REFERENCES''' 

    '''[[ANG E|APPENDIX E]]''' '''MODELING AND METHODOLOGY REFERENCES''' 

    '''[[ANG F|APPENDIX F]]''' '''ADDITIONAL TOOLS FOR MODELING''' 

    '''[[ANG G|APPENDIX G]]''' '''REQUIREMENTS ANALYSIS FORMS''' 

    '''[[ANG H|APPENDIX H]]''' '''MODELING SYMBOLS''' 

    '''[[ANG I|APPENDIX I]]''' '''ORGANISATIONAL ISSUES''' 

    '''[[ANG J|APPENDIX J]]''' '''TEMPLATES FOR SRS''' 

    '''[[ANG GY|GLOSSARY]]''' 

    '''[[Media:Org_it_(TCS-iQMS-051)_QF1020.doc|Feedback Form]]'''
    </div>
    <br>
    <div id="box">
    Service Line:[[Service Line::IT_Services]] 

    Page Name: [[Name::Index Page]] 

    Applicable For: 

    *[[Applicable for::Development]] 

    *[[Applicable for::Maintenance]]

    *[[Applicable for::Conversion]] 

    *[[Applicable for::Package_Implementation]] 

    *[[Applicable for::Re_-_Engineering]] 

    *[[Applicable for::CAD]] 

    *[[Applicable for::SAP-CCC]] 

    *[[Applicable for::FEA]] 

    *[[Applicable for::Infrastructure_Internal]] 

    Section of: [[Section of::Analysis_Guidelines]]

    Summary:  

    * [[Summary::This guidelines provide methods of preparing SRS for both OOAD and traditional SSAD methods used for Systems Analysis]]
    </div>

    [[Category:Guidelines]]"

1 个答案:

答案 0 :(得分:0)

如果你真的只想要一个纯文本表示,这将删除所有超链接功能等,那么我想最简单的手动解决方案是使用现有的wiki。您可以编辑任何页面,粘贴代码,按预览(请不要保存!)然后您将获得维基文本的解析表示。然后,您可以复制粘贴并将其粘贴到文本编辑器中。

否则,如果您不想丢失任何格式,那么您可以复制生成的HTML,或者只保留维基文本。如果在其中存在更复杂的结构,则这尤其有意义。表或模板调用。