Code Monkey home page Code Monkey logo

vietnamese-encoding-converter's Introduction

Chuyển đổi qua lại giữa một số bảng mã tiếng Việt

Các bảng mã được hỗ trợ:

  • UNICODE
  • TCVN3
  • VIQR
  • VNI
  • VISCII

Requirement:

  • Python 3.x
  • OpenOffice (Không cần nếu không convert các file Office 97-2003 (.doc, .xls, .ppt))
  • lxml, pyyamlcolorama

Sử dụng:

usage: main.py [-h] [--source-encoding SOURCE_ENCODING] [--input-type INPUT_TYPE] input target_encoding

Convert between Vietnamese encoding formats.
Supported encoding:
        UNICODE
        TCVN3
        VNI
        VIQR
        VISCII

positional arguments:
  input                 The string or path to file/folder that need to be processed
  target_encoding       Convert text to this encoding

optional arguments:
  -h, --help            show this help message and exit
  --source-encoding SOURCE_ENCODING
                        Specify the original encoding. If not specified, the program will try to determine original encoding automatically
  --input-type INPUT_TYPE
                        Specify the type for the passed input. If not specified, the program will try to detect the type automatically. Supported type: string, file, directory

Ví dụ:

~ $ python main.py "ThËt kh«ng thÓ tin næi, thËt lµ tuyÖt vêi" unicode --source-encoding tcvn3

Thật không thể tin nổi, thật là tuyệt vời
~ $ python main.py "/home/you/Documents" unicode --input-type directory

Processing file "/home/you/Documents/book1.xlsx" ...
          OK
Processing file "/home/you/Documents/doc1.docx" ...
          OK
Processing file "/home/you/Documents/doc2.doc" ...
          OK

Known issue:

  • Một số font unicode có thể bị chuyển về Times New Roman khi chuyển file sang unicode
  • Khi chuyển từ VISCII sang các bảng mã khác có một số chỗ bị lẫn lộn hoa thường

Where is unit test?

Trust me bro™

vietnamese-encoding-converter's People

Contributors

ultoxtung 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.