Giter VIP home page Giter VIP logo

openccsharp.webapp's Introduction

OpenCC# WebApp

Serverless Single Page Application for Chinese text variant conversion: https://cxuesong.github.io/OpenCCSharp.WebApp/

This web app is powered by OpenCC# and DotNetJS, and targets modern browsers with WASM support.

Prerequisite

  • Node 16 LTS
  • Yarn v1
  • .NET Core SDK 6.0

Build

# /OpenCCSharp.WebApp/ is the repo root
# Prepare developement environment
/OpenCCSharp.WebApp/OpenCCSharp.WebApp> yarn
/OpenCCSharp.WebApp/OpenCCSharp.WebApp> yarn build-managed
# Start local development server
/OpenCCSharp.WebApp/OpenCCSharp.WebApp> yarn start
# Build SPA with `yarn build` or `yarn build-prod`
/OpenCCSharp.WebApp/OpenCCSharp.WebApp> yarn build

Feedback

If you have any comments or suggestions regarding to the text variant conversion app itself, please raise an issue to this repo.

If you have any suggestion to the conversion dictionary and/or rules, please double-confirm on the official OpenCC website hosted by BYVoid before raising an issue / PR to BYVoid/OpenCC. This web app uses the equivalent conversion rules to the official OpenCC library.

openccsharp.webapp's People

Contributors

cxuesong avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

openccsharp.webapp's Issues

轉換到/從日本語新字體、舊字體失敗

使用了下面的測試文字:
韋伯的任務是尋找最早、最遙遠的恆星和星系,這些恆星和星系出現在137億年前,從宇宙大爆炸(發生在138億年前)後的塵霧中誕生。

不管是Hans、Hant、HK、TW(Shinjitai、Kyujitai之外的所有選項),轉換到Kyujitai、Shinjitai失敗,有下面的信息:

转换失败

Error: 指定的转换对不受支持:Hant -> Kyujitai。 at i (https://cxuesong.github.io/OpenCCSharp.WebApp/15.index.js:1:515) at async https://cxuesong.github.io/OpenCCSharp.WebApp/index.js:1:149502

從Kyujitai、Shinjitai轉換到Hans、Hant、HK、TW(Shinjitai、Kyujitai之外的所有選項)時,顯示下面的:

转换失败

Error: 指定的转换对不受支持:Kyujitai -> Hans。 at i (https://cxuesong.github.io/OpenCCSharp.WebApp/15.index.js:1:515) at async https://cxuesong.github.io/OpenCCSharp.WebApp/index.js:1:149502

Add a checkbox option: highlight changed characters

If a “Highlight changed characters" checkbox is checked: Highlight the affected characters in the results box.
也可以使用這種翻譯「標記已轉換的字」

For example,
存储空间即将用完

image

Add a color menu to choose highlight color (for color-blind people)


Write a message if no characters were changed. For example:

image

No characters have been converted! All characters in both character sets happen to be the same.
原文沒轉換任何字!所用文本框中的所有字正好一樣。

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.