### yarn start Source: https://github.com/gowee/zhconv-rs/blob/main/web/README.md Runs the app in the development mode. Open http://localhost:3000 to view it in the browser. The page will reload if you make edits. You will also see any lint errors in the console. ```bash yarn start ``` -------------------------------- ### yarn build Source: https://github.com/gowee/zhconv-rs/blob/main/web/README.md Builds the app for production to the `build` folder. It correctly bundles React in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes. Your app is ready to be deployed! See the section about deployment for more information. ```bash yarn build ``` -------------------------------- ### yarn test Source: https://github.com/gowee/zhconv-rs/blob/main/web/README.md Launches the test runner in the interactive watch mode. See the section about running tests for more information. ```bash yarn test ``` -------------------------------- ### yarn eject Source: https://github.com/gowee/zhconv-rs/blob/main/web/README.md Note: this is a one-way operation. Once you `eject`, you can’t go back! If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. ```bash yarn eject ``` -------------------------------- ### Convert Chinese Text Example Source: https://github.com/gowee/zhconv-rs/blob/main/worker/doc.txt Example of converting simplified Chinese text to traditional Chinese. ```text POST /convert/zh-hant Content: "简体字" Response: "簡體字" ``` -------------------------------- ### Benchmark results with default features Source: https://github.com/gowee/zhconv-rs/blob/main/README.md Performance benchmarks for loading and conversion using default MediaWiki sourced tables. ```text load/zh2Hant time: [4.6368 ms 4.6862 ms 4.7595 ms] load/zh2Hans time: [2.2670 ms 2.2891 ms 2.3138 ms] load/zh2TW time: [4.7115 ms 4.7543 ms 4.8001 ms] load/zh2HK time: [5.4438 ms 5.5474 ms 5.6573 ms] load/zh2MO time: [4.9503 ms 4.9673 ms 4.9850 ms] load/zh2CN time: [3.0809 ms 3.1046 ms 3.1323 ms] load/zh2SG time: [3.0543 ms 3.0637 ms 3.0737 ms] load/zh2MY time: [3.0514 ms 3.0640 ms 3.0787 ms] zh2CN wikitext basic time: [385.95 µs 388.53 µs 391.39 µs] zh2TW wikitext basic time: [393.70 µs 395.16 µs 396.89 µs] zh2TW wikitext extended time: [1.5105 ms 1.5186 ms 1.5271 ms] zh2CN 天乾物燥 time: [46.970 ns 47.312 ns 47.721 ns] zh2TW data54k time: [200.72 µs 201.54 µs 202.41 µs] zh2CN data54k time: [231.55 µs 232.86 µs 234.30 µs] zh2Hant data689k time: [2.0330 ms 2.0513 ms 2.0745 ms] zh2TW data689k time: [1.9710 ms 1.9790 ms 1.9881 ms] zh2Hant data3185k time: [15.199 ms 15.260 ms 15.332 ms] zh2TW data3185k time: [15.346 ms 15.464 ms 15.629 ms] zh2TW data55m time: [329.54 ms 330.53 ms 331.58 ms] is_hans data55k time: [404.73 µs 407.11 µs 409.59 µs] infer_variant data55k time: [1.0468 ms 1.0515 ms 1.0570 ms] is_hans data3185k time: [22.442 ms 22.589 ms 22.757 ms] infer_variant data3185k time: [60.205 ms 60.412 ms 60.627 ms] ```