All Projects → edmondyip → ChineseFonts

edmondyip / ChineseFonts

Licence: MIT License
Convert asian text to web fonts

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to ChineseFonts

syng
A free, open source, cross-platform, Chinese-To-English dictionary for desktops.
Stars: ✭ 108 (+671.43%)
Mutual labels:  chinese
GameWord
记录一下游戏常用单词的中英文对照
Stars: ✭ 157 (+1021.43%)
Mutual labels:  chinese
tudien
Từ điển tiếng Việt dành cho Kindle
Stars: ✭ 38 (+171.43%)
Mutual labels:  chinese
kula
Lightweight and highly extensible .NET scripting language.
Stars: ✭ 43 (+207.14%)
Mutual labels:  chinese
R-Markdown-Template
R Markdown Templates For Chinese Users
Stars: ✭ 21 (+50%)
Mutual labels:  chinese
neural network papers
记录一些读过的论文,给出个人对论文的评分情况并简述论文insight
Stars: ✭ 152 (+985.71%)
Mutual labels:  chinese
VARBook
程序员的英语助手,输入中文,智能转换为英文变量
Stars: ✭ 24 (+71.43%)
Mutual labels:  chinese
LightLM
高性能小模型测评 Shared Tasks in NLPCC 2020. Task 1 - Light Pre-Training Chinese Language Model for NLP Task
Stars: ✭ 54 (+285.71%)
Mutual labels:  chinese
seqgan
用seqgan训练生成小黄鸡语料
Stars: ✭ 33 (+135.71%)
Mutual labels:  chinese
fontawesome-subset
Creates subsets of FontAwesome fonts for optimized use on the web.
Stars: ✭ 41 (+192.86%)
Mutual labels:  webfonts
CLUEmotionAnalysis2020
CLUE Emotion Analysis Dataset 细粒度情感分析数据集
Stars: ✭ 3 (-78.57%)
Mutual labels:  chinese
host-webfonts-locally
OMGF automagically caches the Google Fonts used by your theme/plugins locally. No configuration (or brains) required!
Stars: ✭ 13 (-7.14%)
Mutual labels:  webfonts
Functional-Light-JS-Zh
《Functional-Light-JS》中文翻译
Stars: ✭ 14 (+0%)
Mutual labels:  chinese
Chinese financial sentiment dictionary
A Chinese financial sentiment word dictionary
Stars: ✭ 67 (+378.57%)
Mutual labels:  chinese
kaldi-timit-sre-ivector
Develop speaker recognition model based on i-vector using TIMIT database
Stars: ✭ 17 (+21.43%)
Mutual labels:  chinese
ODSQA
ODSQA: OPEN-DOMAIN SPOKEN QUESTION ANSWERING DATASET
Stars: ✭ 43 (+207.14%)
Mutual labels:  chinese
wasm-cn
[翻译中] WebAssembly 中文文档
Stars: ✭ 22 (+57.14%)
Mutual labels:  chinese
alfred-chinese-converter
支持 OpenCC 簡繁體中文詞彙級別轉換、異體字轉換以及地區習慣用詞轉換的 Alfred 2 workflow
Stars: ✭ 42 (+200%)
Mutual labels:  chinese
beatrix
A tool to chop off useless fonts glyphs and convert TTF/OTF into WOFF & WOFF2
Stars: ✭ 22 (+57.14%)
Mutual labels:  webfonts
pbrtbook
pbrt 中文整合翻译 基于物理的渲染:从理论到实现 Physically Based Rendering: From Theory To Implementation
Stars: ✭ 221 (+1478.57%)
Mutual labels:  chinese

ChineseFonts

You can use this program to convert asian fonts to web fonts, like Chinese, Japanese, Korean.

這是一個可以把字體抽出壓縮成web fonts的程式,適用於中文,日文及韓文。

convert font

Usage

Setting

//setting
const fileDirectory = './';
const fileExtension = 'html';
const fontsSource = './fonts/seto.ttf';
const outputPath = 'build/';
const fontsClass = 'h1';

You can change setting in index.js

package.json

{
  "name": "ChineseFonts",
  "version": "0.0.3",
  "description": "Zip target fonts to web fonts",
  "main": "index.js",
  "dependencies": {
    "fontmin": "latest",
    "fs": "latest",
    "gulp-ttf2woff2": "latest",
    "fast-html-parser": "latest",
    "imagemin": "latest",
    "imagemin-svgo": "latest",
    "readdir": "latest"
  },
  "devtool": {
    "source-map": "latest"
  },
  "scripts": {
    "build": "node index.js"
  },
  "author": "Edmond Yip",
  "license": "MIT"
}

install

$ npm install

Use npm install to install package.

Scripts

$ npm run build
$ > [email protected] build /var/test
$ > node index.js
$ Converted words : 我是超級大標題第二 (9)

You can see which words have been convert after run build.

運行build後會顯示已轉換的字型

Thanks

version

  • v0.0.1 first push
  • v0.0.2 add word counter
  • v0.0.3 check all subdirectory

Remark

This is my first open source in Github, please tell me if you find any questions, Thanks.

這是我Github第一次公開open source,還沒有掌握好重點,如有問題請多多指教。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].