Coder Social home page Coder Social logo

pffy / hanyupinyintools Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 802 KB

HanyuPinyinTools spreadsheet add-on for Google Sheets, with Hanyu Pinyin custom functions

License: MIT License

JavaScript 100.00%
custom-functions google-sheets hanyu-pinyin transliteration google-sheets-addon google-apps-script

hanyupinyintools's Introduction

HanyuPinyinTools

  • Hanyu Pinyin custom functions for Google Sheets
  • This is Version 81.

INSTALL

NOTE: Each method only affects one spreadsheet.

Method 1: Copy-paste code.gs

The source files in the src folder of this repo are automatically combined into a single Google Apps Script file using a GitHub workflow. The outfile has been saved to the dist folder as code.gs.

  1. Open the dist folder.
  2. Copy and paste the contents of the code.gs file to your Google Apps Script project file.
  3. Save the project.
  4. Return to your spreadsheet and start typing HanyuPinyinTools custom functions.

Method 2: Make a copy.

  1. Make of copy of HanyuPinyinTools.

    • You can preview the Apps Script file.
    • You get your own personal copy of HanyuPinyinTools.
    • Distributed, decentralized copies prevent updates from breaking your spreadsheet.

FUNCTIONS

=HANYUPINYIN(text)

Converts Chinese characters to Hanyu Pinyin with tone numbers.

// ni3 hao3
=HANYUPINYIN("你好")

=HANYUPINYIN_TONEMARKS(text)

Converts Chinese characters to Hanyu Pinyin with backwards-compatible tone marks. The third tone is often represented by a breve diacritic. This diacritic looks like the bottom half of a circle.

// nĭ hăo
=HANYUPINYIN_TONEMARKS("你好")

=HANYUPINYIN_TONEMARKS_ISO(text)

Converts Chinese characters to Hanyu Pinyin with ISO-compliant tone marks. The third tone is always represented by a caron diacritic (or haček). This diacritic looks like an inverted chevron.

// nǐ hǎo
=HANYUPINYIN_TONEMARKS_ISO("你好")

=HANYUPINYIN_TONELESS(text)

Converts Chinese characters to Hanyu Pinyin with ISO compliant tone marks.

// ni hao
=HANYUPINYIN_TONELESS("你好")

USES

A partial list of interesting uses

LICENSE

hanyupinyintools's People

Contributors

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