Giter Club home page Giter Club logo

textformer's Introduction

Text Former

Current Version 0.1

This is an application for organizing text into a friendlier form. In many situations, the text we received is illy organized. For example, a passage copied from a PDF file is splitted by many linebreaks, which usually need us to remove one by one. This application provide a more elegant way to handle this kind of problems.

Key Features: Tabularize

tabularize Separate text into different columns so that we can copy it straight into Excel.

Installation

This application is based on PyQt4 (python 3.4), and only tested on Windows 10 (64bit) platform. This package have not been uploaded to pypi as well (and probably never). Therefore, to use this software you must have Python 3.4 and PyQt4 installed in advance. I personally recommmend Anaconda (a python distribution with many third-party packages pre-installed and tested) as a convenient solution.

If Python and PyQt4 have been installed, just type the following commands in your terminal.

python textformer.py

For linux users, you can add a shebang line manually in the top of textformer.py file (of course you've already known that, you are using linux). For Windows users, you can freeze textformer.py into executables using cx_freeze. I myself have done this successfully.

Usage

  • Trim -- Remove leading and trailing whitespace of a line;
  • Concatenate -- Joining different lines of strings into one line of passage, this feature is not supported for Chinese text at present;
  • Replace -- Replace a character in the text. This function could be very useful when the dots in the text is not in its standard form; so that the Remove Space Around Dot function could not perform properly.
  • Remove Space Around Dot -- Sometimes numbers in the text is splitted (by dots) in two parts, we could not tabularize it directly, otherwise each number will be divided in two columns. In this case, we should remove space around dots at first and then put each number together.
  • Tabularize -- Separate text by whitespace into columns, after that you can copy text into MS Excel as a table.

textformer's People

Contributors

chenzhou06 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.